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