How can I update my customized U-Boot to the i.mx9352 board? What are the procedures for erasing and

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

How can I update my customized U-Boot to the i.mx9352 board? What are the procedures for erasing and

4,237 次查看
orange-bear
Contributor I

My dear NXP, I would like to inquire about the process of updating the custom-modified U-Boot onto the board for i.mx9352. Could you please provide guidance on how to erase and flash the board with my own version of U-Boot?

On i.MX 93, multiple elements are needed:
• imx-boot (built by imx-mkimage), which includes SPL, U-Boot, Arm Trusted Firmware, OP-TEE, Sentinel
Firmware, DDR PHY Firmware

I currently do not want to modify SPL, Arm Trusted Firmware, OP-TEE, Sentinel Firmware, DDR PHY Firmware, but only make changes to u-boot. Which file generated by compiling u-boot needs to be updated in the partition of the board? Are there any instructions I can refer to? For i.mx6u, the reference instruction is ‘dd if=u-boot-imx6ull-14x14-ddr512-emmc.imx of=/dev/mmcblk1boot0 bs=1024 seek=1 conv=fsync’. So, what is the u-boot update instruction for i.mx93? I look forward to your reply. Thank you and have a pleasant life.

0 项奖励
回复
7 回复数

4,191 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hi @orange-bear 

You can refer to the i.MX_Porting_Guide (Embedded Linux for i.MX Applications Processors | NXP Semiconductors)

 

Best regards

Harvey

0 项奖励
回复

4,131 次查看
orange-bear
Contributor I

Thank you for your response.

I have found that in the L6.1.1_1.0.0_MX93-BETA2/samples directory, there is a script called example_kernel_emmc.uuu that can fulfill my requirements. I am attempting to modify example_kernel_emmc.uuu to make it compatible with IMX93.

The revised example_kernel_emmc.uuu file is as follows.

uuu_version 1.2.39

# Please Replace below items with actually file names
# @_flash.bin			| boot loader, here is imx-boot-imx93evk-sd.bin-flash_singleboot
# @_Image			| kernel image, arm64 is Image, arm32 it is zImage, here is Image
# @_board.dtb			| board dtb file, here is imx93-11x11-evk.dtb
# @_initramfs.cpio.gz.uboot	| mfgtool init ramfs, here is fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.zst.u-boot
# @_rootfs.tar.zst		| rootfs, here is imx-image-multimedia-imx93evk.tar.zst
# @_uTee.tar			| optee image, put dummy _uTee.tar file here if platform is not MX6/MX7*

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f imx-boot-imx93evk-sd.bin-flash_singleboot

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -f imx-boot-imx93evk-sd.bin-flash_singleboot

# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f imx-boot-imx93evk-sd.bin-flash_singleboot -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-imx93evk-sd.bin-flash_singleboot -skipspl
SDPV: jump
# }

# use uboot burn bootloader to eMMC
# becaue difference chip, offset is difference
# you can use kernel to do that for specific boards
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: flash bootloader imx-boot-imx93evk-sd.bin-flash_singleboot

FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;

FB: ucmd setenv emmc_cmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
FB: ucmd if test "${emmc_skip_fb}" != "yes"; then run emmc_cmd; fi
FB: ucmd setenv emmc_cmd mmc bootbus ${emmc_dev} 2 0 1;
FB: ucmd if test "${emmc_skip_fb}" != "yes"; then run emmc_cmd; fi

FB: ucmd setenv fastboot_buffer ${loadaddr}
FB: download -f Image
FB: ucmd setenv fastboot_buffer ${fdt_addr}
FB: download -f imx93-11x11-evk.dtb
FB: ucmd setenv fastboot_buffer ${initrd_addr}
FB: download -f fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.zst.u-boot
#FB: ucmd setenv bootargs console=${console},${baudrate} earlycon=${earlycon},${baudrate}
FB: acmd ${kboot} ${loadaddr} ${initrd_addr} ${fdt_addr}

# get mmc dev number from kernel command line
# Wait for emmc
FBK: ucmd while [ ! -e /dev/mmcblk*boot0 ]; do sleep 1; echo "wait for /dev/mmcblk*boot* appear"; done;

# serach emmc device number, if your platform have more than two emmc chip, please echo dev number >/tmp/mmcdev 
FBK: ucmd dev=`ls /dev/mmcblk*boot*`; dev=($dev); dev=${dev[0]}; dev=${dev#/dev/mmcblk}; dev=${dev%boot*}; echo $dev > /tmp/mmcdev;

# dd to clear the possible MBR
FBK: ucmd mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc} bs=512 count=1
# create partition
FBK: ucmd mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; echo "$PARTSTR" | sfdisk --force /dev/mmcblk${mmc}

FBK: ucmd mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc} bs=1k seek=4096 count=1
FBK: ucmd sync
# you can enable below command to write boot partition. but offset is difference at difference platform
#FBK: ucmd mmc=`cat /tmp/mmcdev`; echo 0 > /sys/block/mmcblk${mmc}boot0/force_ro
#FBK: ucp  imx-boot-imx93evk-sd.bin-flash_singleboot t:/tmp
#FBK: ucmd mmc=`cat /tmp/mmcdev`; dd if=/tmp/imx-boot-imx93evk-sd.bin-flash_singleboot of=/dev/mmc${mmc}boot0 bs=1K seek=32
#FBK: ucmd mmc=`cat /tmp/mmcdev`; echo 1 > /sys/block/mmcblk${mmc}boot0/force_ro
FBK: ucmd mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p1 ]; do sleep 1; done
FBK: ucmd mmc=`cat /tmp/mmcdev`; mkfs.vfat /dev/mmcblk${mmc}p1
FBK: ucmd mmc=`cat /tmp/mmcdev`; mkdir -p /mnt/fat
FBK: ucmd mmc=`cat /tmp/mmcdev`; mount -t vfat /dev/mmcblk${mmc}p1 /mnt/fat
FBK: ucp  Image t:/mnt/fat
FBK: ucp  imx93-11x11-evk.dtb t:/mnt/fat
#FBK: ucp  _uTee.tar t:/tmp/op.tar
FBK: ucmd tar --no-same-owner -xf /tmp/op.tar -C /mnt/fat
FBK: ucmd umount /mnt/fat
FBK: ucmd mmc=`cat /tmp/mmcdev`; mkfs.ext3 -F -E nodiscard /dev/mmcblk${mmc}p2
FBK: ucmd mkdir -p /mnt/ext3
FBK: ucmd mmc=`cat /tmp/mmcdev`; mount /dev/mmcblk${mmc}p2 /mnt/ext3
FBK: acmd export EXTRACT_UNSAFE_SYMLINKS=1; tar --zstd --warning=no-timestamp -x -C /mnt/ext3
FBK: ucp  imx-image-multimedia-imx93evk.tar.zst t:-
FBK: Sync
FBK: ucmd umount /mnt/ext3
FBK: DONE

 

The structure of the file is represented as follows.

example_kernel_emmc.uuu                                      
Image                
imx-boot-imx93evk-sd.bin-flash_singleboot
fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.zst.u-boot  
imx93-11x11-evk.dtb  
imx-image-multimedia-imx93evk.rootfs.tar.zst

 

The log information of the burning process is as follows:

U-Boot SPL 2022.04-lf_v2022.04+g7376547b9e (Mar 01 2023 - 07:35:40 +0000)
SOC: 0xa0009300
LC: 0x40010
M33 prepare ok
Normal Boot
Trying to boot from BOOTROM
Boot Stage: USB boot
Find img info 0x&88000000, size 416
Download 1610752, Total size 1611776
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 2022.04-lf_v2022.04+g7376547b9e (Mar 01 2023 - 07:35:40 +0000)

CPU:   i.MX93(52) rev1.0 1700 MHz (running at 1692 MHz)
CPU:   Consumer temperature grade (0C to 95C) at 46C
Reset cause: POR (0x1)
Model: NXP i.MX93 11X11 EVK board
DRAM:  2 GiB
tcpc_init: Can't find device id=0x52
setup_typec: tcpc portpd init failed, err=-19
tcpc_init: Can't find device id=0x51
setup_typec: tcpc port2 init failed, err=-19
tcpc_init: Can't find device id=0x50
setup_typec: tcpc port1 init failed, err=-19
pca953x gpio@22: Error reading output register
Core:  204 devices, 28 uclasses, devicetree: separate
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from nowhere... OK
[*]-Video Link 0adv7535_mipi2hdmi hdmi@3d: Can't find cec device id=0x3c
fail to probe panel device hdmi@3d
fail to get display timings
probe video device failed, ret -19

        [0] lcd-controller@4ae30000, video
        [1] dsi@4ae10000, video_bridge
        [2] hdmi@3d, panel
adv7535_mipi2hdmi hdmi@3d: Can't find cec device id=0x3c
fail to probe panel device hdmi@3d
fail to get display timings
probe video device failed, ret -19
In:    serial
Out:   serial
Err:   serial

BuildInfo:
  - ELE firmware version 0.0.9-9df0f503

MMC: no card present
UID: 0x1d46516e 0xa9410d98 0x93a276bd 0xe691bc10
Detect USB boot. Will enter fastboot mode!
Net:   pca953x gpio@22: Error reading output register
pca953x gpio@22: Error reading output register

Warning: ethernet@42890000 (eth0) using random MAC address - d6:1f:33:20:03:1c
pca953x gpio@22: Error reading output register
pca953x gpio@22: Error reading output register

Warning: ethernet@428a0000 (eth1) using random MAC address - 22:92:db:80:d8:ea
eth0: ethernet@42890000, eth1: ethernet@428a0000 [PRIME]
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 83800000 ...
   Legacy image found
   Image Name:   fsl-image-mfgtool-initramfs-imx8
   Created:      2011-04-05  23:00:00 UTC
   Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
   Data Size:    11910836 Bytes = 11.4 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ...    Bad Data CRC
Run fastboot ...
auto usb 0
UID: 0x1d46516e 0xa9410d98 0x93a276bd 0xe691bc10
Detect USB boot. Will enter fastboot mode!
flash target is MMC:1
MMC: no card present
MMC card init failed!
MMC: no card present
** Block device MMC 1 not supported
Detect USB boot. Will enter fastboot mode!
flash target is MMC:0
Starting download of 1876992 bytes
..............
downloading of 1876992 bytes finished
writing to partition 'bootloader'
Initializing 'bootloader'
switch to partitions #1, OK
mmc0(part 1) is current device
Writing 'bootloader'

MMC write: dev # 0, block # 0, count 3666 ... 3666 blocks written: OK
Writing 'bootloader' DONE!
Detect USB boot. Will enter fastboot mode!
Detect USB boot. Will enter fastboot mode!
Detect USB boot. Will enter fastboot mode!
Detect USB boot. Will enter fastboot mode!
Set to BOOT_BUS_WIDTH = 0x2, RESET = 0x0, BOOT_MODE = 0x1
Detect USB boot. Will enter fastboot mode!
Detect USB boot. Will enter fastboot mode!
Starting download of 32117248 bytes
..........................................................................
..........................................................................
..........................................................................
.......................
downloading of 32117248 bytes finished
Detect USB boot. Will enter fastboot mode!
Starting download of 43801 bytes

downloading of 43801 bytes finished
Detect USB boot. Will enter fastboot mode!
Starting download of 11910900 bytes
..........................................................................
................
downloading of 11910900 bytes finished
## Loading init Ramdisk from Legacy Image at 83800000 ...
   Image Name:   fsl-image-mfgtool-initramfs-imx8
   Created:      2011-04-05  23:00:00 UTC
   Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
   Data Size:    11910836 Bytes = 11.4 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 0000000083000000, end 000000008300db18
adv7535_mipi2hdmi hdmi@3d: Can't find cec device id=0x3c
fail to probe panel device hdmi@3d
fail to get display timings
probe video device failed, ret -19

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] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xffbd3700-0xffbd5fff]
[    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-0x0000000095ffffff]
[    0.000000]   node   0: [mem 0x0000000098000000-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] On node 0, zone DMA: 8192 pages in unavailable ranges
[    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: Trusted OS migration not required
[    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: 507904
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: console=ttyLP0,115200 earlycon,115200 rdinit=/linuxrc clk_ignore_unused
[    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: 1453904K/2064384K available (19584K kernel code, 1604K rwdata, 6712K rodata, 3328K init, 644K bss, 86192K 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.000309] Console: colour dummy device 80x25
[    0.000364] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000373] pid_max: default: 32768 minimum: 301
[    0.000413] LSM: Security Framework initializing
[    0.000484] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000493] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.001211] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.001615] cblist_init_generic: Setting adjustable number of callback queues.
[    0.001624] cblist_init_generic: Setting shift to 1 and lim to 1.
[    0.001670] cblist_init_generic: Setting shift to 1 and lim to 1.
[    0.001788] rcu: Hierarchical SRCU implementation.
[    0.001791] rcu:     Max phase no-delay instances is 1000.
[    0.002539] EFI services will not be available.
[    0.002685] smp: Bringing up secondary CPUs ...
[    0.003029] Detected VIPT I-cache on CPU1
[    0.003095] cacheinfo: Unable to detect cache hierarchy for CPU 1
[    0.003105] GICv3: CPU1: found redistributor 100 region 0:0x0000000048060000
[    0.003142] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    0.003229] smp: Brought up 1 node, 2 CPUs
[    0.003234] SMP: Total of 2 processors activated.
[    0.003238] CPU features: detected: 32-bit EL0 Support
[    0.003240] CPU features: detected: 32-bit EL1 Support
[    0.003244] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.003247] CPU features: detected: Common not Private translations
[    0.003249] CPU features: detected: CRC32 instructions
[    0.003253] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.003255] CPU features: detected: LSE atomic instructions
[    0.003257] CPU features: detected: Privileged Access Never
[    0.003259] CPU features: detected: RAS Extension Support
[    0.003265] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.003313] CPU: All CPU(s) started at EL2
[    0.003315] alternatives: applying system-wide alternatives
[    0.007599] devtmpfs: initialized
[    0.012159] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.012179] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.020304] pinctrl core: initialized pinctrl subsystem
[    0.021503] DMI not present or invalid.
[    0.021949] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.022749] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.022890] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.022983] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.023035] audit: initializing netlink subsys (disabled)
[    0.023191] audit: type=2000 audit(0.020:1): state=initialized audit_enabled=0 res=1
[    0.023541] thermal_sys: Registered thermal governor 'step_wise'
[    0.023546] thermal_sys: Registered thermal governor 'power_allocator'
[    0.023575] cpuidle: using governor menu
[    0.023744] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.023789] ASID allocator initialised with 65536 entries
[    0.024382] Serial: AMBA PL011 UART driver
[    0.024424] imx mu driver is registered.
[    0.024435] imx rpmsg driver is registered.
[    0.029818] imx93-pinctrl 443c0000.pinctrl: initialized IMX pinctrl driver
[    0.036057] platform 4ae30000.lcd-controller: Fixing up cyclic dependency with 4ae10000.dsi
[    0.039167] KASLR disabled due to lack of seed
[    0.050510] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.050519] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
[    0.050522] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.050524] HugeTLB: 508 KiB vmemmap can be freed for a 32.0 MiB page
[    0.050527] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.050529] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[    0.050532] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.050534] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.052231] ACPI: Interpreter disabled.
[    0.053090] iommu: Default domain type: Translated
[    0.053100] iommu: DMA domain TLB invalidation policy: strict mode
[    0.053318] SCSI subsystem initialized
[    0.053622] usbcore: registered new interface driver usbfs
[    0.053650] usbcore: registered new interface driver hub
[    0.053669] usbcore: registered new device driver usb
[    0.054429] mc: Linux media interface: v0.10
[    0.054461] videodev: Linux video capture interface: v2.00
[    0.054497] pps_core: LinuxPPS API ver. 1 registered
[    0.054500] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.054508] PTP clock support registered
[    0.054601] EDAC MC: Ver: 3.0.0
[    0.055719] FPGA manager framework
[    0.055781] Advanced Linux Sound Architecture Driver Initialized.
[    0.056190] Bluetooth: Core ver 2.22
[    0.056218] NET: Registered PF_BLUETOOTH protocol family
[    0.056220] Bluetooth: HCI device and connection manager initialized
[    0.056226] Bluetooth: HCI socket layer initialized
[    0.056230] Bluetooth: L2CAP socket layer initialized
[    0.056244] Bluetooth: SCO socket layer initialized
[    0.056579] vgaarb: loaded
[    0.057072] clocksource: Switched to clocksource arch_sys_counter
[    0.057247] VFS: Disk quotas dquot_6.6.0
[    0.057275] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.057384] pnp: PnP ACPI: disabled
[    0.062200] NET: Registered PF_INET protocol family
[    0.062459] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.063693] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.063721] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.063730] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.063799] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.064220] TCP: Hash tables configured (established 16384 bind 16384)
[    0.064337] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.064375] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.064523] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.064896] RPC: Registered named UNIX socket transport module.
[    0.064902] RPC: Registered udp transport module.
[    0.064904] RPC: Registered tcp transport module.
[    0.064906] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.065481] PCI: CLS 0 bytes, default 64
[    0.065671] Unpacking initramfs...
[    0.077164] hw perfevents: enabled with armv8_cortex_a55 PMU driver, 7 counters available
[    0.077791] kvm [1]: IPA Size Limit: 40 bits
[    0.077823] kvm [1]: GICv3: no GICV resource entry
[    0.077826] kvm [1]: disabling GICv2 emulation
[    0.077840] kvm [1]: GIC system register CPU interface enabled
[    0.077945] kvm [1]: vgic interrupt IRQ9
[    0.077995] kvm [1]: VHE mode initialized successfully
[    0.079075] Initialise system trusted keyrings
[    0.079368] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[    0.083800] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.084377] NFS: Registering the id_resolver key type
[    0.084427] Key type id_resolver registered
[    0.084430] Key type id_legacy registered
[    0.084478] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.084483] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.084498] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.084799] 9p: Installing v9fs 9p2000 file system support
[    0.110306] Key type asymmetric registered
[    0.110323] Asymmetric key parser 'x509' registered
[    0.110421] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    0.110426] io scheduler mq-deadline registered
[    0.110430] io scheduler kyber registered
[    0.115631] EINJ: ACPI disabled.
[    0.121059] Bus freq driver module loaded
[    0.127423] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.130859] 44380000.serial: ttyLP0 at MMIO 0x44380010 (irq = 18, base_baud = 1500000) is a FSL_LPUART
[    0.579725] Freeing initrd memory: 11624K
[    0.587591] printk: console [ttyLP0] enabled
[    1.297743] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.307341] loop: module loaded
[    1.311565] of_reserved_mem_lookup() returned NULL
[    1.316484] megasas: 07.719.03.00-rc1
[    1.321853] imx ahci driver is registered.
[    1.329636] tun: Universal TUN/TAP device driver, 1.6
[    1.335399] thunder_xcv, ver 1.0
[    1.338673] thunder_bgx, ver 1.0
[    1.341914] nicpf, ver 1.0
[    1.345372] pps pps0: new PPS source ptp0
[    1.354869] fec 42890000.ethernet eth0: registered PHC device 0
[    1.362443] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    1.369679] hns3: Copyright (c) 2017 Huawei Corporation.
[    1.375062] hclge is initializing
[    1.378397] e1000: Intel(R) PRO/1000 Network Driver
[    1.383269] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    1.389040] e1000e: Intel(R) PRO/1000 Network Driver
[    1.394000] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.399932] igb: Intel(R) Gigabit Ethernet Network Driver
[    1.405330] igb: Copyright (c) 2007-2014 Intel Corporation.
[    1.410916] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    1.417174] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    1.423285] sky2: driver version 1.30
[    1.427579] imx-dwmac 428a0000.ethernet: IRQ eth_lpi not found
[    1.433752] imx-dwmac 428a0000.ethernet: User ID: 0x10, Synopsys ID: 0x52
[    1.440551] imx-dwmac 428a0000.ethernet:     DWMAC4/5
[    1.445333] imx-dwmac 428a0000.ethernet: DMA HW capability register supported
[    1.452455] imx-dwmac 428a0000.ethernet: RX Checksum Offload Engine supported
[    1.459578] imx-dwmac 428a0000.ethernet: TX Checksum insertion supported
[    1.466268] imx-dwmac 428a0000.ethernet: Wake-Up On Lan supported
[    1.472401] imx-dwmac 428a0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.480057] imx-dwmac 428a0000.ethernet: device MAC address 86:81:0f:94:98:19
[    1.487205] imx-dwmac 428a0000.ethernet: Enabled L3L4 Flow TC (entries=8)
[    1.493987] imx-dwmac 428a0000.ethernet: Enabled RFS Flow TC (entries=10)
[    1.500766] imx-dwmac 428a0000.ethernet: Enabling HW TC (entries=256, max_off=256)
[    1.508321] imx-dwmac 428a0000.ethernet: Using 32 bits DMA width
[    1.518225] usbcore: registered new interface driver r8152
[    1.524089] VFIO - User Level meta-driver version: 0.3
[    1.531938] usbcore: registered new interface driver uas
[    1.537317] usbcore: registered new interface driver usb-storage
[    1.543397] usbcore: registered new interface driver usbserial_generic
[    1.549930] usbserial: USB Serial support registered for generic
[    1.555949] usbcore: registered new interface driver ftdi_sio
[    1.561690] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.569004] usbcore: registered new interface driver usb_serial_simple
[    1.575530] usbserial: USB Serial support registered for carelink
[    1.581622] usbserial: USB Serial support registered for zio
[    1.587281] usbserial: USB Serial support registered for funsoft
[    1.593287] usbserial: USB Serial support registered for flashloader
[    1.599640] usbserial: USB Serial support registered for google
[    1.605559] usbserial: USB Serial support registered for libtransistor
[    1.612090] usbserial: USB Serial support registered for vivopay
[    1.618095] usbserial: USB Serial support registered for moto_modem
[    1.624358] usbserial: USB Serial support registered for motorola_tetra
[    1.630970] usbserial: USB Serial support registered for nokia
[    1.636807] usbserial: USB Serial support registered for novatel_gps
[    1.643163] usbserial: USB Serial support registered for hp4x
[    1.648922] usbserial: USB Serial support registered for suunto
[    1.654845] usbserial: USB Serial support registered for siemens_mpi
[    1.661206] usbcore: registered new interface driver usb_ehset_test
[    1.669805] bbnsm_pwrkey 44440000.bbnsm:pwrkey: KEY_POWER without setting in dts
[    1.678054] input: 44440000.bbnsm:pwrkey as /devices/platform/soc@0/44000000.bus/44440000.bbnsm/44440000.bbnsm:pwrkey/input/input0
[    1.693496] bbnsm_rtc 44440000.bbnsm:rtc: registered as rtc0
[    1.700063] bbnsm_rtc 44440000.bbnsm:rtc: setting system clock to 1970-01-01T00:40:35 UTC (2435)
[    1.709596] i2c_dev: i2c /dev entries driver
[    1.716720] imx7ulp-wdt 42490000.wdog: imx93 wdt probe
[    1.750651] Bluetooth: HCI UART driver ver 2.3
[    1.755119] Bluetooth: HCI UART protocol H4 registered
[    1.760253] Bluetooth: HCI UART protocol BCSP registered
[    1.765575] Bluetooth: HCI UART protocol LL registered
[    1.770704] Bluetooth: HCI UART protocol ATH3K registered
[    1.776103] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    1.782493] Bluetooth: HCI UART protocol Broadcom registered
[    1.788157] Bluetooth: HCI UART protocol QCA registered
[    1.794787] sdhci: Secure Digital Host Controller Interface driver
[    1.800994] sdhci: Copyright(c) Pierre Ossman
[    1.805883] Synopsys Designware Multimedia Card Interface Driver
[    1.812371] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.819532] ledtrig-cpu: registered to indicate activity on CPUs
[    1.826499] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.833373] usbcore: registered new interface driver usbhid
[    1.838953] usbhid: USB HID core driver
[    1.844379] ethosu ethosu: assigned reserved memory node ethosu_region@C0000000
[    1.850056] mmc0: SDHCI controller on 42850000.mmc [42850000.mmc] using ADMA
[    1.891274]  cs_system_cfg: CoreSight Configuration manager initialised
[    1.898992] optee: probing for conduit method.
[    1.903467] optee: revision 3.19 (ad4e8389)
[    1.903903] optee: dynamic shared memory is enabled
[    1.913286] optee: initialized driver
[    1.920587] NET: Registered PF_LLC protocol family
[    1.926018] NET: Registered PF_INET6 protocol family
[    1.931886] Segment Routing with IPv6
[    1.935621] In-situ OAM (IOAM) with IPv6
[    1.939623] NET: Registered PF_PACKET protocol family
[    1.944709] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.957852] Bluetooth: RFCOMM TTY layer initialized
[    1.962736] Bluetooth: RFCOMM socket layer initialized
[    1.967882] Bluetooth: RFCOMM ver 1.11
[    1.971628] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.975581] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    1.976925] Bluetooth: BNEP filters: protocol multicast
[    1.983735] mmcblk0: mmc0:0001 58A398 7.28 GiB
[    1.988480] Bluetooth: BNEP socket layer initialized
[    1.994157]  mmcblk0: p1 p2
[    1.997954] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.001220] mmcblk0boot0: mmc0:0001 58A398 4.00 MiB
[    2.006645] Bluetooth: HIDP socket layer initialized
[    2.012467] mmcblk0boot1: mmc0:0001 58A398 4.00 MiB
[    2.016733] 8021q: 802.1Q VLAN Support v1.8
[    2.022269] mmcblk0rpmb: mmc0:0001 58A398 4.00 MiB, chardev (234:0)
[    2.025790] lib80211: common routines for IEEE802.11 drivers
[    2.037706] 9pnet: Installing 9P2000 support
[    2.042071] Key type dns_resolver registered
[    2.046761] registered taskstats version 1
[    2.050882] Loading compiled-in X.509 certificates
[    2.069935] usb_phy_generic soc@0:usbphynop1: supply vcc not found, using dummy regulator
[    2.078259] usb_phy_generic soc@0:usbphynop1: dummy supplies not allowed for exclusive requests
[    2.087063] usb_phy_generic soc@0:usbphynop2: supply vcc not found, using dummy regulator
[    2.095411] usb_phy_generic soc@0:usbphynop2: dummy supplies not allowed for exclusive requests
[    2.113448] gpio gpiochip0: (43810080.gpio): not an immutable chip, please consider fixing it!
[    2.122542] gpio gpiochip1: (43820080.gpio): not an immutable chip, please consider fixing it!
[    2.131592] gpio gpiochip2: (43830080.gpio): not an immutable chip, please consider fixing it!
[    2.140641] gpio gpiochip3: (47400080.gpio): not an immutable chip, please consider fixing it!
[    2.154906] remoteproc remoteproc0: imx-rproc is available
[    2.162795] i2c 0-003d: Fixing up cyclic dependency with 4ae10000.dsi
[    2.169394] adv7511 0-003d: supply avdd not found, using dummy regulator
[    2.176171] adv7511 0-003d: supply dvdd not found, using dummy regulator
[    2.182901] adv7511 0-003d: supply pvdd not found, using dummy regulator
[    2.189618] adv7511 0-003d: supply a2vdd not found, using dummy regulator
[    2.196414] adv7511 0-003d: supply v3p3 not found, using dummy regulator
[    2.203140] adv7511 0-003d: supply v1p2 not found, using dummy regulator
[    2.210309] adv7511 0-003d: Probe failed. Remote port 'dsi@4ae10000' disabled
[    2.217833] st_lsm6dsx_i2c 0-006a: supply vdd not found, using dummy regulator
[    2.225158] st_lsm6dsx_i2c 0-006a: supply vddio not found, using dummy regulator
[    2.289539] st_lsm6dsx_i2c 0-006a: failed to read whoami register
[    2.295812] st_lsm6dsx_i2c: probe of 0-006a failed with error -5
[    2.301895] i2c i2c-0: LPI2C adapter registered
[    2.307942] pca953x 1-0022: supply vcc not found, using dummy regulator
[    2.314705] pca953x 1-0022: using AI
[    2.318364] pca953x 1-0022: failed writing register
[    2.323346] pca953x: probe of 1-0022 failed with error -5
[    2.329016] adp5585 1-0034: Failed to read reg 0x00, ret is -5
[    2.334871] adp5585: probe of 1-0034 failed with error -5
[    2.340359] i2c i2c-1: LPI2C adapter registered
[    2.345948] i2c 2-0050: Fixing up cyclic dependency with 4c100000.usb
[    3.357110] tcpci: probe of 2-0050 failed with error -110
[    3.362704] i2c 2-0051: Fixing up cyclic dependency with 4c200000.usb
[    4.377113] tcpci: probe of 2-0051 failed with error -110
[    5.389069] adp5585 2-0034: Failed to read reg 0x00, ret is -110
[    5.395082] adp5585: probe of 2-0034 failed with error -110
[    5.400885] i2c 2-003c: Fixing up cyclic dependency with 4ae00000.csi
[    5.407546] i2c i2c-2: LPI2C adapter registered
[    5.414180] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[    5.422156] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -19
[    5.432166] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -19
[    5.441725] imx-drm display-subsystem: failed to bind 4ae10000.dsi (ops dw_mipi_dsi_imx_ops): -19
[    5.450869] imx-drm display-subsystem: adev bind failed: -19
[    5.456538] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -19
[    5.478535] sdhci-esdhc-imx 42860000.mmc: Got CD GPIO
[    5.479882] dwc-mipi-csi2-host 4ae00000.csi: lanes: 2, name: mxc-mipi-csi2.0
[    5.498291] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.511405] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.518188] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    5.521123] clk: Not disabling unused clocks
[    5.526882] mmc1: SDHCI controller on 42860000.mmc [42860000.mmc] using ADMA
[    5.531085] ALSA device list:
[    5.538113] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    5.541074]   No soundcards found.
[    5.554051] Freeing unused kernel memory: 3328K
[    5.573123] Run /linuxrc as init process
Found New UDC: ci_hdrc.0
ci_hdrc.0 0
Found New UDC: ci_hdrc.1
ci_hdrc.1 1
ffs.utp0
[    5.621381] file system registered
ffs.utp1
run utp at /dev/usb-utp0/ep0
.
run utp at /dev/usb-utp1/ep0
[    5.642106] read descriptors

uuu fastboot cli[    5.646482] read descriptors
ent 1.0.0 [built [    5.650846] read strings
Aug 17 2022 19:49[    5.650846] read strings
:14]
Start init usb
uuu fastboot client 1.0.0 [built Aug 17 2022 19:49:14]
Start init usb
write string
write string
Start handle command
Start handle command

 

Currently, it remains stuck at "Start handle command" and I am unsure of how to rectify this situation. I kindly request your guidance or potentially providing a readily usable example_kernel_emmc.uuu for i.mx93. I eagerly await your response and wish you a delightful day ahead.

0 项奖励
回复

4,077 次查看
Harvey021
NXP TechSupport
NXP TechSupport

From these logs, It seems uuu downloading not finished. Not sure how you handle the kernel Image.

The way you use the example, you can also try command below, which is same as you taken. but at least can help troubleshooting for the current issue of loading and booting.

uuu.exe -v -b emmc_all imx-boot-imx93evk-sd.bin-flash_singleboot imx-image-multimedia-imx93evk.wic

 

Best regards

Harvey

0 项奖励
回复

3,999 次查看
orange-bear
Contributor I

I have encountered an issue with Image and imx93-11x11-evk.dtb. I attempted to flash my own Image and imx93-11x11-evk. dtb onto the EVK board using evk_example_kernel_emmc.uuu. However, it is stuck at the ‘Start handle command’ stage. When I tested these two files using TFTP, they ran successfully. I also tried replacing them in /run/media/boot-mmcblk0p1, and they worked fine. So, if I want to flash my own Image and imx93-11x11-evk. dtb onto my own board using evk_example_kernel_emmc. uuu, which configurations in the kernel and device tree do I need to modify?

0 项奖励
回复

4,021 次查看
orange-bear
Contributor I

I'm sorry, but I seem to have misunderstood your intention. Please allow me to clarify my previous statement.

I would like to update the imx-image-multimedia-imx93evk.tar.zst separately using commands or scripts, instead of updating the imx-image-multimedia-imx93evk.wic file.

The "fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.zst.u-boot" image package that I obtained is from the official website of NXP. It is based on the usage of "example_kernel_emmc.uuu". Currently, the execution stops at "FB: acmd ${kboot} ${loadaddr} ${initrd_addr} ${fdt_addr}".

0 项奖励
回复

4,010 次查看
orange-bear
Contributor I

I employ the NXP iMX93 EVK development board along with the official image package. The utilization of the example_kernel_emmc.uuu yields favorable outcomes, as evidenced by the following printed information. 

......
uuu fastboot cli[    3.160728] read strings
ent 1.0.0 [built [    3.164686] read strings
Aug 17 2022 19:49:14]
Start init usb
uuu fastboot client 1.0.0 [built Aug 17 2022 19:49:14]
Start init usb
write string
write string
Start handle command
Start handle command

run shell cmd: while [ ! -e /dev/mmcblk*boot0 ]; do sleep 1; echo "wait for /dev/mmcblk*boot* appear"; done;
run shell cmd: dev=`ls /dev/mmcblk*boot*`; dev=($dev); dev=${dev[0]}; dev=${dev#/dev/mmcblk}; dev=${dev%boot*}; echo $dev > /tmp/mmcdev;
run shell cmd: mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc} bs=512 count=1
1+0 records in
1+0 records out
512 bytes copied, 0.00157254 s, 326 kB/s
run shell cmd: mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; echo "$PARTSTR" | sfdisk --force /dev/mmcblk${mmc}
Partition #1 contains a vfat signature.
Partition #2 contains a ext3 signature.

I am unsure why my mirror is not executing the following shell command: while [ ! -e /dev/mmcblk*boot0 ]; do sleep 1; echo "Waiting for the appearance of /dev/mmcblk*boot*"; done;

0 项奖励
回复

134 次查看
Hector_Jimenez
Contributor I

Hi, @orange-bear .

Did you get solution to this issue?

I'm facing same problem with imx93. No FBK ID after booting initramfs, so cannot execute any FBK command from uuu.

0 项奖励
回复