Starting kernel ... : : VFS: Mounted root (ext2 filesystem). ---- in midified linuxrc --- ・・・ここからが手の出る範囲 Thu Sep 14 18:11:40 JST 2006 err: >AnalyzeRecvPacket:This is invalid RespCode.(code=244)・・・(1) kjournald starting. Commit interval 5 seconds EXT3 FS on sda2, internal journal EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem). Trying to move old root to /initrd ... okay Freeing init memory: 112K INIT: version 2.86 booting INIT: /etc/inittab[57]: duplicate ID field "1"・・・(2) INIT: /etc/inittab[59]: duplicate ID field "1" INIT: /etc/inittab[61]: duplicate ID field "1" Activating swap. Checking root file system... : INIT: Entering runlevel: 2 /usr/local/bin/kernelmon_exec.sh: line 64: /etc/melco/info: No such file or directory・・・(3) /usr/local/bin/kernelmon_exec.sh: line 64: /etc/melco/info: No such file or directory Starting system log daemon: syslogd. Starting kernel log daemon: klogd. Starting MTA: exim4. Starting internet superserver: inetd. Starting deferred execution scheduler: atd. Starting periodic command scheduler: cron. Debian GNU/Linux 3.1 (none) ttyS0 (none) login:エラーは3つ
(none):/initrd# miconapl -b -a boot_flash_ok err: >AnalyzeRecvPacket:This is invalid RespCode.(code=244) (none):/initrd#標準ファームはどうなっているかとブートのログを見てみたら、
---- in linuxrc --- Thu Sep 14 17:50:54 JST 2006 err: >AnalyzeRecvPacket:This is invalid RespCode.(code=244)おんなじ。要らんの?
[root@giga tmp]# gunzip initrd.gz [root@giga tmp]# mkdir /tmp/root [root@giga tmp]# mount -o loop initrd /tmp/root [root@giga tmp]# cd /tmp/root/ [root@giga root]# mv linuxrc{,.orig} [root@giga root]# cp linuxrc{.orig,} [root@giga root]# vi linuxrc [root@giga root]# diff -c linuxrc.orig linuxrc *** linuxrc.orig 2006-09-10 15:31:11.000000000 +0900 --- linuxrc 2006-09-14 18:32:36.000000000 +0900 *************** *** 10,18 **** hwclock -s date - ## Setup Micon communication port and send flash-boot complete message. - miconapl -b -a boot_flash_ok - umount /proc umount -a exit 0 --- 10,15 ---- [root@giga root]# [root@giga root]# cd /tmp [root@giga tmp]# umount /tmp/root [root@giga tmp]# gzip initrd [root@giga tmp]# mkimage -A ARM -O Linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initrd -d initrd.gz initrd.buffalo Image Name: initrd Created: Thu Sep 14 18:34:39 2006 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 4414847 Bytes = 4311.37 kB = 4.21 MB Load Address: 0x00000000 Entry Point: 0x00000000 [root@giga tmp]#
[root@giga tmp]# mkdir boot [root@giga tmp]# mount -t ext3 /dev/sda1 /tmp/boot [root@giga tmp]# ls /tmp/boot conf_save.tgz initrd.buffalo lost+found/ u-boot.buffalo uImage.buffalo [root@giga tmp]# cd /tmp/boot [root@giga boot]# ls conf_save.tgz initrd.buffalo lost+found/ u-boot.buffalo uImage.buffalo [root@giga boot]# mv initrd.buffalo initrd.buffalo.old [root@giga boot]# mv /tmp/initrd.buffalo . [root@giga boot]# cd / [root@giga /]# umount /tmp/boot
VFS: Mounted root (ext2 filesystem). ---- in midified linuxrc --- Thu Sep 14 18:42:19 JST 2006 kjournald starting. Commit interval 5 seconds EXT3 FS on sda2, internal journal EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem).とエラーはなくなったが、、、LED が点滅している(汗)
コメントアウトしたコマンドを手動で実行してみた。
(none):~# miconapl -b -a boot_flash_ok err: RecvPacket: readlen=0.他のコマンドも。
(none):~# /usr/local/sbin/miconapl -a boot_end err: RecvPacket: readlen=0. (none):~# shutdown -r now Broadcast message from root (ttyS0) (Fri Sep 15 03:48:15 2006): The system is going down for reboot NOW! : Restarting system. >miconCntl_Reboot >miconCntl_ShutdownWait >miconCntl_SendCmd: recv fail. >miconCntl_SendCmd: recv fail. >miconCntl_SendCmd: recv fail.あかん(汗)
ブートしてからログイン後に
miconapl -b -a boot_flash_ok を実行したのでは、
/etc/init.d/miconapl から起動する miconapl -a boot_end より後に
実行することに気が付いた。
/etc/init.d/miconapl に追加してみる。
(none):/etc/init.d# mv miconapl{,.orig} (none):/etc/init.d# cp miconapl{.orig,} (none):/etc/init.d# vi miconapl : (none):/etc/init.d# diff -c miconapl.orig miconapl *** miconapl.orig Mon Sep 11 03:47:18 2006 --- miconapl Fri Sep 15 03:58:40 2006 *************** *** 4,9 **** --- 4,10 ---- case "$1" in start) + /usr/local/sbin/miconapl -b -a boot_flash_ok /usr/local/sbin/miconapl -a boot_end ;; stop) (none):/etc/init.d#
Setting the System Clock using the Hardware Clock as reference... System Clock set. Local time: Fri Sep 15 04:02:10 JST 2006 Initializing random number generator...done. Recovering nvi editor sessions... done. err: >AnalyzeRecvPacket:This is invalid RespCode.(code=244) INIT: Entering runlevel: 2 Starting system log daemon: syslogd何や、結局エラー出るんや。
(none):/etc# more inittab : : # Format: #何でこんなことになってんの。: : : # # Note that on most Debian systems tty7 is used by the X Window System, # so if you want to add more getty's go ahead but skip tty7 if you run X. # #1:2345:respawn:/sbin/getty 38400 tty1 1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 #1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 #1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 #1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 2:23:respawn:/sbin/getty 38400 tty2 : :
(none):/etc# diff -c inittab.orig inittab *** inittab.orig Sun Sep 10 18:39:12 2006 --- inittab Fri Sep 15 05:43:40 2006 *************** *** 52,74 **** # so if you want to add more getty's go ahead but skip tty7 if you run X. # #1:2345:respawn:/sbin/getty 38400 tty1 ! 1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 ! #1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 ! 1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 ! #1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 ! 1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 ! #1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 ! 1:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 ! 2:23:respawn:/sbin/getty 38400 tty2 ! 3:23:respawn:/sbin/getty 38400 tty3 ! 4:23:respawn:/sbin/getty 38400 tty4 ! 5:23:respawn:/sbin/getty 38400 tty5 ! 6:23:respawn:/sbin/getty 38400 tty6 # Example how to put a getty on a serial line (for a terminal) # #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100 #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100 # Example how to put a getty on a modem line. # --- 52,68 ---- # so if you want to add more getty's go ahead but skip tty7 if you run X. # #1:2345:respawn:/sbin/getty 38400 tty1 ! #2:23:respawn:/sbin/getty 38400 tty2 ! #3:23:respawn:/sbin/getty 38400 tty3 ! #4:23:respawn:/sbin/getty 38400 tty4 ! #5:23:respawn:/sbin/getty 38400 tty5 ! #6:23:respawn:/sbin/getty 38400 tty6 # Example how to put a getty on a serial line (for a terminal) # #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100 #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100 + T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 # Example how to put a getty on a modem line. # (none):/etc#
(none):/etc# head -64 /usr/local/bin/kernelmon_exec.sh | tail -1 . /etc/melco/info (none):/etc#これもコメントアウト
← LS-GL:新規 HDD の接続 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LS-GL:debian:設定 |