Summary:
The i.MX 8M-Mini can boot from QSPI flash using a dedicated boot image.
The boot config settings are not correctly documented in the EVK Board Hardware User's Guide Rev 0 from 02/2019.
In the document i.MX_Linux_User's_Guide.pdf in the BSP documentation 4.14.98 the settings are correctly given in Table 38
Details:
u-boot=> fatls mmc 0:1
14557696 Image
…
1446848 imx-boot-imx8mmevk-fspi.bin-flash_evk_flexspi
11 file(s), 0 dir(s)
u-boot=> sf probe
SF: Detected n25q256a with page size 256 Bytes, erase size 4 KiB, total 32 MiB
u-boot=> fatload mmc 0:1 0x40480000 imx-boot-imx8mmevk-fspi.bin-flash_evk_flexspi
1446848 bytes read in 79 ms (17.5 MiB/s)
u-boot=> sf erase 0x0 0x200000
SF: 2097152 bytes @ 0x0 Erased: OK
u-boot=> sf write 0x40480000 0x0 0x200000
device 0 offset 0x0, size 0x200000
SF: 2097152 bytes @ 0x0 Written: OK
u-boot=> sf read 0x50000000 0x0 0x200000
device 0 offset 0x0, size 0x200000
SF: 2097152 bytes @ 0x0 Read: OK
u-boot=> cmp.b 0x40480000 0x50000000 0x200000
Total of 2097152 byte(s) were the same
u-boot=>
01xxxxx0
0000x0010110xxxxxx
00100x0010This procedure worked great.
The only problem I encountered was my iMx8m-mini Dev board was a Rev C1 and the bottom row of switches needed to be:
0110xxxxxx
0010000010