Hi,
I'm trying to boot my AM648 EVK board from the MT35X NOR flash on OSPI. Currently the situations is:
- I was successfully able to generate a .wic with yocto.
- That .wic, once flashed on an SD card, boots normally.
- I added support in U-Boot for MT35X nor flash using CONFIG_SPI_FLASH_MT35XU=y.
- The flash is then correctly detected in U-Boot:
=> sf probe SF: Detected mt35xu512aba with page size 256 Bytes, erase size 128 KiB, total 64 MiB
- I am able to write/read in the OSPI correctly.
- From U-Boot I flash tiboot3.bin, tispl.bin, u-boot.img, sysfw.itb onto the OSPI nor using:
fatload mmc 1 ${loadaddr} tiboot3.bin; sf update $loadaddr 0x0 $filesize; fatload mmc 1 ${loadaddr} tispl.bin; sf update $loadaddr 0x80000 $filesize; fatload mmc 1 ${loadaddr} u-boot.img; sf update $loadaddr 0x280000 $filesize; fatload mmc 1 ${loadaddr} sysfw.itb; sf update $loadaddr 0x6C0000 $filesize
Where MMC 1 is my SD card as shown in:
=> mmc list mmc@4f80000: 0 mmc@4fa0000: 1 (SD)
- I set the bootmode switch as follow:
- [3..0] 0001 : OSPI primary boot
- [6..4] 100 : MMCSD backup boot mode
- [7] 0 : No min mode
- [15..8] 11000101 : Octal fast read 32/I clock (loop back clock) external source, same as DQS/CS=0/33 MHz SDR with delay line/32-bit address bus <= I've got doubts about this
- [18..16] 010 : Backup SD on port 1
But the system only boot on the backup SD, if I remove it the terminal stays blank.
Do I need to modify something else in order to boot on the OSPI ?
Also the generated .wic has 2 different .itb in the boot partition:
=> fatls mmc 1 EFI/ 19984896 Image 267766 sysfw-am65x-evm.itb 267770 sysfw.itb 149121 tiboot3.bin 759488 tispl.bin 979484 u-boot.img 574 uEnv.txt 7 file(s), 1 dir(s)
looking at the sizes they seem slightly different. I tried to flash both, no luck.
I must also admit that the more I read about the boot process on AM65 the less I understand it. I read the TRM sections regarding boot process, but I currently just don't understand where these binary comes from..
Any help is welcome, thanks in advance.
Regards
Pierre Buffo