Skip to content
brandonhamilton edited this page Mar 28, 2011 · 14 revisions

USB Serial access

  1. Connect a usb cable between the USB port on the Rhino board and your computer. Download the FTDI Driver if necessary.
  2. 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.

Bootloader

Download the X-Loader and U-boot binary files.

Booting from MMC card

  1. 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
  2. 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
  3. Make sure the BOOT ORDER board jumpers are set to boot from MMC (SW1 = OFF, SW2 = ON). Turn on the power.

Booting from NAND flash

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

  1. 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
  2. Save the environment variables
    saveenv

Writing X-Loader to NAND flash

  1. Erase all data in RAM
    mw.b 0x82000000 0xff 0x2000000
  2. Erase NAND area for X-Loader
    nand erase 0 80000
  3. Copy X-Loader binary into memory over tftp
    tftpboot 0x82000000 MLO
  4. Write X-Loader into NAND flash
    nandecc hw; nand write.i 0x82000000 0 80000

Writing U-boot to NAND flash

  1. Erase all data in RAM
    mw.b 0x82000000 0xff 0x2000000
  2. Erase NAND area for U-boot nand erase 80000 1e0000
  3. Copy U-boot binary into memory over tftp
    tftpboot 0x82000000 u-boot.bin
  4. Write U-boot into NAND flash
    nandecc sw; nand write.i 0x82000000 80000 1e0000

BORPH kernel

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

  1. Erase all data in RAM
    mw.b 0x82000000 0xff 0x2000000
  2. Erase NAND area for kernel
    nand erase 280000 500000
  3. Copy kernel image into memory over tftp
    tftpboot 0x82000000 uImage
  4. Write U-boot into NAND flash
    nandecc sw; nand write.i 0x82000000 280000 500000

Copy Root filesystem to NAND flash

  1. Erase all data in RAM
    mw.b 0x82000000 0xff 0x2000000
  2. Erase NAND area for filesystem
    nand erase 780000 2000000
  3. Copy filesystem into memory over tftp
    tftpboot 0x82000000 jffs2_rhino.jffs2
  4. Write filesystem into NAND flash
    nandecc sw; nand write.i 0x82000000 780000 2000000

Setting boot parameters

  1. 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
  2. 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
  3. Save the boot parameters
    saveenv

Telnet access

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

Clone this wiki locally