&size(24){&color(darkgreen){''SH-4 2D Graphics/Video Client Platform''};};
~''CONTENTS''
#contents
----
~''REFERENCES''
-[[The CE Linux Forum:http://www.celinuxforum.org/]]
-[[SH-4 2D Graphics/Video Client Platform:http://www.jp.renesas.com/solution/rts7751r2d.htm]]
----


**概要 [#vcc2deae]
-[[SH7751R:http://www.renesas.com/jpn/products/mpumcu/32bit/sh/sh7751r/]]
-[[SM501:http://www.siliconmotion.com/jp/sm501.htm]]
-PCI x 2
-蟹搭載
-コンパクトフラッシュからブート可能

-[[RTS7751R2D Linux software handling manual (CELF 040126 kernel version) :http://tree.celinuxforum.org/pubwiki/moin.cgi/RTS7751R2DHandlingManual]]
--微妙。このとおりやってもうまくいきません。
--''CELF SDK CD-ROM''というものがあり,そこにSM501のデモプログラムがあるそうです。ほすぃ。

**クロス開発環境 [#x6aeb3eb]
-[[Tree Server:http://tree.celinuxforum.org/]]
--celinux-040503.tar.bz2
-[[Tool Chanins:http://tree.celinuxforum.org/pubwiki/moin.cgi/ToolChains]]
--tools_sh4_RPMS.tar.gz
--Userland_sh4_RPMS.tar.gz

binutilsとgccを開発マシンにインストールします。
 # rpm -i binutils-sh4-2.13.90.0.18-1.i686.rpm 
 # rpm -i gcc-sh4-3.2.3-2.i686.rpm 

ライブラリはignorearchを忘れずに。
 # rpm -i --force --ignorearch glibc-devel-sh4-2.3.1-3u.sh4.rpm 

**ネットワーク起動 [#i201bd7c]
***DHCP server [#r5da537a]
/etc/dhcpd.conf
 ddns-update-style ad-hoc;
 subnet 192.168.100.0 netmask 255.255.255.0 {
         range 192.168.100.7 192.168.100.7;
         default-lease-time 600;
         max-lease-time 7200;
         option subnet-mask 255.255.255.0;
         option routers 192.168.100.254;
         option domain-name-servers 192.168.100.254;
         option domain-name "local";
 }
 
 host r2d {
         hardware ethernet 00:00:87:6b:5f:ea;
         fixed-address 192.168.100.7;
         filename "/tftpboot/zImage";
         option root-path "192.168.100.1:/tftpboot/rootfs";
 }

 # mv /etc/rc3.d/K35dhcpd /etc/rc3.d/S35dhcpd

***NFS server [#h2bbe110]
/etc/exports
 /tftpboot       192.168.100.7(rw,insecure,async,no_root_squash)

 # mv /etc/rc3.d/K20nfs /etc/rc3.d/S20nfs
***tftp server [#sea2009e]
/etc/xinetd.d/tftp
 service tftp
 {
         socket_type             = dgram
         protocol                = udp
         wait                    = yes
         user                    = root
         server                  = /usr/sbin/in.tftpd
         server_args             = -s /tftpboot
         disable                 = no
         per_source              = 11
         cps                     = 100 2
         flags                   = IPv4
 }

***rootfs [#d48641d8]
 # mkdir /tftpboot/rootfs

rpmの中身を確認
 # rpm -qpl /tmp/hoge.rpm

展開
 # rpm2cpio /tmp/hoge.rpm | cpio -id

-最小構成 (''21MB'')
>
+filesystem-2.2.1-2u.sh4.rpm
+MAKEDEV-1.0.0-1u.sh4.rpm
+setup-rts7751r2d-1.0.0-1u.sh4.rpm
+setup-2.5.23-1u.sh4.rpm
+glibc-2.3.1-3u.sh4.rpm
+initscripts-7.04-1u.sh4.rpm
+tinylogin-1.4-1u.sh4.rpm
+busybox-0.60.5-5u.sh4.rpm
+gawk-3.1.1-9u.sh4.rpm

-その他のユーザーランド
--SysVinit-2.84-7u.sh4.rpm
--util-linux-2.11y-4u.sh4.rpm
--lilo-0.21-4.sh4.rpm
--apmd-3.0.2-17u.sh4.rpm
--arpwatch-2.1a11-1.sh4.rpm
--bash-2.05b-16u.sh4.rpm
--bzip2-1.0.2-8u.sh4.rpm
--bzip2-libs-1.0.2-8u.sh4.rpm
--cracklib-2.7-20u.sh4.rpm 
--cracklib-dicts-2.7-20u.sh4.rpm
--crontabs-1.10-5u.sh4.rpm
--devfsd-1.3.25-1u.sh4.rpm
--dhclient-3.0pl1-20u.sh4.rpm
--dhcp-3.0pl1-20u.sh4.rpm
--dosfstools-2.8-5u.sh4.rpm
--e2fsprogs-1.32-6u.sh4.rpm
--fileutils-4.1.9-11u.sh4.rpm 
--findutils-4.1.7-9u.sh4.rpm
--flex-2.5.4a-29u.sh4.rpm
--ftp-0.17-17u.sh4.rpm
--gdb-5.3-1u.sh4.rpm
--gdbm-1.8.0-20u.sh4.rpm
--grep-2.5.1-7u.sh4.rpm
--hdparm-5.2-4u.sh4.rpm
--iproute-2.4.7-7u.sh4.rpm 
--iptables-1.2.7a-2u.sh4.rpm
--iptables-ipv6-1.2.7a-2u.sh4.rpm
--iputils-20020927-2u.sh4.rpm
--irda-utils-0.9.14-9u.sh4.rpm
--kernel-pcmcia-cs-3.1.31-13u.sh4.rpm
--libcap-1.10-15u.sh4.rpm
--libgcc_s-3.2.1-1u.sh4.rpm
--libpcap-0.7.2-1.sh4.rpm
--libstdc++-5.0.1-1u.sh4.rpm
--libtermcap-2.0.8-32u.sh4.rpm
--lockdev-1.0.0-23u.sh4.rpm
--mgetty-sendfax-1.1.30-2u.sh4.rpm
--mgetty-1.1.30-2u.sh4.rpm
--mgetty-voice-1.1.30-2u.sh4.rpm
--mingetty-1.00-5u.sh4.rpm
--minicom-2.00.0-12u.sh4.rpm
--modutils-2.4.22-8u.sh4.rpm
--mtd-tools-20030318-1u.sh4.rpm
--ncftp-3.1.5-4u.sh4.rpm
--ncurses-5.3-1u.sh4.rpm
--net-tools-1.60-12u.sh4.rpm
--openssh-3.5p1-6u.sh4.rpm
--openssh-server-3.5p1-6u.sh4.rpm
--openssh-clients-3.5p1-6u.sh4.rpm
--openssl-0.9.7a-1u.sh4.rpm
---openssl-0.9.7a-23u.sh4.rpmもあり
--openssl-perl-0.9.7a-1u.sh4.rpm
--pam-0.75-46u.sh4.rpm
--portmap-4.0-52u.sh4.rpm 
--ppp-2.4.1-9u.sh4.rpm
--pptpd-1.1.3-1u.sh4.rpm
--procps-2.0.11-6u.sh4.rpm
--psmisc-21.2-4u.sh4.rpm
--readline-4.3-5u.sh4.rpm
--sed-4.0.5-1u.sh4.rpm
--setserial-2.17-12u.sh4.rpm
--sh-utils-2.0.12-3u.sh4.rpm
--shadow-utils-4.0.3-6u.sh4.rpm
--slang-1.4.5-14u.sh4.rpm
--sox-12.17.3-10u.sh4.rpm
--strace-4.4.93-2u.sh4.rpm
--sysklogd-1.4.1-12u.sh4.rpm
--tar-1.13.25-11u.sh4.rpm
--tcpdump-3.7.2-1u.sh4.rpm
--tcp_wrappers-7.6-34.as21.1u.sh4.rpm
--telnet-0.17-25u.sh4.rpm
--telnet-server-0.17-25u.sh4.rpm
--termcap-11.0.1-16u.sh4.rpm
--textutils-2.0.21-5u.sh4.rpm
--tftp-0.32-4u.sh4.rpm
--tftp-server-0.32-4u.sh4.rpm
--usagi-20030214-1u.sh4.rpm
--utempter-0.5.2-14u.sh4.rpm
--vsftpd-1.1.3-5u.sh4.rpm
---vsftpd-1.2.0-2.1.sh4.rpmもあり
--wireless-tools-25-4u.sh4.rpm
--xinetd-2.3.10-2u.sh4.rpm
--zlib-1.1.4-7u.sh4.rpm
-develは母艦にだけあればいいかも
--cracklib-devel-sh4-2.7-20u.sh4.rpm
--e2fsprogs-devel-sh4-1.32-6u.sh4.rpm
--flex-devel-sh4-2.5.4a-29u.sh4.rpm
--gdbm-devel-sh4-1.8.0-20u.sh4.rpm 
--glibc-devel-sh4-2.3.1-3u.sh4.rpm
--libcap-devel-sh4-1.10-15u.sh4.rpm
--libtermcap-devel-sh4-2.0.8-32u.sh4.rpm
--lockdev-devel-sh4-1.0.0-23u.sh4.rpm
--ncurses-devel-sh4-5.3-1u.sh4.rpm
--openssl-devel-sh4-0.9.7a-1u.sh4.rpm
---openssl-devel-sh4-0.9.7a-23u.sh4.rpmもあり
--pam-devel-sh4-0.75-46u.sh4.rpm
--popt-devel-sh4-1.6.3-1u.sh4.rpm
--readline-devel-sh4-4.3-5u.sh4.rpm
--slang-devel-sh4-1.4.5-14u.sh4.rpm
--sox-devel-sh4-12.17.3-10u.sh4.rpm
--tcp_wrappers-devel-sh4-7.6-34.as21.1u.sh4.rpm
--zlib-devel-sh4-1.1.4-7u.sh4.rpm

***Kernel [#g0cededf]
netboot用の設定をパクります。
 # cp arch/sh/def-configs/r2d_nfs.config .config

menuconfigでは何もしないで終了。
 # make ARCH=sh menuconfig

build。
 # make ARCH=sh dep clean zImage

インストール?
 cp arch/sh/boot/zImage /tftpboot

-BUG
>
arch/sh/kernel/io_rts7751r2d.c:95
 -#define CHECK_SH_7751_PCIIO(port) (0)
 +#define CHECK_SH7751_PCIIO(port) (0)
ですね。PCIを有効にしている場合は関係ないので誰も指摘しないのかも。

***ターゲット側の設定 [#wffa15a3]
/etc/fstab
 192.168.100.4:/tftpboot/rootfs / nfs rw 0 0
 none /proc proc defaults 0 0

/etc/sysconfig/network
 NETWORKING=yes
 HOSTNAME=r2d
 GATEWAY=192.168.100.254

/etc/sysconfig/network-scripts/ifcfg-eth0
 DEVICE=eth0
 BOOTPROTO=static
 BROADCAST=192.168.100.255
 IPADDR=192.168.100.5
 NETMASK=255.255.255.0
 NETWORK=192.168.100.0
 ONBOOT=no

/etc/hosts
 127.0.0.1 localhost
 192.168.100.5 r2d

/etc/resolv.conf
 domain local
 nameserver 192.168.100.254

/etc/inittab
 ::sysinit:/etc/rc.d/rcS
 ::ctrlaltdel:/bin/umount -a -r > /dev/null 2>&1
 ::ctrlaltdel:/sbin/swapoff -a > /dev/null 2>&1
 ttySC0:2345:respawn:/sbin/getty 115200 ttySC0
 ttsc/0::respawn:/sbin/getty 115200 ttsc/0


**シリアルコンソール [#kcdc0728]
|Baud rate|115200|
|Data|8bit|
|Parity|none|
|Stop|1 bit|
|Flow control|none|

FreeBSDの場合
 cu -s 115200 -l cuaa0
とします。

Linuxの場合
 # minicom -s
 
 A -    Serial Device      : /dev/ttyS0
 B - Lockfile Location     : /var/lock
 C -   Callin Program      :
 D -  Callout Program      :
 E -    Bps/Par/Bits       : 115200 8N1
 F - Hardware Flow Control : No
 G - Software Flow Control : No
と設定します。
 # minicom
r2dの電源を投入するとこうなります。
 [ RTS7751R2D-1 ] Renesas Technology Sales : 2003
 Board Rev. 2.1 < FPGA = 3.03 >  Kernel Loader Rev. 2.2 for GDB version
 
 SH IPL+eth version 1.0, 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.
 
 PCI: SH7751 PCI host bridge found.
 PCI:RTL8139 device found.

''n''で起動するはずです。

とりあえずシリアルコンソールからloginします。

sshのrsaとdsaのhost keyが自動生成されないので手動で生成します。
 # /usr/bin/ssh-keygen  -q -t dsa -f /etc/ssh/ssh_host_dsa_key -C '' -N ''
 # chmod 600 /etc/ssh/ssh_host_dsa_key
 # chmod 644 /etc/ssh/ssh_host_dsa_key.pub

sshdを起動して,適当にuserを追加すると
 hasebe@sm501:~% slogin r2d
 hasebe@r2d's password:
 
 BusyBox v0.60.5 (2004.01.18-15:25+0000) Built-in shell (ash)
 Enter 'help' for a list of built-in commands.
 
 ~ $
ぉぉぉ。sloginできます。ただしlogin shellとして/bin/tcshはないのでご注意を。

**コンパクトフラッシュ起動 [#m9e56f8d]
***Kernel [#wd079c30]
当然ながらこのままではnetbootしてしまうので修正します。
-General setup
--[*] Overrite kernel command line string
---Command line: "mem=64M console=ttySC0,115200"
-Networking options
--[*]TCP/IP networking
---[ ] IP: kernel level autoconfiguration
-ATA/IDE/MFM/RLL support
--<*> ATA/IDE/MFMRLL support
--IDE, ATA and ATAPI Block devices
---<*> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
---<*> Include IDE/ATA-2 DISK support
-File systems
--[*] /dev file system support (EXPERIMENTAL)
--[*]   Automatically mount at boot
--<*> Second extended fs support

***CF [#v0042eb3]
Redhat9の場合,USB接続のCF-RWはSCSIデバイスとして認識されます。~
 # fdisk /dev/sda
とりあえず問答無用で''d''~
次に''n'', ''p'', ''1'', ''Enter'', ''+768M''~
最後に''n'', ''p'', ''2'', ''Enter'', ''Enter''~
おっと,スワップだった''t'', ''2'', ''82''~

で,こうなりました。
    Device Boot    Start       End    Blocks   Id  System
 /dev/sda1             1      1091    750607+  83  Linux
 /dev/sda2          1092      1454    249744   82  Linux swap

''a'', ''1''してブータブルにします。~
''w''で書き込み。割と時間がかかりますねえ。

newfs,もとい,mkfsします。
 # mkfs -t ext2 /dev/sda1  

スワップも作ります。
 # mkswap /dev/sda2 

インストールメディアをマウント
 # mount -t ext2 /dev/sda1 /mnt

***sh-lilo [#m446733f]
-[[sh4-rpm:http://www.sh-linux.org/rpm/RPMS/sh4/]] sh用のlilo & boot.b
ただし,boot.bがふるいので
 ftp://ftp.m17n.org/pub/super-h/
からsh-lilo-xxx.tgzを拾ってきます。

解凍してMakefile
 CROSS_COMPILE= sh4-linux-
と修正

なんかprecompiled/boot.bがありますが,気にせずmake。~
 # cp boot.b /mnt/boot/

クロス用lilo.conf
 linear
 # Cross LILO
 # Actually, it's /dev/hda
 boot = /dev/sda
 disk = /dev/sda
   bios=0x80
 #
 delay = 30
 vga = normal
 image = /boot/zImage
         label = linux
         root = /dev/hda1
         read-only

ちなみに,boot, diskのデバイスは''開発マシンから見た''CF。~

sdaがない場合は
 # cp -a /dev/sda /mnt/dev

CFのMBRにloaderを書き込みます。~
''-r''を忘れるとエロいことになります。
 # lilo -r /mnt
 Added linux *
こうなればOKです。

fstabを修正しなきゃ。
/etc/fstab
 #/dev/root /     nfs  defaults 0 0
 /dev/hda1 /     ext2 defaults 0 0
 proc      /proc proc defaults 0 0


**実験 [#l63dc587]
***[2004-07-16] 第1次起動実験 [#c9671d65]
  > b
 b
 Disk drive detected: TOSHIBA THNCF1G02MA 3.10 STCBG1204014T43477A5
 Set Transfer Mode result: 51
 Initialize Device Parameters result: 50
 IDLE result: 50
 LILO boot: first-image
 Loading linux.......done.
 Uncompressing Linux... Ok, booting the kernel.
ほほう。LEDが消えましたか。~
そして,ここから進みませんが…orz

***[2004-07-17] 第2次起動実験 [#k3bb98ef]
 > b
 b
 Disk drive detected: TOSHIBA THNCF1G02MA 3.10 STCBG1204014T43477A5 
 Set Transfer Mode result: 51 
 Initialize Device Parameters result: 50 
 IDLE result: 50 
 LILO boot: first-image
 Loading linux.................done.
 Uncompressing Linux... Ok, booting the kernel.
 Linux version 2.4.20-celf3 (satoshi@sm501) (gcc version 3.2.3) #3 Sat Jul 17 21:01:33 JST 2004
 Renesas Technology Sales RTS7751R2D support.
 On node 0 totalpages: 16384
 zone(0): 16384 pages.
 zone(1): 0 pages.
 zone(2): 0 pages.
 Kernel command line: mem=64M console=ttySC0,115200
 VoyagerGX configured at 0xb3e00000 on irq 4(mapped into 50 to 81)
 SH RTC: invalid value, resetting to 1 Jan 2000
 CPU clock: 240.01MHz
 Bus clock: 120.00MHz
 Module clock: 60.00MHz
 Interval = 150010
 Console: colour dummy device 80x25
 sci_set_baud: t=15
 Calibrating delay loop... 239.20 BogoMIPS
 Use 'Preset loops_per_jiffy'=1196032 for preset lpj.
 Memory: 62728k/65536k available (1567k kernel code, 2808k reserved, 203k data, 56k 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: 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)
 CPU: SH7750/SH7751/SH7750R/SH7751R/SH7760
 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
 apm: BIOS version 1.2 Flags 0x02 (Driver version 1.14)
 apm: Hardware initialized
 Starting kswapd
 Disabling the Out Of Memory Killer
 Console: switching to colour frame buffer device 80x30
 VOYAGER frame buffer panel plane initialized.
 VOYAGER frame buffer video plane initialized.
 VOYAGER frame buffer valpha plane initialized.
 VOYAGER frame buffer alpha plane initialized.
 VOYAGER frame buffer panel csr plane initialized.
 VOYAGER frame buffer crt plane initialized.
 VOYAGER frame buffer crt csr plane initialized.
 SuperH SCI(F) driver initialized
 ttySC0 at 0xffe80000 is a SCIF 
 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
 8139too Fast Ethernet driver 0.9.26
 PCI: Setting latency timer of device Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ to 64
 eth0: RealTek RTL8139 Fast Ethernet at 0xfd002000, 00:00:87:6b:5f:ea, IRQ 0
 RTS7751R2D flash: probing 16-bit flash bus
 CFI: Found no SH-Graphic flash device at location zero
 Linux Kernel Card Services 3.1.22
   options:  [pci] [cardbus] [pm]
 PCI: Enabling device Texas Instruments PCI1250 PC card Cardbus Controller (0000 -> 0002)
 PCI: Enabling device Texas Instruments PCI1250 PC card Cardbus Controller (#2) (0000 -> 0002)
 usb.c: registered new driver hub
 Yenta IRQ list 0000, PCI irq3
 Socket status: 30000006
 Yenta IRQ list 0000, PCI irq3
 Socket status: 30000006
 usb-ohci.c: USB OHCI at membase 0xb3e40000, IRQ 56
 usb.c: new USB bus registered, assigned bus number 1
 hub.c: USB hub found
 hub.c: 1 port detected
 usb.c: registered new driver usb_mouse
 usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
 usb.c: registered new driver keyboard
 usbkbd.c: :USB HID Boot Protocol keyboard driver
 mice: PS/2 mouse device common for all mice
 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)
 eth0: Setting half-duplex based on auto-negotiated partner ability 0000.
 IP-Config: Incomplete network configuration information.
 NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
 Kernel panic: VFS: Unable to mount root fs on 03:01

よしよし。~
起動に成功するとLEDが流れるように点滅するようです。
- Congratulazione! (非搭載sh-mubile)

が,しかしdiskを認識していないようです…orz

***[2004-07-18] 第3次起動実験 [#m15c408c]
 <snip>
 SuperH SCI(F) driver initialized
 ttySC0 at 0xffe80000 is a SCIF
 Uniform Multi-Platform E-IDE driver Revision: 6.31
 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
 hda: SanDisk SDCFB-16, ATA DISK drive
 ide0 at 0x1f0-0x1f7,0x3f6 on irq 1
 <snip>
R2DはCFをFPGA経由でTrueIDEモードで接続しているらしいので,
IDEサポートを入れると一応認識しました。~
が,partition checkがはじまりません…orz 

***[2004-07-18] 第4次起動実験 [#ufd773e7]
 <snip>
 hda: 31360 sectors (16 MB) w/1KiB Cache, CHS=490/2/32
 Partition check:
  hda: hda1
 <snip>
ATA-2サポートをいれてみました。
~でもVFS mountできずにパニック…orz

***[2004-07-19] 第5次起動実験 [#e25fb597]
CF bootがどうも手詰まりなのでひとまずnetbootしてみます。
 > n
 n
 Booting from network!
  - ioaddr 0xfe242000, addr 00:00:87:6b:5f:ea 100Mbps
 full-duplex
 Searching for server (BOOTP/DHCP)...
 IP Address: 192.168.100.5
 Server: 192.168.100.4
 Kernel to load: "/tftpboot/zImage"
 Loading Kernel: /tftpboot/zImage ......................................SUM: 6c93866
 done
 Uncompressing Linux... Ok, booting the kernel.
 Linux version 2.4.20-celf3 (satoshi@sm501) (gcc version 3.2.3) #26 Mon Jul 19 01:03:51 JST 2004
 Renesas Technology Sales RTS7751R2D support.
 On node 0 totalpages: 16384
 zone(0): 16384 pages.
 zone(1): 0 pages.
 zone(2): 0 pages.
 Kernel command line: mem=64M console=ttySC0,115200 root=/dev/nfs ip=bootp
 VoyagerGX configured at 0xb3e00000 on irq 4(mapped into 50 to 81)
 SH RTC: invalid value, resetting to 1 Jan 2000
 CPU clock: 240.01MHz
 Bus clock: 120.00MHz
 Module clock: 60.00MHz
 Interval = 150008
 Console: colour dummy device 80x25
 sci_set_baud: t=15
 Calibrating delay loop... 239.20 BogoMIPS
 Use 'Preset loops_per_jiffy'=1196032 for preset lpj.
 Memory: 62748k/65536k available (1543k kernel code, 2788k reserved, 201k 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: 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)
 CPU: SH7750/SH7751/SH7750R/SH7751R/SH7760
 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
 apm: BIOS version 1.2 Flags 0x02 (Driver version 1.14)
 apm: Hardware initialized
 Starting kswapd
 Disabling the Out Of Memory Killer
 Console: switching to colour frame buffer device 80x30
 VOYAGER frame buffer panel plane initialized.
 VOYAGER frame buffer video plane initialized.
 VOYAGER frame buffer valpha plane initialized.
 VOYAGER frame buffer alpha plane initialized.
 VOYAGER frame buffer panel csr plane initialized.
 VOYAGER frame buffer crt plane initialized.
 VOYAGER frame buffer crt csr plane initialized.
 SuperH SCI(F) driver initialized
 ttySC0 at 0xffe80000 is a SCIF
 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
 8139too Fast Ethernet driver 0.9.26
 PCI: Setting latency timer of device Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ to 64
 eth0: RealTek RTL8139 Fast Ethernet at 0xfd002000, 00:00:87:6b:5f:ea, IRQ 0
 RTS7751R2D flash: probing 16-bit flash bus
 CFI: Found no SH-Graphic flash device at location zero
 Linux Kernel Card Services 3.1.22
   options:  [pci] [cardbus] [pm]
 PCI: Enabling device Texas Instruments PCI1250 PC card Cardbus Controller (0000 -> 0002)
 PCI: Enabling device Texas Instruments PCI1250 PC card Cardbus Controller (#2) (0000 -> 0002)
 usb.c: registered new driver hub
 Yenta IRQ list 0000, PCI irq3
 Socket status: 30000006
 Yenta IRQ list 0000, PCI irq3
 Socket status: 30000006
 usb-ohci.c: USB OHCI at membase 0xb3e40000, IRQ 56
 usb.c: new USB bus registered, assigned bus number 1
 hub.c: USB hub found
 hub.c: 1 port detected
 usb.c: registered new driver usb_mouse
 usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
 usb.c: registered new driver keyboard
 usbkbd.c: :USB HID Boot Protocol keyboard driver
 mice: PS/2 mouse device common for all mice
 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)
 eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1.
 Sending BOOTP requests . OK
 IP-Config: Got BOOTP answer from 192.168.100.4, my address is 192.168.100.5
 IP-Config: Complete:
       device=eth0, addr=192.168.100.5, mask=255.255.255.0, gw=255.255.255.255,
      host=192.168.100.5, domain=, nis-domain=(none),
      bootserver=192.168.100.4, rootserver=192.168.100.4, rootpath=/tftpboot/rootfs
 NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
 Looking up port of RPC 100003/2 on 192.168.100.4
 Looking up port of RPC 100005/1 on 192.168.100.4
 VFS: Mounted root (nfs filesystem).
 Kernel panic: No init found.  Try passing init= option to kernel.
  <6>hub.c: USB new device connect on bus1, assigned device number 2
 hub.c: USB hub found
 hub.c: 4 ports detected
ふむ。bootしましたねえ。~
initが読めませんかそうですか。…orz 

***[2004-07-19] 第6次起動実験 [#w06c6727]
 <snip>
 IP-Config: Got BOOTP answer from 192.168.100.4, my address is 192.168.100.5
 IP-Config: Complete:
      device=eth0, addr=192.168.100.5, mask=255.255.255.0, gw=192.168.100.254,
      host=192.168.100.5, domain=local, nis-domain=(none),
      bootserver=192.168.100.4, rootserver=192.168.100.4, rootpath=/tftpboot/rootfs
 NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
 Looking up port of RPC 100003/2 on 192.168.100.4
 Looking up port of RPC 100005/1 on 192.168.100.4
 VFS: Mounted root (nfs filesystem).
 墓ub.c: USB new device connect on bus1, assigned device number 2
 hub.c: USB hub found
 hub.c: 4 ports detected
 INIT: version 2.84 booting
 INIT: /etc/inittab[6]: missing id field
 INIT: /etc/inittab[9]: missing id field
 INIT: /etc/inittab[10]: missing id field
 INIT: /etc/inittab[18]: id field too long (max 4 characters)
 INIT: /etc/inittab[19]: id field too long (max 4 characters)
 
 Enter runlevel: 3
 INIT: Entering runlevel: 3
 INIT: no more processes left in this runlevel
適当にユーザランド増やした結果起動。~
あれれ,もうプロセスがないですと? orz

***[2004-07-19] 第7次起動実験 [#acd6b850]

 <snip>
 $Mounting proc filesystem:  [  $OK  ]
 $Configuring kernel parameters:  [  $OK  ]
 Cannot access the Hardware Clock via any known method.
 Use the --debug option to see the details of our search for an access method.
 $Setting clock  (localtime): Sat Jan  1 00:00:04 UTC 2000 [  $OK  ]
 $Setting hostname r2d:  [  $OK  ]
 $Remounting root filesystem in read-write mode:  [  $OK  ]
 $Activating swap partitions:  [  $OK  ]
 $Finding module dependencies:  depmod: Can't open /lib/modules/2.4.20-celf3/modules.dep for writing
 [$FAILED]
 Checking filesystems
 Checking all file systems.
 [  $OK  ]
 $Mounting local filesystems:  [  $OK  ]
 INIT: Entering runlevel: 3
 $Entering non-interactive startup
 
 Lineo Linux
 Kernel 2.4.20-celf3 on an sh4
 r2d login:

ヽ(´ー`)ノ 

***[2004-07-19] 第1次終了実験 [#w9963445]

 # / sutdown -h now
 
 INIT: Switching to runlevel: 0
 INIT: Sending processes the TERM signal
 INIT: Sending processes the KILL signal
 
 $Starting killall:  [  $OK  ]
 $Sending all processes the TERM signal...
 $Sending all processes the KILL signal...
 $Syncing hardware clock to system time Cannot access the Hardware Clock via any known method.
 Use the --debug option to see the details of our search for an access method.
 
 $$Halting system...
 Power down.
ぉぉぉぉぉ。ちゃんと電源が切れます。

***[2004-07-19] 第8次起動実験 [#hbcd9816]
 > b
 b
 Disk drive detected: TOSHIBA THNCF1G02MA 3.10 STCBG1204014T43477A5
 Set Transfer Mode result: 51
 Initialize Device Parameters result: 50
 IDLE result: 50
 LILO boot: first-image
 Loading linux...................done.
 Uncompressing Linux... Ok, booting the kernel.
 Linux version 2.4.20-celf3 (hasebe@sm501) (gcc version 3.2.3) #35 Mon Jul 19 17:19:35 JST 2004
 Renesas Technology Sales RTS7751R2D support.
 On node 0 totalpages: 16384
 zone(0): 16384 pages.
 zone(1): 0 pages.
 zone(2): 0 pages.
 Kernel command line: mem=64M console=ttySC0,115200
 VoyagerGX configured at 0xb3e00000 on irq 4(mapped into 50 to 81)
 CPU clock: 239.96MHz
 Bus clock: 119.98MHz
 Module clock: 59.99MHz
 Interval = 149978
 Console: colour dummy device 80x25
 sci_set_baud: t=15
 Calibrating delay loop... 239.20 BogoMIPS
 Use 'Preset loops_per_jiffy'=1196032 for preset lpj.
 Memory: 62620k/65536k available (1664k kernel code, 2916k reserved, 203k data, 56k 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: 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)
 CPU: SH7750/SH7751/SH7750R/SH7751R/SH7760
 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
 apm: BIOS version 1.2 Flags 0x02 (Driver version 1.14)
 apm: Hardware initialized
 Starting kswapd
 Disabling the Out Of Memory Killer
 devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
 devfs: boot_options: 0x1
 Console: switching to colour frame buffer device 80x30
 SuperH SCI(F) driver initialized
 ttySC0 at 0xffe80000 is a SCIF
 Uniform Multi-Platform E-IDE driver Revision: 6.31
 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
 hda: TOSHIBA THNCF1G02MA, ATA DISK drive
 ide0 at 0x1f0-0x1f7,0x3f6 on irq 1
 hda: 2000880 sectors (1024 MB) w/2KiB Cache, CHS=1985/16/63
 Partition check:
  /dev/ide/host0/bus0/target0/lun0: p1 p2
 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
 8139too Fast Ethernet driver 0.9.26
 PCI: Setting latency timer of device Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ to 64
 eth0: RealTek RTL8139 Fast Ethernet at 0xfd002000, 00:00:87:6b:5f:ea, IRQ 0
 RTS7751R2D flash: probing 16-bit flash bus
 CFI: Found no SH-Graphic flash device at location zero
 Linux Kernel Card Services 3.1.22
   options:  [pci] [cardbus] [pm]
 PCI: Enabling device Texas Instruments PCI1250 PC card Cardbus Controller (0000 -> 0002)
 PCI: Enabling device Texas Instruments PCI1250 PC card Cardbus Controller (#2) (0000 -> 0002)
 usb.c: registered new driver hub
 Yenta IRQ list 0000, PCI irq3
 Socket status: 30000006
 Yenta IRQ list 0000, PCI irq3
 Socket status: 30000006
 usb-ohci.c: USB OHCI at membase 0xb3e40000, IRQ 56
 usb.c: new USB bus registered, assigned bus number 1
 hub.c: USB hub found
 hub.c: 1 port detected
 usb.c: registered new driver usb_mouse
 usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
 usb.c: registered new driver keyboard
 usbkbd.c: :USB HID Boot Protocol keyboard driver
 mice: PS/2 mouse device common for all mice
 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.
  /dev/ide/host0/bus0/target0/lun0: p1 p2
  /dev/ide/host0/bus0/target0/lun0: p1 p2
 VFS: Mounted root (ext2 filesystem) readonly.
 Mounted devfs on /dev
 Freeing unused kernel memory: 56k freed
 INIT: version 2.84 booting
 hub.c: USB new device connect on bus1, assigned device number 2
 hub.c: USB hub found
 hub.c: 4 ports detected
 Started device management daemon v1.3.25 for /dev
  /dev/ide/host0/bus0/target0/lun0: p1 p2
 $Mounting proc filesystem:  [  $OK  ]
 $Configuring kernel parameters:  [  $OK  ]
 Cannot access the Hardware Clock via any known method.
 Use the --debug option to see the details of our search for an access method.
 $Setting clock  (localtime): Sat Jan  1 00:00:11 UTC 2000 [  $OK  ]
 $Setting hostname r2d:  [  $OK  ]
 $Remounting root filesystem in read-write mode:  [  $OK  ]
 $Activating swap partitions:  [  $OK  ]
 $Finding module dependencies:  depmod: Can't open /lib/modules/2.4.20-celf3/modules.dep for wrig
 [$FAILED]
 Checking filesystems
 Checking all file systems.
 [  $OK  ]
 $Mounting local filesystems:  [  $OK  ]
 INIT: Entering runlevel: 3
 $Entering non-interactive startup
 $Starting sshd:  [  $OK  ]
 $Starting crond: [  $OK  ]
 
 Lineo Linux
 Kernel 2.4.20-celf3 on an sh4
 r2d login:

ヽ(´ー`)ノ

flashにswap確保するのは怖いのでmountしていません。~
netbootで開発することになると思われます。


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS