imx8m mini evk flashing images to SD card

cancel
Showing results for 
Search instead for 
Did you mean: 

imx8m mini evk flashing images to SD card

3,067 Views
vijayb1
Contributor II

Hello,

I am trying to create sd card boot image for linux,

I am following i.MX 8M Mini DDR4 EVK board hardware users guide.
Set boot switch set up for serial dowanload mode for usb
1 - On
0 - Off

SW 1010110010

I have downloaded "L4.14.78_1.0.0_ga_images_MX8MMEVK.zip" from Linux Download page.

Copied uuu.exe from UUU github page

uuu.exe L4.14.78_1.0.0_ga_images_MX8MMEVK.zip


>uuu.exe L4.14.78_1.0.0_ga_images_MX8MMEVK.zip
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.3.191-0-g4fe24b9

Success 0 Failure 0 Wait for Known USB Device Appear...

Prep 1/ 0 [=================100%=================] Http Download\Uncompress

Does not see any more progress. What is missing. USB driver is detected.
I can boot with default sd card with Android image. I can see console output for A53 core.

Thanks

Vijay

Labels (1)
0 Kudos
14 Replies

2,827 Views
vijayb1
Contributor II

I think, I got it working with uuu and dd command, thanks for the support

0 Kudos

2,829 Views
vijayb1
Contributor II

Ok, it turns out my boot args was overwritten by the new image. So changed it to boot from emmc1 and update new dtb file.

0 Kudos

2,828 Views
joanxie
NXP TechSupport
NXP TechSupport

how about the status, could you boot up now?you also can try "uuu -b sd_all" command to download uboot and sdcard image to board by uuu tool

0 Kudos

2,828 Views
vijayb1
Contributor II

here is my console o/p core-image-base.

"sudo dd if=core-image-base-imx8mmddr4evk.wic of=/dev/sdb bs=1M && sync"

U-Boot SPL 2019.04-lf-5.4.y_v2019.04+g228843cdf5 (Jun 12 2020 - 21:27:10 +0000)
power_bd71837_init
DDRINFO: start DRAM init
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from MMC1


U-Boot 2019.04-lf-5.4.y_v2019.04+g228843cdf5 (Jun 12 2020 - 21:27:10 +0000)

CPU: Freescale i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)
CPU: Commercial temperature grade (0C to 95C) at 37C
Reset cause: POR
Model: FSL i.MX8MM DDR4 EVK board
DRAM: 2 GiB
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x52]
Power supply on USB2
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]
NAND: 0 MiB
MMC: FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

No panel detected: default to MIPI2HDMI
adv7535_init: Can't find device id=0x3d, on bus 1
Display: MIPI2HDMI (1920x1080)
Video: 1920x1080x24
In: serial
Out: serial
Err: serial

BuildInfo:
- ATF 7b3389d
- U-Boot 2019.04-lf-5.4.y_v2019.04+g228843cdf5

switch to partitions #0, OK
mmc1 is current device
flash target is MMC:1
Net:
Warning: ethernet@30be0000 using MAC address from ROM
eth0: ethernet@30be0000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
23065088 bytes read in 1042 ms (21.1 MiB/s)
Booting from mmc ...
WARN: Cannot load the DT
u-boot=>

0 Kudos

2,828 Views
vijayb1
Contributor II

Still investigating why my local image is not working. I am able to get pre-built images working,

uuu -b sd_all imx-boot-imx8mmddr4evk-sd.bin-flash_ddr4_evk fsl-image-validation-imx-imx8mmevk.sdcard 

0 Kudos

2,828 Views
joanxie
NXP TechSupport
NXP TechSupport

what do you mean local image? the image built by yourself, if yes, you can use the ddr4 uboot image in the pre-built image, then use the sdcard image built by yourself

0 Kudos

2,828 Views
vijayb1
Contributor II

local images - images built locally. 

pre-built images - images downloaded from nxp.

I am building using bitbake to build "core-image-base".

Generated files in tmp/deply/image/imx8mmddr4/

core-image-base-imx8mmddr4evk.sdcard

Am I using the right image along with "imx-boot-imx8mmddr4evk-sd.bin-flash_ddr4_evk " - boot loader?

boot fail for missing "dtb" file.

Thanks

Vijay

0 Kudos

2,828 Views
vijayb1
Contributor II

I am wondering if the image "L4.14.78_1.0.0_ga_images_MX8MMEVK is for DDR4 vs or LPDDR version? Nothing is clear. But since it does not work DDR4 I am using this is not.

"sudo dd if=fsl-image-validation-imx-imx8mmevk.sdcard of=/dev/sdb bs=1M && sync"

Again here are the commands that I have used to build image for ddr4

repo init -u https://source.org/external/imx/imx-manifest -b imx-linux-zeus -m imx-5.4.3-1.0.0.x

repo sync

DISTRO=fsl-imx-wayland MACHINE=imx8mmddr4evk source-imx-setup-release.sh -b build

bitbake core-image-base

Let me know if you see any issue.

Thanks

Vijay

0 Kudos

2,828 Views
joanxie
NXP TechSupport
NXP TechSupport

I haven't tested on ddr4 board, but lpddr4 board, if you want to use sd card, you can two options, one is for dd command, you can use dd command in the ubuntu to download xx.sdcard image to the SD card, then insert the sd card to boot up, the second solution is that you can use uuu tool, imx8mm doesn't use mfgtool anymore, you can use the command like :

"uuu -b sd_all imx-boot-imx8mmddr4evk-sd.bin-flash_ddr4_evk imx-image-full-imx8mmevk"

0 Kudos

2,828 Views
vijayb1
Contributor II

I guess my switch settings are wrong. 

What should be the switch settings to flash images to micro SD card? Or is there different way to flash images to SD card?

I even tried 

SW101 :  0110110010

SW102 :  0001101000

Thanks

Vijay

0 Kudos

2,828 Views
joanxie
NXP TechSupport
NXP TechSupport

you can refer to the imx8mm DDR4 board schematic, it seems that ddr4 board doesn't include EMMC, the command you use is for downloading image to the EMMC, maybe you can use dd command to download xx.sdcard image to your SD card

0 Kudos

2,828 Views
vijayb1
Contributor II

Hello Joan Xie,

I tried to build the imx8m mini evk image as per poky build setup. Build went through.

I can see image in tmp/deply/image/imx8mnevk/

"core-image-base-imx8mnevk.wic"

copied the image to my sd card

sudo dd if=core-image-base-imx8mnevk.wic of=/dev/sdb bs=1M && sync

Image is copied to sd card, evk does not boot. 

I even tried "core-image-bsae-imx8mnevk.sdcard" same issue.

Not sure what I am missing ?

My switch settings are correct for SD boot, as I can boot Android image 

I tried using i.MX8m mini evk images from nxp downloads "fsl-image-validaion-imx-imx8mmevk.sdcard" 

I see below mmc error..

U-Boot SPL 2018.03-imx_v2018.03_4.14.78_1.0.0_ga+g654088c (Nov 28 2018 - 19:15:55 +0000)
power_bd71837_init
DDRINFO: start lpddr4 ddr init
DRAM PHY training for 3000MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training FAILED
DRAM PHY training for 3000MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training FAILED
DRAM PHY training for 400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training FAILED
DRAM PHY training for 100MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training FAILED
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from MMC1

Thanks

Vijay

0 Kudos

2,829 Views
joanxie
NXP TechSupport
NXP TechSupport

maybe you can try to use the uuu command and use the ddr4 uboot

0 Kudos

2,828 Views
vijayb1
Contributor II

Yea, I was guessing that, cmd probably was to flash eMMC, I am interested in creating SD card boot image. Where is the command list to generate an SD card image. Linux User documentation refers to use uuu. 

Wiki there does not have command for SD.

Is uuu Mfg tool necessary or is there any other way of doing. I am trying to bring up i.MX8M mini DDR4 for the first time with Linux image.

May be I am confused with too much of documentation. 

Thanks

Vijay

0 Kudos