玄箱を困らせてみる
2004/12/6作成
玄箱にシリアルコンソールがつながったので、さまざまなシチュエーションでどんなメッセージを出すのかをチェックしてみました。
あまり重要なデータに見えないかもしれませんが、あとあとの参照用です。
1.HDDを外す
ハードディスクを外して起動してみたときのシリアルコンソールの様子です。
******* Product Information *******
----------------------------------
Product Name: KURO-BOX(IETSUNA)
VER: 1.01
Date: 2004/3/18 11:42:44
----------------------------------
Firmware check:done.
>>root=/dev/hda1
Now Loading...done.
Now Booting
Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.17_kuro-box (root@toda_dev.melcoinc.co.jp) (gcc version 2.95.3
20010315 (release/MontaVista)) #2 2004年 3月 18日 木曜日 11:39:47 JST
KURO-BOX (C) 2004 KUROUTO-SHIKOU.
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda1
OpenPIC Version 1.2 (1 CPUs and 139 IRQ sources) at 80040000
decrementer frequency = 24.425472 MHz
rtc sec count 1074401268
Calibrating delay loop... 129.84 BogoMIPS
Memory: 60532k available (1124k kernel code, 520k data, 188k init, 0k highmem)
Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Disabling the Out Of Memory Killer
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
BUFFALO INC. RTC driver ver 1.00
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
ttyS00 at 0x80004600 (irq = 138) is a 16550A
ttyS01 at 0x80004500 (irq = 137) is a 16550A
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 10000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD680: IDE controller on PCI bus 00 dev 60
CMD680: chipset revision 2
CMD680: 100% native mode on irq 17
ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:pio, hdd:pio
hda not found.
power off
おどろきました。カーネルのコアはすべてフラッシュに入っているようです。
IDEのデバイスを組み込んだあとに、ハードディスクをマウントしようとして失敗しています。
これはいよいよやっかいなことになりました。
2.新しいハードディスクを入れてみる
次は、HDDはつながっているけど、インストールが終わっていないハードディスクを用意しました。
******* Product Information *******
----------------------------------
Product Name: KURO-BOX(IETSUNA)
VER: 1.01
Date: 2004/3/18 11:42:44
----------------------------------
Firmware check:done.
>>root=/dev/hda1
Now Loading...done.
Now Booting
Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.17_kuro-box (root@toda_dev.melcoinc.co.jp) (gcc version 2.95.3
20010315 (release/MontaVista)) #2 2004年 3月 18日 木曜日 11:39:47 JST
KURO-BOX (C) 2004 KUROUTO-SHIKOU.
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda1
OpenPIC Version 1.2 (1 CPUs and 139 IRQ sources) at 80040000
decrementer frequency = 24.378497 MHz
rtc sec count 1074401630
Calibrating delay loop... 129.84 BogoMIPS
Memory: 60532k available (1124k kernel code, 520k data, 188k init, 0k highmem)
Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Disabling the Out Of Memory Killer
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
BUFFALO INC. RTC driver ver 1.00
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
ttyS00 at 0x80004600 (irq = 138) is a 16550A
ttyS01 at 0x80004500 (irq = 137) is a 16550A
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 10000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD680: IDE controller on PCI bus 00 dev 60
CMD680: chipset revision 2
CMD680: 100% native mode on irq 17
ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:pio, hdd:pio
hda: Maxtor 92049U6, ATA DISK drive
ide0 at 0xbffef8-0xbffeff,0xbffef6 on irq 17
hda: 39882528 sectors (20420 MB) w/2048KiB Cache, CHS=39566/16/63, UDMA(66)
Partition check:
hda: [PTBL] [2482/255/63] hda1 hda2 < hda5 >
loop: loaded (max 8 devices)
FLASHDISK:Initialized [FUJITSU MBM29PL32TM]
Linux Tulip driver version 0.9.15-pre9 (Nov 6, 2001)
tulip0: MII transceiver #1 config 3100 status 7849 advertising 05e1.
eth0: ADMtek Comet rev 17 at 0xbfff00, 00:07:40:FB:36:35, IRQ 16.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: AppleTalk 0.18a for Linux NET4.0
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 2077k freed
Boot from /dev/hda1.
VFS: Mounted root (ext2 filesystem).
Boot from /dev/hda1.
VFS: Mounted root (ext2 filesystem).
change_root: old root has d_count=5
Trying to unmount old root ... <3>error -16
Change root to /initrd: error -2
Freeing unused kernel memory: 188k init
kmod: failed to exec /sbin/modprobe -s -k char-major-4, errno = 2
INIT: version 2.78 booting
[: 0: unexpected operator
Mounting local filesystems...
none on /dev/pts type devpts (rw,gid=5,mode=20)
Cleaning: /tmp .
Configuration network interface: lo eth0
dhcpcd[37]: timed out waiting for a valid DHCP server response
Starting system log daemon: syslogd klogd.
INIT: Entering runlevel: 2
Starting AP serv daemon:AP serv starting on eth0
Starting internet superserver: inetd.
Start services: ppc_uartd
Kroutoshikou KURO-BOX (IETSUNA)
kernel 2.4.17-kuro-box on ppc
KURO-BOX-EM login:
もろもろ失敗していますが、なんとなく起動してます。
3.初期化スイッチを押してみる
裏にある初期化スイッチを3秒間押すとデフォルトの状態に戻ります。
INIT: Switching to runlevel: 6
INIT: Stopping periodic command scheduler: cron.
Stopping internet superserver: inetd.
Start services: thttpd
Stop services: ppc_uartdSaving random seed... done.
Stop services: lpd
Stop servecies: atalkd afpd
Can't unregister KURO-BOX:Workstation
Can't unregister KURO-BOX:netatalk
Stopping system log daemon: klogd syslogd.
Stop services: smbd nmbd
Stop services: ppc_uartd
Sending all processes the TERM signal... done.
Sending all processes the KILL signal... done.
Unmounting remote filesystems... done.
Deactivating swap... done.
Unmounting local filesystems... done.
Rebooting... flushing ide devices: hda
Restarting system.
改行コードがおかしくなっていたので、適当に修正いれてあります。
"init 6"を実行しているだけのようですが、初期値とかまっさらにされてしまいました。
たとえばIPアドレスなんかがそうです。