Hello,
How to make SBL for SPI boot mode,
and How to program SBL to NOR flash?
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.
Hello,
How to make SBL for SPI boot mode,
and How to program SBL to NOR flash?
Hi,
I am sorry, I am not getting the question here. There is OSPI SBL available in RTOS SDK at <PDK_Install_Path>\packages\ti\boot\sbl\binary\j721e_evm\ospi\bin. Is this default image not working for you. If not, what errors are you facing with that?
Regards,
Parth
Hello Parth,
The size of my NOR flash is 16M,
I see that the command you programmed is
Hi Wang,
=> sf probe=> fatload mmc 1 ${loadaddr} tiboot3.bin=> sf update ${loadaddr} 0x0 0x${filesize}=> fatload mmc 1 ${loadaddr} tispl.bin=> sf update ${loadaddr} 0x80000 0x${filesize}=> fatload mmc 1 ${loadaddr} u-boot.img=> sf update ${loadaddr} 0x280000 0x${filesize}=> fatload mmc 1 ${loadaddr} sysfw.itb=> sf update ${loadaddr} 0x6C0000 0x${filesize}
All of them are < 16 MB. The highest address is 0x6C0000 which is around 6 MB.
You should be able to boot even without the nor_spi_patterns.bin.
Can you try without nor_spi_patterns.bin on your flash?
Regards,
Keerthy
Hello Keerthy,
I had this problem while initializing
log:"Invalid magic number in Single image header"
When I make an app, the bin file used is in the directory <PDK_Install_Path>\packages\ti\boot\sbl\binary\j721e_evm\ospi\bin
Hello, Keerthy
I refer to this case,
The size of my nor flash is 16M
0x3fe0000 is too big for me,how to modify here in SBL
Hi,
0x3fe0000 is too big for me,how to modify here in SBL
You don't need to use 0x3fe0000. nor_spi_pattren.bin needs to be flashed at the last sector of your flash.
Modify OSPI_INDAC_TRIG_ADDR in <PDK>/drv/spi/src/v0/OSPI_v0.c to the address of the last sector of your flash. Rebuild the SPI driver, rebuild the SBL and then flash the nor_spi_pattern.bin at the last sector of your flsh.
Regards,
Parth