Boot imx8qm-mek from emmc

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

Boot imx8qm-mek from emmc

1,282 Views
eburley
Contributor III

I'm attempting to boot the imx8qm-mek dev board from the built in emmc chip.

I can build and boot successfully from the sd card, but not from the emmc.

Im using uboot version 2021.04 and uuu verision 1.4.165.

What are the correct steps to boot from the emmc?

The error I get is that "** Block device MMC 0 not supported".  Is this really the case?

 

What I've tried...

At the end of ./build/conf/local.conf, added:

UBOOT_CONFIG="emmc"

In ./source/meta-freescale/conf/machine/imx8qm-mek.conf, added:

UBOOT_CONFIG[emmc] = "imx8qm_mek_defconfig,sdcard"

This compiled, but ended up with imx-boot-imx8qm-mek-emmc-bin-flash_spl_flexspi

So in ./source/meta-freescale/conf/machine/imx8qm-mek.conf, I changed:

#IMXBOOT_TARGETS = \
# "${@bb.utils.contains('UBOOT_CONFIG', 'sd', '${IMXBOOT_TARGETS_SD}', \
# '${IMXBOOT_TARGETS_FSPI}', d)}"

to

IMXBOOT_TARGETS = \
"${@bb.utils.contains('UBOOT_CONFIG', 'emmc', '${IMXBOOT_TARGETS_SD}', \
'${IMXBOOT_TARGETS_FSPI}', d)}"

This compiles and I get imx-boot-imx8qm-mek-emmc.bin-flash_spl.

I run in windows:

./uuu -b emmc imx-boot-imx8qm-mek-emmc.bin-flash_spl 

This exits with a failure.

PS C:\temp> ./uuu -b emmc .\imx-boot-imx8qm-mek-emmc.bin-flash_spl
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.165-0-ge10b026

Success 0 Failure 1


1:11 3/ 7 [ ] FB: ucmd mmc dev ${emmc_dev}

 

I get the following output on the serial terminal:

U-Boot SPL 2021.04-5.10.35-2.0.0+g8e18549c (Nov 05 2021 - 15:59:57 +0000)
Normal Boot
Trying to boot from USB SDP
auto usb 1
SDP: initialize...
SDP: handle requests...
Downloading file of size 3064832 to 0x80400000... done
Jumping to header at 0x80400000
Header Tag is not an IMX image
Found header at 0x80400000


U-Boot 2021.04-5.10.35-2.0.0+g8e18549c (Nov 05 2021 - 15:59:57 +0000)

CPU: NXP i.MX8QM RevB A53 at 1200 MHz at 31C

Model: NXP i.MX8QM MEK
Board: iMX8QM MEK
Boot: USB
DRAM: 6 GiB
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C0 0x51]
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

[*]-Video Link 0it6263_i2c_reg_read, read err 3
faill to read from it6263 revision, ret 3
(1280 x 720)
[0] dpu@56180000, video
[1] lvds-channel@0, display
[2] lvds-to-hdmi-bridge@4c, video_bridge
In: serial
Out: serial
Err: serial

BuildInfo:
- SCFW 58865b98, SECO-FW d63fdb21, IMX-MKIMAGE 5138add7, ATF ec35fef
- U-Boot 2021.04-5.10.35-2.0.0+g8e18549c

switch to partitions #0, OK
mmc1 is current device
Detect USB boot. Will enter fastboot mode!
Net: eth0: ethernet@5b040000 [PRIME], eth1: ethernet@5b050000
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for mfgtools
, using default environment

Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else booti ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot auto; fi;
Hit any key to stop autoboot: 0

## Checking Image at 83100000 ...
Unknown image format!
Run fastboot ...
auto usb 1
Detect USB boot. Will enter fastboot mode!
flash target is MMC:1
Detect USB boot. Will enter fastboot mode!
flash target is MMC:0
MMC card init failed!
** Block device MMC 0 not supported

0 Kudos
Reply
0 Replies