R0P7785LC0011RL Linux manual 1. Specification kernel = 2.6.27 boot loader = uboot 2008.10-rc2 tool chain GCC 4.1.2 glibc 2.7-rc1 binutils 2.7-rc1 kernel-headers 2.6.23-rc2 userland (rootfs) = Choosen and cross compiled from gentoo packages 2. Supported Device scif mtd usb host (R8A66597 / LBSC) Graphic (SM107 / LBSC) I2C (PCA9564 / LBSC) RTC (R2025S / I2C) ETHER (RTL8110SCL / PCI) SATA (SiI3512 / PCI) touch panel (TSC-10RSA / SCIF) 3. Unsupported device SD card (CG200 / LBSC) 4. BSP quick starter Host cross enviroment setup < How to install > PC# cd installer/ PC# ./install.sh You can confirm your installation by following command [root@localhost home]# sh4-unknown-linux-gnu-gcc -v Using built-in specs. Target: sh4-unknown-linux-gnu Configured with: /var/tmp/cross/sh4-unknown-linux-gnu/portage/cross-sh4-unknown-linux-gnu/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/i486-pc-linux-gnu/sh4-unknown-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/sh4-unknown-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/sh4-unknown-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/sh4-unknown-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/sh4-unknown-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/sh4-unknown-linux-gnu/4.1.2/include/g++-v4 --host=i486-pc-linux-gnu --target=sh4-unknown-linux-gnu --build=i486-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++ --with-sysroot=/usr/sh4-unknown-linux-gnu --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2) 5. How to build from source 5.1 U-boot [root@localhost test]# tar zxf u-boot-r0p7785lc0011rl-20080918.tar.bz2 [root@localhost test]# cd u-boot [root@localhost u-boot]# make sh7785lcr_config Configuring for sh7785lcr_config [root@localhost u-boot]# make CROSS_COMPILE=sh4-unknown-linux-gnu- (snip) 5.2 Kernel [root@localhost test]# tar jxf linux-2.6.27-20081022.tar.bz2 [root@localhost test]# cd linux-2.6.27 [root@localhost linux-2.6.27]# cp arch/sh/config/sh7785lcr_config .config [root@localhost linux-2.6.27]# make ARCH=sh menuconfig [root@localhost linux-2.6.27]# make ARCH=sh CROSS_COMPILE=sh4-unknown-linux-gnu- uImage (snip) 6. Host bootp / NFS setup¶ R0P7785LC0011RL requires bootp and NFS capablities on host machine . 6.1 /etc/dhcpd.conf (Fedora 8 sample) ddns-update-style ad-hoc; default-lease-time 600; max-lease-time 7200; log-facility local7; option domain-name-servers 192.168.10.230; next-server 192.168.10.30; server-identifier 192.168.10.30; allow booting; allow bootp; subnet 192.168.10.0 netmask 255.255.255.0{ } host r0p7785 { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.10.233; filename"/rootfs_r0p7785/uImage"; option root-path "/tftpboot/rootfs_r0p7785"; } 6.2 /etc/exports (Fedora 8 sample) /tftpboot/ 192.168.10.0/255.255.255.0(rw,sync,no_root_squash) 6.3 /etc/xinetd.d/tftp (Fedora 8 sample) # default: off # description: The tftp server serves files using the trivial file transfer \ # protocol. The tftp protocol is often used to boot diskless \ # workstations, download configuration files to network-aware printers, \ # and to start the installation process for some operating systems. 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 } 6.4 startup network (Fedora 8 sample) Then startup network servece on your host machine. [root@localhost ~]# exportfs -a [root@localhost ~]# /etc/rc.d/init.d/rpcbind restart Stopping portmap: [ OK ] Starting portmap: [ OK ] [root@localhost ~]# /etc/rc.d/init.d/nfs restart Shutting down NFS mountd: [ OK ] Shutting down NFS daemon: [ OK ] Shutting down NFS quotas: [ OK ] Shutting down NFS services: [ OK ] Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS daemon: [ OK ] Starting NFS mountd: [ OK ] [root@localhost ~]# /etc/rc.d/init.d/nfslock restart Stopping NFS locking: [ OK ] Stopping NFS statd: [ OK ] Starting NFS statd: [ OK ] [root@localhost ~]# /etc/rc.d/init.d/dhcpd restart Shutting down dhcpd: [ OK ] Starting dhcpd: [ OK ] [root@localhost ~]# service xinetd restart Stopping xinetd: [ OK ] Starting xinetd: [ OK ] 7. console connection bitrate 115200 bps data length 8bit parity none stop bit 1bit 8. source code Please contact to the following e-mail address when you want to obtain a source code. info (at) superh-linux (dot) org -- This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/)