Issues flashing example image to board based off the i.MX8MM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Issues flashing example image to board based off the i.MX8MM

365 次查看
SpencerLommel
Contributor I
Hello, I am trying to flash the "LF_v6.6.36-2.1.0_images_IMX8MMEVK" example image I downloaded from the i.MX 8M Mini Evaluation Kit Website onto my board but it is getting stuck at 100%
 
My board isn't the exact i.MX 8M Mini EVK but it is extremely close and it came pre-flashed with an image on it. I was also given the following files in case needed so I may need to use some of these while flashing I think but I'm not exactly sure what files I would need and how I would incorporate them into my new uuu.auto flash script
 
files I was given:
➜ dev-block-byname ls
boot_a.img boot_extracted cert.img dtbo_a.img facres.img metadata.img mnt_system mnt_vendor presistdata.img system_a.img vbmeta_a.img vendor_a.img
 
I also have a dtb/dts as well but I believe it's the exact same as the original imx8mm one
 
 
 
 
➜  LF_v6.6.36-2.1.0_images_IMX8MMEVK uuu -lsusb
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.182-0-ga561ed7
 
Connected Known USB Devices
Path Chip Pro Vid Pid BcdVersion
==================================================
3:2 MX8MM SDP: 0x1FC9 0x0134 0x0101
 
 
Here was my unsuccessful attempt to flash the default example image to my board:
➜  LF_v6.6.36-2.1.0_images_IMX8MMEVK ls
EULA.txt                                                  imx8mm-ddr4-evk-rm67191-cmd-ram.dtb  imx8mm-evk-ecspi-slave.dtb      imx8mm-evk-rpmsg.dtb                                   imx-image-full-imx8mmevk.spdx.tar.zst
fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.zst.u-boot  imx8mm-ddr4-evk-rm67191.dtb          imx8mm-evk-inmate.dtb           imx8mm-evk-rpmsg-wm8524.dtb                            imx-image-full-imx8mmevk.tar.zst
GPLv2                                                     imx8mm-ddr4-evk-rm67199-cmd-ram.dtb  imx8mm-evk-lk.dtb               imx8mm-evk-rpmsg-wm8524-lpv.dtb                        imx-image-full-imx8mmevk.wic
Image-imx8mmevk.bin                                       imx8mm-ddr4-evk-rm67199.dtb          imx8mm-evk-pcie-ep.dtb          imx8mm-evk-usd-wifi.dtb                                imx_mcore_demos
imx8mm-ddr4-evk.dtb                                       imx8mm-evk-8mic-revE.dtb             imx8mm-evk-qca-wifi.dtb         imx-boot-imx8mm-ddr4-evk-nand.bin-flash_ddr4_evk       licenses-fsl-imx-xwayland_imx8mmevk.tar.gz
imx8mm-ddr4-evk-pcie-ep.dtb                               imx8mm-evk-8mic-swpdm.dtb            imx8mm-evk-revb-qca-wifi.dtb    imx-boot-imx8mm-ddr4-evk-sd.bin-flash_ddr4_evk         README.uuu
imx8mm-ddr4-evk-revb.dtb                                  imx8mm-evk-ak4497.dtb                imx8mm-evk-rm67191-cmd-ram.dtb  imx-boot-imx8mmevk-fspi.bin-flash_evk_flexspi          samples
imx8mm-ddr4-evk-revb-rm67191-cmd-ram.dtb                  imx8mm-evk-ak5558.dtb                imx8mm-evk-rm67191.dtb          imx-boot-imx8mmevk-sd.bin-flash_evk                    SCR-6.6.36-2.1.0.txt
imx8mm-ddr4-evk-revb-rm67191.dtb                          imx8mm-evk-audio-tdm.dtb             imx8mm-evk-rm67199-cmd-ram.dtb  imx-boot-imx8mm-lpddr4-evk-fspi.bin-flash_evk_flexspi  uuu.auto
imx8mm-ddr4-evk-revb-rm67199-cmd-ram.dtb                  imx8mm-evk-dpdk.dtb                  imx8mm-evk-rm67199.dtb          imx-boot-imx8mm-lpddr4-evk-sd.bin-flash_evk            uuu.auto-imx8mmevk
imx8mm-ddr4-evk-revb-rm67199.dtb                          imx8mm-evk.dtb                       imx8mm-evk-root.dtb             imx-image-full-imx8mmevk.manifest
➜  LF_v6.6.36-2.1.0_images_IMX8MMEVK cat uuu.auto
uuu_version 1.2.39
 
# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f imx-boot-imx8mmevk-sd.bin-flash_evk
 
# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -f imx-boot-imx8mmevk-sd.bin-flash_evk
 
# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f imx-boot-imx8mmevk-sd.bin-flash_evk -offset 0x57c00
SDPU: jump
# }
 
# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f imx-boot-imx8mmevk-sd.bin-flash_evk -skipspl
SDPV: jump
# }
 
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash -raw2sparse all imx-image-full-imx8mmevk.wic
FB: flash bootloader imx-boot-imx8mmevk-sd.bin-flash_evk
FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
FB: done
➜  LF_v6.6.36-2.1.0_images_IMX8MMEVK sudo uuu uuu.auto
[sudo] password for spencer:                      
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.182-0-ga561ed7
 
Success 0    Failure 0                                                                                                                                                                                                                       
                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                              
3:2      1/ 1 [=================100%=================] SDP: boot -f imx-boot-imx8mmevk-sd.bin-flash_evk   


 
And here is the first bit of the UART log I get from my board currently with the pre-flashed image:

U-Boot SPL 2021.04-g1d8c902ab6 (Aug 14 2023 - 11:59:29 -0500)
power_bd71837_init
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
Trying to boot from MMC2
NOTICE: BL31: v2.4(release):rockstars/lcc/ecmdr-bld-1012767-0-g9202d29fa
NOTICE: BL31: Built : 11:59:54, Aug 14 2023


U-Boot 2021.04-g1d8c902ab6 (Aug 14 2023 - 11:59:29 -0500)

CPU: i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)
CPU: Commercial temperature grade (0C to 95C) at 33C
Reset cause: POR
Model: NXP i.MX8MM EVK board
DRAM: 2 GiB
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
[WLCC_FAC_RST]Restore pin is released, retry 1
[WLCC_FAC_RST]Restore pin is released, retry 2
[WLCC_FAC_RST]Restore pin is released, retry 3
[WLCC_FAC_RST]Restore pin is released, retry 4
[WLCC_FAC_RST]Restore pin detection test failed!!!
Saving Environment to MMC... Writing to MMC(2)... OK
RSTKey_Result is FAIL
In: serial
Out: serial
Err: serial

BuildInfo:
- ATF 9202d29

flash target is MMC:2
Net: Switch: RTL8363NB-VB(0x1cc943)
eth0: ethernet@30be0000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
verify OK, boot 'boot_b'
Kernel load addr 0x40480000 size 31223 KiB
kernel @ 40480000 (33030144)
ramdisk @ 43600000 (8037481)
fdt @ 42580400 (44526)
Moving Image from 0x40480000 to 0x40600000, end=42580000
## Flattened Device Tree blob at 42580400
Booting using the fdt blob at 0x42580400
Using Device Tree in place at 0000000042580400, end 000000004258e1ed
Remove /soc@0/bus@32c00000/usb@32e50000:extcon

Starting kernel ...

[ 0.000000][ T0] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000][ T0] Linux version 5.10.72 (ecommander@engint15.polycom.com) (Android (7284624, based on r416183b) clang version 12.0.5 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee),4
[ 0.000000][ T0] Machine model: POLY LCC PROTO
[ 0.000000][ T0] Stack Depot is disabled
[ 0.000000][ T0] earlycon: ec_imx6q0 at MMIO 0x0000000030890000 (options '115200')
[ 0.000000][ T0] printk: bootconsole [ec_imx6q0] enabled
[ 0.000000][ T0] efi: UEFI not found.
[ 0.000000][ T0] kvm [0]: Reserved 14 MiB at 0xbec00000
[ 0.000000][ T0] Zone ranges:
[ 0.000000][ T0] DMA32 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000][ T0] Normal empty
[ 0.000000][ T0] Movable zone start for each node
[ 0.000000][ T0] Early memory node ranges
[ 0.000000][ T0] node 0: [mem 0x0000000040000000-0x00000000bdeeffff]
[ 0.000000][ T0] node 0: [mem 0x00000000bdef0000-0x00000000bdefffff]
[ 0.000000][ T0] node 0: [mem 0x00000000bdf00000-0x00000000bfffffff]
[ 0.000000][ T0] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000][ T0] cma: Reserved 800 MiB at 0x0000000086000000
[ 0.000000][ T0] psci: probing for conduit method from DT.
[ 0.000000][ T0] psci: PSCIv1.1 detected in firmware.
[ 0.000000][ T0] psci: Using standard PSCI v0.2 function IDs
[ 0.000000][ T0] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000][ T0] psci: SMC Calling Convention v1.2
[ 0.000000][ T0] percpu: Embedded 33 pages/cpu s96088 r8192 d30888 u135168
[ 0.000000][ T0] Detected VIPT I-cache on CPU0
[ 0.000000][ T0] CPU features: SYS_ID_AA64MMFR1_EL1[11:8]: already set to 0
[ 0.000000][ T0] CPU features: detected: ARM erratum 845719
[ 0.000000][ T0] CPU features: detected: GIC system register CPU interface
[ 0.000000][ T0] Built 1 zonelists, mobility grouping on. Total pages: 516096
[ 0.000000][ T0] Kernel command line: stack_depot_disable=on kasan.stacktrace=off kvm-arm.mode=protected cgroup_disable=pressure cgroup.memory=nokmem console=ttymxc1,115200 earlycon=ec_imx6q,0x30890000,115200 init=/init androidboote
[ 0.000000][ T0] cgroup: Disabling pressure control group feature
[ 0.000000][ T0] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000][ T0] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000][ T0] mem auto-init: stack:all(zero), heap alloc:on, heap free:off
[ 0.000000][ T0] Memory: 1181068K/2097152K available (17472K kernel code, 2166K rwdata, 10468K rodata, 1024K init, 996K bss, 96884K reserved, 819200K cma-reserved)
[ 0.000000][ T0] random: get_random_u64 called from kmem_cache_open+0x2c/0x2f4 with crng_init=0
[ 0.000000][ T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000][ T0] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000][ T0] rcu: RCU event tracing is enabled.
[ 0.000000][ T0] rcu: RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=4.
[ 0.000000][ T0] Trampoline variant of Tasks RCU enabled.
[ 0.000000][ T0] Tracing variant of Tasks RCU enabled.
[ 0.000000][ T0] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000][ T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000][ T0] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000][ T0] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000][ T0] GICv3: 128 SPIs implemented
[ 0.000000][ T0] GICv3: 0 Extended SPIs implemented
[ 0.000000][ T0] GICv3: Distributor has no Range Selector support
[ 0.000000][ T0] GICv3: 16 PPIs implemented
[ 0.000000][ T0] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
[ 0.000000][ T0] ITS: No ITS available, not enabling LPIs
[ 0.000000][ T0] rcu: Offload RCU callbacks from CPUs: (none).
[ 0.000000][ T0] kfence: initialized - using 524288 bytes for 63 objects at 0x(____ptrval____)-0x(____ptrval____)
[ 0.000000][ T0] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[ 0.000000][ T0] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[ 0.000004][ T0] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[ 0.009548][ T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[ 0.019783][ T0] pid_max: default: 32768 minimum: 301
[ 0.025260][ T0] LSM: Security Framework initializing
[ 0.030502][ T0] SELinux: Initializing.
[ 0.034791][ T0] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.042798][ T0] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.053200][ T1] rcu: Hierarchical SRCU implementation.
[ 0.057640][ T1] EFI services will not be available.
[ 0.062365][ T1] smp: Bringing up secondary CPUs ...
[ 0.067938][ T0] Detected VIPT I-cache on CPU1
[ 0.067965][ T0] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[ 0.068010][ T0] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.068568][ T0] Detected VIPT I-cache on CPU2
[ 0.068587][ T0] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[ 0.068614][ T0] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.069167][ T0] Detected VIPT I-cache on CPU3
[ 0.069187][ T0] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[ 0.069213][ T0] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.069288][ T1] smp: Brought up 1 node, 4 CPUs
[ 0.131009][ T1] SMP: Total of 4 processors activated.
[ 0.136419][ T1] CPU features: detected: 32-bit EL0 Support
[ 0.142303][ T1] CPU features: detected: CRC32 instructions
[ 0.148150][ T1] CPU features: detected: 32-bit EL1 Support
[ 0.154020][ T1] CPU features: detected: Protected KVM
[ 0.159494][ T1] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[ 0.181379][ T1] CPU: All CPU(s) started at EL2
[ 0.183347][ T14] alternatives: patching kernel code
[ 0.198620][ T1] Registered cp15_barrier emulation handler
[ 0.201558][ T1] Registered setend emulation handler
[ 0.206796][ T1] KASLR disabled due to lack of seed
[ 0.212109][ T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.222470][ T1] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.263632][ T1] pinctrl core: initialized pinctrl subsystem
[ 0.267904][ T1] NET: Registered protocol family 16
[ 0.274610][ T1] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.279870][ T1] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.288470][ T1] audit: initializing netlink subsys (disabled)
[ 0.294678][ T36] audit: type=2000 audit(0.208:1): state=initialized audit_enabled=0 res=1
[ 0.295212][ T1] thermal_sys: Registered thermal governor 'step_wise'
[ 0.302966][ T1] thermal_sys: Registered thermal governor 'user_space'
[ 0.309697][ T1] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.316759][ T1] cpuidle: using governor menu
[ 0.328869][ T1] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.336033][ T1] ASID allocator initialised with 65536 entries
[ 0.342219][ T1] Serial: AMBA PL011 UART driver
[ 0.346947][ T1] imx mu driver is registered.
[ 0.351543][ T1] imx rpmsg driver is registered.
[ 0.357238][ T1] printk: console [ramoops-1] enabled
[ 0.361677][ T1] pstore: Registered ramoops as persistent store backend
[ 0.368590][ T1] ramoops: using 0x100000@0xbdf00000, ecc: 0
[ 0.385182][ T1] imx8mm-pinctrl 30330000.pinctrl: Invalid fsl,pins or pins property in node /soc@0/bus@30000000/pinctrl@30330000/ir-recv
[ 0.394950][ T1] imx8mm-pinctrl 30330000.pinctrl: Invalid fsl,pins or pins property in node /soc@0/bus@30000000/pinctrl@30330000/csi_pwn_grp
[ 0.407899][ T1] imx8mm-pinctrl 30330000.pinctrl: Invalid fsl,pins or pins property in node /soc@0/bus@30000000/pinctrl@30330000/csi_rst_grp
[ 0.420839][ T1] imx8mm-pinctrl 30330000.pinctrl: Invalid fsl,pins or pins property in node /soc@0/bus@30000000/pinctrl@30330000/ecspi2cs
[ 0.433608][ T1] imx8mm-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver

 
 
 
 
Please let me know if you need any more of the boot log from the original device firmware to help troubleshoot this. It came with an Android image flashed and I am attempting to flash the default linux image to this board instead.
0 项奖励
回复
1 回复

346 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @SpencerLommel!

Thank you for reaching out to NXP Support!

Could you please let us know which board you're using?

Please note that the prebuilt images we provide are intended specifically for our EVK boards. For custom hardware, you’ll need to port our BSP to your platform by following the steps outlined in our Porting Guide.

If you're using a third-party development board, the software support should typically be provided by the manufacturer of that board.

 

Best regards,
Chavira

0 项奖励
回复