Hello,
We are using a custom board based on iMX8QXPMEK with L5.4.24-2.1.0. In our custom board, we are using the FlexSPI interface to communicate to an Octal flash and Quad flash when they are connected to flexSPI chip select 0. We are able to probe, read, and write to both the flash chips without any issue.
One of the task is to boot from both Octal and Quad flash. So we have created a common flash.bin for Octal and Quad flash using mkimage tool. When we flash Octal flash using UUU flashing utility with the command
./uuu -V -b qspi flash.bin
we are able to flash Octal flash successfully and are able to boot Octal flash without any issue. Whereas when we try to do the same steps for flashing Quad flash, though we are able to flash Quad SPI chip successfully we are not able to boot from QSPI flash.
I have noticed some differences when flashing the binary into OSPI flash and QSPI flash in terms of sf erase time.
OSPI flash:
3:1>Start Cmd:FB[-t 40000]: ucmd if test ${qspihdr_exist} = no; then sf erase 0 +${fastboot_bytes}; else true; fi;
3:1>Okay (17.94s)
3:1>Start Cmd:FB[-t 20000]: ucmd if test ${qspihdr_exist} = no; then sf write ${fastboot_buffer} 0 ${fastboot_bytes}; else true; fi;
3:1>Okay (1.105s)
QSPI flash:
3:1>Start Cmd:FB[-t 40000]: ucmd if test ${qspihdr_exist} = no; then sf erase 0 +${fastboot_bytes}; else true; fi;
3:1>Okay (0.01s)
3:1>Start Cmd:FB[-t 20000]: ucmd if test ${qspihdr_exist} = no; then sf write ${fastboot_buffer} 0 ${fastboot_bytes}; else true; fi;
3:1>Okay (1s)
What I have done so far
1. test octal flash with flash.bin we generated
2. tried flashing QSPI flash with the same flash.bin and try to boot(not successful)
3. After flashing QSPI flash, read QSPI contents using hexdump which shows data is not flashed properly
4. Added working flash.bin to rootfs and copied its contents to QSPI flash using dd command – After this, we are able to boot from QSPI flash successfully
So is there any issue with the UUU flashing utility, since we are not able to boot from QSPI flash but we are able to boot from OSPI flash after flashing using the UUU tool?
Thanks & Regards.
Priyank