This project is read-only.

XLDR

X Loader (XLDR) is a small secondary bootloader that get's loaded into CPU internal RAM by the CPU's primary bootloader. XLDR's job is to initialize SDRAM/GPIO/Clocks/etc, copy another bootloader or image into RAM, and then jump into it.

In the case of the TI EVM BSP, XLDR is used to copy EBOOT into RAM from SD or NAND.

XLDRSD

The resultant output of building XLDRSD is MLO. MLO needs to be the first filed copied after Formating SD card as FAT32. When the user button is held and the reset button is pressed, MLO will get copied from SD into RAM. MLO in turn will look for file named EBOOTSD.nb0 on the SD card.

XLDRNAND

The resultant output of building XLDRNAND is TIEVM3530-nand.raw. This file is used from U-Boot to write XLDRNAND to NAND. Once target is reset XLDRNAND will copy EBOOTNAND image from NAND and jump into it.

Building XLDR variants

From the tiny_kernel RETAIL build window run

    cleanbsp
    blddemo clean -q

This will end in an eventual error. This is due to library dependency that doesn't exist yet. Create the non-existant libraries by running

    builddeps.bat

then run

    blddemo -qbsp


The files of interest
  1. MLO
  2. TIEVM3530-nand.raw
are found in %RAWFILETGT%\retail and %FLATRELEASEDIR%

Writing MLO to NAND Flash

  1. Format your SD card as FAT32.
  2. Make the first file to copy to card MLO
  3. Copy EBOOTSD.nb0 to SD card.
  4. Insert SD card into target.
  5. Reboot target while holding the user button.
  6. Make sure you have a program like Hyperterminal connected and running prior.

When prompted bypass auto boot and issue the following commands

mmcinit
fatload mmc 0 80200000 MLO
nandecc hw
nand erase 0 80000
nand write 80200000 0 20000
nand write 80200000 20000 20000
nand write 80200000 40000 20000
nand write 80200000 60000 20000

Reboot target

Note You can rename EBOOTNAND.nb0 to EBOOTSD.nb0. This enables flashing the target with EBOOTNAND.bin.

Writing TIEVM3530-nand.raw to NAND Flash

  1. Format your SD card as FAT32.
  2. Prepare U-Boot SD Boot card using binaries from this site, making the first file copied MLO.
http://code.google.com/p/beagleboard/wiki/BeagleboardRevCValidation
  1. Copy TIEVM3530-nand.raw to SD card.
  2. Insert SD card into target.
  3. Reboot target while holding the user button. Output looks like this:
40V

Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24)
Reading boot sector
Loading u-boot.bin from mmc


U-Boot 2009.01-dirty (Feb 19 2009 - 12:23:21)

I2C:   ready
OMAP3530-GP rev 2, CPU-OPP2 L3-165MHz
OMAP3 Beagle board + LPDDR/NAND
DRAM:  128 MB
NAND:  256 MiB
Using default environment

Timeout setting T2 HSUSB PHY DPLL clock
udc_init: platform init failed
In:    serial usbtty
Out:   serial usbtty
Err:   serial usbtty
Board revision Ax/Bx
Serial #5ac400030000000004013f8901001001
Hit any key to stop autoboot:  0
OMAP3 beagleboard.org #
  1. Make sure you have a program like Hyperterminal connected and running prior.
  2. When prompted bypass auto boot and issue the following commands
mmcinit
fatload mmc 0 80200000 TIEVM3530-nand.raw
nandecc hw
nand erase 0 80000
nand write 80200000 0 20000
nand write 80200000 20000 20000
nand write 80200000 40000 20000
nand write 80200000 60000 20000

Reboot target

You should see
Texas Instruments Windows CE NAND X-Loader for EVM 3530
Built Nov 16 2009 at 21:58:22
Version 6.12.03
..
Jumping to bootloader

Incremental building

Update your dependent libraries, then rebuild your associated XLDR program. Something like:

  cd %_PLATFORMROOT%\%_TGTPLAT%\SRC\BOOT\XLDR\SDMEMORY
  build -c
  romimage xldrsd.bib

Last edited Nov 18, 2009 at 3:41 AM by joelw, version 4

Comments

No comments yet.