This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/AM3354: MMC boot fails

Part Number: AM3354

Tool/software: TI-RTOS

Hi everyone,

I'm using the latest Processor SDK RTOS  to generate an MLO file to boot my custom board via MMC, but nothing was printed on the console except a couple of C's.

I haven't modified too much of the source code under <PDK>/packages/ti/starterware/bootloader/src, just added an LED-on function at the very beginning of main() in sbl_main.c, before calling BOARDInit(), hoping at least the LED will light.

Basically, what I did was this:

1) Modify the makefile under <PDK>/packages. As I boot from the SD card, for the makefile target 'starterware_boot', only BOOTMODE=mmc, DEBUG mode was left, everything else was commented.

2) Modify the main() function in sbl_main.c. At the very beginning of main(), I tried to light an LED via GPIO0_13, so I configured the pinmux mode = 7 and GPIO direction = out and set the corresponding bit in SETDATAOUT register.

3) No more modifications beyond this point.

The final steps on my Linux terminal:

1) export SDK_INSTALL_PATH=<my SDK install path>.

2) source <PDK>/packages/pdksetupenv.sh. I checked that the environment variables for PDK are properly set.

3) make starterware_boot.

The compilation was successful. I copied the file bootloader_a8host_mmcsd_debug_ti.bin to my SD card, renamed it MLO, and powered on, but the LED was NOT on, neither was there anything printed on my console.

Since the LED-on function is at the very beginning of main(), my guess was that MMC Boot stuck at the very beginning of SBL, probably did not enter the main() function at all.

By the way, the host PC communicates with my custom board via UART0. The hardware side should be fine because I can successfully boot my custom board using other MLOs made by u-boot.