LoginSignup
0
0

More than 5 years have passed since last update.

[TS-7553](メモ) 起動スクリプト など..

Last updated at Posted at 2015-08-06

起動スクリプト(initrd内)

  • 起動時のスクリプトは、initrdの中の /linuxrc (symbolic link)
Type 'tshelp' for help
# ls -l linuxrc*
lrwxrwxrwx    1 root     root           16 Jun  8  2011 linuxrc -> linuxrc-fastboot
-rwxr-xr-x    1 root     root         4667 Aug 31  2011 linuxrc-fastboot
-rwxr-xr-x    1 root     root         4330 Jun  8  2011 linuxrc-nandmount
-rwxr-xr-x    1 root     root         3891 Jun  8  2011 linuxrc-sdmount
-rwxr-xr-x    1 root     root         5502 Jun  8  2011 linuxrc-sdroot
-rwxr-xr-x    1 root     root         5850 Jun  8  2011 linuxrc-sdroot-readonly
-rwxr-xr-x    1 root     root         5142 Jun  8  2011 linuxrc-usbroot

起動時のUART(CONSOLE)

  • 起動スクリプトの以下の記述のあたり。 let dio9="0"とすると、Defaultで、TS-7553のCOMポートが使用される。(SW1の長押しは必要なくなる)
...
# If the RESET switch is being pushed,
# set the CONSOLE to the DB9 port (/dev/pts/#)
eval `ts7500ctl --getdio`
let dio9="(dio >> $resetsw) & 0x1"
XCONSOLE=0
...
  • % vi linuxrc-fastboot で編集後は、% saveで、RAMDISKの内容を保存する。

Debianの自動起動

  • linuxrc-sdrootにリンクを張ることで、Debianまで起動する。 % rm linuxrc; ln -s /linuxrc-sdroot /linuxrc; save

fastboot でとめたい (Debianへいかずに)

  • Debian時に、/fastboot を作ることで、linuxrc-sdroot使用時でも、初期起動時にプロンプトをだしてとまる。initrdを編集するときなど。 % touch /fastboot
  • exitでDebian起動へ継続。/fastbootは、削除される。

フラッシュメモリ(NAND/SD)の構成

-XNAND
 /dev/nbd0 - whole disk device of XNAND drive
 /dev/nbd1 - 1st partition (kernel partition)
 /dev/nbd2 - 2nd partition (EXT2 initrd)
 /dev/nbd3 - 3rd partition (~252MByte mini Debian EXT3 filesystem)
 /dev/nbd4 - 4th partition (unused)

-SD
 /dev/nbd5 - whole disk device of microSD card
 /dev/nbd6 - 1st partition of SD card (Windows VFAT filesystem on devkit card)
 /dev/nbd7 - 2nd partition of SD card (kernel partition on devkit card)
 /dev/nbd8 - 3rd partition of SD card (EXT2 initrd partition on devkit card)
 /dev/nbd9 - 4th partition of SD card (Debian EXT3 filesystem on devkit card)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0