iMX8 Nano EVK CPU hang with U-boot 5.4.47_2.2.0(Works fine with U-boot 4.19.35_1.1.0)

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

iMX8 Nano EVK CPU hang with U-boot 5.4.47_2.2.0(Works fine with U-boot 4.19.35_1.1.0)

2,363 Views
kyungjun
Contributor I


Hi,

I'm facing an CPU hang issue while testing U-boot/ATF 5.4.47 on iMX8M Nano EVK.
(It happens every time I reset)

I confirmed it boots up all the way to Linux prompt with U-boot/ATF 4.19.35).

I just switched "flash.bin" with everything other unchanged.

Please give some clues if any.


Log(CPU hang?)

U-Boot SPL 2020.04-00009-gffc3fbe7e5 (Jan 08 2021 - 20:36:24 -0500)
power_bd71837_init
DDRINFO: start DRAM init
DDRINFO: DRAM rate 2400MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from BOOTROM
image offset 0x8000, pagesize 0x200, ivt offset 0x0
NOTICE: BL31: v2.2(release):rel_imx_5.4.47_2.2.0-0-gc949a888e
NOTICE: BL31: Built : 02:04:43, Jan 9 2021


U-Boot 2020.04-00009-gffc3fbe7e5 (Jan 08 2021 - 20:36:24 -0500)

CPU: i.MX8MNano Quad rev1.0 1500 MHz (running at 1200 MHz)
CPU: Commercial temperature grade (0C to 95C) at 40C
Reset cause: POR
Model: NXP i.MX8MNano 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]
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... Run CMD11 1.8V switch
OK
[*]-Video Link 0Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
failed to get any video link display timings
probe video device failed, ret -22

[0] lcd-controller@32e00000, video
[1] dsi_controller@32e10000, video_bridge
[2] adv7535@3d, panel
Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
failed to get any video link display timings
probe video device failed, ret -22
In: serial
Out: serial
Err: serial

BuildInfo:
- ATF c949a88
- U-Boot 2020.04-00009-gffc3fbe7e5

Run CMD11 1.8V switch
switch to partitions #0, OK
mmc1 is current device
flash target is MMC:1
Run CMD11 1.8V switch
Net: eth0: ethernet@30be0000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
Run CMD11 1.8V switch
switch to partitions #0, OK
mmc1 is current device
Run CMD11 1.8V switch
23376384 bytes read in 317 ms (70.3 MiB/s)
Booting from mmc ...
41771 bytes read in 15 ms (2.7 MiB/s)
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
Using Device Tree in place at 0000000043000000, end 000000004300d32a
Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
failed to get any video link display timings
probe video device failed, ret -22

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.98-2.3.3+gdc4ba17dfdb7 (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP PREEMPT Tue Jul 21 12:04:05 UTC 2020
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] Machine model: NXP i.MX8MNano DDR4 EVK board
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000078000000, size 640 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x00000000bfffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xbffbda80-0xbffbf87f]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x00000000b7ffffff]
[ 0.000000] node 0: [mem 0x00000000b8400000-0x00000000bfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 24 pages/cpu @ffff80007ff58000 s57624 r8192 d32488 u98304
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM errata 826319, 827319, 824069
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Speculative Store Bypass Disable mitigation not required
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 515072
[ 0.000000] Policy zone: DMA
[ 0.000000] Kernel command line: console=ttymxc1,115200 root=/dev/mmcblk1p2 rootwait rw
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Memory: 1380888K/2093056K available (13692K kernel code, 1708K rwdata, 6120K rodata, 1280K init, 436K bss, 56808K reserved, 655360K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffff000000000000 - 0xffff000008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000 (129022 GB)
[ 0.000000] .text : 0xffff000008080000 - 0xffff000008de0000 ( 13696 KB)
[ 0.000000] .rodata : 0xffff000008de0000 - 0xffff0000093e0000 ( 6144 KB)
[ 0.000000] .init : 0xffff0000093e0000 - 0xffff000009520000 ( 1280 KB)
[ 0.000000] .data : 0xffff000009520000 - 0xffff0000096cb200 ( 1709 KB)
[ 0.000000] .bss : 0xffff0000096cb200 - 0xffff000009738240 ( 437 KB)
[ 0.000000] fixed : 0xffff7dfffe7f9000 - 0xffff7dfffec00000 ( 4124 KB)
[ 0.000000] PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffff7e0000000000 - 0xffff800000000000 ( 2048 GB maximum)
[ 0.000000] 0xffff7e0000000000 - 0xffff7e0002000000 ( 32 MB actual)
[ 0.000000] memory : 0xffff800000000000 - 0xffff800080000000 ( 2048 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: no VLPI support, no direct LPI support
[ 0.000000] ITS: No ITS available, not enabling LPIs
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
[ 0.000000] i.MX8MN clock driver init done
[ 0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[ 0.000003] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[ 0.000505] system counter timer init
[ 0.000543] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[ 0.000550] clocksource: imx sysctr: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[ 0.001284] Console: colour dummy device 80x25
[ 0.001332] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[ 0.001342] pid_max: default: 32768 minimum: 301
[ 0.001410] Security Framework initialized
[ 0.002165] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.002546] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.002573] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.002590] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.015998] ASID allocator initialised with 32768 entries
[ 0.023999] Hierarchical SRCU implementation.
[ 0.032445] Cannot find MU entry in device tree
[ 0.032556] CPU identified as i.MX8MN, unknown revision
[ 0.033175] EFI services will not be available.
[ 0.040037] smp: Bringing up secondary CPUs ...
[ 0.068155] Detected VIPT I-cache on CPU1
[ 0.068179] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[ 0.068203] CPU1: Booted secondary processor [410fd034]
[ 0.096201] Detected VIPT I-cache on CPU2
[ 0.096219] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[ 0.096233] CPU2: Booted secondary processor [410fd034]
[ 0.124259] Detected VIPT I-cache on CPU3
[ 0.124275] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[ 0.124291] CPU3: Booted secondary processor [410fd034]
[ 0.124345] smp: Brought up 1 node, 4 CPUs
[ 0.124369] SMP: Total of 4 processors activated.
[ 0.124375] CPU features: detected feature: GIC system register CPU interface
[ 0.124381] CPU features: detected feature: 32-bit EL0 Support
[ 0.124387] CPU features: detected feature: Kernel page table isolation (KPTI)
[ 0.129078] CPU: All CPU(s) started at EL2
[ 0.129096] alternatives: patching kernel code
[ 0.130080] devtmpfs: initialized
[ 0.134907] random: get_random_u32 called from bucket_table_alloc+0x108/0x260 with crng_init=0
[ 0.135397] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.135433] futex hash table entries: 1024 (order: 5, 131072 bytes)
[ 0.151298] pinctrl core: initialized pinctrl subsystem
[ 0.152701] DMI not present or invalid.
[ 0.152994] NET: Registered protocol family 16
[ 0.154464] cpuidle: using governor menu
[ 0.155122] vdso: 2 pages (1 code @ ffff000008de6000, 1 data @ ffff000009524000)
[ 0.155136] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.161820] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.162639] Serial: AMBA PL011 UART driver
[ 0.162780] imx rpmsg driver is registered.
[ 0.167073] imx8mn-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver
[ 0.187868] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.193768] ACPI: Interpreter disabled.
[ 0.195249] vgaarb: loaded
[ 0.195519] SCSI subsystem initialized
[ 0.195921] usbcore: registered new interface driver usbfs
[ 0.195966] usbcore: registered new interface driver hub
[ 0.196030] usbcore: registered new device driver usb
[ 0.196372] usb_phy_generic usbphynop1: usbphynop1 supply vcc not found, using dummy regulator
[ 0.200802] bd71837 0-004b: Device ID=0xA1
[ 0.200812] bd71837 0-004b: gpio_intr = 3
[ 0.200820] bd71837 0-004b: chip_irq=63
[ 0.212786] bd71837-pmic bd71837-pmic: regulator register name 'buck1'
[ 0.232966] bd71837-pmic bd71837-pmic: regulator register name 'buck2'
[ 0.252963] bd71837-pmic bd71837-pmic: regulator register name 'buck3'
[ 0.264990] bd71837-pmic bd71837-pmic: regulator register name 'buck4'
[ 0.277020] bd71837-pmic bd71837-pmic: regulator register name 'buck5'
[ 0.289046] bd71837-pmic bd71837-pmic: regulator register name 'buck6'
[ 0.301069] bd71837-pmic bd71837-pmic: regulator register name 'buck7'
[ 0.313112] bd71837-pmic bd71837-pmic: regulator register name 'buck8'
[ 0.325126] bd71837-pmic bd71837-pmic: regulator register name 'ldo1'
[ 0.345165] bd71837-pmic bd71837-pmic: regulator register name 'ldo2'
[ 0.353165] bd71837-pmic bd71837-pmic: regulator register name 'ldo3'
[ 0.373232] bd71837-pmic bd71837-pmic: regulator register name 'ldo4'
[ 0.385259] bd71837-pmic bd71837-pmic: regulator register name 'ldo5'
[ 0.397283] bd71837-pmic bd71837-pmic: regulator register name 'ldo6'
[ 0.417346] bd71837-pmic bd71837-pmic: regulator register name 'ldo7'
[ 0.441354] i2c i2c-0: IMX I2C adapter registered
[ 0.441367] i2c i2c-0: can't use DMA, using PIO instead.
[ 0.442045] i2c i2c-1: IMX I2C adapter registered
[ 0.442058] i2c i2c-1: can't use DMA, using PIO instead.
[ 0.442604] pca953x 2-0020: 2-0020 supply vcc not found, using dummy regulator
[ 0.461669] random: fast init done
[ 0.518060] i2c i2c-2: IMX I2C adapter registered
[ 0.518070] i2c i2c-2: can't use DMA, using PIO instead.
[ 0.519034] media: Linux media interface: v0.10
[ 0.519074] Linux video capture interface: v2.00
[ 0.519231] pps_core: LinuxPPS API ver. 1 registered
[ 0.519237] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.519260] PTP clock support registered
[ 0.519461] EDAC MC: Ver: 3.0.0
[ 0.519721] dmi: Firmware registration failed.
[ 0.520333] Advanced Linux Sound Architecture Driver Initialized.
[ 0.520797] Bluetooth: Core ver 2.22
[ 0.520832] NET: Registered protocol family 31
[ 0.520838] Bluetooth: HCI device and connection manager initialized
[ 0.520847] Bluetooth: HCI socket layer initialized
[ 0.520854] Bluetooth: L2CAP socket layer initialized
[ 0.520874] Bluetooth: SCO socket layer initialized
[ 0.521574] clocksource: Switched to clocksource arch_sys_counter
[ 0.521696] VFS: Disk quotas dquot_6.6.0
[ 0.521743] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.521849] pnp: PnP ACPI: disabled
[ 0.526973] NET: Registered protocol family 2
[ 0.527409] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.527560] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.527780] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.527877] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.527926] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.528054] NET: Registered protocol family 1
[ 0.528398] RPC: Registered named UNIX socket transport module.
[ 0.528403] RPC: Registered udp transport module.
[ 0.528408] RPC: Registered tcp transport module.
[ 0.528413] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.529147] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 0.529444] kvm [1]: 8-bit VMID
[ 0.530348] kvm [1]: GICv3: no GICV resource entry
[ 0.530355] kvm [1]: disabling GICv2 emulation
[ 0.530379] kvm [1]: GIC system register CPU interface enabled
[ 0.530445] kvm [1]: vgic interrupt IRQ1
[ 0.530517] kvm [1]: Hyp mode initialized successfully
[ 0.532668] audit: initializing netlink subsys (disabled)
[ 0.532765] audit: type=2000 audit(0.528:1): state=initialized audit_enabled=0 res=1
[ 0.533043] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[ 0.538277] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.538788] NFS: Registering the id_resolver key type
[ 0.538806] Key type id_resolver registered
[ 0.538815] Key type id_legacy registered
[ 0.538824] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.538844] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.539266] 9p: Installing v9fs 9p2000 file system support
[ 0.543835] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 0.543850] io scheduler noop registered
[ 0.543965] io scheduler cfq registered (default)
[ 0.543972] io scheduler mq-deadline registered
[ 0.543977] io scheduler kyber registered
[ 0.555770] imx-sdma 302c0000.sdma: no iram assigned, using external mem
[ 0.557762] imx-sdma 302c0000.sdma: Falling back to user helper
[ 0.559803] imx-sdma 30bd0000.sdma: no iram assigned, using external mem
[ 0.564973] mxs-dma 33000000.dma-apbh: initialized
[ 0.566799] Bus freq driver module loaded
[ 0.573717] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.575902] SuperH (H)SCI(F) driver initialized
[ 0.576665] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 38, base_baud = 5000000) is a IMX
[ 0.577390] 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 39, base_baud = 5000000) is a IMX
[ 0.577977] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 40, base_baud = 1500000) is a IMX
[ 1.753801] console [ttymxc1] enabled
[ 1.758328] msm_serial: driver initialized
[ 1.767846] adv7511 1-003d: 1-003d supply avdd not found, using dummy regulator
[ 1.775234] adv7511 1-003d: 1-003d supply dvdd not found, using dummy regulator
[ 1.782584] adv7511 1-003d: 1-003d supply pvdd not found, using dummy regulator
[ 1.789928] adv7511 1-003d: 1-003d supply a2vdd not found, using dummy regulator
[ 1.797367] adv7511 1-003d: 1-003d supply v3p3 not found, using dummy regulator
[ 1.804711] adv7511 1-003d: 1-003d supply v1p2 not found, using dummy regulator
[ 1.812583] adv7511 1-003d: Probe failed. Remote port '/mipi_dsi@32E10000' disabled
[ 1.823188] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.829846] [drm] No driver support for vblank timestamp query.
[ 1.835848] imx-drm display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
[ 1.843438] [drm] Cannot find any crtc or sizes
[ 1.848209] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 0
[ 1.861451] loop: module loaded
[ 1.868454] fsl-flexspi 30bb0000.flexspi: mt25qu256 (32768 Kbytes)
[ 1.875484] slram: not enough parameters.
[ 1.881596] spi_imx 30830000.ecspi: probed
[ 1.887711] libphy: Fixed MDIO Bus: probed
[ 1.892267] NXP PHY: loading NXP PHY driver: [autonomous mode]
[ 1.898277] tun: Universal TUN/TAP device driver, 1.6
[ 1.903526] CAN device driver interface
[ 1.909155] fec 30be0000.ethernet: 30be0000.ethernet supply phy not found, using dummy regulator
[ 1.918229] pps pps0: new PPS source ptp0
[ 1.927079] libphy: fec_enet_mii_bus: probed
[ 1.932375] fec 30be0000.ethernet eth0: registered PHC device 0
[ 1.938957] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 1.944812] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.950784] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[ 1.957761] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.963375] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[ 1.971218] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 1.977593] sky2: driver version 1.30
[ 1.983181] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.989735] ehci-pci: EHCI PCI platform driver
[ 1.994235] ehci-platform: EHCI generic platform driver
[ 1.999647] ehci-orion: EHCI orion driver
[ 2.003797] ehci-exynos: EHCI EXYNOS driver
[ 2.008119] ehci-msm: Qualcomm On-Chip EHCI Host Controller
[ 2.013808] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 2.020018] ohci-pci: OHCI PCI platform driver
[ 2.024520] ohci-platform: OHCI generic platform driver
[ 2.029907] ohci-exynos: OHCI EXYNOS driver
[ 2.034709] usbcore: registered new interface driver usb-storage
[ 2.040776] usbcore: registered new interface driver usb_ehset_test
[ 2.048193] usbmisc_imx 32e40200.usbmisc: 32e40200.usbmisc supply vbus-wakeup not found, using dummy regulator
[ 2.059025] imx_usb 32e40000.usb: 32e40000.usb supply vbus not found, using dummy regulator
[ 2.068774] input: 30370000.snvs:snvs-powerkey as /devices/platform/30370000.snvs/30370000.snvs:snvs-powerkey/input/input0
[ 2.081873] snvs_rtc 30370000.snvs:snvs-rtc-lp: rtc core: registered 30370000.snvs:snvs-rtc-lp as rtc0
[ 2.091711] i2c /dev entries driver
[ 2.097219] IR NEC protocol handler initialized
[ 2.101778] IR RC5(x/sz) protocol handler initialized
[ 2.106841] IR RC6 protocol handler initialized
[ 2.111383] IR JVC protocol handler initialized
[ 2.115922] IR Sony protocol handler initialized
[ 2.120548] IR SANYO protocol handler initialized
[ 2.125260] IR Sharp protocol handler initialized
[ 2.129976] IR MCE Keyboard/mouse protocol handler initialized
[ 2.135821] IR XMP protocol handler initialized
[ 2.142392] mxc-mipi-csi2-sam 32e30000.csi: 32e30000.csi supply mipi-phy not found, using dummy regulator
[ 2.152621] mxc-mipi-csi2-sam 32e30000.csi: lanes: 2, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 333000000
[ 2.162788] ov5640_mipi_v3 2-003c: No sensor reset pin available
[ 2.168842] ov5640_mipi_v3 2-003c: 2-003c supply DOVDD not found, using dummy regulator
[ 2.176897] ov5640_mipi_v3 2-003c: 2-003c supply DVDD not found, using dummy regulator
[ 2.184855] ov5640_mipi_v3 2-003c: 2-003c supply AVDD not found, using dummy regulator
[ 2.195111] ov5640_mipi_v3 2-003c: Read reg error: reg=300a
[ 2.200700] camera ov5640 is not found
[ 2.205207] mx8-img-md: Registered mxc_isi.0.capture as /dev/video0
[ 2.211608] mxc-isi 32e20000.isi: register m2m device success
[ 2.217517] mxc-isi 32e20000.isi: mxc_md_unregister_all unregister ISI channel[0]
[ 2.238957] imx2-wdt 30280000.wdog: timeout 60 sec (nowayout=0)
[ 2.245627] Bluetooth: HCI UART driver ver 2.3
[ 2.250089] Bluetooth: HCI UART protocol H4 registered
[ 2.255237] Bluetooth: HCI UART protocol BCSP registered
[ 2.260559] Bluetooth: HCI UART protocol ATH3K registered
[ 2.265970] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 2.272379] Bluetooth: HCI UART protocol Broadcom registered
[ 2.278055] Bluetooth: HCI UART protocol QCA registered
[ 2.284578] sdhci: Secure Digital Host Controller Interface driver
[ 2.290789] sdhci: Copyright(c) Pierre Ossman
[ 2.295433] Synopsys Designware Multimedia Card Interface Driver
[ 2.302509] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.309066] mmc0: CQHCI version 5.10
[ 2.312732] sdhci-esdhc-imx 30b40000.mmc: allocated mmc-pwrseq
[ 2.365933] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA
[ 2.373627] mmc1: CQHCI version 5.10
[ 2.377941] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[ 2.422059] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[ 2.429219] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.430258] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
[ 2.443119] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.444639] mmc2: CQHCI version 5.10
[ 2.454875] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ 2.463242] mmc0: queuing unknown CIS tuple 0x80 (6 bytes)
[ 2.501899] mmc2: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA
[ 2.517139] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.524005] caam 30900000.caam: ERA source: CCBVID.
[ 2.539215] caam 30900000.caam: device ID = 0x0a16040100000100 (Era 9)
[ 2.541020] mmc0: new ultra high speed SDR104 SDIO card at address 0001
[ 2.545768] caam 30900000.caam: job rings = 3, qi = 0, dpaa2 = no
[ 2.568891] caam algorithms registered in /proc/crypto
[ 2.576980] caam_jr 30901000.jr0: registering rng-caam
[ 2.582263] caam 30900000.caam: caam pkc algorithms registered in /proc/crypto
[ 2.590911] platform caam_sm: blkkey_ex: 2 keystore units available
[ 2.597525] caam 30900000.caam: SM test passed
[ 2.602341] caam-snvs 30370000.caam-snvs: can't get snvs clock
[ 2.608222] caam-snvs 30370000.caam-snvs: violation handlers armed - non-secure state
[ 2.616731] usbcore: registered new interface driver usbhid
[ 2.622333] usbhid: USB HID core driver
[ 2.652753] fsl-micfil-dai 30080000.micfil: GET IRQ: 15
[ 2.658047] fsl-micfil-dai 30080000.micfil: GET IRQ: 16
[ 2.659843] mmc2: Command Queue Engine enabled
[ 2.663333] fsl-micfil-dai 30080000.micfil: GET IRQ: 17
[ 2.663345] fsl-micfil-dai 30080000.micfil: GET IRQ: 18
[ 2.667817] mmc2: new HS400 Enhanced strobe MMC card at address 0001
[ 2.675416] imx-wm8524 sound-wm8524: wm8524-hifi <-> 30030000.sai mapping ok
[ 2.678910] mmcblk2: mmc2:0001 DG4016 14.7 GiB
[ 2.696497] mmcblk2boot0: mmc2:0001 DG4016 partition 1 4.00 MiB
[ 2.696657] mmc1: host does not support reading read-only switch, assuming write-enable
[ 2.702697] mmcblk2boot1: mmc2:0001 DG4016 partition 2 4.00 MiB
[ 2.716645] mmcblk2rpmb: mmc2:0001 DG4016 partition 3 4.00 MiB
[ 2.727008] imx-wm8524 sound-wm8524: snd-soc-dummy-dai <-> 300c0000.easrc mapping ok
[ 2.734879] imx-wm8524 sound-wm8524: wm8524-hifi <-> 30030000.sai mapping ok
[ 2.742002] imx-wm8524 sound-wm8524: ASoC: no DMI vendor name!
[ 2.749101] Alternate GPT is invalid, using primary GPT.
[ 2.754479] mmcblk2: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15
[ 2.766021] imx-spdif sound-spdif: snd-soc-dummy-dai <-> 30090000.spdif mapping ok
[ 2.773630] imx-spdif sound-spdif: ASoC: no DMI vendor name!
[ 2.780594] imx-micfil sound-micfil: snd-soc-dummy-dai <-> 30080000.micfil mapping ok
[ 2.788512] imx-micfil sound-micfil: ASoC: no DMI vendor name!
[ 2.796095] NET: Registered protocol family 26
[ 2.800994] NET: Registered protocol family 10
[ 2.806113] Segment Routing with IPv6
[ 2.809852] NET: Registered protocol family 17
[ 2.814327] can: controller area network core (rev 20170425 abi 9)
[ 2.820560] NET: Registered protocol family 29
[ 2.825016] can: raw protocol (rev 20170425)
[ 2.829299] can: broadcast manager protocol (rev 20170425 t)
[ 2.834974] can: netlink gateway (rev 20170425) max_hops=1
[ 2.839794] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
[ 2.840924] Bluetooth: RFCOMM TTY layer initialized
[ 2.847705] mmcblk1: mmc1:aaaa SR32G 29.7 GiB
[ 2.851973] Bluetooth: RFCOMM socket layer initialized
[ 2.858497] mmcblk1: p1 p2
[ 2.861599] Bluetooth: RFCOMM ver 1.11
[ 2.868113] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 2.873440] Bluetooth: BNEP filters: protocol multicast
[ 2.878682] Bluetooth: BNEP socket layer initialized
[ 2.883661] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 2.889593] Bluetooth: HIDP socket layer initialized
[ 2.894613] lib80211: common routines for IEEE802.11 drivers
[ 2.900315] 9pnet: Installing 9P2000 support
[ 2.904646] Key type dns_resolver registered
[ 2.911742] registered taskstats version 1
[ 2.922981] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 500000 KHz
[ 2.932305] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 1200000 KHz

 

 

How to make flash.bin

 

  1. Download and Build u-boot:

mkdir imx-boot-bin

cd imx-boot-bin

git clone https://source.codeaurora.org/external/imx/uboot-imx.git

cd uboot-imx/

git checkout -b imx_v2020.04_5.4.47_2.2.0 origin/imx_v2020.04_5.4.47_2.2.0

source /opt/fsl-imx-xwayland/5.4-zeus/environment-setup-aarch64-poky-linux

export ARCH=arm64

make clean

make imx8mn_ddr4_evk_defconfig

make

 

  1.    Download and build the ARM Trusted Firmware

cd ..

git clone https://source.codeaurora.org/external/imx/imx-atf.git

cd imx-atf/

git checkout -b imx_5.4.47_2.2.0 origin/imx_5.4.47_2.2.0

make PLAT=imx8mn bl31

 

If you run into this error:

 

aarch64-poky-linux-ld.bfd: unrecognized option '-Wl,-O1'

aarch64-poky-linux-ld.bfd: use the --help option for usage information

make: *** [Makefile:712: build/imx8mm/release/bl31/bl31.elf] Error 1

 

try:

unset LDFLAGS

make PLAT=imx8mm bl31

 

 

  1. Download the LPDDR4 training binaries

cd ..

mkdir firmware-imx

cd firmware-imx

wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.5.bin

chmod a+x firmware-imx-8.5.bin

./firmware-imx-8.5.bin

 

 

  1. Download imx-mkimage and build the boot image

cd ..

git clone https://source.codeaurora.org/external/imx/imx-mkimage.git

cd imx-mkimage/

git checkout -b imx_5.4.47_2.2.0 origin/imx_5.4.47_2.2.0

 

 

cp ../uboot-imx/spl/u-boot-spl.bin iMX8M/

cp ../uboot-imx/u-boot-nodtb.bin iMX8M/

cp ../imx-atf/build/imx8mn/release/bl31.bin iMX8M/

cp ../uboot-imx/arch/arm/dts/imx8mn-ddr4-evk.dtb iMX8M/

cp ../firmware-imx/firmware-imx-8.5/firmware/ddr/synopsys/lpddr4_pmu_train_* iMX8M/

cp .././firmware-imx/firmware-imx-8.5/firmware/ddr/synopsys/ddr4_imem_1d_201810.bin iMX8M

cp .././firmware-imx/firmware-imx-8.5/firmware/ddr/synopsys/ddr4_dmem_1d_201810.bin iMX8M

cp .././firmware-imx/firmware-imx-8.5/firmware/ddr/synopsys/ddr4_imem_2d_201810.bin iMX8M

cp .././firmware-imx/firmware-imx-8.5/firmware/ddr/synopsys/ddr4_dmem_2d_201810.bin iMX8M

cp ../uboot-imx/tools/mkimage iMX8M/mkimage_uboot

make SOC=iMX8MN flash_ddr4_evk

 

Output binary is on ./iMX8M/flash.bin

 

0 Kudos
4 Replies

2,351 Views
igorpadykov
NXP Employee
NXP Employee

Hi kyungjun

 

uboot and linux versions should be aligned, as described in linux release note document on link

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

So for U-boot 5.4.47_2.2.0 recommended to use L5.4.47_2.2.0

https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.47_2.2.0

 

Best regards
igor

0 Kudos

2,216 Views
simon_pettersso
Contributor II

Hi Igor!

 

Can you please explain the technical details for why u-boot is particular about what kernel version it boots?

 

Kind regards

Simon

0 Kudos

2,205 Views
kyungjun
Contributor I

I would appreciate any help from you and Igor

Thanks

0 Kudos

2,139 Views
owen_wen
Contributor III

did you fix the problem after change to L5.4.47_2.2.0?

0 Kudos