Problem booting iMX8QM MEK board from SPI flash

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem booting iMX8QM MEK board from SPI flash

Jump to solution
385 Views
ravi_kohli
Contributor IV
Hi Support,
 
After building the iMX8QM bootloader and making its image with
       make SOC=iMX8QM flash_flexspi
command the bootloader image was burned to the SPI flash device of the iMX8QM MEK board:
      sudo uuu -b qspi  iMX8QM/flash.bin
 
  uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.43-5-ga0b566d
 
  Success 1    Failure 0                                                                                      
  1:8      8/ 8 [Done                                  ] FB: done                                                                                                                                                    
After the board reset or power cycle the bootloader does not start - no serial output and the LED5 is OFF that indicates the the boards remains in the reset state.
 
The same bootloader build for SSD/eMMC device works with no problems make SOC=iMX8QM flash_b0 .
 
The NXP software version used for the bootloader build:
            firmware-imx-8.1.bin
    imx-sc-firmware-1.2.bin
    imx-atf-5.4.47_2.2.0.tar.bz2
    imx-mkimage-5.4.47_2.2.0.tar.bz2
    imx-scfw-porting-kit-1.6.0.tar.gz
    uboot-imx (imx_v2018.03_4.14.98_2.0.0_ga)
 
The serial output during flashing is shown below:
 
Welcome to minicom 2.7.1
 
OPTIONS: I18n
Compiled on Aug 13 2017, 15:25:34.
Port /dev/ttyUSB0, 12:03:01
 
Press CTRL-A Z for help on special keys
 
 
 
U-Boot 2018.03 (Dec 04 2020 - 10:59:44 -0500)
 
CPU:   Freescale i.MX8QM revB A53 at 1200 MHz at 29C
Model: Freescale i.MX8QM MEK
Board: iMX8QM MEK
Boot:  USB
DRAM:  1022 MiB
start sata init
SATA link 0 timeout.
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C0 0x51]
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... MMC: no card present
*** Warning - No block device, using default environment
 
Failed (-5)
[pcie_ctrla_init_rc] LNK DOWN 8600000
In:    serial
Out:   serial
Err:   serial
 
 BuildInfo:
  - SCFW 56682d58, SECO-FW 92ef1143, IMX-MKIMAGE 5991d861, ATF
  - U-Boot 2018.03
 
MMC: no card present
Detect USB boot. Will enter fastboot mode!
SCSI:  Net:   No ethernet found.
Fastboot: Normal
Boot from USB for mfgtools
Use default environment for                              mfgtools
Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bo;
Hit any key to stop autoboot:  0
 
## Checking Image at 83100000 ...
Unknown image format!
Run fastboot ...
1 setufp mode 0
1 cdns3_uboot_initmode 0
Detect USB boot. Will enter fastboot mode!
Starting download of 1024000 bytes
.......
downloading of 1024000 bytes finished
Unknown command 'qspihdr' - try 'help'
Detect USB boot. Will enter fastboot mode!
Detect USB boot. Will enter fastboot mode!
SF: Detected mt35xu512g with page size 256 Bytes, erase size 128 KiB, total 64 MiB
Detect USB boot. Will enter fastboot mode!
SF: 1048576 bytes @ 0x0 Erased: OK
Detect USB boot. Will enter fastboot mode!
device 0 offset 0x0, size 0xfa000
SF: 1024000 bytes @ 0x0 Written: OK
Detect USB boot. Will enter fastboot mode!
 
0 Kudos
1 Solution
376 Views
ravi_kohli
Contributor IV
0 Kudos
1 Reply
377 Views
ravi_kohli
Contributor IV
0 Kudos