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.

Linux/PROCESSOR-SDK-AM437X: SPI boot fails

Part Number: PROCESSOR-SDK-AM437X


Tool/software: Linux

Hi 

we have a custom board based on AM437X evm. The board has SPI boot options. For booting we have to copy MLO.byteswap into SPI flash and it takes u-boot.img and rootfs from eMMC . we had it working in u-boot 2016 in linux SDK 03.00.00.04

we are using  winbond,w25x20  SPI flash.

Now we have ported with similar changes  to latest SDK  ti-processor-sdk-linux-am437x-evm-04.02.00.09 But here SPI boot is not working properly . we are facing following errors

U-Boot SPL 2017.01-00465-g4ff3d12-dirty (Mar 08 2018 - 13:03:13)
Trying to boot from SPI
Invalid bus 0 (err=-19)
SPI probe failed.
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

Any idea why there is such errors and what could be the reason?

Regards,

Pavan S

  • Hi Pavan,

    The error message Invalid bus 0 (err=-19) is caused by unsuccessful initialization of SPI device (searching for SPI device fails). For further debug see uclass_get_device_by_seq function in ../u-boot/drivers/core/uclass.c file.
    Also you can debug SPI initialization to search for some eerors in ../u-boot/common/sip/spi.c file.

    BR
    Tsvetolin Shulev