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.

Das U-Boot fatload Fails

Guru 10685 points

I am trying to load a file into memory that I have placed on the SD card that comes with the EVM. I boot into U-Boot and run the following commands to load my file "u-spi.bin":

mmc init

fatload mmc 1 ${script_addr} u-spi.bin

but it fails saying:

** Unable to read "boot.cmd" from mmc 1:1 **

If I run the same command but to load boot.cmd instead for example, it succeeds. I can confirm that when I put the SD card in a PC it reads both files fine.

 

Now, here's the really crazy bit. If use a hex editor to swap the directory entry for "boot.cmd" (in sector 1268 of the SD card) with that for u-spi.bin (in sector 8875), I find that U-Boot can now load u-spi.bin but not boot.cmd.

 

Does anyone have any ideas??? This is such an annoying and crazy issue I'm surprised no one else has come across it.

A quick Google suggests that there were some patches related to this issue for U-Boot about a year ago. Perhaps an additional question for TI is, will you be using the latest U-Boot in the next EZSDK?

Thanks,

Ralph