By default the 9.2 SDK for J722S does not support OSPI NOR & NAND boot modes. How to enable them?
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.
By default the 9.2 SDK for J722S does not support OSPI NOR & NAND boot modes. How to enable them?
Hi,
Yes it is possible with the below patches on top of the U-Boot directory of the 9.2 SDK. The only Caveat is that there is an issue with DMA with OSPI on 9.2 SDK.
So we have disabled DMA with OSPI and hence the boot will be slower.
Download the above tar file to SDK U-Boot folder & then follow the below instructions:
cd $PSDK_Linux/board-support/ti-u-boot-2023.04+gitAUTOINC+f9b966c674 tar xf j722s-ospi.tar git am j722s-ospi/* cd ../.. make u-boot cp build/a53/u-boot.img build/a53/tispl.bin build/r5/tiboot3.bin /media/$USER/BOOT/
Boot to U-Boot prompt using SD boot mode:
Boot logs from NAND Boot for reference:
U-Boot SPL 2023.04-00004-gd1769ce2-dirty (Apr 22 2024 - 16:46:09 +0530) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.6--w2023.01-j722s (Kool Koa') SPL initial stack usage: 17064 bytes Trying to boot from SPINAND Authentication passed Authentication passed Authentication passed Authentication passed Authentication passed Starting ATF on ARM64 core... NOTICE: BL31: v2.10.0(release):v2.10.0-367-g00f1ec6b87-dirty NOTICE: BL31: Built : 16:09:05, Feb 9 2024 NOTICE: Upgrade Firmwares for Power off functionality ERROR: Failed to get response (-19) ERROR: Transfer send failed (-19) ERROR: Unable to query firmware capabilities (-19) U-Boot SPL 2023.04-00004-gd1769ce2-dirty (Apr 22 2024 - 16:44:39 +0530) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.6--w2023.01-j722s (Kool Koa') Trying to boot from SPINAND Authentication passed Authentication passed U-Boot 2023.04-00004-gd1769ce2-dirty (Apr 22 2024 - 16:44:39 +0530) SoC: J722S SR1.0 HS-FS Model: Texas Instruments J722S EVM Board: J722SX-EVM rev E1 DRAM: 2 GiB (effective 8 GiB) Core: 73 devices, 29 uclasses, devicetree: separate MMC: mmc@fa10000: 0, mmc@fa00000: 1 Loading Environment from nowhere... OK In: serial@2800000 Out: serial@2800000 Err: serial@2800000 Net: Warning: ethernet@8000000port@1 (eth0) using random MAC address - ee:a1:92:1a:3b:06 eth0: ethernet@8000000port@1 Hit any key to stop autoboot: 0
Dip switch settings for NOR:
Boot Logs from OSPI NOR boot for reference:
U-Boot SPL 2023.04-00004-gd1769ce2-dirty (Apr 22 2024 - 16:46:09 +0530) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.6--w2023.01-j722s (Kool Koa') SPL initial stack usage: 17064 bytes Trying to boot from SPI Authentication passed Authentication passed Authentication passed Authentication passed Authentication passed Starting ATF on ARM64 core... NOTICE: BL31: v2.10.0(release):v2.10.0-367-g00f1ec6b87-dirty NOTICE: BL31: Built : 16:09:05, Feb 9 2024 NOTICE: Upgrade Firmwares for Power off functionality ERROR: Failed to get response (-19) ERROR: Transfer send failed (-19) ERROR: Unable to query firmware capabilities (-19) U-Boot SPL 2023.04-00004-gd1769ce2-dirty (Apr 22 2024 - 16:44:39 +0530) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.6--w2023.01-j722s (Kool Koa') Trying to boot from SPI Authentication passed Authentication passed U-Boot 2023.04-00004-gd1769ce2-dirty (Apr 22 2024 - 16:44:39 +0530) SoC: J722S SR1.0 HS-FS Model: Texas Instruments J722S EVM Board: J722SX-EVM rev E1 DRAM: 2 GiB (effective 8 GiB) Core: 73 devices, 29 uclasses, devicetree: separate MMC: mmc@fa10000: 0, mmc@fa00000: 1 Loading Environment from nowhere... OK In: serial@2800000 Out: serial@2800000 Err: serial@2800000 Net: Warning: ethernet@8000000port@1 (eth0) using random MAC address - 7e:c2:72:35:c8:06 eth0: ethernet@8000000port@1 Hit any key to stop autoboot: 0
Binaries used to boot from NAND/NOR for reference:
Best Regards,
Keerthy