serial-log@u-boot

 オリジナルのzImageが起動しない問題難しいです。
 感覚的にはzImageを読み込んだ後、即CPUリセットになっている感じです。
 確認のためカーネルログがみたいですね。

 u-bootが115200bps、zImageが9600bps固定なのでまだ見ていませんでした。
 u-bootも9600にそろえてlogをみたいところです。どうすればいいのか?
 検索..検索..ありました。/drivers/serial/serial-sh.cですね。ふ〜
 この中のserial_setbrg()がボーレート設定みたいですね。結局CONFIG_BAUDRATEにたどり着きました。/include/configs/landisk.hの変更だけでした。(触ったことあったよ〜)
 再ビルド!デバッグ用!再テスト!

U-Boot 2011.09.landisk_sel0.6 (Apr 01 2013 - 21:59:00)

CPU: SH4
BOARD: IO-DATA Usl-5p
DRAM:  64MB
Using default environment

PCI: SH7751 PCI host bridge found.
PCI:   Bus Dev VenId DevId Class Int
  00:00.0     - 10ec:8139 - Network controller
  00:02.0     - 1033:0035 - Serial bus controller
  00:02.1     - 1033:0035 - Serial bus controller
  00:02.2     - 1033:00e0 - Serial bus controller
In:    serial
Out:   serial
Err:   serial
Bus 0: OK
  Device 0: Model: HMS360402D5CF00  Firm: DN2OC60G Ser#: N2GRN0HA
            Type: Removable Hard Disk
            Capacity: 1953.0 MB = 1.9 GB (3999744 x 512)
Net:   RTL8139#0Warning: failed to set MAC address

Loading file "/boot/u-boot.env" from ide device 0:1 (hda1)
679 bytes read
setenv ipaddr = 192.168.a.b
setenv ncip = 192.168.c.d
setenv bootargs0 = console=ttySC1,115200 mem=64M root=/dev/sda3
setenv bootargs1 = mem=64M console=ttySC1,9600 root=/dev/hda1
setenv bootargs2 = mem=64M console=ttySC1,115200 usb-storage.delay_use=0 bootld=/etc/init.d/bootld
setenv bootargs3 = mem=64M console=ttySC1,9600 root=/dev/hda1
setenv bootcmd0 = ext2load ide 0:3 0x8c400000 /boot/vmlinuz-3.1.4-landisk;zimageboot 0x8c400000 0x8c0010000
setenv bootcmd1 = ext2load ide 0:1 0x8c400000 /boot/zImage;zimageboot 0x8c400000 0x8c0010000
setenv bootcmd2 = ext2load ide 0:1 0x8c400000 /boot/bootld.dont_touch/vmlinuz-initramfs-landisk.08;zimageboot 0x8c400000 0x8c0010000
setenv bootcmd3 = ext2load ide 0:1 0x8c400000 /boot/zImage;zimageboot 0x8c400000 0x8c0010000
Hit any key to stop autoboot:  0
landisk boot selector(landisk_sel)...
  If you want to select next bootcmd(n), operate Power SW OFF->ON.
Remainig selectable time is about 5 seconds.
bootcmd1 is selected.
mem=64M console=ttySC1,9600 root=/dev/hda1
ext2load ide 0:1 0x8c400000 /boot/zImage;zimageboot 0x8c400000 0x8c0010000
Loading file "/boot/zImage" from ide device 0:1 (hda1)
1015401 bytes read

SH IPL+g version 0.9, Copyright (C) 2000 Free Software Foundation, Inc.

This software comes with ABSOLUTELY NO WARRANTY; for details type `w'.
This is free software, and you are welcome to redistribute it under
certain conditions; type `l' for details.

2002/09/09 Making.  2004/09/08 I-O DATA NSU Update.
266:133:33 on base clock 22.22MHz and SDRAM 4 burst. CF boot.

PCIC initialization done.
MASTER:48bit LBA mode non support
Disk drive detected: HMS360402D5CF00 DN2OC60G             N2GRN0HA
LBA: 003D0800
DiskSize: 2047868928Byte
PIO MODE1
Set Transfer Mode result: 50
> b
Set Transfer Mode result: 50
Initialize Device Parameters result: 50
IDLE result: 50
LILO boot:

 やはり即再リセットされているみたい。
 あと気になるのは、lilo.confにread-onlyを書いてますけど、u-bootのbootargsではどうすればいいのか?分からない〜