landisk予備機をテスト機として投入(命名)

 landisk_sel動作確認のため新しいu-boot_landisk.binにliloしたらなぜか動きません。シリアルログも一切なし、焦りました。
(追記:patchを作成し、そこから新たにバイナリを作りました。patchの作成に誤りがありました。)
 もう少しで、sh4開発環境をパーにするところでした。
 オリジナルシステムを置いていたので、古いu-bootに書き直してliloし、復活させました。(汗)

 危ないので予備機を使ってテストすることにします。これを新たに『テスト機』と命名します。(笑)
 オリジナルシステムのバックアップとかいろいろ作業します。
 忙しいなぁ〜
前全部をメモってないのでdmesgをメモ

Linux 2.4.21 (landisk) (0)


landisk login:
Password:
No directory, logging in with HOME=/
bash$ dmesg
Linux version 2.4.21 (embedix@embedix) (gcc version 3.0.4) #50 Fri Mar 25 16:33:43 JST 2005
I-O DATA DEVICE, INC. landisk3 support.
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: mem=64M console=ttySC1,9600
CPU clock: 266.80MHz
Bus clock: 133.40MHz
Module clock: 33.35MHz
Interval = 5207
Calibrating delay loop... 266.24 BogoMIPS
Memory: 62580k/65536k available (1689k kernel code, 2956k reserved, 271k data, 60k init)
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: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
CPU: SH7751R
POSIX conformance testing by UNIFIX
PCI: Using configuration type 1
SH7751R PCI: Finished initialization of the PCI controller
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Allocate Area5/6 success.
Julian Shutdown button driver initialized
Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
pty: 256 Unix98 ptys configured
SuperH SCI(F) driver initialized
ttySC0 at 0xffe00000 is a SCI
ttySC1 at 0xffe80000 is a SCIF
Real Time Clock Driver v1.10e
RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
AEC6880R: IDE controller at PCI slot 00:01.0
PCI: Enabling device Artop Electronic Corp ATP865 (0005 -> 0007)
AEC6880R: chipset revision 7
AEC6880R: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
AEC6880R: ROM enabled at 0x00200000
    ide0: BM-DMA at 0x4420-0x4427, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0x4428-0x442f, BIOS settings: hdc:pio, hdd:pio
hda: Maxtor 6L250R0, ATA DISK drive
hdb: Maxtor 6L250R0, ATA DISK drive
blk: queue 8c21fc40, I/O limit 4095Mb (mask 0xffffffff)
blk: queue 8c21fd7c, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x4400-0x4407,0x440a on irq 6
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 490234752 sectors (251000 MB) w/16384KiB Cache, CHS=30515/255/63, UDMA(133)
hdb: attached ide-disk driver.
hdb: host protected area => 1
hdb: 490234752 sectors (251000 MB) w/16384KiB Cache, CHS=30515/255/63, UDMA(133)
ide-floppy driver 0.99.newide
Partition check:
 hda: hda1 hda2 hda3
 hdb: hdb1
ide-floppy driver 0.99.newide
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
   8regs     :   197.600 MB/sec
   32regs    :   284.800 MB/sec
raid5: using function: 32regs (284.800 MB/sec)
md: multipath personality registered as nr 7
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
LVM version 1.0.5+(22/07/2002)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: AppleTalk 0.18a for Linux NET4.0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 60k freed
Adding Swap: 562264k swap-space (priority -1)
 [events: 0000000f]
 [events: 0000000f]
md: autorun ...
md: considering hdb1 ...
md:  adding hdb1 ...
md:  adding hda3 ...
md: created md0
md: bind<hda3,1>
md: bind<hdb1,2>
md: running: <hdb1><hda3>
md: hdb1's event counter: 0000000f
md: hda3's event counter: 0000000f
md0: max total readahead window set to 124k
md0: 1 data-disks, max readahead per data-disk: 124k
md: updating md0 RAID superblock on device
md: hdb1 [events: 00000010]<6>(write) hdb1's sb offset: 245111616
md: hda3 [events: 00000010]<6>(write) hda3's sb offset: 244477056
md: ... autorun DONE.
8139cp: 10/100 PCI Ethernet driver v0.3.0 (Sep 29, 2002)
PCI: Enabling device Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (0000 -> 0003)
eth0: RTL-8139C+ at 0xfd000000, 00:a0:b0:67:f8:70, IRQ 5
eth0: PCI cache line size set incorrectly (0 bytes) by BIOS/FW, correcting to 32
PCI: Setting latency timer of device Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ to 64
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Enabling device NEC Corporation USB 2.0 (0000 -> 0002)
ehci-hcd 00:02.2: NEC Corporation USB 2.0
ehci-hcd 00:02.2: irq 5, pci mem fd000100
usb.c: new USB bus registered, assigned bus number 1
PCI: 00:02.2 PCI cache line size set incorrectly (0 bytes) by BIOS/FW.
PCI: 00:02.2 PCI cache line size corrected to 32.
ehci-hcd 00:02.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Jan-22
hub.c: USB hub found
hub.c: 5 ports detected
PCI: Enabling device NEC Corporation USB (0000 -> 0002)
PCI: Setting latency timer of device NEC Corporation USB to 64
usb-ohci.c: USB OHCI at membase 0xfd001000, IRQ 7
usb-ohci.c: usb-00:02.0, NEC Corporation USB
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
PCI: Enabling device NEC Corporation USB (#2) (0000 -> 0002)
PCI: Setting latency timer of device NEC Corporation USB (#2) to 64
usb-ohci.c: USB OHCI at membase 0xfd002000, IRQ 8
usb-ohci.c: usb-00:02.1, NEC Corporation USB (#2)
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
usb.c: registered new driver usblp
printer.c: v0.11: USB Printer Device Class driver
LED control driver initialized.
Reset switch driver initialized.
usb.c: deregistering driver usb-storage
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
usb.c: USB disconnect on device 00:02.0-0 address 1
usb.c: USB bus 2 deregistered
usb.c: USB disconnect on device 00:02.1-0 address 1
usb.c: USB bus 3 deregistered
ehci-hcd 00:02.2: remove state 3
usb.c: USB disconnect on device 00:02.2-0 address 1
usb.c: USB bus 1 deregistered
usb.c: deregistering driver usblp
usb.c: deregistering driver usb-storage
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
EXT2-fs warning: checktime reached, running e2fsck is recommended
EXT2-fs warning: checktime reached, running e2fsck is recommended
dhcpcd uses obsolete (PF_INET,SOCK_PACKET)
eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
bash$

fdisk -l /dev/hdaメモ

Disk /dev/hda: 255 heads, 63 sectors, 30515 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1         9     72261   83  Linux
/dev/hda2            10        79    562275   82  Linux swap
/dev/hda3            80     30515 244477170   83  Linux

母艦のXS35V3にて

# dd if=/dev/sdb of=~/landisk-MBR.img bs=512 count=63
63+0 records in
63+0 records out
32256 bytes (32 kB) copied, 0.0152444 s, 2.1 MB/s
# dd if=/dev/sdb1 of=~/landisk-firm.img bs=1M
70+1 records in
70+1 records out
73995264 bytes (74 MB) copied, 2.52092 s, 29.4 MB/s

等としておく。