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.

AM3358: U-boot load error

Genius 13655 points
Part Number: AM3358

Hi Champs,

Customer designed his own board by referencing BBB. He replaced emmc with nand flash on his board. The SD card circuit was the same to BBB.  He used a 2GB FAT32 SD card, MLO and u-boot.img are saved to the boot partition. But the ROM code could load the MLO, the MLO could not load uboot.

He migrated to the newer SDK: TI SDK am335x-evm-linux-sdk-src-05.03.00.07

Below is the log:

u-boot 2018.01 u-boot-2018.01+gitAUTOINC+313dcd69c2-g9d984f4548 

linux-4.14.79+gitAUTOINC+e669d52447-ge669d52447

U-Boot SPL 2018.01-00569-g7b4e473842-dirty (Aug 13 2019 - 15:18:11)
Trying to boot from MMC1
spl_load_image_fat_buf: error reading image u-boot.img, err - -2
** Can't read partition table on 0:0 **
spl: no partition table found
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

But when he used the old version SDK's (linux-3.14.26 and u-boot-2011.09) MLO and u-boot.img, it could boot successfully. 

1. "Trying to boot from MMC1", does it mean it boots from mmc1? But there is no mmc1 on his board and he didn't configure the sysboot pin to support mmc1 boot mode, the boot mode sequence is 00100  UART0 >>XIP>>MMC0 >>NAND (There is no data in nand flash)

2. How to disable MMC Card Detect pin and Write Protect pin in MLO?

3. How to resolve the "spl_load_image_fat_buf: error reading image u-boot.img, err - -2" error?

Thanks
Rgds
Shine

  • Hello Shine,

    Shine said:
    1. "Trying to boot from MMC1", does it mean it boots from mmc1? But there is no mmc1 on his board and he didn't configure the sysboot pin to support mmc1 boot mode, the boot mode sequence is 00100  UART0 >>XIP>>MMC0 >>NAND (There is no data in nand flash)

    On AM335x platform "Trying to boot from MMC1" message means that the board is trying to boot from mmc0.


    Shine said:
    2. How to disable MMC Card Detect pin and Write Protect pin in MLO?

    Add a broken-cd; and disable-wp; properties to mmc node in the device tree.


    Shine said:
    3. How to resolve the "spl_load_image_fat_buf: error reading image u-boot.img, err - -2" error?

    This message can be caused by a wrong pinmux settings in <Processor SDK>/board-support/u-boot-<version>/board/ti/am335x/mux.c, wrong 22 ohms instead of 10k resistor used in your design, SD card is not properly formatted or u-boot.img is missing.

    Best regards,
    Kemal

  • Hi Kemal,

    Thank you very much!

    Best Regards
    Shine