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.
I am using:
TMDS64GPEVM
processor_sdk_linux_am64x_07_03_00_02
How do I boot Linux with QSPI?
I wrote rootfs to eMMC, tiboot3.bin, tispl.bin, u-boot.img to QSPI, and when I booted with QSPI Boot, nothing was displayed in the terminal.
When I tried it with OSPI Boot and SPI Boot, OSPI Boot gave the same result as QSPI Boot, but with SPI Boot, Linux booted.
Therefore, I think that tiboot3.bin, tispl.bin, and u-boot.img are written correctly.
I used the following boot mode switch:
QSPI Boot (SW2:on on off off on off off off off off SW3:off off off off off off off off)
OSPI Boot (SW2:on on off on off off off off off off SW3:off off off off off off off off)
SPI Boot (SW2:on on off on on off off off off off SW3:off off off off off off off off)
To write QSPI, I booted with MMCSD Card Boot and executed the following command at the uboot prompt.
---------------------------------------------
sf probe
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
sf erase 0x3fc0000 +0x40000
---------------------------------------------
1. Are there any steps I have taken that are wrong or missing?
2. I am currently using eMMC rootfs and want to write rootfs to QSPI. Please tell me the procedure for that.
For your questions,
1. Your procedure for flashing OSPI @u-boot prompt is correct.
For booting from OSPI after flashing, please setup BOOTMODE pins (SW2/SW3) as either SPI (like you did) or xSPI boot mode.
We're currently investigating boot failure when BOOTMODE pins is configured as OSPI boot mode, and will keep you posted.
2. For your reference, I wrote the steps to boot full Linux from OSPI (64MiB) on AM64x GP EVM.
The procedure should apply to SPI/QSPI/OSPI MTD/UBI/UBIFS Linux booting in general.
e2e.ti.com/.../3769546
Hope it helps!
Best,
-Hong