---+ Connections/configuration

--------------------------------------------
|------                                    |
| eth0 |                               ----|
|------                                |PWR|
|                                      ----|
-------                                    |
| eth1 |                                   |
|------                                    |
|                                          |
|-----                                     |
| USB |                                    |
|-----                                     |
|                                          |
-------                                    |
|serial|                                   |
-------                                    |
-------------------------------------------


Serial port:       Bottom left, use header lead supplied
Serial settings:   38400 N81
Lan connector:     eth0
Power connector:   Top right

---+ Bootloader

When you power on, you should see something like:

<verbatim>
RedBoot(tm) bootstrap and debug environment [ROMRAM]
....
RedBoot>
</verbatim>


---+ Example of booting Linux using an NFS root filesystem 

After building your LTIB project, this is how to boot up your board.

---++ Pre-checks

   * Check that your host's firewall is not blocking your target.  If
   it is, as a temporary check you can disable it using the following
   as root.
<verbatim>
# sh /etc/rc.d/init.d/iptables stop
<verbatim>

*WARNING: REMEMBER TO RE-ENABLE YOUR FIREWALL*

   * Make sure you have an NFS server running on your LTIB machine:

   * Add your LTIB projects rootfs directory to /etc/exports.  As root,
   edit /etc/exports and add a line like (change as required):
<verbatim>
/home/seh/ltib/rootfs *(rw,no_root_squash,sync)
</verbatim>

   * Re-start NFS as root
<verbatim>
# sh /etc/rc.d/init.d/nfs restart
<verbatim>


   * Determine your LTIB host's IP address, for example:
<verbatim>
$ /sbin/ifconfig eth0 | grep 'inet addr'
          inet addr:10.82.17.182  Bcast:10.82.17.255  Mask:255.255.255.0


   * Copy your redboot loadable kernel to /tftpboot
<verbatim>
$ cp rootfs/boot/zImage.embedded.bin /tftpboot
<verbatim>

---++ Booting up on a DHCP network

*NOTE* DHCP leases are only valid for 4 days normally, so if you need the
board up longer than that in a single go, you'll need to get a static
IP address for both your LTIB host and target.

<verbatim>
ip_address -h <hosts_ip>
load -v -r -b 0x100000 zImage.embedded.bin
exec -c "root=/dev/nfs nfsroot=<host_ip>:<host_rootfs_dir> ip=:::::eth0: console=ttyS0,38400"
</verbatim>

Note: you need to press enter twice after the exec command

---++ Booting up on a fixed IP address  network

<verbatim>
ip_address -l <target_ip> -h <host_ip>
load -v -r -b 0x100000 zImage.embedded.bin
exec -c "root=/dev/nfs nfsroot=<host_ip>:<host_rootfs_dir> ip=<target_ip>:<host_ip>::::eth0: console=ttyS0,38400"
</verbatim>

---+ Storing changes to reboot to allow reboot example

RedBoot> fconfig
Run script at boot: true
Boot script:
Enter script, terminate with empty line
>> ip_address -l 192.168.0.253 -h 192.168.0.9
>> load -v -r -b 0x100000 zImage.embedded.bin
>> exec -c "root=/dev/nfs nfsroot=192.168.0.9:/home/seh/ltib_bsps/875/rootfs ip=192.168.0.253:192.168.0.9::::eth0: console=ttyS0,38400"
>>
Boot script timeout (1000ms resolution): 2
Use BOOTP for network configuration: false
Gateway IP address: 192.168.0.1
Local IP address: 192.168.0.253
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.0.9
FEC1 Network hardware address [MAC]: 0x00:0x08:0xF4:0x11:0x22:0x33
FEC0 Network hardware address [MAC]: 0x00:0x08:0xE4:0x11:0x22:0x33
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Default network device: fec_eth
Update RedBoot non-volatile configuration - continue (y/n)? y




---+ Toolchain testing

This needs rsh/rlogin access.  To enable this, place a single line in 
/root/.rhosts containing the ip_address of the host that you want to
allow connnections from.

