How to Boot X-Loader and U-Boot from NAND on the Logic PD OMAP35x/DM37x Torpedo and SOM-LV

This document describes the method for copying the X-Loader (MLO) and U-Boot images from a bootable SD card to the NAND flash on a Logic PD OMAP35x/DM37x Torpedo or SOM-LV board.

Prerequisites

  • X-Loader/U-Boot running from an SD card. See the Timesys Getting Started Guide for your board for instructions to generate this card.

Procedure

  1. Erase the NAND Flash
    nand erase.chip
  2. Initialize the SD/MMC card
    mmc init
  3. Load X-Loader into NAND
    • First, clear the RAM location
      mw.l ${loadaddr} 0xFFFFFFFF 0x400000
    • Next, copy the X-Loader file into RAM
      fatload mmc 1 ${loadaddr} mlo
    • Choose the Hardware ECC algorithm
      nandecc hw
    • Burn X-Loader to NAND flash. We must burn the same copy of X-Loader to each of the first four blocks.
      nand write ${loadaddr} 0x00000000 0x00020000
      nand write ${loadaddr} 0x00020000 0x00020000
      nand write ${loadaddr} 0x00040000 0x00020000
      nand write ${loadaddr} 0x00060000 0x00020000
      
  4. Load U-Boot into NAND
    • Clear the RAM location
      mw.l ${loadaddr} 0xFFFFFFFF 0x400000
    • Load U-Boot from the SD Card to RAM
      fatload mmc 1 ${loadaddr} u-boot.bin
    • Set the ECC to the default
      nandecc ${defaultecc}
    • Burn U-Boot to NAND flash
      nand write.i ${loadaddr} 0x00080000 0x00080000