forked from brandonhamilton/rhino
-
Notifications
You must be signed in to change notification settings - Fork 0
Software Setup
brandonhamilton edited this page Mar 28, 2011
·
14 revisions
- Connect a usb cable between the USB port on the Rhino board and your computer. Download the FTDI Driver if necessary.
- Run a terminal program (e.g. minicom), set to 115200 8N1 with no flow control. Connect to the third serial device (/dev/ttyUSB2) that was created by the FTDI driver.
Download the X-Loader and U-boot binary files.
- Format an SD/MMC card to allow for OMAP3 booting as described here: http://processors.wiki.ti.com/index.php/SD/MMC_format_for_OMAP3_boot
- Copy the X-Loader and U-boot binary files to the SD/MMC card from any computer, and then insert into the MMC slot on the Rhino
- Make sure the BOOT ORDER board jumpers are set to boot from MMC (SW1 = OFF, SW2 = ON). Turn on the power.
Once booted into u-boot from the MMC card, the bootloader can be written to the onboard NAND flash. Place the binary files on a TFTP server accessible by the Rhino board over the network.
Setting environment variables
- Set the appropriate environment variables (change according to your own network setup)
setenv ipaddr 192.168.0.2 setenv netmask 255.255.255.0 setenv serverip 192.168.0.1 setenv gatewayip 192.168.0.254 - Save the environment variables
saveenv
Writing X-Loader to NAND flash
- Erase all data in RAM
mw.b 0x82000000 0xff 0x2000000 - Erase NAND area for X-Loader
nand erase 0 80000 - Copy X-Loader binary into memory over tftp
tftpboot 0x82000000 MLO - Write X-Loader into NAND flash
nandecc hw; nand write.i 0x82000000 0 80000
Writing U-boot to NAND flash
- Erase all data in RAM
mw.b 0x82000000 0xff 0x2000000 - Erase NAND area for U-boot nand erase 80000 1e0000
- Copy U-boot binary into memory over tftp
tftpboot 0x82000000 u-boot.bin - Write U-boot into NAND flash
nandecc sw; nand write.i 0x82000000 80000 1e0000
Download the BORPH kernel and Root filesystem binary files. Place them on the TFTP server for access from Rhino
Write the kernel into NAND flash
- Erase all data in RAM
mw.b 0x82000000 0xff 0x2000000 - Erase NAND area for kernel
nand erase 280000 500000 - Copy kernel image into memory over tftp
tftpboot 0x82000000 uImage - Write U-boot into NAND flash
nandecc sw; nand write.i 0x82000000 280000 500000
Copy Root filesystem to NAND flash
- Erase all data in RAM
mw.b 0x82000000 0xff 0x2000000 - Erase NAND area for filesystem
nand erase 780000 2000000 - Copy filesystem into memory over tftp
tftpboot 0x82000000 jffs2_rhino.jffs2 - Write filesystem into NAND flash
nandecc sw; nand write.i 0x82000000 780000 2000000
Setting boot parameters
- Set the boot parameters for the kernel in u-boot
setenv nandargs setenv bootargs mem=256M console=ttyS0,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2 ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:rhino:eth0:on - Set the default boot commands
setenv bootcmd run nandargs; nand read.i 0x82000000 280000 500000; bootm 0x82000000 setenv bootdelay 10 setenv bootkernel setenv bootkernel_1 - Save the boot parameters
saveenv
By default, the root filesystem will start a telnet server on startup. Connect to the Rhino board over the network from your computer via telnet telnet 192.168.0.2 Login with username: root