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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

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

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:

  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

    u-boot=>

  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: 

    01xxxxx0

    0000x001

    8M-Mini Rev C boards:

    0110xxxxxx

    00100x0010
Comments

This 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

No ratings
Version history
Last update:
‎06-28-2019 04:33 AM
Updated by: