How to generate imx-mkimage source for burning M33 flash.bin to SD/eMMC using UUU?

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

How to generate imx-mkimage source for burning M33 flash.bin to SD/eMMC using UUU?

跳至解决方案
1,122 次查看
WJianQ_CN
Contributor II

Hello, NXP engineers. On our development board, we are trying to burn the iMX93 M33 core program to eMMC using the UUU tool. however, there are some problems in the process.

Background of the problem:
1. Have taken boot image and imx-mkimage source repository from iMX93 Linux BSP version and put the content into imx-mkimage-lf-6.1.22_2.0.0/iMX9 boot image folder.
2. We used \SDK_2_14_0_MCIMX93-EVK\boards\mcimx93evk\demo_apps\hello_world project's sdk20-app.bin to generate the iMX93 M33's flash. bin file using imx-mkimage's single boot mode. bin file.
3. Both the NXP evaluation board and our development board have 2GB DDR memory, but there are different DDR data line sequences.
4. In the NXP document "Getting Started with MCUXpresso SDK for MCIMX93-EVK.pdf", there are related burning steps in chapter 7 section.

Problem Description:
After writing the flash.bin file to the eMMC memory using the NXP evaluation board, the M33 core and the A55 core boot in eMMC boot mode without any problems. However, after performing the same operation on our development board, the M33 core can work normally, but the A55 core will be stuck in eMMC boot mode. On our side, we analyze that there should be a problem with the iMX9 boot image folder, and some files may need to be modified. Below is the contents of the system printout logo when the problem occurs:

M33 core boot logo:

hello world.

A55 core boot logo:

U-Boot SPL 2023.04 (Oct 27 2023 - 14:07:21 +0800)
SOC: 0xa0009300
LC: 0x40010
PMIC: Over Drive Voltage Mode
DDR: 3733MTS
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x0, pagesize 0x200, ivt offset 0x0
Load image from 0x48800 by ROM_API
NOTICE: BL31: v2.6(release):lf-6.1.1-1.0.0-0-g616a4588f
NOTICE: BL31: Built : 10:31:38, Mar 1 2023


U-Boot 2023.04 (Oct 27 2023 - 14:07:21 +0800)

CPU: i.MX93(52) rev1.0 1700 MHz (running at 1692 MHz)
CPU: Consumer temperature grade (0C to 95C) at 38C
Reset cause: POR (0x1)
Model: NXP i.MX93 11X11 EVK board
DRAM: 2 GiB
Core: 199 devices, 28 uclasses, devicetree: separate
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

[*]-Video Link 0fail to get display timings
probe video device failed, ret -22

[0] lcd-controller@4ae30000, video
[1] dsi@4ae10000, video_bridge
fail to get display timings
probe video device failed, ret -22
In: serial
Out: serial
Err: serial

BuildInfo:
- ELE firmware version 0.0.9-9df0f503

switch to partitions #0, OK
mmc0(part 0) is current device
UID: 0x1d46516e 0xa9410d98 0x93a276bd 0xe691bc10
flash target is MMC:0
Net:
Warning: ethernet@428a0000 (eth1) using random MAC address - ee:53:52:12:2e:72

Warning: ethernet@42890000 (eth0) using random MAC address - b6:be:f2:d3:5b:59
eth0: ethernet@42890000, eth1: ethernet@428a0000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
43801 bytes read in 1 ms (41.8 MiB/s)
Working FDT set to 83000000
MMC: no card present
No EFI system partition
No EFI system partition
Failed to persist EFI variables
fail to get display timings
BootOrder not defined
EFI boot manager: Cannot load any image
MMC: no card present
starting USB...
Bus usb@4c100000: Port not available.
Bus usb@4c200000: USB EHCI 1.00
scanning bus usb@4c200000 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
Running BSP bootcmd ...
switch to partitions #0, OK
mmc0(part 0) is current device
Failed to load 'boot.scr'
32117248 bytes read in 96 ms (319.1 MiB/s)
Booting from mmc ...
43801 bytes read in 2 ms (20.9 MiB/s)
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Working FDT set to 83000000
Using Device Tree in place at 0000000083000000, end 000000008300db18
Working FDT set to 83000000
fail to get display timings
probe video device failed, ret -22

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[ 0.000000] Linux version 6.1.1+g29549c7073bf (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0.20220819) #1 SMP PREEMPT Thu Mar 2 14:54:17 UTC 2023
[ 0.000000] Machine model: NXP i.MX93 11X11 EVK board
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000b0000000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4020000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vdevbuffer@a4020000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4120000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node ele-reserved@a4120000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000c0000000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node ethosu_region@C0000000, compatible id shared-dma-pool
[ 0.000000] earlycon: lpuart32 at MMIO32 0x0000000044380000 (options '')
[ 0.000000] printk: bootconsole [lpuart32] enabled
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x00000000ffffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xffbc4700-0xffbc6fff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x00000000a3ffffff]
[ 0.000000] node 0: [mem 0x00000000a4000000-0x00000000a421ffff]
[ 0.000000] node 0: [mem 0x00000000a4220000-0x00000000ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000ffffffff]
[ 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.2
[ 0.000000] percpu: Embedded 20 pages/cpu s44520 r8192 d29208 u81920
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: Virtualization Host Extensions
[ 0.000000] CPU features: detected: Qualcomm erratum 1009, or ARM erratum 1286807, 2441009
[ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Fallback order for Node 0: 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096
[ 0.000000] Policy zone: DMA
[ 0.000000] Kernel command line: console=ttyLP0,115200 earlycon root=/dev/mmcblk0p2 rootwait rw
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] Memory: 1498248K/2097152K available (19584K kernel code, 1604K rwdata, 6712K rodata, 3328K init, 644K bss, 74616K reserved, 524288K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 960 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: GICv3 features: 16 PPIs
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000048040000
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.008310] Console: colour dummy device 80x25
[ 0.012542] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.022720] pid_max: default: 32768 minimum: 301
[ 0.027349] LSM: Security Framework initializing
[ 0.031979] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.039276] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.047778] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.054042] cblist_init_generic: Setting adjustable number of callback queues.
[ 0.061027] cblist_init_generic: Setting shift to 1 and lim to 1.
[ 0.067106] cblist_init_generic: Setting shift to 1 and lim to 1.
[ 0.073257] rcu: Hierarchical SRCU implementation.
[ 0.077905] rcu: Max phase no-delay instances is 1000.
[ 0.083877] EFI services will not be available.
[ 0.088324] smp: Bringing up secondary CPUs ...
[ 0.093003] Detected VIPT I-cache on CPU1
[ 0.093073] cacheinfo: Unable to detect cache hierarchy for CPU 1
[ 0.093083] GICv3: CPU1: found redistributor 100 region 0:0x0000000048060000
[ 0.093119] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[ 0.093207] smp: Brought up 1 node, 2 CPUs
[ 0.120626] SMP: Total of 2 processors activated.
[ 0.125300] CPU features: detected: 32-bit EL0 Support
[ 0.130423] CPU features: detected: 32-bit EL1 Support
[ 0.135527] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[ 0.144103] CPU features: detected: Common not Private translations
[ 0.150342] CPU features: detected: CRC32 instructions
[ 0.155457] CPU features: detected: RCpc load-acquire (LDAPR)
[ 0.161175] CPU features: detected: LSE atomic instructions
[ 0.166722] CPU features: detected: Privileged Access Never
[ 0.172268] CPU features: detected: RAS Extension Support
[ 0.177645] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[ 0.184624] CPU: All CPU(s) started at EL2
[ 0.188650] alternatives: applying system-wide alternatives
[ 0.198491] devtmpfs: initialized
[ 0.206084] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.215582] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.230451] pinctrl core: initialized pinctrl subsystem
[ 0.236669] DMI not present or invalid.
[ 0.240696] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.247155] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.254061] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.261754] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.269599] audit: initializing netlink subsys (disabled)
[ 0.275126] audit: type=2000 audit(0.184:1): state=initialized audit_enabled=0 res=1
[ 0.275508] thermal_sys: Registered thermal governor 'step_wise'
[ 0.282644] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.288770] cpuidle: using governor menu
[ 0.299207] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.305813] ASID allocator initialised with 65536 entries
[ 0.311742] Serial: AMBA PL011 UART driver
[ 0.315624] imx mu driver is registered.
[ 0.319478] imx rpmsg driver is registered.
[ 0.328972] imx93-pinctrl 443c0000.pinctrl: initialized IMX pinctrl driver
[ 0.341837] platform 4ae30000.lcd-controller: Fixing up cyclic dependency with 4ae10000.dsi
[ 0.353044] KASLR disabled due to lack of seed
[ 0.368619] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.375164] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
[ 0.381737] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.388493] HugeTLB: 508 KiB vmemmap can be freed for a 32.0 MiB page
[ 0.394907] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.401666] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.407993] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.414753] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[ 0.422617] ACPI: Interpreter disabled.
[ 0.427219] iommu: Default domain type: Translated
[ 0.431844] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.438296] SCSI subsystem initialized
[ 0.442138] usbcore: registered new interface driver usbfs
[ 0.447415] usbcore: registered new interface driver hub
[ 0.452665] usbcore: registered new device driver usb
[ 0.458476] mc: Linux media interface: v0.10
[ 0.462521] videodev: Linux video capture interface: v2.00
[ 0.467978] pps_core: LinuxPPS API ver. 1 registered
[ 0.472882] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.481988] PTP clock support registered
[ 0.485989] EDAC MC: Ver: 3.0.0
[ 0.490049] FPGA manager framework
[ 0.493248] Advanced Linux Sound Architecture Driver Initialized.
[ 0.499668] Bluetooth: Core ver 2.22
[ 0.502996] NET: Registered PF_BLUETOOTH protocol family
[ 0.508273] Bluetooth: HCI device and connection manager initialized
[ 0.514598] Bluetooth: HCI socket layer initialized
[ 0.519449] Bluetooth: L2CAP socket layer initialized
[ 0.524481] Bluetooth: SCO socket layer initialized
[ 0.529683] vgaarb: loaded
[ 0.532615] clocksource: Switched to clocksource arch_sys_counter
[ 0.538640] VFS: Disk quotas dquot_6.6.0
[ 0.542388] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.549329] pnp: PnP ACPI: disabled
[ 0.557467] NET: Registered PF_INET protocol family
[ 0.562257] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.570614] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.578943] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.586605] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.594548] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[ 0.602191] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.608550] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.615149] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.622344] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.628190] RPC: Registered named UNIX socket transport module.
[ 0.633858] RPC: Registered udp transport module.
[ 0.638520] RPC: Registered tcp transport module.
[ 0.643199] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.650186] PCI: CLS 0 bytes, default 64
[ 0.654375] hw perfevents: enabled with armv8_cortex_a55 PMU driver, 7 counters available
[ 0.662832] kvm [1]: IPA Size Limit: 40 bits
[ 0.666857] kvm [1]: GICv3: no GICV resource entry
[ 0.671601] kvm [1]: disabling GICv2 emulation
[ 0.676031] kvm [1]: GIC system register CPU interface enabled
[ 0.681872] kvm [1]: vgic interrupt IRQ9
[ 0.685783] kvm [1]: VHE mode initialized successfully
[ 0.691740] Initialise system trusted keyrings
[ 0.696104] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[ 0.706502] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.712540] NFS: Registering the id_resolver key type
[ 0.717368] Key type id_resolver registered
[ 0.721488] Key type id_legacy registered
[ 0.725523] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.732148] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.739527] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.745834] 9p: Installing v9fs 9p2000 file system support
[ 0.776670] Key type asymmetric registered
[ 0.780493] Asymmetric key parser 'x509' registered
[ 0.785388] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[ 0.792721] io scheduler mq-deadline registered
[ 0.797224] io scheduler kyber registered
[ 0.805849] EINJ: ACPI disabled.
[ 0.813687] Bus freq driver module loaded
[ 0.822623] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.840016] printk: console [ttyLP0] enabled0x44380010 (irq = 18, base_baud = 1500000) is a FSL_LPUART
[ 0.840016] printk: console [ttyLP0] enabled
[ 0.848423] printk: bootconsole [lpuart32] disabled
[ 0.848423] printk: bootconsole [lpuart32] disabled
[ 0.864250] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.873913] loop: module loaded
[ 0.878110] of_reserved_mem_lookup() returned NULL
[ 0.883035] megasas: 07.719.03.00-rc1
[ 0.888207] imx ahci driver is registered.
[ 0.895805] tun: Universal TUN/TAP device driver, 1.6
[ 0.901610] thunder_xcv, ver 1.0
[ 0.904891] thunder_bgx, ver 1.0
[ 0.908131] nicpf, ver 1.0
[ 0.911596] pps pps0: new PPS source ptp0
[ 0.918013] fec 42890000.ethernet eth0: registered PHC device 0
[ 0.925599] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[ 0.932830] hns3: Copyright (c) 2017 Huawei Corporation.
[ 0.938200] hclge is initializing
[ 0.941529] e1000: Intel(R) PRO/1000 Network Driver
[ 0.946404] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.952165] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.957120] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.963051] igb: Intel(R) Gigabit Ethernet Network Driver
[ 0.968438] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 0.974057] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 0.980312] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 0.986426] sky2: driver version 1.30
[ 0.990765] imx-dwmac 428a0000.ethernet: IRQ eth_lpi not found
[ 0.996964] imx-dwmac 428a0000.ethernet: User ID: 0x10, Synopsys ID: 0x52
[ 1.003777] imx-dwmac 428a0000.ethernet: DWMAC4/5
[ 1.008563] imx-dwmac 428a0000.ethernet: DMA HW capability register supported
[ 1.015694] imx-dwmac 428a0000.ethernet: RX Checksum Offload Engine supported
[ 1.022814] imx-dwmac 428a0000.ethernet: TX Checksum insertion supported
[ 1.029508] imx-dwmac 428a0000.ethernet: Wake-Up On Lan supported
[ 1.035641] imx-dwmac 428a0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 1.043288] imx-dwmac 428a0000.ethernet: Enabled L3L4 Flow TC (entries=8)
[ 1.050062] imx-dwmac 428a0000.ethernet: Enabled RFS Flow TC (entries=10)
[ 1.056846] imx-dwmac 428a0000.ethernet: Enabling HW TC (entries=256, max_off=256)
[ 1.064406] imx-dwmac 428a0000.ethernet: Using 32 bits DMA width
[ 1.072189] usbcore: registered new interface driver r8152
[ 1.078050] VFIO - User Level meta-driver version: 0.3
[ 1.086045] usbcore: registered new interface driver uas
[ 1.091412] usbcore: registered new interface driver usb-storage
[ 1.097483] usbcore: registered new interface driver usbserial_generic
[ 1.104018] usbserial: USB Serial support registered for generic
[ 1.110043] usbcore: registered new interface driver ftdi_sio
[ 1.115790] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 1.123122] usbcore: registered new interface driver usb_serial_simple
[ 1.129650] usbserial: USB Serial support registered for carelink
[ 1.135739] usbserial: USB Serial support registered for zio
[ 1.141398] usbserial: USB Serial support registered for funsoft
[ 1.147410] usbserial: USB Serial support registered for flashloader
[ 1.153759] usbserial: USB Serial support registered for google
[ 1.159677] usbserial: USB Serial support registered for libtransistor
[ 1.166202] usbserial: USB Serial support registered for vivopay
[ 1.172208] usbserial: USB Serial support registered for moto_modem
[ 1.178474] usbserial: USB Serial support registered for motorola_tetra
[ 1.185088] usbserial: USB Serial support registered for nokia
[ 1.190931] usbserial: USB Serial support registered for novatel_gps
[ 1.197306] usbserial: USB Serial support registered for hp4x
[ 1.203059] usbserial: USB Serial support registered for suunto
[ 1.208978] usbserial: USB Serial support registered for siemens_mpi
[ 1.215344] usbcore: registered new interface driver usb_ehset_test
[ 1.223894] bbnsm_pwrkey 44440000.bbnsm:pwrkey: KEY_POWER without setting in dts
[ 1.232167] input: 44440000.bbnsm:pwrkey as /devices/platform/soc@0/44000000.bus/44440000.bbnsm/44440000.bbnsm:pwrkey/input/input0
[ 1.246839] bbnsm_rtc 44440000.bbnsm:rtc: registered as rtc0
[ 1.252892] bbnsm_rtc 44440000.bbnsm:rtc: setting system clock to 1970-01-01T00:00:00 UTC (0)
[ 1.262208] i2c_dev: i2c /dev entries driver
[ 1.269501] imx7ulp-wdt 42490000.wdog: imx93 wdt probe
[ 1.298939] Bluetooth: HCI UART driver ver 2.3
[ 1.303396] Bluetooth: HCI UART protocol H4 registered
[ 1.308528] Bluetooth: HCI UART protocol BCSP registered
[ 1.313846] Bluetooth: HCI UART protocol LL registered
[ 1.318980] Bluetooth: HCI UART protocol ATH3K registered
[ 1.324379] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 1.330777] Bluetooth: HCI UART protocol Broadcom registered
[ 1.336447] Bluetooth: HCI UART protocol QCA registered
[ 1.343020] sdhci: Secure Digital Host Controller Interface driver
[ 1.349224] sdhci: Copyright(c) Pierre Ossman
[ 1.354103] Synopsys Designware Multimedia Card Interface Driver
[ 1.360577] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.367634] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.374611] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 1.381456] usbcore: registered new interface driver usbhid
[ 1.387044] usbhid: USB HID core driver
[ 1.392461] ethosu ethosu: assigned reserved memory node ethosu_region@C0000000
[ 1.398392] mmc0: SDHCI controller on 42850000.mmc [42850000.mmc] using ADMA
[ 1.439829] cs_system_cfg: CoreSight Configuration manager initialised
[ 1.450706] NET: Registered PF_LLC protocol family
[ 1.456166] NET: Registered PF_INET6 protocol family
[ 1.461988] Segment Routing with IPv6
[ 1.465706] In-situ OAM (IOAM) with IPv6
[ 1.469746] NET: Registered PF_PACKET protocol family
[ 1.474853] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 1.488039] Bluetooth: RFCOMM TTY layer initialized
[ 1.491457] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[ 1.492924] Bluetooth: RFCOMM socket layer initialized
[ 1.499765] mmcblk0: mmc0:0001 BJTD4R 29.1 GiB
[ 1.504399] Bluetooth: RFCOMM ver 1.11
[ 1.510172] mmcblk0: p1 p2
[ 1.512648] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.515921] mmcblk0boot0: mmc0:0001 BJTD4R 4.00 MiB
[ 1.520730] Bluetooth: BNEP filters: protocol multicast
[ 1.526571] mmcblk0boot1: mmc0:0001 BJTD4R 4.00 MiB
[ 1.530899] Bluetooth: BNEP socket layer initialized
[ 1.536639] mmcblk0rpmb: mmc0:0001 BJTD4R 4.00 MiB, chardev (234:0)
[ 1.540820] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.552972] Bluetooth: HIDP socket layer initialized
[ 1.558207] 8021q: 802.1Q VLAN Support v1.8
[ 1.562462] lib80211: common routines for IEEE802.11 drivers
[ 1.568201] 9pnet: Installing 9P2000 support
[ 1.572593] Key type dns_resolver registered
[ 1.577241] registered taskstats version 1
[ 1.581348] Loading compiled-in X.509 certificates
[ 1.600789] usb_phy_generic soc@0:usbphynop1: supply vcc not found, using dummy regulator
[ 1.609139] usb_phy_generic soc@0:usbphynop1: dummy supplies not allowed for exclusive requests
[ 1.617963] usb_phy_generic soc@0:usbphynop2: supply vcc not found, using dummy regulator
[ 1.626211] usb_phy_generic soc@0:usbphynop2: dummy supplies not allowed for exclusive requests
[ 1.644210] gpio gpiochip0: (43810080.gpio): not an immutable chip, please consider fixing it!
[ 1.653401] gpio gpiochip1: (43820080.gpio): not an immutable chip, please consider fixing it!
[ 1.662545] gpio gpiochip2: (43830080.gpio): not an immutable chip, please consider fixing it!
[ 1.671761] gpio gpiochip3: (47400080.gpio): not an immutable chip, please consider fixing it!
[ 1.686422] remoteproc remoteproc0: imx-rproc is available
[ 1.691968] remoteproc remoteproc0: attaching to imx-rproc
[ 1.697463] Internal error: synchronous external abort: 0000000096000010 [#1] PREEMPT SMP
[ 1.705621] Modules linked in:
[ 1.708673] CPU: 1 PID: 40 Comm: kworker/u4:1 Not tainted 6.1.1+g29549c7073bf #1
[ 1.716055] Hardware name: NXP i.MX93 11X11 EVK board (DT)
[ 1.721526] Workqueue: events_unbound deferred_probe_work_func
[ 1.727357] pstate: a0400009 (NzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 1.734306] pc : __memcpy+0x110/0x240
[ 1.737964] lr : kmemdup+0x50/0x70
[ 1.741361] sp : ffff80000a2a3a20
[ 1.744663] x29: ffff80000a2a3a20 x28: ffff00007fbf7c78 x27: ffff8000098ef948
[ 1.751787] x26: 0000000000000006 x25: ffff800009ff5000 x24: ffff800009ff5000
[ 1.758911] x23: 0000000000000000 x22: ffff000004e36038 x21: ffff800009ff5000
[ 1.766035] x20: 0000000000000400 x19: ffff0000049e8800 x18: 0000000000000006
[ 1.773159] x17: 000000040044ffff x16: 005000f2b5503510 x15: ffff80000a2a34d0
[ 1.780283] x14: ffff7ffffa9f3800 x13: ffff800009d32428 x12: 00000000000003cc
[ 1.787407] x11: 0000000000000144 x10: 00007fff89cf8a10 x9 : 0000000000000008
[ 1.794531] x8 : 00000000ffffffff x7 : 0000000000000cc0 x6 : 000000000000ce01
[ 1.801655] x5 : ffff0000049e8c00 x4 : ffff800009ff5400 x3 : 0000000000000000
[ 1.808779] x2 : 0000000000000400 x1 : ffff800009ff5000 x0 : ffff0000049e8800
[ 1.815904] Call trace:
[ 1.818339] __memcpy+0x110/0x240
[ 1.821649] rproc_boot+0x3d0/0x57c
[ 1.825133] rproc_add+0xcc/0x16c
[ 1.828435] imx_rproc_probe+0x45c/0x5ac
[ 1.832344] platform_probe+0x68/0xc0
[ 1.835992] really_probe+0xbc/0x2dc
[ 1.839554] __driver_probe_device+0x78/0xe0
[ 1.843810] driver_probe_device+0x3c/0x160
[ 1.847978] __device_attach_driver+0xb8/0x134
[ 1.852416] bus_for_each_drv+0x7c/0xd4
[ 1.856246] __device_attach+0x9c/0x1a0
[ 1.860068] device_initial_probe+0x14/0x20
[ 1.864237] bus_probe_device+0x98/0xa0
[ 1.868059] deferred_probe_work_func+0x80/0xc0
[ 1.872574] process_one_work+0x1d4/0x330
[ 1.876578] worker_thread+0x220/0x430
[ 1.880314] kthread+0x108/0x10c
[ 1.883529] ret_from_fork+0x10/0x20
[ 1.887103] Code: cb01000e b4fffc2e eb0201df 540004a3 (a940342c)
[ 1.893177] ---[ end trace 0000000000000000 ]---
[ 171.904621] random: crng init done

Our problem is centered on the contents of the iMX9 boot image folder. We need to solve the following problems:
1. Is it necessary to modify the image file generated by U-Boot to meet the needs of the M33 program? If so, what is the basis for the modification?
2. Do we need to modify some files in the iMX9 boot image folder according to the specific DDR data sequence of our development board? If so, how to generate the files that need to be modified?

Thank you very much for your help, looking forward to your reply, have a nice life!

理无专在, 而学无止境也, 然则问可少耶?
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,070 次查看
Harvey021
NXP TechSupport
NXP TechSupport

From the kernel crash, it is memcpy, which may be a problem with the DDR address. You can try printing to see which address memcpy copied from to that address, and whether this address is out of bounds in your 2GB DDR address.

 

Best regards

Harvey

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,071 次查看
Harvey021
NXP TechSupport
NXP TechSupport

From the kernel crash, it is memcpy, which may be a problem with the DDR address. You can try printing to see which address memcpy copied from to that address, and whether this address is out of bounds in your 2GB DDR address.

 

Best regards

Harvey

0 项奖励
回复
1,028 次查看
WJianQ_CN
Contributor II
Thank you for your response. I have resolved the issue. The reason was that our board design did not include a USB host-to-device switching circuit, so removing the "usb-role-switch" property from the device tree was sufficient.
理无专在, 而学无止境也, 然则问可少耶?
0 项奖励
回复