Tool/software:
After the SD card is booted, the NAND partition can be viewed:
root@am62lxx-evm:~# cat /proc/mtd dev: size erasesize name mtd0: 00080000 00040000 "ospi_nand.tiboot3" mtd1: 00200000 00040000 "ospi_nand.tispl" mtd2: 00400000 00040000 "ospi_nand.u-boot" mtd3: 00040000 00040000 "ospi_nand.env" mtd4: 00040000 00040000 "ospi_nand.env.backup" mtd5: 17e00000 00040000 "ospi_nand.rootfs" mtd6: 05fc0000 00040000 "ospi_nand.phypattern"
I want to know how to burn firmware and then OSPI NAND boot.
I used the nandwrite command to flash firmware files (e.g., tiboot3.bin and tispl.bin) downloaded from the official website. After switching to OSPI NAND boot mode, the system fails to boot.
root@am62lxx-evm:~# flash_erase /dev/mtd0 0 0 ; sleep 1 ; nandwrite -a -p /dev/mtd0 tiboot3.bin Erasing 512 Kibyte @ 0 -- 100 % complete Writing data to block 0 at offset 0x0 root@am62lxx-evm:~# root@am62lxx-evm:~# flash_erase /dev/mtd1 0 0 ; sleep 1 ; nandwrite -a -p /dev/mtd1 tispl.bin Erasing 2048 Kibyte @ 0 -- 100 % complete Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x40000 Writing data to block 2 at offset 0x80000 root@am62lxx-evm:~#
Can the firmware on the official website be supported to boot as OSPI NAND, and do I need to make changes to the software first and then recompile it. Please provide a way to compile and burn the OSPI NAND image