i.MX 8M-Mini QSPI booting on EVK Rev C

Document created by Bernhard Fink Employee on Jun 28, 2019
Version 1Show Document
  • View in full screen mode


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




  1. To generate a bootable file for the QSPI with Yocto, you need to include the following setting into local.conf:
    UBOOT_CONFIG = "fspi"
    If you don't want/need to make a complete build, just rebuild u-boot:
    bitbake -c deploy u-boot-imx
  2. Alternatively the file imx-boot-imx8mmevk-fspi.bin-flash_evk_flexspi included already in the BSP demo packages will work as well
  3. Program the image into QSPI:
    With UUU:   uuu -b qspi imx-boot-imx8mmevk-fspi.bin-flash_evk_flexspi
    With u-boot:

    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


  4. Set boot config jumpers correctly and power on the board (no SD-card in the slot)

    8M-Mini Rev A and Rev B boards: 



    8M-Mini Rev C boards:


2 people found this helpful