imx93 系统烧录

发布于:2024-06-11 ⋅ 阅读:(20) ⋅ 点赞:(0)

1. 硬件环境

iMX 93 evk 开发板

ubuntu 20.04 系统,x86_64

2. 交叉编译可能需要的软件包

配置交叉编译器的前提,我的配置如下:

export ARCH=arm64
export CROSS_COMPILE=aarch64-none-linux-gnu-
export PATH=$PATH:/opt/work/sdk/arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-linux-gnu/bin

2.1 交叉编译 e2fsprogs,使用它的 mkfs.ext4、resize2fs 工具

# 下载
wget https://mirrors.edge.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.47.0/e2fsprogs-1.47.0.tar.gz

# 解压
tar -xvf e2fsprogs-1.47.0.tar.gz

# 配置交叉编译器,静态编译,缩减文件大小
cd e2fsprogs-1.47.0
./configure --host=aarch64-none-linux-gnu CC=aarch64-none-linux-gnu-gcc LDFLAGS=-static CFLAGS="-Os"

# 编译
make

# 缩减文件大小
aarch64-none-linux-gnu-strip misc/mke2fs
aarch64-none-linux-gnu-strip resize/resize2fs

# 查看文件属性
liangtao:e2fsprogs-1.47.0$file misc/mke2fs
misc/mke2fs: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), statically linked, for GNU/Linux 3.7.0, stripped
liangtao:e2fsprogs-1.47.0$file resize/resize2fs
resize/resize2fs: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), statically linked, for GNU/Linux 3.7.0, stripped

# 将文件重名为 mkfs.ext4
cp misc/mke2fs misc/mkfs.ext4

2.2 交叉编译 util-linux,使用它的 sfdisk 工具

# 下载
wget https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.40/util-linux-2.40.tar.xz

# 解压
tar -xvf util-linux-2.40.tar.xz

# 进入源码目录
cd util-linux-2.40/

# 尝试编译过程中,安装了三个软件包
sudo apt install autopoint
sudo apt install libtool
sudo apt install gettext

# 配置编译
./configure --host=aarch64-none-linux-gnu CC=aarch64-none-linux-gnu-gcc --disable-liblastlog2 --without-tinfo --disable-pylibmount --without-ncurses LDFLAGS=-static --enable-static-programs=sfdisk

# 编译
make -j8

# 缩减文件大小
aarch64-none-linux-gnu-strip sfdisk.static

 2.3 交叉编译 mmc-utils,使用它的 mmc 工具

# 源码下载
git clone git://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git

# 编译
make CC=aarch64-none-linux-gnu-gcc LDFLAGS=-static

# 缩减文件大小
aarch64-none-linux-gnu-strip mmc

# 查看文件属性
liangtao:mmc-utils$file mmc
mmc: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), statically linked, for GNU/Linux 3.7.0, stripped

2.4 交叉编译 busybox,构建 ramdisk 文件系统

# 下载 busybox 源码
wget https://busybox.net/downloads/busybox-1.36.1.tar.bz2
 
# 解压
tar -xvf busybox-1.36.1.tar.bz2
 
# 进入 busybox 目录
cd busybox-1.36.1
 
# 使用默认配置
make menuconfig
 
# 配置静态编译、交叉编译器前缀、安装路径;
Settings  --->
	[*] Build static binary (no shared libs)
	(aarch64-none-linux-gnu-) Cross compiler prefix
	(../ramdisk) Destination path for 'make install'
 
# 在配置了交叉编译器的前提下
make -j8
 
# 安装 busybox 文件
make install
 
# 进入安装目录,创建一些必须的配置文件
cd ../ramdisk/
mkdir -p mnt tmp var usr sys proc etc lib dev bin sbin root home
mkdir -p usr/lib lib/modules
 
# 创建设备节点,一个 console,一个 null
cd dev/
sudo mknod -m 666 console c 5 1
sudo mknod -m 666 null c 1 3
cd ../
 
# 复制 busybox 中的 examples/bootfloppy/etc 的文件
cp ../busybox-1.36.1/examples/bootfloppy/etc ./ -a

# 复制之前静态编译的 mke2fs 到 bin 目录,并重命名为 mkfs.ext4
cp ../e2fsprogs-1.47.0/misc/mke2fs ./bin/mkfs.ext4

# 复制之前静态编译的 resize2fs 到 bin 目录
cp ../e2fsprogs-1.47.0/resize/resize2fs ./bin/resize2fs

# 复制之前静态编译的 sfdisk.static 到 bin 目录,并重命名为 sfdisk
cp ../util-linux-2.40/sfdisk.static ./bin/sfdisk

# 复制之前静态编译的 mmc 到 bin 目录
cp ../mmc-utils/mmc ./bin/mmc

# 对 etc/fstab 文件添加一行,挂载 sysfs 文件系统,修改后如下
liangtao:ramdisk$cat etc/fstab
proc		/proc	proc	defaults    0	0
sysfs		/sys	sysfs	defaults    0	0

# 在 etc/init.d/rcS 中添加一行 update.sh 脚本的调用
liangtao:ramdisk$cat etc/init.d/rcS
#! /bin/sh

/bin/mount -a
/update.sh &

# 修改文件的用户与用户组为 root
sudo chown root:root -R *

由于文件是静态编译的,文件会大一点,ramdsik 的 4MB 空间不够用,需要扩展为 8MB

修改内核,指定 ram 大小为 8192KB

# 使用 1 个 ram 块设备,8MB 的 ram 空间
Device Drivers  --->
	[*] Block devices  --->
		(1)    Default number of RAM disks
		(8192) Default RAM disk size (kbytes)

在 uboot 中手动加载命令如下

fatload mmc 1:1 0x80400000 Image
fatload mmc 1:1 0x83000000 imx93-11x11-evk.dtb
fatload mmc 1:1 0x84000000 ramdisk.img.gz
setenv bootargs 'console=ttyLP0,115200 earlycon initrd=0x84000000,0x800000 root=/dev/ram0 rw rootfstype=ext4 rootwait'
booti 0x80400000 - 0x83000000

3 简单构建 tf 卡启动

# 构建 tf 卡的简单系统见以下两篇博客
https://blog.csdn.net/liangtao_1996/article/details/139343288
https://blog.csdn.net/liangtao_1996/article/details/139449116

4. tf 卡寻常烧录

原理如下:

  • 构建一个能用 tf 卡启动的简单系统。

  • 系统启动后,挂载 ramdisk 来运行。

  • ramdisk 中自动执行一个脚本来实现烧录操作。

    • 先将 emmc 给格式化,做好对应的分区。

    • 将 uboot 写入 mmcblk0boot0 分区

    • 将 Image、dtb 写入 mmcblk0p1 分区

    • 将文件系统写入 mmcblk0p2 分区

将 2.4 章节构建的 ramdisk 打包为 rootfs.tar,暂时作为 emmc 启动的文件系统,可以替换为你自己的文件系统。

# 进入之前构建的 ramdisk 目录,打包命令如下
liangtao:ramdisk$sudo tar -cvf rootfs.tar *

重新编译一份系统正常启动的 flash.bin,给 emmc 正常启动使用;

Image 和 dtb 文件可以正常使用 tf 卡启动的文件,当然也可以不一样;

在 tf 卡中新建一个 flash 目录,将打包的 rootfs.tar、正常启动的 flash.bin、内核文件 Image、dtb 文件都放入该目录

# 我的目录结构如下,flash 中存放的是要烧录到 emmc 中的文件
# 根目录的文件是 tf 卡的启动文件
liangtao:liangtao$tree
.
├── flash
│   ├── flash.bin
│   ├── Image
│   ├── imx93-11x11-evk.dtb
│   └── rootfs.tar
├── Image
├── imx93-11x11-evk.dtb
├── ramdisk.img.gz

编写脚本如下,将脚本命名为 update.sh

将其放入 ramdisk 的根目录,给予执行权限

update.sh 脚本内如如下:

#!/bin/sh

node=/dev/mmcblk0

# partition size in MB
BOOT_ROM_SIZE=10

# 重新挂载为 rw 权限
mount -o remount,rw /

# wait for the SD/MMC device node ready
while [ ! -e ${node} ]
do
sleep 1
echo “wait for ${node} appear”
done

# call sfdisk to create partition table
# destroy the partition table
dd if=/dev/zero of=${node} bs=1024 count=1

# 10M ~ 130M 为 fat 格式
# 130M ~ end 为 ext4 格式
sfdisk --force ${node} << EOF
${BOOT_ROM_SIZE}M,120M,0c
130M,,83
EOF

# 挂载 SD 卡设备
if [ -b /dev/mmcblk1p1 ]
then
	mount /dev/mmcblk1p1 /mnt
elif [ -b /dev/sda1 ]
then
	mount /dev/sda1 /mnt
else
	echo "The first partition of the sd card was not found."
	exit
fi

# burn uboot
if [ -f /mnt/flash/flash.bin ]
then
	echo "burn uboot"
	echo 0 > /sys/block/mmcblk0boot0/force_ro
	dd if=/mnt/flash/flash.bin of=/dev/mmcblk0boot0 conv=fsync
	echo 1 > /sys/block/mmcblk0boot0/force_ro

	mmc bootpart enable 1 1 /dev/mmcblk0
fi

while [ ! -e /dev/mmcblk0p1 ]
do
	sleep 1
	echo "waiting... /dev/mmcblk0p1"
done

# burn dtb and Image
if [ -f /mnt/flash/Image ]
then
	echo "burn dtb and Image"
	mkfs.vfat /dev/mmcblk0p1
	mkdir -p /tmp/kernel
	mount -t vfat /dev/mmcblk0p1 /tmp/kernel
	cp /mnt/flash/Image /tmp/kernel
	cp /mnt/flash/imx93-11x11-evk.dtb /tmp/kernel
	sync
	umount /tmp/kernel
fi

# burn rootfs
if [ -f /mnt/flash/rootfs.tar ]
then
	echo "burn rootfs"
	mkfs.ext4 -F -E nodiscard /dev/mmcblk0p2
	mkdir -p /tmp/rootfs
	mount -t ext4 /dev/mmcblk0p2 /tmp/rootfs
	tar -xf /mnt/flash/rootfs.tar -C /tmp/rootfs
	sync
	umount /tmp/rootfs
fi

sync
echo "done..."

制作 ramdisk.img.gz

# 在 ramdisk 同级目录执行以下命令
sudo dd if=/dev/zero of=ramdisk.img bs=1K count=8192 conv=fsync
sudo mkfs.ext4 -O ^has_journal -i 4096 ramdisk.img -d ramdisk
sudo fsck.ext4 -pvf ramdisk.img
gzip -9 -f ramdisk.img

4.1 烧录和启动日志

tf 卡烧录日志如下

U-Boot SPL 2023.04-dirty (Jun 11 2024 - 11:40:26 +0800)
SOC: 0xa0009300
LC: 0x40010
PMIC: PCA9451A
PMIC: Over Drive Voltage Mode
DDR: 3733MTS
M33 prepare ok
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x8000, pagesize 0x200, ivt offset 0x0
Load image from 0x4e000 by ROM_API
NOTICE:  BL31: v2.8(release):lf-6.6.3-1.0.0-0-g8dbe28631
NOTICE:  BL31: Built : 15:32:21, May 30 2024


U-Boot 2023.04-dirty (Jun 11 2024 - 11:40:26 +0800)

CPU:   i.MX93(52) rev1.0 1700 MHz (running at 1692 MHz)
CPU:   Consumer temperature grade (0C to 95C) at 32C
Reset cause: POR (0x1)
Model: NXP i.MX93 11X11 EVK board
DRAM:  2 GiB
optee optee: OP-TEE api uid mismatch
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x52]
SNK.Power3.0 on CC1
PDO 0: type 0, 5000 mV, 3000 mA [E]
PDO 1: type 0, 9000 mV, 3000 mA []
PDO 2: type 0, 15000 mV, 3000 mA []
PDO 3: type 0, 20000 mV, 2250 mA []
Requesting PDO 3: 20000 mV, 750 mA
Source accept request
PD source ready!
tcpc_pd_receive_message: Polling ALERT register, TCPC_ALERT_RX_STATUS bit failed, ret = -62
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x51]
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x50]
Core:  229 devices, 36 uclasses, devicetree: separate
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

[*]-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

switch to partitions #0, OK
mmc1 is current device
UID: 0xa3fa1137 0x9f490717 0x208828a4 0xe6e39a70
flash target is MMC:1
Net:   eth0: ethernet@42890000, eth1: ethernet@428a0000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0 
Working FDT set to 83000000
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
65082 bytes read in 2 ms (31 MiB/s)
Working FDT set to 83000000
optee optee: OP-TEE api uid mismatch
Unable to open OP-TEE session (err=-19)
mm_communicate failed!
Error: Cannot initialize UEFI sub-system, r = 3
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
65082 bytes read in 3 ms (20.7 MiB/s)
Working FDT set to 83000000
Error: Cannot initialize UEFI sub-system, r = 3
starting USB...
Bus usb@4c100000: tcpc_setup_ufp_mode: Polling ALERT register, TCPC_ALERT_CC_STATUS bit failed, ret = -62
Port not available.
Bus usb@4c200000: tcpc_setup_ufp_mode: Polling ALERT register, TCPC_ALERT_CC_STATUS bit failed, ret = -62
Port not available.
USB is stopped. Please issue 'usb start' first.
Running BSP bootcmd ...
switch to partitions #0, OK
mmc1 is current device
Failed to load 'boot.scr'
34880000 bytes read in 391 ms (85.1 MiB/s)
Booting from mmc ...
65082 bytes read in 4 ms (15.5 MiB/s)
3113682 bytes read in 37 ms (80.3 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 0000000083012e39
Working FDT set to 83000000
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.6.3-gccf0a99701a7-dirty (liangtao@RedmiBook) (aarch64-none-linux-gnu-gcc (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 13.2.1 20231009, GNU ld (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 2.41.0.20231009) #4 SMP PREEMPT Thu Jun  6 10:28:54 CST 2024
[    0.000000] KASLR disabled due to lack of seed
[    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] OF: reserved mem: 0x00000000b0000000..0x00000000bfffffff (262144 KiB) map reusable linux,cma
[    0.000000] OF: reserved mem: 0x000000002021e000..0x000000002021efff (4 KiB) nomap non-reusable rsc-table@2021e000
[    0.000000] OF: reserved mem: 0x00000000a4000000..0x00000000a4007fff (32 KiB) nomap non-reusable vdev0vring0@a4000000
[    0.000000] OF: reserved mem: 0x00000000a4008000..0x00000000a400ffff (32 KiB) nomap non-reusable vdev0vring1@a4008000
[    0.000000] OF: reserved mem: 0x00000000a4010000..0x00000000a4017fff (32 KiB) nomap non-reusable vdev1vring0@a4010000
[    0.000000] OF: reserved mem: 0x00000000a4018000..0x00000000a401ffff (32 KiB) nomap non-reusable vdev1vring1@a4018000
[    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] OF: reserved mem: 0x00000000a4020000..0x00000000a411ffff (1024 KiB) nomap non-reusable vdevbuffer@a4020000
[    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] OF: reserved mem: 0x00000000a4120000..0x00000000a421ffff (1024 KiB) nomap non-reusable ele-reserved@a4120000
[    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] OF: reserved mem: 0x00000000c0000000..0x00000000cfffffff (262144 KiB) map reusable ethosu_region@C0000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xffbb66c0-0xffbb8fff]
[    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 22 pages/cpu s50536 r8192 d31384 u90112
[    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] Kernel command line: console=ttyLP0,115200 earlycon,115200 root=/dev/ram0 rw initrd=0x84000000,0x400000 rootfstype=ext4 rootwait
[    0.000000] Unknown kernel command line parameters "earlycon,115200", will be passed to user space.
[    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] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Policy zone: DMA
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 2.
[    0.000000] software IO TLB: mapped [mem 0x00000000f9800000-0x00000000fd800000] (64MB)
[    0.000000] Memory: 1425068K/2097152K available (20736K kernel code, 1614K rwdata, 7628K rodata, 3904K init, 634K bss, 147796K 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.000362] Console: colour dummy device 80x25
[    0.000420] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000429] pid_max: default: 32768 minimum: 301
[    0.000478] LSM: initializing lsm=capability,integrity
[    0.000554] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000563] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.001217] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.001739] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.001796] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.001946] rcu: Hierarchical SRCU implementation.
[    0.001949] rcu: 	Max phase no-delay instances is 1000.
[    0.002844] EFI services will not be available.
[    0.003026] smp: Bringing up secondary CPUs ...
[    0.003390] Detected VIPT I-cache on CPU1
[    0.003443] GICv3: CPU1: found redistributor 100 region 0:0x0000000048060000
[    0.003480] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    0.003575] smp: Brought up 1 node, 2 CPUs
[    0.003581] SMP: Total of 2 processors activated.
[    0.003584] CPU features: detected: 32-bit EL0 Support
[    0.003586] CPU features: detected: 32-bit EL1 Support
[    0.003589] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.003592] CPU features: detected: Common not Private translations
[    0.003594] CPU features: detected: CRC32 instructions
[    0.003598] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.003600] CPU features: detected: LSE atomic instructions
[    0.003603] CPU features: detected: Privileged Access Never
[    0.003605] CPU features: detected: RAS Extension Support
[    0.003609] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.003659] CPU: All CPU(s) started at EL2
[    0.003662] alternatives: applying system-wide alternatives
[    0.007928] devtmpfs: initialized
[    0.013419] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.013439] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.020294] pinctrl core: initialized pinctrl subsystem
[    0.021584] DMI not present or invalid.
[    0.022003] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.022918] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.022990] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.023093] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.023149] audit: initializing netlink subsys (disabled)
[    0.023303] audit: type=2000 audit(0.020:1): state=initialized audit_enabled=0 res=1
[    0.023682] thermal_sys: Registered thermal governor 'step_wise'
[    0.023686] thermal_sys: Registered thermal governor 'power_allocator'
[    0.023718] cpuidle: using governor menu
[    0.023913] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.023957] ASID allocator initialised with 65536 entries
[    0.024669] Serial: AMBA PL011 UART driver
[    0.024722] imx mu driver is registered.
[    0.024735] imx rpmsg driver is registered.
[    0.030801] imx93-pinctrl 443c0000.pinctrl: initialized IMX pinctrl driver
[    0.037474] platform 4ae30000.lcd-controller: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@0/endpoint
[    0.040453] Modules: 24080 pages in range for non-PLT usage
[    0.040461] Modules: 515600 pages in range for PLT usage
[    0.041130] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.041138] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.041142] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.041144] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.041147] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.041149] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.041152] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.041154] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.042753] ACPI: Interpreter disabled.
[    0.043778] iommu: Default domain type: Translated
[    0.043788] iommu: DMA domain TLB invalidation policy: strict mode
[    0.044029] SCSI subsystem initialized
[    0.044295] usbcore: registered new interface driver usbfs
[    0.044313] usbcore: registered new interface driver hub
[    0.044335] usbcore: registered new device driver usb
[    0.045173] mc: Linux media interface: v0.10
[    0.045209] videodev: Linux video capture interface: v2.00
[    0.045251] pps_core: LinuxPPS API ver. 1 registered
[    0.045254] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.045267] PTP clock support registered
[    0.045393] EDAC MC: Ver: 3.0.0
[    0.045804] scmi_core: SCMI protocol bus registered
[    0.046188] FPGA manager framework
[    0.046257] Advanced Linux Sound Architecture Driver Initialized.
[    0.046792] Bluetooth: Core ver 2.22
[    0.046815] NET: Registered PF_BLUETOOTH protocol family
[    0.046818] Bluetooth: HCI device and connection manager initialized
[    0.046825] Bluetooth: HCI socket layer initialized
[    0.046829] Bluetooth: L2CAP socket layer initialized
[    0.046843] Bluetooth: SCO socket layer initialized
[    0.047156] vgaarb: loaded
[    0.047783] clocksource: Switched to clocksource arch_sys_counter
[    0.047982] VFS: Disk quotas dquot_6.6.0
[    0.048005] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.048132] pnp: PnP ACPI: disabled
[    0.052908] NET: Registered PF_INET protocol family
[    0.053049] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.054152] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.054179] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.054189] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.054308] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.054709] TCP: Hash tables configured (established 16384 bind 16384)
[    0.054818] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.054853] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.054998] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.055372] RPC: Registered named UNIX socket transport module.
[    0.055378] RPC: Registered udp transport module.
[    0.055380] RPC: Registered tcp transport module.
[    0.055382] RPC: Registered tcp-with-tls transport module.
[    0.055384] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.056167] PCI: CLS 0 bytes, default 64
[    0.056328] Trying to unpack rootfs image as initramfs...
[    0.056762] rootfs image is not initramfs (no cpio magic); looks like an initrd
[    0.059953] kvm [1]: IPA Size Limit: 40 bits
[    0.059997] kvm [1]: GICv3: no GICV resource entry
[    0.060001] kvm [1]: disabling GICv2 emulation
[    0.060020] kvm [1]: GIC system register CPU interface enabled
[    0.060056] kvm [1]: vgic interrupt IRQ9
[    0.060091] kvm [1]: VHE mode initialized successfully
[    0.062093] Freeing initrd memory: 4096K
[    0.062232] Initialise system trusted keyrings
[    0.062482] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[    0.062738] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.062976] NFS: Registering the id_resolver key type
[    0.063009] Key type id_resolver registered
[    0.063012] Key type id_legacy registered
[    0.063026] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.063030] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.063045] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.063252] 9p: Installing v9fs 9p2000 file system support
[    0.085740] Key type asymmetric registered
[    0.085748] Asymmetric key parser 'x509' registered
[    0.085797] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    0.085802] io scheduler mq-deadline registered
[    0.085805] io scheduler kyber registered
[    0.085841] io scheduler bfq registered
[    0.090270] EINJ: ACPI disabled.
[    0.094839] Bus freq driver module loaded
[    0.100272] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.102519] 44380000.serial: ttyLP0 at MMIO 0x44380010 (irq = 17, base_baud = 1500000) is a FSL_LPUART
[    0.102631] printk: console [ttyLP0] enabled
[    1.398518] brd: module loaded
[    1.404684] loop: module loaded
[    1.408975] megasas: 07.725.01.00-rc1
[    1.417470] tun: Universal TUN/TAP device driver, 1.6
[    1.423191] thunder_xcv, ver 1.0
[    1.426472] thunder_bgx, ver 1.0
[    1.429719] nicpf, ver 1.0
[    1.433315] pps pps0: new PPS source ptp0
[    1.440885] fec 42890000.ethernet eth0: registered PHC device 0
[    1.448495] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    1.455735] hns3: Copyright (c) 2017 Huawei Corporation.
[    1.461078] hclge is initializing
[    1.464422] e1000: Intel(R) PRO/1000 Network Driver
[    1.469296] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    1.475055] e1000e: Intel(R) PRO/1000 Network Driver
[    1.480010] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.485934] igb: Intel(R) Gigabit Ethernet Network Driver
[    1.491319] igb: Copyright (c) 2007-2014 Intel Corporation.
[    1.496905] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    1.503158] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    1.509198] sky2: driver version 1.30
[    1.513256] usbcore: registered new device driver r8152-cfgselector
[    1.519532] usbcore: registered new interface driver r8152
[    1.525433] VFIO - User Level meta-driver version: 0.3
[    1.532498] usbcore: registered new interface driver uas
[    1.537851] usbcore: registered new interface driver usb-storage
[    1.543904] usbcore: registered new interface driver usbserial_generic
[    1.550435] usbserial: USB Serial support registered for generic
[    1.556446] usbcore: registered new interface driver ftdi_sio
[    1.562197] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.569506] usbcore: registered new interface driver usb_serial_simple
[    1.576073] usbserial: USB Serial support registered for carelink
[    1.582171] usbserial: USB Serial support registered for flashloader
[    1.588532] usbserial: USB Serial support registered for funsoft
[    1.594546] usbserial: USB Serial support registered for google
[    1.600474] usbserial: USB Serial support registered for hp4x
[    1.606224] usbserial: USB Serial support registered for kaufmann
[    1.612317] usbserial: USB Serial support registered for libtransistor
[    1.618842] usbserial: USB Serial support registered for moto_modem
[    1.625109] usbserial: USB Serial support registered for motorola_tetra
[    1.631721] usbserial: USB Serial support registered for nokia
[    1.637553] usbserial: USB Serial support registered for novatel_gps
[    1.643906] usbserial: USB Serial support registered for siemens_mpi
[    1.650260] usbserial: USB Serial support registered for suunto
[    1.656186] usbserial: USB Serial support registered for vivopay
[    1.662196] usbserial: USB Serial support registered for zio
[    1.667872] usbcore: registered new interface driver usb_ehset_test
[    1.677226] input: 44440000.bbnsm:pwrkey as /devices/platform/soc@0/44000000.bus/44440000.bbnsm/44440000.bbnsm:pwrkey/input/input0
[    1.692342] bbnsm_rtc 44440000.bbnsm:rtc: registered as rtc0
[    1.698643] bbnsm_rtc 44440000.bbnsm:rtc: setting system clock to 1970-01-01T00:00:00 UTC (0)
[    1.707967] i2c_dev: i2c /dev entries driver
[    1.714289] qoriq_thermal 44482000.tmu: invalid range data.
[    1.721089] imx7ulp-wdt 42490000.watchdog: imx93 wdt probe
[    1.753238] Bluetooth: HCI UART driver ver 2.3
[    1.757699] Bluetooth: HCI UART protocol H4 registered
[    1.762829] Bluetooth: HCI UART protocol BCSP registered
[    1.768150] Bluetooth: HCI UART protocol LL registered
[    1.773281] Bluetooth: HCI UART protocol ATH3K registered
[    1.778682] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    1.785077] Bluetooth: HCI UART protocol Broadcom registered
[    1.790744] Bluetooth: HCI UART protocol QCA registered
[    1.797201] sdhci: Secure Digital Host Controller Interface driver
[    1.803403] sdhci: Copyright(c) Pierre Ossman
[    1.808279] Synopsys Designware Multimedia Card Interface Driver
[    1.814686] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.821669] ledtrig-cpu: registered to indicate activity on CPUs
[    1.828822] fsl-se-fw se-fw2: assigned reserved memory node ele-reserved@a4120000
[    1.836385] fsl-se-fw se-fw2: Command Id[23], Response Failure = 0x29
[    1.842831] fsl-se-fw se-fw2: Failed to initialize ele fw.
[    1.848478] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.852355] mmc0: SDHCI controller on 42850000.mmc [42850000.mmc] using ADMA
[    1.855207] usbcore: registered new interface driver usbhid
[    1.867525] usbhid: USB HID core driver
[    1.873062] ethosu ethosu: assigned reserved memory node ethosu_region@C0000000
[    1.918759] hw perfevents: enabled with armv8_cortex_a55 PMU driver, 7 counters available
[    1.926507] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    1.929086]  cs_system_cfg: CoreSight Configuration manager initialised
[    1.933777] mmcblk0: mmc0:0001 DA6016 14.7 GiB
[    1.941344] optee: probing for conduit method.
[    1.945445]  mmcblk0: p1 p2
[    1.948825] optee: api uid mismatch
[    1.952069] mmcblk0boot0: mmc0:0001 DA6016 4.00 MiB
[    1.955094] optee: probe of firmware:optee failed with error -22
[    1.960909] mmcblk0boot1: mmc0:0001 DA6016 4.00 MiB
[    1.969172] NET: Registered PF_LLC protocol family
[    1.971855] mmcblk0rpmb: mmc0:0001 DA6016 4.00 MiB, chardev (234:0)
[    1.975840] u32 classifier
[    1.984604]     input device check on
[    1.988258]     Actions configured
[    1.992036] NET: Registered PF_INET6 protocol family
[    1.997940] Segment Routing with IPv6
[    2.001672] In-situ OAM (IOAM) with IPv6
[    2.005635] NET: Registered PF_PACKET protocol family
[    2.010698] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.023822] Bluetooth: RFCOMM TTY layer initialized
[    2.028704] Bluetooth: RFCOMM socket layer initialized
[    2.033853] Bluetooth: RFCOMM ver 1.11
[    2.037602] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.042909] Bluetooth: BNEP filters: protocol multicast
[    2.048129] Bluetooth: BNEP socket layer initialized
[    2.053084] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.058995] Bluetooth: HIDP socket layer initialized
[    2.064165] 8021q: 802.1Q VLAN Support v1.8
[    2.068379] lib80211: common routines for IEEE802.11 drivers
[    2.074072] 9pnet: Installing 9P2000 support
[    2.078468] Key type dns_resolver registered
[    2.095440] registered taskstats version 1
[    2.099616] Loading compiled-in X.509 certificates
[    2.126399] usb_phy_generic usbphynop1: dummy supplies not allowed for exclusive requests
[    2.134750] usb_phy_generic usbphynop2: dummy supplies not allowed for exclusive requests
[    2.160303] isi-capture 4ae40000.isi:cap_device: deferring 4ae40000.isi:cap_device device registration
[    2.169785] mxc-isi_v1 4ae40000.isi: mxc_isi.0 registered successfully
[    2.177523] remoteproc remoteproc0: imx-rproc is available
[    2.191240] i2c 0-003d: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@1/endpoint
[    2.200164] adv7511 0-003d: supply avdd not found, using dummy regulator
[    2.206965] adv7511 0-003d: supply dvdd not found, using dummy regulator
[    2.213701] adv7511 0-003d: supply pvdd not found, using dummy regulator
[    2.220420] adv7511 0-003d: supply a2vdd not found, using dummy regulator
[    2.227232] adv7511 0-003d: supply v3p3 not found, using dummy regulator
[    2.233944] adv7511 0-003d: supply v1p2 not found, using dummy regulator
[    2.241037] adv7511 0-003d: Probe failed. Remote port 'dsi@4ae10000' disabled
[    2.248524] st_lsm6dsx_i2c 0-006a: supply vdd not found, using dummy regulator
[    2.255827] st_lsm6dsx_i2c 0-006a: supply vddio not found, using dummy regulator
[    2.794583] st_lsm6dsx_i2c 0-006a: mounting matrix not found: using identity...
[    2.802655] i2c i2c-0: LPI2C adapter registered
[    2.808790] pca953x 1-0022: supply vcc not found, using dummy regulator
[    2.815545] pca953x 1-0022: using AI
[    2.820870] adp5585-gpio adp5585-gpio.1.auto: DMA mask not set
[    2.827615] adp5585-pwm adp5585-pwm.2.auto: DMA mask not set
[    2.833455] i2c i2c-1: LPI2C adapter registered
[    2.839010] i2c 2-0050: Fixed dependency cycle(s) with /soc@0/usb@4c100000/port/endpoint
[    2.848007] i2c 2-0051: Fixed dependency cycle(s) with /soc@0/usb@4c200000/port/endpoint
[    2.856932] adp5585 2-0034: Failed to read reg 0x00, ret is -5
[    2.862786] adp5585: probe of 2-0034 failed with error -5
[    2.868365] i2c 2-003c: Fixed dependency cycle(s) with /soc@0/bus@42800000/camera/csi@4ae00000/port/endpoint
[    2.878458] i2c i2c-2: LPI2C adapter registered
[    2.884652] 42590000.serial: ttyLP4 at MMIO 0x42590010 (irq = 104, base_baud = 1500000) is a FSL_LPUART
[    2.894232] serial serial0: tty port ttyLP4 registered
[    2.900645] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[    2.908604] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -19
[    2.918611] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -19
[    2.928170] imx-drm display-subsystem: failed to bind 4ae10000.dsi (ops dw_mipi_dsi_imx_ops): -19
[    2.937241] imx-drm display-subsystem: adev bind failed: -19
[    2.942915] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -19
[    2.965263] sdhci-esdhc-imx 42860000.mmc: Got CD GPIO
[    2.965511] dwc-mipi-csi2-host 4ae00000.csi: lanes: 2, name: mxc-mipi-csi2.0
[    2.986264] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    2.995004] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    3.000082] mmc1: SDHCI controller on 42860000.mmc [42860000.mmc] using ADMA
[    3.003726] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    3.024142] nxp-pca9450 1-0025: pca9451a probed.
[    3.025405] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    3.037501] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    3.046222] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    3.062114] sdhci-esdhc-imx 428b0000.mmc: allocated mmc-pwrseq
[    3.070449] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.079502] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.085288] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.087843] clk: Disabling unused clocks
[    3.093922] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    3.098460] ALSA device list:
[    3.108570]   No soundcards found.
[    3.127815] mmc2: SDHCI controller on 428b0000.mmc [428b0000.mmc] using ADMA
[    3.135232] RAMDISK: gzip image found at block 0
[    3.191804] mmc1: host does not support reading read-only switch, assuming write-enable
[    3.216652] mmc2: new ultra high speed SDR104 SDIO card at address 0001
[    3.240518] mmc1: new ultra high speed SDR104 SDHC card at address 0001
[    3.247872] mmcblk1: mmc1:0001 SD 7.48 GiB
[    3.247925] EXT4-fs (ram0): mounted filesystem b17ae7b5-58e9-4495-9f03-e4885d862444 r/w without journal. Quota mode: none.
[    3.263171] VFS: Mounted root (ext4 filesystem) on device 1:0.
[    3.269113]  mmcblk1: p1
[    3.269210] devtmpfs: mounted
[    3.275857] Freeing unused kernel memory: 3904K
[    3.280563] Run /sbin/init as init process

Processing /etc/profile... Done

~ # [    3.319830] EXT4-fs (ram0): re-mounted b17ae7b5-58e9-4495-9f03-e4885d862444 r/w. Quota mode: none.
1+0 records in
1+0 records out
1024 bytes (1.0KB) copied, 0.004216 seconds, 237.2KB/s
Checking that no-one is using this disk right now ... OK

Disk /dev/mmcblk0: 14.68 GiB, 15758000128 bytes, 30777344 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

>>> Created a new DOS (MBR) disklabel with disk identifier 0xa6d0620e.
/dev/mmcblk0p1: Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 120 MiB.
Partition #1 contains a vfat signature.
/dev/mmcblk0p2: Created a new partition 2 of type 'Linux' and of size 14.5 GiB.
/dev/mmcblk0p3: Done.

New situation:
Disklabel type: dos
Disk identifier: 0xa6d0620e

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1       20480   266239   245760  120M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      266240 30777343 30511104 14.5G 83 Linux

The partition table has been altered.
Calling ioctl() to re-read partit[    4.629310]  mmcblk0: p1 p2
ion table.
Syncing disks.
[    4.640701] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
burn uboot
2906+0 records in
2906+0 records out
1487872 bytes (1.4MB) copied, 0.053696 seconds, 26.4MB/s
burn dtb and Image
burn rootfs
mke2fs 1.47.0 (5-Feb-2023)
[    7.363792] random: crng init done
Creating filesystem with 3813888 4k blocks and 954720 inodes
Filesystem UUID: 1e297bf6-b655-49b0-b6ec-23acd385f996
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done   

[    7.522822] EXT4-fs (mmcblk0p2): mounted filesystem 1e297bf6-b655-49b0-b6ec-23acd385f996 r/w with ordered data mode. Quota mode: none.
[    7.733212] EXT4-fs (mmcblk0p2): unmounting filesystem 1e297bf6-b655-49b0-b6ec-23acd385f996.
done...

emmc 启动日志如下

U-Boot SPL 2023.04-dirty (Jun 06 2024 - 13:35:08 +0800)
SOC: 0xa0009300
LC: 0x40010
PMIC: PCA9451A
PMIC: Over Drive Voltage Mode
DDR: 3733MTS
M33 prepare ok
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x0, pagesize 0x200, ivt offset 0x0
Load image from 0x46000 by ROM_API
NOTICE:  BL31: v2.8(release):lf-6.6.3-1.0.0-0-g8dbe28631
NOTICE:  BL31: Built : 15:32:21, May 30 2024


U-Boot 2023.04-dirty (Jun 06 2024 - 13:35:08 +0800)

CPU:   i.MX93(52) rev1.0 1700 MHz (running at 1692 MHz)
CPU:   Consumer temperature grade (0C to 95C) at 33C
Reset cause: POR (0x1)
Model: NXP i.MX93 11X11 EVK board
DRAM:  2 GiB
optee optee: OP-TEE api uid mismatch
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x52]
SNK.Power3.0 on CC1
PDO 0: type 0, 5000 mV, 3000 mA [E]
PDO 1: type 0, 9000 mV, 3000 mA []
PDO 2: type 0, 15000 mV, 3000 mA []
PDO 3: type 0, 20000 mV, 2250 mA []
Requesting PDO 3: 20000 mV, 750 mA
Source accept request
PD source ready!
tcpc_pd_receive_message: Polling ALERT register, TCPC_ALERT_RX_STATUS bit failed, ret = -62
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x51]
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x50]
Core:  229 devices, 36 uclasses, devicetree: separate
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

[*]-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

switch to partitions #0, OK
mmc0(part 0) is current device
UID: 0xa3fa1137 0x9f490717 0x208828a4 0xe6e39a70
flash target is MMC:0
Net:   eth0: ethernet@42890000, eth1: ethernet@428a0000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0 
Working FDT set to 83000000
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
65082 bytes read in 2 ms (31 MiB/s)
Working FDT set to 83000000
MMC: no card present
optee optee: OP-TEE api uid mismatch
Unable to open OP-TEE session (err=-19)
mm_communicate failed!
Error: Cannot initialize UEFI sub-system, r = 3
MMC: no card present
starting USB...
Bus usb@4c100000: tcpc_setup_ufp_mode: Polling ALERT register, TCPC_ALERT_CC_STATUS bit failed, ret = -62
Port not available.
Bus usb@4c200000: tcpc_setup_ufp_mode: Polling ALERT register, TCPC_ALERT_CC_STATUS bit failed, ret = -62
Port not available.
USB is stopped. Please issue 'usb start' first.
Running BSP bootcmd ...
switch to partitions #0, OK
mmc0(part 0) is current device
Failed to load 'boot.scr'
34880000 bytes read in 184 ms (180.8 MiB/s)
Booting from mmc ...
65082 bytes read in 13 ms (4.8 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 0000000083012e39
Working FDT set to 83000000
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.6.3-gccf0a99701a7-dirty (liangtao@RedmiBook) (aarch64-none-linux-gnu-gcc (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 13.2.1 20231009, GNU ld (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 2.41.0.20231009) #4 SMP PREEMPT Thu Jun  6 10:28:54 CST 2024
[    0.000000] KASLR disabled due to lack of seed
[    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] OF: reserved mem: 0x00000000b0000000..0x00000000bfffffff (262144 KiB) map reusable linux,cma
[    0.000000] OF: reserved mem: 0x000000002021e000..0x000000002021efff (4 KiB) nomap non-reusable rsc-table@2021e000
[    0.000000] OF: reserved mem: 0x00000000a4000000..0x00000000a4007fff (32 KiB) nomap non-reusable vdev0vring0@a4000000
[    0.000000] OF: reserved mem: 0x00000000a4008000..0x00000000a400ffff (32 KiB) nomap non-reusable vdev0vring1@a4008000
[    0.000000] OF: reserved mem: 0x00000000a4010000..0x00000000a4017fff (32 KiB) nomap non-reusable vdev1vring0@a4010000
[    0.000000] OF: reserved mem: 0x00000000a4018000..0x00000000a401ffff (32 KiB) nomap non-reusable vdev1vring1@a4018000
[    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] OF: reserved mem: 0x00000000a4020000..0x00000000a411ffff (1024 KiB) nomap non-reusable vdevbuffer@a4020000
[    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] OF: reserved mem: 0x00000000a4120000..0x00000000a421ffff (1024 KiB) nomap non-reusable ele-reserved@a4120000
[    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] OF: reserved mem: 0x00000000c0000000..0x00000000cfffffff (262144 KiB) map reusable ethosu_region@C0000000
[    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 0xffbb66c0-0xffbb8fff]
[    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 22 pages/cpu s50536 r8192 d31384 u90112
[    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] 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] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Policy zone: DMA
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 2.
[    0.000000] software IO TLB: mapped [mem 0x00000000f9800000-0x00000000fd800000] (64MB)
[    0.000000] Memory: 1429164K/2097152K available (20736K kernel code, 1614K rwdata, 7628K rodata, 3904K init, 634K bss, 143700K 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.008373] Console: colour dummy device 80x25
[    0.012607] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.022782] pid_max: default: 32768 minimum: 301
[    0.027419] LSM: initializing lsm=capability,integrity
[    0.032557] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.039857] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.048304] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.054686] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.061533] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.069157] rcu: Hierarchical SRCU implementation.
[    0.073779] rcu: 	Max phase no-delay instances is 1000.
[    0.079906] EFI services will not be available.
[    0.084395] smp: Bringing up secondary CPUs ...
[    0.089059] Detected VIPT I-cache on CPU1
[    0.089111] GICv3: CPU1: found redistributor 100 region 0:0x0000000048060000
[    0.089145] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    0.089245] smp: Brought up 1 node, 2 CPUs
[    0.110600] SMP: Total of 2 processors activated.
[    0.115272] CPU features: detected: 32-bit EL0 Support
[    0.120395] CPU features: detected: 32-bit EL1 Support
[    0.125501] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.134083] CPU features: detected: Common not Private translations
[    0.140317] CPU features: detected: CRC32 instructions
[    0.145441] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.151150] CPU features: detected: LSE atomic instructions
[    0.156696] CPU features: detected: Privileged Access Never
[    0.162241] CPU features: detected: RAS Extension Support
[    0.167617] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.174599] CPU: All CPU(s) started at EL2
[    0.178624] alternatives: applying system-wide alternatives
[    0.188414] devtmpfs: initialized
[    0.196934] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.206430] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.219958] pinctrl core: initialized pinctrl subsystem
[    0.226537] DMI not present or invalid.
[    0.230557] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.236849] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.243727] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.251430] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.259293] audit: initializing netlink subsys (disabled)
[    0.264770] audit: type=2000 audit(0.176:1): state=initialized audit_enabled=0 res=1
[    0.265153] thermal_sys: Registered thermal governor 'step_wise'
[    0.272335] thermal_sys: Registered thermal governor 'power_allocator'
[    0.278340] cpuidle: using governor menu
[    0.288889] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.295508] ASID allocator initialised with 65536 entries
[    0.301581] Serial: AMBA PL011 UART driver
[    0.305467] imx mu driver is registered.
[    0.309314] imx rpmsg driver is registered.
[    0.319644] imx93-pinctrl 443c0000.pinctrl: initialized IMX pinctrl driver
[    0.332957] platform 4ae30000.lcd-controller: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@0/endpoint
[    0.346369] Modules: 24080 pages in range for non-PLT usage
[    0.346379] Modules: 515600 pages in range for PLT usage
[    0.352443] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.364263] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.370494] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.377252] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.383493] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.390252] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.396493] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.403252] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.411138] ACPI: Interpreter disabled.
[    0.415459] iommu: Default domain type: Translated
[    0.420014] iommu: DMA domain TLB invalidation policy: strict mode
[    0.426393] SCSI subsystem initialized
[    0.430173] usbcore: registered new interface driver usbfs
[    0.435410] usbcore: registered new interface driver hub
[    0.440698] usbcore: registered new device driver usb
[    0.446557] mc: Linux media interface: v0.10
[    0.450611] videodev: Linux video capture interface: v2.00
[    0.456074] pps_core: LinuxPPS API ver. 1 registered
[    0.460966] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.470072] PTP clock support registered
[    0.474100] EDAC MC: Ver: 3.0.0
[    0.477550] scmi_core: SCMI protocol bus registered
[    0.482633] FPGA manager framework
[    0.485827] Advanced Linux Sound Architecture Driver Initialized.
[    0.492389] Bluetooth: Core ver 2.22
[    0.495720] NET: Registered PF_BLUETOOTH protocol family
[    0.500995] Bluetooth: HCI device and connection manager initialized
[    0.507319] Bluetooth: HCI socket layer initialized
[    0.512170] Bluetooth: L2CAP socket layer initialized
[    0.517203] Bluetooth: SCO socket layer initialized
[    0.522386] vgaarb: loaded
[    0.525448] clocksource: Switched to clocksource arch_sys_counter
[    0.531517] VFS: Disk quotas dquot_6.6.0
[    0.535217] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.542160] pnp: PnP ACPI: disabled
[    0.550469] NET: Registered PF_INET protocol family
[    0.555246] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.563575] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.571905] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.579567] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.587506] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.595126] TCP: Hash tables configured (established 16384 bind 16384)
[    0.601491] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.608083] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.615283] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.621124] RPC: Registered named UNIX socket transport module.
[    0.626788] RPC: Registered udp transport module.
[    0.631457] RPC: Registered tcp transport module.
[    0.636135] RPC: Registered tcp-with-tls transport module.
[    0.641596] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.648766] PCI: CLS 0 bytes, default 64
[    0.652666] kvm [1]: IPA Size Limit: 40 bits
[    0.656705] kvm [1]: GICv3: no GICV resource entry
[    0.661444] kvm [1]: disabling GICv2 emulation
[    0.665874] kvm [1]: GIC system register CPU interface enabled
[    0.671693] kvm [1]: vgic interrupt IRQ9
[    0.675590] kvm [1]: VHE mode initialized successfully
[    0.681587] Initialise system trusted keyrings
[    0.685953] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[    0.692443] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.698257] NFS: Registering the id_resolver key type
[    0.703072] Key type id_resolver registered
[    0.707204] Key type id_legacy registered
[    0.711204] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.717865] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.725243] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.731504] 9p: Installing v9fs 9p2000 file system support
[    0.759243] Key type asymmetric registered
[    0.763078] Asymmetric key parser 'x509' registered
[    0.767965] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    0.775300] io scheduler mq-deadline registered
[    0.779804] io scheduler kyber registered
[    0.783818] io scheduler bfq registered
[    0.792048] EINJ: ACPI disabled.
[    0.799645] Bus freq driver module loaded
[    0.809196] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.826946] printk: console [ttyLP0] enabled0x44380010 (irq = 17, base_baud = 1500000) is a FSL_LPUART
[    0.826946] printk: console [ttyLP0] enabled
[    0.835364] printk: bootconsole [lpuart32] disabled
[    0.835364] printk: bootconsole [lpuart32] disabled
[    0.864825] brd: module loaded
[    0.870976] loop: module loaded
[    0.875282] megasas: 07.725.01.00-rc1
[    0.883922] tun: Universal TUN/TAP device driver, 1.6
[    0.889715] thunder_xcv, ver 1.0
[    0.892968] thunder_bgx, ver 1.0
[    0.896221] nicpf, ver 1.0
[    0.899840] pps pps0: new PPS source ptp0
[    0.907159] fec 42890000.ethernet eth0: registered PHC device 0
[    0.914683] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    0.921924] hns3: Copyright (c) 2017 Huawei Corporation.
[    0.927269] hclge is initializing
[    0.930603] e1000: Intel(R) PRO/1000 Network Driver
[    0.935470] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    0.941241] e1000e: Intel(R) PRO/1000 Network Driver
[    0.946201] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.952125] igb: Intel(R) Gigabit Ethernet Network Driver
[    0.957512] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.963088] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    0.969348] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.975407] sky2: driver version 1.30
[    0.979454] usbcore: registered new device driver r8152-cfgselector
[    0.985733] usbcore: registered new interface driver r8152
[    0.991637] VFIO - User Level meta-driver version: 0.3
[    0.998779] usbcore: registered new interface driver uas
[    1.004139] usbcore: registered new interface driver usb-storage
[    1.010191] usbcore: registered new interface driver usbserial_generic
[    1.016734] usbserial: USB Serial support registered for generic
[    1.022741] usbcore: registered new interface driver ftdi_sio
[    1.028496] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.035810] usbcore: registered new interface driver usb_serial_simple
[    1.042373] usbserial: USB Serial support registered for carelink
[    1.048478] usbserial: USB Serial support registered for flashloader
[    1.054836] usbserial: USB Serial support registered for funsoft
[    1.060844] usbserial: USB Serial support registered for google
[    1.066765] usbserial: USB Serial support registered for hp4x
[    1.072509] usbserial: USB Serial support registered for kaufmann
[    1.078602] usbserial: USB Serial support registered for libtransistor
[    1.085128] usbserial: USB Serial support registered for moto_modem
[    1.091399] usbserial: USB Serial support registered for motorola_tetra
[    1.098016] usbserial: USB Serial support registered for nokia
[    1.103849] usbserial: USB Serial support registered for novatel_gps
[    1.110201] usbserial: USB Serial support registered for siemens_mpi
[    1.116556] usbserial: USB Serial support registered for suunto
[    1.122473] usbserial: USB Serial support registered for vivopay
[    1.128482] usbserial: USB Serial support registered for zio
[    1.134143] usbcore: registered new interface driver usb_ehset_test
[    1.143493] input: 44440000.bbnsm:pwrkey as /devices/platform/soc@0/44000000.bus/44440000.bbnsm/44440000.bbnsm:pwrkey/input/input0
[    1.158695] bbnsm_rtc 44440000.bbnsm:rtc: registered as rtc0
[    1.164996] bbnsm_rtc 44440000.bbnsm:rtc: setting system clock to 1970-01-01T00:00:00 UTC (0)
[    1.174236] i2c_dev: i2c /dev entries driver
[    1.180514] qoriq_thermal 44482000.tmu: invalid range data.
[    1.187314] imx7ulp-wdt 42490000.watchdog: imx93 wdt probe
[    1.218257] Bluetooth: HCI UART driver ver 2.3
[    1.222724] Bluetooth: HCI UART protocol H4 registered
[    1.227858] Bluetooth: HCI UART protocol BCSP registered
[    1.233183] Bluetooth: HCI UART protocol LL registered
[    1.238310] Bluetooth: HCI UART protocol ATH3K registered
[    1.243710] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    1.250103] Bluetooth: HCI UART protocol Broadcom registered
[    1.255771] Bluetooth: HCI UART protocol QCA registered
[    1.262221] sdhci: Secure Digital Host Controller Interface driver
[    1.268422] sdhci: Copyright(c) Pierre Ossman
[    1.273258] Synopsys Designware Multimedia Card Interface Driver
[    1.279664] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.286660] ledtrig-cpu: registered to indicate activity on CPUs
[    1.293712] fsl-se-fw se-fw2: assigned reserved memory node ele-reserved@a4120000
[    1.301268] fsl-se-fw se-fw2: Command Id[23], Response Failure = 0x29
[    1.307711] fsl-se-fw se-fw2: Failed to initialize ele fw.
[    1.313362] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.317482] mmc0: SDHCI controller on 42850000.mmc [42850000.mmc] using ADMA
[    1.320085] usbcore: registered new interface driver usbhid
[    1.332389] usbhid: USB HID core driver
[    1.337785] ethosu ethosu: assigned reserved memory node ethosu_region@C0000000
[    1.383546] hw perfevents: enabled with armv8_cortex_a55 PMU driver, 7 counters available
[    1.390797] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    1.393806]  cs_system_cfg: CoreSight Configuration manager initialised
[    1.398567] mmcblk0: mmc0:0001 DA6016 14.7 GiB
[    1.406229] optee: probing for conduit method.
[    1.410267]  mmcblk0: p1 p2
[    1.413591] optee: api uid mismatch
[    1.413594] optee: probe of firmware:optee failed with error -22
[    1.416647] NET: Registered PF_LLC protocol family
[    1.420428] mmcblk0boot0: mmc0:0001 DA6016 4.00 MiB
[    1.426140] u32 classifier
[    1.431687] mmcblk0boot1: mmc0:0001 DA6016 4.00 MiB
[    1.435608]     input device check on
[    1.439138] mmcblk0rpmb: mmc0:0001 DA6016 4.00 MiB, chardev (234:0)
[    1.443183]     Actions configured
[    1.443539] NET: Registered PF_INET6 protocol family
[    1.462256] Segment Routing with IPv6
[    1.465987] In-situ OAM (IOAM) with IPv6
[    1.469947] NET: Registered PF_PACKET protocol family
[    1.475009] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.488053] Bluetooth: RFCOMM TTY layer initialized
[    1.492938] Bluetooth: RFCOMM socket layer initialized
[    1.498084] Bluetooth: RFCOMM ver 1.11
[    1.501834] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.507140] Bluetooth: BNEP filters: protocol multicast
[    1.512361] Bluetooth: BNEP socket layer initialized
[    1.517320] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.523228] Bluetooth: HIDP socket layer initialized
[    1.528327] 8021q: 802.1Q VLAN Support v1.8
[    1.532550] lib80211: common routines for IEEE802.11 drivers
[    1.538242] 9pnet: Installing 9P2000 support
[    1.542629] Key type dns_resolver registered
[    1.559554] registered taskstats version 1
[    1.563763] Loading compiled-in X.509 certificates
[    1.590843] usb_phy_generic usbphynop1: dummy supplies not allowed for exclusive requests
[    1.599180] usb_phy_generic usbphynop2: dummy supplies not allowed for exclusive requests
[    1.624495] isi-capture 4ae40000.isi:cap_device: deferring 4ae40000.isi:cap_device device registration
[    1.633962] mxc-isi_v1 4ae40000.isi: mxc_isi.0 registered successfully
[    1.641819] remoteproc remoteproc0: imx-rproc is available
[    1.655910] i2c 0-003d: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@1/endpoint
[    1.664840] adv7511 0-003d: supply avdd not found, using dummy regulator
[    1.671642] adv7511 0-003d: supply dvdd not found, using dummy regulator
[    1.678367] adv7511 0-003d: supply pvdd not found, using dummy regulator
[    1.685100] adv7511 0-003d: supply a2vdd not found, using dummy regulator
[    1.691905] adv7511 0-003d: supply v3p3 not found, using dummy regulator
[    1.698626] adv7511 0-003d: supply v1p2 not found, using dummy regulator
[    1.705662] adv7511 0-003d: Probe failed. Remote port 'dsi@4ae10000' disabled
[    1.713143] st_lsm6dsx_i2c 0-006a: supply vdd not found, using dummy regulator
[    1.720439] st_lsm6dsx_i2c 0-006a: supply vddio not found, using dummy regulator
[    2.260431] st_lsm6dsx_i2c 0-006a: mounting matrix not found: using identity...
[    2.268513] i2c i2c-0: LPI2C adapter registered
[    2.274814] pca953x 1-0022: supply vcc not found, using dummy regulator
[    2.281587] pca953x 1-0022: using AI
[    2.286779] adp5585-gpio adp5585-gpio.1.auto: DMA mask not set
[    2.293649] adp5585-pwm adp5585-pwm.2.auto: DMA mask not set
[    2.299486] i2c i2c-1: LPI2C adapter registered
[    2.305027] i2c 2-0050: Fixed dependency cycle(s) with /soc@0/usb@4c100000/port/endpoint
[    2.313876] i2c 2-0051: Fixed dependency cycle(s) with /soc@0/usb@4c200000/port/endpoint
[    2.322800] adp5585 2-0034: Failed to read reg 0x00, ret is -5
[    2.328667] adp5585: probe of 2-0034 failed with error -5
[    2.334219] i2c 2-003c: Fixed dependency cycle(s) with /soc@0/bus@42800000/camera/csi@4ae00000/port/endpoint
[    2.344294] i2c i2c-2: LPI2C adapter registered
[    2.350512] 42590000.serial: ttyLP4 at MMIO 0x42590010 (irq = 104, base_baud = 1500000) is a FSL_LPUART
[    2.360021] serial serial0: tty port ttyLP4 registered
[    2.366353] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[    2.374319] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -19
[    2.384325] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -19
[    2.393883] imx-drm display-subsystem: failed to bind 4ae10000.dsi (ops dw_mipi_dsi_imx_ops): -19
[    2.402948] imx-drm display-subsystem: adev bind failed: -19
[    2.408615] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -19
[    2.431062] sdhci-esdhc-imx 42860000.mmc: Got CD GPIO
[    2.431295] dwc-mipi-csi2-host 4ae00000.csi: lanes: 2, name: mxc-mipi-csi2.0
[    2.452205] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    2.460956] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    2.465687] mmc1: SDHCI controller on 42860000.mmc [42860000.mmc] using ADMA
[    2.469692] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    2.489272] nxp-pca9450 1-0025: pca9451a probed.
[    2.490301] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    2.503279] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    2.512359] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    2.529760] sdhci-esdhc-imx 428b0000.mmc: allocated mmc-pwrseq
[    2.538293] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    2.547348] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.553107] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    2.561729] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    2.561781] clk: Disabling unused clocks
[    2.574016] ALSA device list:
[    2.576980]   No soundcards found.
[    2.597487] mmc2: SDHCI controller on 428b0000.mmc [428b0000.mmc] using ADMA
[    2.672891] mmc2: new ultra high speed SDR104 SDIO card at address 0001
[    2.695615] EXT4-fs (mmcblk0p2): mounted filesystem 1e297bf6-b655-49b0-b6ec-23acd385f996 r/w with ordered data mode. Quota mode: none.
[    2.707805] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.714606] devtmpfs: mounted
[    2.718849] Freeing unused kernel memory: 3904K
[    2.723547] Run /sbin/init as init process
/etc/init.d/rcS: line 4: /update.sh: not found

Processing /etc/profile... Done

~ # df -Th
Filesystem           Type            Size      Used Available Use% Mounted on
/dev/root            ext4           14.2G      8.1M     13.5G   0% /
devtmpfs             devtmpfs      697.8M         0    697.8M   0% /dev
~ # 

5. tf 卡整包烧录

原理如下:

  • 构建一个能用 tf 卡启动的简单系统。

  • 系统启动后,挂载 ramdisk 来运行。

  • ramdisk 中自动执行一个脚本来实现烧录操作。

    • 将 uboot 写入 mmcblk0boot0 分区

    • 将一整个文件包写入 mmcblk0 设备。

5.1 构建一个烧录包

构建烧录包需要如下文件

  • 包含 uboot 的 bin 文件 flash.bin(非必须,如果包含了,可以通过 mmc bootpart enable 7 1 /dev/mmcblk0 来指定从 emmc 用户分区启动)

  • 可以正常启动的内核文件 Image 和 dtb 文件

  • 可以正常被挂载的根文件系统

  • 一个构建烧录包的脚本 fakeroot.sh

# 涉及的文件如下
# 当前 ramdisk 中的烧录脚本 update.sh 需要删除
liangtao:fakeroot$ls -alh
total 35M
drwxrwxr-x  3 liangtao liangtao 4.0K 6月  11 13:33 .
drwxrwxr-x 10 liangtao liangtao 4.0K 6月  11 11:40 ..
-rwxr--r--  1 liangtao liangtao 6.3K 6月   7 14:49 fakeroot.sh
-rw-rw-r--  1 liangtao liangtao 1.5M 6月   7 10:20 flash.bin
-rw-rw-r--  1 liangtao liangtao  34M 6月   7 10:20 Image
-rw-rw-r--  1 liangtao liangtao  64K 6月   7 10:21 imx93-11x11-evk.dtb
drwxrwxr-x 15 liangtao liangtao 4.0K 6月  11 13:33 ramdisk

fakeroot.sh 脚本内容如下(需要执行权限):

# set -e 是一个 shell 命令,用于设置 shell 脚本的错误处理行为。它的含义是,当脚本中的任何命令出现非零的退出状态(即命令执行失败),脚本会立即停止执行,并退出脚本。
set -e

# 指定最终生成的烧录包文件名
BURNING_IMG=mx93-linux-fs.sdcard

# 指定文件系统的大小
DESTDIR=./ramdisk

# 计算指定目录(由变量$DESTDIR表示)中文件或子目录的总大小,并提取出该值以便进一步处理或展示。
FS_SIZE=$(du -s -k "$DESTDIR" | awk '{print $1}')

# uboot 大小为 8MB
rawsize=8192
# boot 分区 120 MB,存放 Image 和 dtb 的分区
fatsize=122880
# rootfs 分区为文件系统的 1 + 1/8 倍 + 10MB 避免文件系统太小导致无法创建日志
ext4size=$((($FS_SIZE + 10240 + ($FS_SIZE / 8)) & ~31 ))
totalsize=`expr $rawsize + $fatsize + $ext4size + 1`
echo totalsize $totalsize

# -n "boot": -n选项用于指定文件系统的卷标,这里设置为"boot"。
# -S 512: -S选项用于指定扇区大小,这里设置为512字节。
# $fatsize: 这个变量代表FAT文件系统的大小。
mkfs.vfat -n "boot" -S 512 -C ./boot.img "$fatsize"


# mcopy: 这是一个用于在Linux系统上进行文件复制的命令,它支持FAT文件系统。
# -i选项用于指定要操作的VFAT文件系统映像文件。
# ./Image: 这个路径表示目标文件的路径。::表示VFAT文件系统根目录,/Image表示目标文件在VFAT文件系统中的位置。
mcopy -i ./boot.img ./Image ::/Image
mcopy -i ./boot.img ./imx93-11x11-evk.dtb ::/imx93-11x11-evk.dtb

# 生成文件系统大小的 ext4 文件。
dd if=/dev/zero of=./rootfs.ext4 bs=1K count=0 seek=$ext4size

# -h: -h选项用于解析符号链接的所有者和所属组,而不是符号链接本身。
# 0:0: 0:0表示所有者和所属组的用户ID和组ID。在Linux系统中,root 用户的用户ID和组ID通常是 0。
chown -h -R 0:0 $DESTDIR

# -F: -F选项用于强制格式化文件系统而无需确认。
# -i 4096: -i选项用于指定inode的间隔大小。在这里,指定的值为4096,表示每4096个字节创建一个inode。
# ./rootfs.ext4: 这个路径表示要创建的文件系统映像的路径和名称。
# -d $DESTDIR: -d选项用于指定源目录,它将作为文件系统的内容。$DESTDIR是一个变量,代表源目录的路径。
mkfs.ext4 -F -i 4096 ./rootfs.ext4 -d $DESTDIR

# fsck.ext4: 这是一个用于检查和修复ext4文件系统的命令。
# -pvfD: -p选项用于自动修复文件系统中的错误,-v选项用于显示详细的输出,-f选项用于强制运行fsck而无需确认,-D选项用于优化文件系统。
# ./rootfs.ext4: 这个路径表示要检查和修复的ext4文件系统映像的路径和名称。
fsck.ext4 -pvfD ./rootfs.ext4


# 计算各分区的大小
fatstart=$rawsize
fatend=`expr $rawsize + $fatsize`
ext4start=`expr $fatend`
ext4end=`expr $fatend + $ext4size`
echo ext4end $ext4end

# count=0: count选项指定要复制的块数,这里设置为0,表示不复制任何数据,只创建一个空文件。
# seek=$totalsize: seek选项指定在输出文件中跳过的块数,这里设置为$totalsize,表示跳过$totalsize个块。
# 创建一个文件系统包大小的文件
dd if=/dev/zero of=./$BURNING_IMG bs=1K count=0 seek=$totalsize

# parted: 这是一个用于磁盘分区管理的命令行工具。
# -s: -s 选项表示在非交互模式下执行命令,即不需要手动确认。
# ./$BURNING_IMG: 这个路径表示要操作的镜像文件的路径和名称。
# mklabel msdos: mklabel 命令用于创建分区表,msdos 表示要创建的分区表类型为 msdos(也称为 MBR,Master Boot Record)。
# 综合起来,该命令的作用是在指定的镜像文件上使用 parted 工具创建一个 msdos 分区表。分区表是用于管理磁盘上的分区的结构,msdos 分区表是一种常见的分区表类型,适用于许多操作系统和设备。这个命令会直接在镜像文件中创建分区表,并没有实际对磁盘进行分区操作。
parted -s ./$BURNING_IMG mklabel msdos

# parted: 这是一个用于磁盘分区管理的命令行工具。
# -s: -s 选项表示在非交互模式下执行命令,即不需要手动确认。
# ./$BURNING_IMG: 这个路径表示要操作的镜像文件的路径和名称。
# unit KiB: unit 命令用于设置 parted 工具的单位,这里将单位设置为 KiB(Kilobytes,千字节)。
# mkpart primary fat32 $fatstart $fatend: mkpart 命令用于创建分区。primary 表示要创建一个主分区,fat32 表示将分区格式化为 FAT32 文件系统。$fatstart 和 $fatend 是分区的起始位置和结束位置,这里是通过变量传递的参数。
# 综合起来,该命令的作用是在指定的镜像文件上使用 parted 工具创建一个主分区,并将其格式化为 FAT32 文件系统。通过设置起始位置和结束位置,可以定义分区的大小和位置。注意,这个命令是针对镜像文件而不是实际的磁盘进行操作。
parted -s ./$BURNING_IMG unit KiB mkpart primary fat32 $fatstart $fatend

# mkpart primary $ext4start $ext4end: mkpart 命令用于创建分区。primary 表示要创建一个主分区,$ext4start 和 $ext4end 是分区的起始位置和结束位置,这里是通过变量传递的参数。
parted -s ./$BURNING_IMG unit KiB mkpart primary $ext4start $ext4end

# unit B: unit 命令用于设置 parted 工具的单位,这里将单位设置为 B(Bytes,字节)。
# print: print 命令用于打印分区表和分区信息。
parted ./$BURNING_IMG unit B print

# 将文件写打包写入 BURNING_IMG 中。
# seek=32: seek 参数指定输出文件的偏移量,即从文件的第 32K 处开始写入。
# conv=notrunc,fsync: conv 参数指定一些转换选项。notrunc 表示不截断输出文件,保留原有内容;fsync 表示在写入后将数据同步到磁盘,以确保写入操作的持久性。
dd if=./flash.bin of=./$BURNING_IMG bs=1K seek=32 conv=notrunc,fsync
dd if=./boot.img of=./$BURNING_IMG bs=1K seek=$fatstart conv=notrunc,fsync
dd if=./rootfs.ext4 of=./$BURNING_IMG bs=1K seek=$ext4start conv=notrunc,fsync

# 对文件进行 2G 的划分
split -b 2G ./$BURNING_IMG ./${BURNING_IMG}.

# 删除生成的中间文件
rm -rf ./boot.img
rm -rf ./rootfs.ext4
rm -rf ./$BURNING_IMG

打包生成烧录包,打包命令和日志如下

liangtao:fakeroot$fakeroot -- ./fakeroot.sh
totalsize 148289
mkfs.fat 4.1 (2017-01-24)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
0+0 records in
0+0 records out
0 bytes copied, 5.1525e-05 s, 0.0 kB/s
mke2fs 1.45.5 (07-Jan-2020)
Discarding device blocks: done                            
Creating filesystem with 4304 4k blocks and 4320 inodes

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (1024 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information: done


         442 inodes used (10.23%, out of 4320)
           1 non-contiguous file (0.2%)
           0 non-contiguous directories (0.0%)
             # of inodes with ind/dind/tind blocks: 0/0/0
             Extent depth histogram: 30
        2696 blocks used (62.64%, out of 4304)
           0 bad blocks
           1 large file

           9 regular files
          20 directories
           2 character device files
           0 block device files
           0 fifos
           0 links
         402 symbolic links (402 fast symbolic links)
           0 sockets
------------
         433 files
ext4end 148288
0+0 records in
0+0 records out
0 bytes copied, 4.9764e-05 s, 0.0 kB/s
Model:  (file)
Disk /opt/liangtao/imx93/fakeroot/mx93-linux-fs.sdcard: 151847936B
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start       End         Size        Type     File system  Flags
 1      8388608B    134217727B  125829120B  primary               lba
 2      134217728B  151846911B  17629184B   primary

1453+0 records in
1453+0 records out
1487872 bytes (1.5 MB, 1.4 MiB) copied, 0.00363197 s, 410 MB/s
122880+0 records in
122880+0 records out
125829120 bytes (126 MB, 120 MiB) copied, 0.177617 s, 708 MB/s
17216+0 records in
17216+0 records out
17629184 bytes (18 MB, 17 MiB) copied, 0.0282617 s, 624 MB/s
liangtao:fakeroot$ls -alh
total 180M
drwxrwxr-x  3 liangtao liangtao 4.0K 6月  11 13:36 .
drwxrwxr-x 10 liangtao liangtao 4.0K 6月  11 11:40 ..
-rwxr--r--  1 liangtao liangtao 6.3K 6月   7 14:49 fakeroot.sh
-rw-rw-r--  1 liangtao liangtao 1.5M 6月   7 10:20 flash.bin
-rw-rw-r--  1 liangtao liangtao  34M 6月   7 10:20 Image
-rw-rw-r--  1 liangtao liangtao  64K 6月   7 10:21 imx93-11x11-evk.dtb
-rw-rw-r--  1 liangtao liangtao 145M 6月  11 13:36 mx93-linux-fs.sdcard.aa
drwxrwxr-x 15 liangtao liangtao 4.0K 6月  11 13:33 ramdisk

mx93-linux-fs.sdcard.aa 就是构建的烧录包

5.2 编写烧录脚本 update.sh

编写脚本如下,将脚本命名为 update.sh

将其放入 ramdisk 的根目录,给予执行权限

update.sh 脚本内如如下:

#!/bin/sh

node=/dev/mmcblk0

# 重新挂载为 rw 权限
mount -o remount,rw /

# wait for the SD/MMC device node ready
while [ ! -e ${node} ]
do
sleep 1
echo “wait for ${node} appear”
done

# 挂载 SD 卡设备
if [ -b /dev/mmcblk1p1 ]
then
	mount /dev/mmcblk1p1 /mnt
elif [ -b /dev/sda1 ]
then
	mount /dev/sda1 /mnt
else
	echo "The first partition of the sd card was not found."
	exit
fi

# burn uboot
if [ -f /mnt/flash.bin ]
then
	echo "burn uboot"
	echo 0 > /sys/block/mmcblk0boot0/force_ro
	dd if=/mnt/flash.bin of=/dev/mmcblk0boot0 conv=fsync
	echo 1 > /sys/block/mmcblk0boot0/force_ro

	mmc bootpart enable 1 1 /dev/mmcblk0
fi

systems=`ls /mnt/*.a*`
if [ $? -ne 0 ];then
    echo "update failed, not find *.a* files"
    exit $?
fi

# 写入烧录包,offsets+4 是因为烧录包分包是 2GB 的
offsets=0
echo "flashing kernel and rootfs, wait..."
for img in $systems
do
	echo "$img $offsets"
	dd if=$img of=/dev/mmcblk0 bs=512M seek=$offsets
	if [ "$?" == "1" ] ; then
		echo "sd/emmc flash error"
		exit
	fi
	echo "flash $img, done"
	offsets=$(($offsets+4))
done
sync
echo "Flashing completed"

# 重新调整分区大小,将剩余分区都划分给分区 2
# 262144 为跳过前 128MB 的空间
echo "resize rootfs partition"
/sbin/fdisk /dev/mmcblk0 << EOF
d
2
n
p
2
262144

w
EOF

resize2fs /dev/mmcblk0p2

echo "done..."

制作 ramdisk.img.gz

# 在 ramdisk 同级目录执行以下命令
sudo dd if=/dev/zero of=ramdisk.img bs=1K count=8192 conv=fsync
sudo mkfs.ext4 -O ^has_journal -i 4096 ramdisk.img -d ramdisk
sudo fsck.ext4 -pvf ramdisk.img
gzip -9 -f ramdisk.img

5.3 将文件拷贝到 tf 卡中

# 目录文件如下
# flash.bin 为 emmc 正常启动的 uboot
# Image tf 卡正常启动的为内核文件
# dtb tf 卡正常启动的硬件信息文件
# mx93-linux-fs.sdcard.aa 需要烧录的软件包
# ramdisk.img.gz tf 卡启动烧录的文件系统
liangtao:way_2$tree
.
├── flash.bin
├── Image
├── imx93-11x11-evk.dtb
├── mx93-linux-fs.sdcard.aa
└── ramdisk.img.gz

5.4 烧录和启动日志

烧录日志如下:

U-Boot SPL 2023.04-dirty (Jun 11 2024 - 11:40:26 +0800)
SOC: 0xa0009300
LC: 0x40010
PMIC: PCA9451A
PMIC: Over Drive Voltage Mode
DDR: 3733MTS
M33 prepare ok
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x8000, pagesize 0x200, ivt offset 0x0
Load image from 0x4e000 by ROM_API
NOTICE:  BL31: v2.8(release):lf-6.6.3-1.0.0-0-g8dbe28631
NOTICE:  BL31: Built : 15:32:21, May 30 2024


U-Boot 2023.04-dirty (Jun 11 2024 - 11:40:26 +0800)

CPU:   i.MX93(52) rev1.0 1700 MHz (running at 1692 MHz)
CPU:   Consumer temperature grade (0C to 95C) at 30C
Reset cause: POR (0x1)
Model: NXP i.MX93 11X11 EVK board
DRAM:  2 GiB
optee optee: OP-TEE api uid mismatch
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x52]
SNK.Power3.0 on CC1
PDO 0: type 0, 5000 mV, 3000 mA [E]
PDO 1: type 0, 9000 mV, 3000 mA []
PDO 2: type 0, 15000 mV, 3000 mA []
PDO 3: type 0, 20000 mV, 2250 mA []
Requesting PDO 3: 20000 mV, 750 mA
Source accept request
PD source ready!
tcpc_pd_receive_message: Polling ALERT register, TCPC_ALERT_RX_STATUS bit failed, ret = -62
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x51]
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x50]
Core:  229 devices, 36 uclasses, devicetree: separate
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

[*]-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

switch to partitions #0, OK
mmc1 is current device
UID: 0xa3fa1137 0x9f490717 0x208828a4 0xe6e39a70
flash target is MMC:1
Net:   eth0: ethernet@42890000, eth1: ethernet@428a0000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0 
Working FDT set to 83000000
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
65082 bytes read in 6 ms (10.3 MiB/s)
Working FDT set to 83000000
optee optee: OP-TEE api uid mismatch
Unable to open OP-TEE session (err=-19)
mm_communicate failed!
Error: Cannot initialize UEFI sub-system, r = 3
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
65082 bytes read in 5 ms (12.4 MiB/s)
Working FDT set to 83000000
Error: Cannot initialize UEFI sub-system, r = 3
starting USB...
Bus usb@4c100000: tcpc_setup_ufp_mode: Polling ALERT register, TCPC_ALERT_CC_STATUS bit failed, ret = -62
Port not available.
Bus usb@4c200000: tcpc_setup_ufp_mode: Polling ALERT register, TCPC_ALERT_CC_STATUS bit failed, ret = -62
Port not available.
USB is stopped. Please issue 'usb start' first.
Running BSP bootcmd ...
switch to partitions #0, OK
mmc1 is current device
Failed to load 'boot.scr'
34880000 bytes read in 391 ms (85.1 MiB/s)
Booting from mmc ...
65082 bytes read in 5 ms (12.4 MiB/s)
3113747 bytes read in 38 ms (78.1 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 0000000083012e39
Working FDT set to 83000000
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.6.3-gccf0a99701a7-dirty (liangtao@RedmiBook) (aarch64-none-linux-gnu-gcc (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 13.2.1 20231009, GNU ld (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 2.41.0.20231009) #4 SMP PREEMPT Thu Jun  6 10:28:54 CST 2024
[    0.000000] KASLR disabled due to lack of seed
[    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] OF: reserved mem: 0x00000000b0000000..0x00000000bfffffff (262144 KiB) map reusable linux,cma
[    0.000000] OF: reserved mem: 0x000000002021e000..0x000000002021efff (4 KiB) nomap non-reusable rsc-table@2021e000
[    0.000000] OF: reserved mem: 0x00000000a4000000..0x00000000a4007fff (32 KiB) nomap non-reusable vdev0vring0@a4000000
[    0.000000] OF: reserved mem: 0x00000000a4008000..0x00000000a400ffff (32 KiB) nomap non-reusable vdev0vring1@a4008000
[    0.000000] OF: reserved mem: 0x00000000a4010000..0x00000000a4017fff (32 KiB) nomap non-reusable vdev1vring0@a4010000
[    0.000000] OF: reserved mem: 0x00000000a4018000..0x00000000a401ffff (32 KiB) nomap non-reusable vdev1vring1@a4018000
[    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] OF: reserved mem: 0x00000000a4020000..0x00000000a411ffff (1024 KiB) nomap non-reusable vdevbuffer@a4020000
[    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] OF: reserved mem: 0x00000000a4120000..0x00000000a421ffff (1024 KiB) nomap non-reusable ele-reserved@a4120000
[    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] OF: reserved mem: 0x00000000c0000000..0x00000000cfffffff (262144 KiB) map reusable ethosu_region@C0000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xffbb66c0-0xffbb8fff]
[    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 22 pages/cpu s50536 r8192 d31384 u90112
[    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] Kernel command line: console=ttyLP0,115200 earlycon,115200 root=/dev/ram0 rw initrd=0x84000000,0x400000 rootfstype=ext4 rootwait
[    0.000000] Unknown kernel command line parameters "earlycon,115200", will be passed to user space.
[    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] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Policy zone: DMA
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 2.
[    0.000000] software IO TLB: mapped [mem 0x00000000f9800000-0x00000000fd800000] (64MB)
[    0.000000] Memory: 1425068K/2097152K available (20736K kernel code, 1614K rwdata, 7628K rodata, 3904K init, 634K bss, 147796K 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.000364] Console: colour dummy device 80x25
[    0.000424] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000433] pid_max: default: 32768 minimum: 301
[    0.000481] LSM: initializing lsm=capability,integrity
[    0.000557] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000566] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.001219] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.001746] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.001794] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.001951] rcu: Hierarchical SRCU implementation.
[    0.001954] rcu: 	Max phase no-delay instances is 1000.
[    0.002860] EFI services will not be available.
[    0.003037] smp: Bringing up secondary CPUs ...
[    0.003402] Detected VIPT I-cache on CPU1
[    0.003456] GICv3: CPU1: found redistributor 100 region 0:0x0000000048060000
[    0.003491] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    0.003585] smp: Brought up 1 node, 2 CPUs
[    0.003590] SMP: Total of 2 processors activated.
[    0.003594] CPU features: detected: 32-bit EL0 Support
[    0.003596] CPU features: detected: 32-bit EL1 Support
[    0.003599] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.003602] CPU features: detected: Common not Private translations
[    0.003604] CPU features: detected: CRC32 instructions
[    0.003609] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.003611] CPU features: detected: LSE atomic instructions
[    0.003614] CPU features: detected: Privileged Access Never
[    0.003616] CPU features: detected: RAS Extension Support
[    0.003619] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.003669] CPU: All CPU(s) started at EL2
[    0.003672] alternatives: applying system-wide alternatives
[    0.007933] devtmpfs: initialized
[    0.013440] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.013460] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.020321] pinctrl core: initialized pinctrl subsystem
[    0.021619] DMI not present or invalid.
[    0.022041] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.022952] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.023028] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.023136] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.023191] audit: initializing netlink subsys (disabled)
[    0.023334] audit: type=2000 audit(0.020:1): state=initialized audit_enabled=0 res=1
[    0.023709] thermal_sys: Registered thermal governor 'step_wise'
[    0.023713] thermal_sys: Registered thermal governor 'power_allocator'
[    0.023741] cpuidle: using governor menu
[    0.023936] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.023982] ASID allocator initialised with 65536 entries
[    0.024698] Serial: AMBA PL011 UART driver
[    0.024751] imx mu driver is registered.
[    0.024764] imx rpmsg driver is registered.
[    0.030813] imx93-pinctrl 443c0000.pinctrl: initialized IMX pinctrl driver
[    0.037490] platform 4ae30000.lcd-controller: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@0/endpoint
[    0.040467] Modules: 24080 pages in range for non-PLT usage
[    0.040476] Modules: 515600 pages in range for PLT usage
[    0.041151] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.041160] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.041163] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.041165] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.041168] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.041170] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.041173] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.041175] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.042767] ACPI: Interpreter disabled.
[    0.043793] iommu: Default domain type: Translated
[    0.043803] iommu: DMA domain TLB invalidation policy: strict mode
[    0.044049] SCSI subsystem initialized
[    0.044313] usbcore: registered new interface driver usbfs
[    0.044331] usbcore: registered new interface driver hub
[    0.044352] usbcore: registered new device driver usb
[    0.045162] mc: Linux media interface: v0.10
[    0.045198] videodev: Linux video capture interface: v2.00
[    0.045239] pps_core: LinuxPPS API ver. 1 registered
[    0.045242] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.045254] PTP clock support registered
[    0.045377] EDAC MC: Ver: 3.0.0
[    0.045784] scmi_core: SCMI protocol bus registered
[    0.046166] FPGA manager framework
[    0.046235] Advanced Linux Sound Architecture Driver Initialized.
[    0.046766] Bluetooth: Core ver 2.22
[    0.046792] NET: Registered PF_BLUETOOTH protocol family
[    0.046795] Bluetooth: HCI device and connection manager initialized
[    0.046802] Bluetooth: HCI socket layer initialized
[    0.046806] Bluetooth: L2CAP socket layer initialized
[    0.046819] Bluetooth: SCO socket layer initialized
[    0.047139] vgaarb: loaded
[    0.047773] clocksource: Switched to clocksource arch_sys_counter
[    0.047977] VFS: Disk quotas dquot_6.6.0
[    0.047999] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.048124] pnp: PnP ACPI: disabled
[    0.052863] NET: Registered PF_INET protocol family
[    0.053006] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.054117] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.054144] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.054152] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.054268] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.054669] TCP: Hash tables configured (established 16384 bind 16384)
[    0.054775] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.054811] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.054956] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.055328] RPC: Registered named UNIX socket transport module.
[    0.055335] RPC: Registered udp transport module.
[    0.055337] RPC: Registered tcp transport module.
[    0.055339] RPC: Registered tcp-with-tls transport module.
[    0.055341] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.056124] PCI: CLS 0 bytes, default 64
[    0.056283] Trying to unpack rootfs image as initramfs...
[    0.056714] rootfs image is not initramfs (no cpio magic); looks like an initrd
[    0.059937] kvm [1]: IPA Size Limit: 40 bits
[    0.059977] kvm [1]: GICv3: no GICV resource entry
[    0.059981] kvm [1]: disabling GICv2 emulation
[    0.060002] kvm [1]: GIC system register CPU interface enabled
[    0.060038] kvm [1]: vgic interrupt IRQ9
[    0.060071] kvm [1]: VHE mode initialized successfully
[    0.062025] Freeing initrd memory: 4096K
[    0.062180] Initialise system trusted keyrings
[    0.062416] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[    0.062676] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.062921] NFS: Registering the id_resolver key type
[    0.062943] Key type id_resolver registered
[    0.062946] Key type id_legacy registered
[    0.062960] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.062964] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.062979] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.063184] 9p: Installing v9fs 9p2000 file system support
[    0.085672] Key type asymmetric registered
[    0.085679] Asymmetric key parser 'x509' registered
[    0.085728] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    0.085733] io scheduler mq-deadline registered
[    0.085737] io scheduler kyber registered
[    0.085772] io scheduler bfq registered
[    0.090161] EINJ: ACPI disabled.
[    0.094733] Bus freq driver module loaded
[    0.100193] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.102458] 44380000.serial: ttyLP0 at MMIO 0x44380010 (irq = 17, base_baud = 1500000) is a FSL_LPUART
[    0.102570] printk: console [ttyLP0] enabled
[    1.398518] brd: module loaded
[    1.404691] loop: module loaded
[    1.408981] megasas: 07.725.01.00-rc1
[    1.417531] tun: Universal TUN/TAP device driver, 1.6
[    1.423260] thunder_xcv, ver 1.0
[    1.426541] thunder_bgx, ver 1.0
[    1.429788] nicpf, ver 1.0
[    1.433386] pps pps0: new PPS source ptp0
[    1.440937] fec 42890000.ethernet eth0: registered PHC device 0
[    1.448408] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    1.455641] hns3: Copyright (c) 2017 Huawei Corporation.
[    1.460980] hclge is initializing
[    1.464318] e1000: Intel(R) PRO/1000 Network Driver
[    1.469190] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    1.474951] e1000e: Intel(R) PRO/1000 Network Driver
[    1.479905] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.485830] igb: Intel(R) Gigabit Ethernet Network Driver
[    1.491224] igb: Copyright (c) 2007-2014 Intel Corporation.
[    1.496810] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    1.503062] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    1.509110] sky2: driver version 1.30
[    1.513145] usbcore: registered new device driver r8152-cfgselector
[    1.519429] usbcore: registered new interface driver r8152
[    1.525323] VFIO - User Level meta-driver version: 0.3
[    1.532393] usbcore: registered new interface driver uas
[    1.537738] usbcore: registered new interface driver usb-storage
[    1.543803] usbcore: registered new interface driver usbserial_generic
[    1.550342] usbserial: USB Serial support registered for generic
[    1.556349] usbcore: registered new interface driver ftdi_sio
[    1.562093] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.569403] usbcore: registered new interface driver usb_serial_simple
[    1.575978] usbserial: USB Serial support registered for carelink
[    1.582071] usbserial: USB Serial support registered for flashloader
[    1.588423] usbserial: USB Serial support registered for funsoft
[    1.594433] usbserial: USB Serial support registered for google
[    1.600360] usbserial: USB Serial support registered for hp4x
[    1.606103] usbserial: USB Serial support registered for kaufmann
[    1.612196] usbserial: USB Serial support registered for libtransistor
[    1.618721] usbserial: USB Serial support registered for moto_modem
[    1.624988] usbserial: USB Serial support registered for motorola_tetra
[    1.631600] usbserial: USB Serial support registered for nokia
[    1.637432] usbserial: USB Serial support registered for novatel_gps
[    1.643785] usbserial: USB Serial support registered for siemens_mpi
[    1.650139] usbserial: USB Serial support registered for suunto
[    1.656064] usbserial: USB Serial support registered for vivopay
[    1.662076] usbserial: USB Serial support registered for zio
[    1.667749] usbcore: registered new interface driver usb_ehset_test
[    1.677032] input: 44440000.bbnsm:pwrkey as /devices/platform/soc@0/44000000.bus/44440000.bbnsm/44440000.bbnsm:pwrkey/input/input0
[    1.692196] bbnsm_rtc 44440000.bbnsm:rtc: registered as rtc0
[    1.698511] bbnsm_rtc 44440000.bbnsm:rtc: setting system clock to 1970-01-01T00:00:00 UTC (0)
[    1.707898] i2c_dev: i2c /dev entries driver
[    1.714223] qoriq_thermal 44482000.tmu: invalid range data.
[    1.721012] imx7ulp-wdt 42490000.watchdog: imx93 wdt probe
[    1.756121] Bluetooth: HCI UART driver ver 2.3
[    1.760578] Bluetooth: HCI UART protocol H4 registered
[    1.765706] Bluetooth: HCI UART protocol BCSP registered
[    1.771027] Bluetooth: HCI UART protocol LL registered
[    1.776158] Bluetooth: HCI UART protocol ATH3K registered
[    1.781566] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    1.787954] Bluetooth: HCI UART protocol Broadcom registered
[    1.793620] Bluetooth: HCI UART protocol QCA registered
[    1.800094] sdhci: Secure Digital Host Controller Interface driver
[    1.806291] sdhci: Copyright(c) Pierre Ossman
[    1.811152] Synopsys Designware Multimedia Card Interface Driver
[    1.817542] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.824551] ledtrig-cpu: registered to indicate activity on CPUs
[    1.831671] fsl-se-fw se-fw2: assigned reserved memory node ele-reserved@a4120000
[    1.839237] fsl-se-fw se-fw2: Command Id[23], Response Failure = 0x29
[    1.845688] fsl-se-fw se-fw2: Failed to initialize ele fw.
[    1.851341] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.855338] mmc0: SDHCI controller on 42850000.mmc [42850000.mmc] using ADMA
[    1.858062] usbcore: registered new interface driver usbhid
[    1.870393] usbhid: USB HID core driver
[    1.875924] ethosu ethosu: assigned reserved memory node ethosu_region@C0000000
[    1.921774] hw perfevents: enabled with armv8_cortex_a55 PMU driver, 7 counters available
[    1.929375] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    1.932178]  cs_system_cfg: CoreSight Configuration manager initialised
[    1.936784] mmcblk0: mmc0:0001 DA6016 14.7 GiB
[    1.944451] optee: probing for conduit method.
[    1.948520]  mmcblk0: p1 p2
[    1.951815] optee: api uid mismatch
[    1.955068] mmcblk0boot0: mmc0:0001 DA6016 4.00 MiB
[    1.958089] optee: probe of firmware:optee failed with error -22
[    1.961302] NET: Registered PF_LLC protocol family
[    1.964010] mmcblk0boot1: mmc0:0001 DA6016 4.00 MiB
[    1.969106] u32 classifier
[    1.974615] mmcblk0rpmb: mmc0:0001 DA6016 4.00 MiB, chardev (234:0)
[    1.978780]     input device check on
[    1.991264]     Actions configured
[    1.995049] NET: Registered PF_INET6 protocol family
[    2.000890] Segment Routing with IPv6
[    2.004616] In-situ OAM (IOAM) with IPv6
[    2.008574] NET: Registered PF_PACKET protocol family
[    2.013636] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.026742] Bluetooth: RFCOMM TTY layer initialized
[    2.031634] Bluetooth: RFCOMM socket layer initialized
[    2.036783] Bluetooth: RFCOMM ver 1.11
[    2.040531] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.045837] Bluetooth: BNEP filters: protocol multicast
[    2.051058] Bluetooth: BNEP socket layer initialized
[    2.056013] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.061925] Bluetooth: HIDP socket layer initialized
[    2.067094] 8021q: 802.1Q VLAN Support v1.8
[    2.071307] lib80211: common routines for IEEE802.11 drivers
[    2.076993] 9pnet: Installing 9P2000 support
[    2.081392] Key type dns_resolver registered
[    2.098316] registered taskstats version 1
[    2.102498] Loading compiled-in X.509 certificates
[    2.129430] usb_phy_generic usbphynop1: dummy supplies not allowed for exclusive requests
[    2.137770] usb_phy_generic usbphynop2: dummy supplies not allowed for exclusive requests
[    2.162888] isi-capture 4ae40000.isi:cap_device: deferring 4ae40000.isi:cap_device device registration
[    2.172344] mxc-isi_v1 4ae40000.isi: mxc_isi.0 registered successfully
[    2.180067] remoteproc remoteproc0: imx-rproc is available
[    2.193581] i2c 0-003d: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@1/endpoint
[    2.202489] adv7511 0-003d: supply avdd not found, using dummy regulator
[    2.209296] adv7511 0-003d: supply dvdd not found, using dummy regulator
[    2.216022] adv7511 0-003d: supply pvdd not found, using dummy regulator
[    2.222758] adv7511 0-003d: supply a2vdd not found, using dummy regulator
[    2.229569] adv7511 0-003d: supply v3p3 not found, using dummy regulator
[    2.236285] adv7511 0-003d: supply v1p2 not found, using dummy regulator
[    2.243335] adv7511 0-003d: Probe failed. Remote port 'dsi@4ae10000' disabled
[    2.250830] st_lsm6dsx_i2c 0-006a: supply vdd not found, using dummy regulator
[    2.258121] st_lsm6dsx_i2c 0-006a: supply vddio not found, using dummy regulator
[    2.799054] st_lsm6dsx_i2c 0-006a: mounting matrix not found: using identity...
[    2.807126] i2c i2c-0: LPI2C adapter registered
[    2.813274] pca953x 1-0022: supply vcc not found, using dummy regulator
[    2.820071] pca953x 1-0022: using AI
[    2.825241] adp5585-gpio adp5585-gpio.1.auto: DMA mask not set
[    2.831913] adp5585-pwm adp5585-pwm.2.auto: DMA mask not set
[    2.837754] i2c i2c-1: LPI2C adapter registered
[    2.843403] i2c 2-0050: Fixed dependency cycle(s) with /soc@0/usb@4c100000/port/endpoint
[    2.852437] i2c 2-0051: Fixed dependency cycle(s) with /soc@0/usb@4c200000/port/endpoint
[    2.861417] adp5585 2-0034: Failed to read reg 0x00, ret is -5
[    2.867282] adp5585: probe of 2-0034 failed with error -5
[    2.872866] i2c 2-003c: Fixed dependency cycle(s) with /soc@0/bus@42800000/camera/csi@4ae00000/port/endpoint
[    2.882980] i2c i2c-2: LPI2C adapter registered
[    2.889135] 42590000.serial: ttyLP4 at MMIO 0x42590010 (irq = 104, base_baud = 1500000) is a FSL_LPUART
[    2.898722] serial serial0: tty port ttyLP4 registered
[    2.905124] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[    2.913094] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -19
[    2.923098] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -19
[    2.932662] imx-drm display-subsystem: failed to bind 4ae10000.dsi (ops dw_mipi_dsi_imx_ops): -19
[    2.941769] imx-drm display-subsystem: adev bind failed: -19
[    2.947434] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -19
[    2.969886] sdhci-esdhc-imx 42860000.mmc: Got CD GPIO
[    2.970137] dwc-mipi-csi2-host 4ae00000.csi: lanes: 2, name: mxc-mipi-csi2.0
[    2.990848] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    2.994064] nxp-pca9450 1-0025: pca9451a probed.
[    2.999592] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    3.012898] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    3.016025] mmc1: SDHCI controller on 42860000.mmc [42860000.mmc] using ADMA
[    3.034307] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    3.043039] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    3.051738] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    3.068085] sdhci-esdhc-imx 428b0000.mmc: allocated mmc-pwrseq
[    3.075851] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.084985] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.090745] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.091834] clk: Disabling unused clocks
[    3.099372] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    3.104019] ALSA device list:
[    3.113985]   No soundcards found.
[    3.136342] mmc2: SDHCI controller on 428b0000.mmc [428b0000.mmc] using ADMA
[    3.143737] RAMDISK: gzip image found at block 0
[    3.214646] mmc2: new ultra high speed SDR104 SDIO card at address 0001
[    3.218630] mmc1: host does not support reading read-only switch, assuming write-enable
[    3.249349] EXT4-fs (ram0): mounted filesystem be38e239-2749-404a-985b-fb469650b79f r/w without journal. Quota mode: none.
[    3.256539] mmc1: new ultra high speed SDR104 SDHC card at address 0001
[    3.260506] VFS: Mounted root (ext4 filesystem) on device 1:0.
[    3.267470] mmcblk1: mmc1:0001 SD 7.48 GiB
[    3.273038] devtmpfs: mounted
[    3.278934]  mmcblk1: p1
[    3.281146] Freeing unused kernel memory: 3904K
[    3.287183] Run /sbin/init as init process

Processing /etc/profile... Done

~ # [    3.323865] EXT4-fs (ram0): re-mounted be38e239-2749-404a-985b-fb469650b79f r/w. Quota mode: none.
[    3.339514] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
burn uboot
2906+0 records in
2906+0 records out
1487872 bytes (1.4MB) copied, 0.056593 seconds, 25.1MB/s
flashing kernel and rootfs, wait...
/mnt/mx93-linux-fs.sdcard.aa 0
0+1 records in
0+1 records out
151847936 bytes (144.8MB) copied, 4.362674 seconds, 33.2MB/s
flash /mnt/mx93-linux-fs.sdcard.aa, done
Flashing completed
resize rootfs partition

The number of cylinders for this disk is set to 240448.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): Partition number (1-4): 
Command (m for help): Partition type
   p   primary partition (1-4)
   e   extended
Partition number (1-4): First sector (32-30777343, default 32): Last sector or +size{,K,M,G,T} (262144-30777343, default 30777343): Using default value 30777343

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table
[    8.793314]  mmcblk0: p1 p2
resize2fs 1.47.0 (5-Feb-2023)
Resizing the filesystem on /dev/mmcblk0p2 to 3814400 (4k) blocks.
The filesystem on /dev/mmcblk0p2 is now 3814400 (4k) blocks long.

done...

启动日志如下:

U-Boot SPL 2023.04-dirty (Jun 06 2024 - 13:35:08 +0800)
SOC: 0xa0009300
LC: 0x40010
PMIC: PCA9451A
PMIC: Over Drive Voltage Mode
DDR: 3733MTS
M33 prepare ok
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x0, pagesize 0x200, ivt offset 0x0
Load image from 0x46000 by ROM_API
NOTICE:  BL31: v2.8(release):lf-6.6.3-1.0.0-0-g8dbe28631
NOTICE:  BL31: Built : 15:32:21, May 30 2024


U-Boot 2023.04-dirty (Jun 06 2024 - 13:35:08 +0800)

CPU:   i.MX93(52) rev1.0 1700 MHz (running at 1692 MHz)
CPU:   Consumer temperature grade (0C to 95C) at 31C
Reset cause: POR (0x1)
Model: NXP i.MX93 11X11 EVK board
DRAM:  2 GiB
optee optee: OP-TEE api uid mismatch
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x52]
SNK.Power3.0 on CC1
PDO 0: type 0, 5000 mV, 3000 mA [E]
PDO 1: type 0, 9000 mV, 3000 mA []
PDO 2: type 0, 15000 mV, 3000 mA []
PDO 3: type 0, 20000 mV, 2250 mA []
Requesting PDO 3: 20000 mV, 750 mA
Source accept request
PD source ready!
tcpc_pd_receive_message: Polling ALERT register, TCPC_ALERT_RX_STATUS bit failed, ret = -62
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x51]
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x50]
Core:  229 devices, 36 uclasses, devicetree: separate
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

[*]-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

switch to partitions #0, OK
mmc0(part 0) is current device
UID: 0xa3fa1137 0x9f490717 0x208828a4 0xe6e39a70
flash target is MMC:0
Net:   eth0: ethernet@42890000, eth1: ethernet@428a0000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0 
Working FDT set to 83000000
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
65082 bytes read in 2 ms (31 MiB/s)
Working FDT set to 83000000
MMC: no card present
optee optee: OP-TEE api uid mismatch
Unable to open OP-TEE session (err=-19)
mm_communicate failed!
Error: Cannot initialize UEFI sub-system, r = 3
MMC: no card present
starting USB...
Bus usb@4c100000: tcpc_setup_ufp_mode: Polling ALERT register, TCPC_ALERT_CC_STATUS bit failed, ret = -62
Port not available.
Bus usb@4c200000: tcpc_setup_ufp_mode: Polling ALERT register, TCPC_ALERT_CC_STATUS bit failed, ret = -62
Port not available.
USB is stopped. Please issue 'usb start' first.
Running BSP bootcmd ...
switch to partitions #0, OK
mmc0(part 0) is current device
Failed to load 'boot.scr'
34880000 bytes read in 296 ms (112.4 MiB/s)
Booting from mmc ...
65082 bytes read in 9 ms (6.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 0000000083012e39
Working FDT set to 83000000
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.6.3-gccf0a99701a7-dirty (liangtao@RedmiBook) (aarch64-none-linux-gnu-gcc (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 13.2.1 20231009, GNU ld (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 2.41.0.20231009) #4 SMP PREEMPT Thu Jun  6 10:28:54 CST 2024
[    0.000000] KASLR disabled due to lack of seed
[    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] OF: reserved mem: 0x00000000b0000000..0x00000000bfffffff (262144 KiB) map reusable linux,cma
[    0.000000] OF: reserved mem: 0x000000002021e000..0x000000002021efff (4 KiB) nomap non-reusable rsc-table@2021e000
[    0.000000] OF: reserved mem: 0x00000000a4000000..0x00000000a4007fff (32 KiB) nomap non-reusable vdev0vring0@a4000000
[    0.000000] OF: reserved mem: 0x00000000a4008000..0x00000000a400ffff (32 KiB) nomap non-reusable vdev0vring1@a4008000
[    0.000000] OF: reserved mem: 0x00000000a4010000..0x00000000a4017fff (32 KiB) nomap non-reusable vdev1vring0@a4010000
[    0.000000] OF: reserved mem: 0x00000000a4018000..0x00000000a401ffff (32 KiB) nomap non-reusable vdev1vring1@a4018000
[    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] OF: reserved mem: 0x00000000a4020000..0x00000000a411ffff (1024 KiB) nomap non-reusable vdevbuffer@a4020000
[    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] OF: reserved mem: 0x00000000a4120000..0x00000000a421ffff (1024 KiB) nomap non-reusable ele-reserved@a4120000
[    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] OF: reserved mem: 0x00000000c0000000..0x00000000cfffffff (262144 KiB) map reusable ethosu_region@C0000000
[    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 0xffbb66c0-0xffbb8fff]
[    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 22 pages/cpu s50536 r8192 d31384 u90112
[    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] 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] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Policy zone: DMA
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 2.
[    0.000000] software IO TLB: mapped [mem 0x00000000f9800000-0x00000000fd800000] (64MB)
[    0.000000] Memory: 1429164K/2097152K available (20736K kernel code, 1614K rwdata, 7628K rodata, 3904K init, 634K bss, 143700K 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.008374] Console: colour dummy device 80x25
[    0.012606] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.022780] pid_max: default: 32768 minimum: 301
[    0.027419] LSM: initializing lsm=capability,integrity
[    0.032556] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.039857] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.048291] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.054672] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.061524] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.069147] rcu: Hierarchical SRCU implementation.
[    0.073770] rcu: 	Max phase no-delay instances is 1000.
[    0.079905] EFI services will not be available.
[    0.084394] smp: Bringing up secondary CPUs ...
[    0.089060] Detected VIPT I-cache on CPU1
[    0.089113] GICv3: CPU1: found redistributor 100 region 0:0x0000000048060000
[    0.089148] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    0.089249] smp: Brought up 1 node, 2 CPUs
[    0.110601] SMP: Total of 2 processors activated.
[    0.115272] CPU features: detected: 32-bit EL0 Support
[    0.120395] CPU features: detected: 32-bit EL1 Support
[    0.125501] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.134083] CPU features: detected: Common not Private translations
[    0.140316] CPU features: detected: CRC32 instructions
[    0.145439] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.151149] CPU features: detected: LSE atomic instructions
[    0.156696] CPU features: detected: Privileged Access Never
[    0.162241] CPU features: detected: RAS Extension Support
[    0.167616] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.174598] CPU: All CPU(s) started at EL2
[    0.178623] alternatives: applying system-wide alternatives
[    0.188420] devtmpfs: initialized
[    0.196941] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.206439] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.219966] pinctrl core: initialized pinctrl subsystem
[    0.226541] DMI not present or invalid.
[    0.230559] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.236850] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.243728] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.251430] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.259291] audit: initializing netlink subsys (disabled)
[    0.264770] audit: type=2000 audit(0.176:1): state=initialized audit_enabled=0 res=1
[    0.265154] thermal_sys: Registered thermal governor 'step_wise'
[    0.272334] thermal_sys: Registered thermal governor 'power_allocator'
[    0.278340] cpuidle: using governor menu
[    0.288892] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.295508] ASID allocator initialised with 65536 entries
[    0.301570] Serial: AMBA PL011 UART driver
[    0.305459] imx mu driver is registered.
[    0.309305] imx rpmsg driver is registered.
[    0.319631] imx93-pinctrl 443c0000.pinctrl: initialized IMX pinctrl driver
[    0.332951] platform 4ae30000.lcd-controller: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@0/endpoint
[    0.346358] Modules: 24080 pages in range for non-PLT usage
[    0.346369] Modules: 515600 pages in range for PLT usage
[    0.352404] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.364227] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.370460] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.377218] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.383458] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.390218] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.396458] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.403217] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.411190] ACPI: Interpreter disabled.
[    0.415513] iommu: Default domain type: Translated
[    0.420068] iommu: DMA domain TLB invalidation policy: strict mode
[    0.426458] SCSI subsystem initialized
[    0.430240] usbcore: registered new interface driver usbfs
[    0.435477] usbcore: registered new interface driver hub
[    0.440766] usbcore: registered new device driver usb
[    0.446629] mc: Linux media interface: v0.10
[    0.450673] videodev: Linux video capture interface: v2.00
[    0.456143] pps_core: LinuxPPS API ver. 1 registered
[    0.461036] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.470141] PTP clock support registered
[    0.474169] EDAC MC: Ver: 3.0.0
[    0.477613] scmi_core: SCMI protocol bus registered
[    0.482695] FPGA manager framework
[    0.485893] Advanced Linux Sound Architecture Driver Initialized.
[    0.492460] Bluetooth: Core ver 2.22
[    0.495787] NET: Registered PF_BLUETOOTH protocol family
[    0.501064] Bluetooth: HCI device and connection manager initialized
[    0.507388] Bluetooth: HCI socket layer initialized
[    0.512245] Bluetooth: L2CAP socket layer initialized
[    0.517273] Bluetooth: SCO socket layer initialized
[    0.522448] vgaarb: loaded
[    0.525514] clocksource: Switched to clocksource arch_sys_counter
[    0.531577] VFS: Disk quotas dquot_6.6.0
[    0.535281] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.542228] pnp: PnP ACPI: disabled
[    0.550521] NET: Registered PF_INET protocol family
[    0.555294] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.563742] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.572032] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.579733] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.587669] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.595270] TCP: Hash tables configured (established 16384 bind 16384)
[    0.601655] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.608239] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.615448] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.621338] RPC: Registered named UNIX socket transport module.
[    0.627002] RPC: Registered udp transport module.
[    0.631672] RPC: Registered tcp transport module.
[    0.636351] RPC: Registered tcp-with-tls transport module.
[    0.641818] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.648997] PCI: CLS 0 bytes, default 64
[    0.652884] kvm [1]: IPA Size Limit: 40 bits
[    0.656920] kvm [1]: GICv3: no GICV resource entry
[    0.661669] kvm [1]: disabling GICv2 emulation
[    0.666102] kvm [1]: GIC system register CPU interface enabled
[    0.671913] kvm [1]: vgic interrupt IRQ9
[    0.675814] kvm [1]: VHE mode initialized successfully
[    0.681811] Initialise system trusted keyrings
[    0.686174] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[    0.692660] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.698457] NFS: Registering the id_resolver key type
[    0.703278] Key type id_resolver registered
[    0.707412] Key type id_legacy registered
[    0.711411] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.718073] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.725451] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.731685] 9p: Installing v9fs 9p2000 file system support
[    0.759410] Key type asymmetric registered
[    0.763249] Asymmetric key parser 'x509' registered
[    0.768131] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    0.775470] io scheduler mq-deadline registered
[    0.779969] io scheduler kyber registered
[    0.783981] io scheduler bfq registered
[    0.792280] EINJ: ACPI disabled.
[    0.799917] Bus freq driver module loaded
[    0.810011] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.827743] printk: console [ttyLP0] enabled0x44380010 (irq = 17, base_baud = 1500000) is a FSL_LPUART
[    0.827743] printk: console [ttyLP0] enabled
[    0.836174] printk: bootconsole [lpuart32] disabled
[    0.836174] printk: bootconsole [lpuart32] disabled
[    0.856946] brd: module loaded
[    0.863102] loop: module loaded
[    0.867405] megasas: 07.725.01.00-rc1
[    0.875973] tun: Universal TUN/TAP device driver, 1.6
[    0.881789] thunder_xcv, ver 1.0
[    0.885037] thunder_bgx, ver 1.0
[    0.888290] nicpf, ver 1.0
[    0.891894] pps pps0: new PPS source ptp0
[    0.899205] fec 42890000.ethernet eth0: registered PHC device 0
[    0.906717] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    0.913948] hns3: Copyright (c) 2017 Huawei Corporation.
[    0.919326] hclge is initializing
[    0.922668] e1000: Intel(R) PRO/1000 Network Driver
[    0.927547] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    0.933299] e1000e: Intel(R) PRO/1000 Network Driver
[    0.938254] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.944178] igb: Intel(R) Gigabit Ethernet Network Driver
[    0.949572] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.955149] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    0.961402] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.967471] sky2: driver version 1.30
[    0.971527] usbcore: registered new device driver r8152-cfgselector
[    0.977804] usbcore: registered new interface driver r8152
[    0.983704] VFIO - User Level meta-driver version: 0.3
[    0.990838] usbcore: registered new interface driver uas
[    0.996189] usbcore: registered new interface driver usb-storage
[    1.002246] usbcore: registered new interface driver usbserial_generic
[    1.008781] usbserial: USB Serial support registered for generic
[    1.014793] usbcore: registered new interface driver ftdi_sio
[    1.020554] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.027872] usbcore: registered new interface driver usb_serial_simple
[    1.034437] usbserial: USB Serial support registered for carelink
[    1.040531] usbserial: USB Serial support registered for flashloader
[    1.046883] usbserial: USB Serial support registered for funsoft
[    1.052893] usbserial: USB Serial support registered for google
[    1.058818] usbserial: USB Serial support registered for hp4x
[    1.064563] usbserial: USB Serial support registered for kaufmann
[    1.070655] usbserial: USB Serial support registered for libtransistor
[    1.077181] usbserial: USB Serial support registered for moto_modem
[    1.083448] usbserial: USB Serial support registered for motorola_tetra
[    1.090064] usbserial: USB Serial support registered for nokia
[    1.095894] usbserial: USB Serial support registered for novatel_gps
[    1.102246] usbserial: USB Serial support registered for siemens_mpi
[    1.108598] usbserial: USB Serial support registered for suunto
[    1.114524] usbserial: USB Serial support registered for vivopay
[    1.120533] usbserial: USB Serial support registered for zio
[    1.126203] usbcore: registered new interface driver usb_ehset_test
[    1.135548] input: 44440000.bbnsm:pwrkey as /devices/platform/soc@0/44000000.bus/44440000.bbnsm/44440000.bbnsm:pwrkey/input/input0
[    1.150690] bbnsm_rtc 44440000.bbnsm:rtc: registered as rtc0
[    1.156995] bbnsm_rtc 44440000.bbnsm:rtc: setting system clock to 1970-01-01T00:00:00 UTC (0)
[    1.166243] i2c_dev: i2c /dev entries driver
[    1.172531] qoriq_thermal 44482000.tmu: invalid range data.
[    1.179349] imx7ulp-wdt 42490000.watchdog: imx93 wdt probe
[    1.213211] Bluetooth: HCI UART driver ver 2.3
[    1.217676] Bluetooth: HCI UART protocol H4 registered
[    1.222806] Bluetooth: HCI UART protocol BCSP registered
[    1.228127] Bluetooth: HCI UART protocol LL registered
[    1.233258] Bluetooth: HCI UART protocol ATH3K registered
[    1.238666] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    1.245061] Bluetooth: HCI UART protocol Broadcom registered
[    1.250729] Bluetooth: HCI UART protocol QCA registered
[    1.257212] sdhci: Secure Digital Host Controller Interface driver
[    1.263415] sdhci: Copyright(c) Pierre Ossman
[    1.268298] Synopsys Designware Multimedia Card Interface Driver
[    1.274748] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.281783] ledtrig-cpu: registered to indicate activity on CPUs
[    1.288840] fsl-se-fw se-fw2: assigned reserved memory node ele-reserved@a4120000
[    1.296405] fsl-se-fw se-fw2: Command Id[23], Response Failure = 0x29
[    1.302856] fsl-se-fw se-fw2: Failed to initialize ele fw.
[    1.308512] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.312662] mmc0: SDHCI controller on 42850000.mmc [42850000.mmc] using ADMA
[    1.315235] usbcore: registered new interface driver usbhid
[    1.327563] usbhid: USB HID core driver
[    1.332919] ethosu ethosu: assigned reserved memory node ethosu_region@C0000000
[    1.378627] hw perfevents: enabled with armv8_cortex_a55 PMU driver, 7 counters available
[    1.387523] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    1.388839]  cs_system_cfg: CoreSight Configuration manager initialised
[    1.394398] mmcblk0: mmc0:0001 DA6016 14.7 GiB
[    1.402014] optee: probing for conduit method.
[    1.406119]  mmcblk0: p1 p2
[    1.409395] optee: api uid mismatch
[    1.412642] mmcblk0boot0: mmc0:0001 DA6016 4.00 MiB
[    1.415644] optee: probe of firmware:optee failed with error -22
[    1.418977] NET: Registered PF_LLC protocol family
[    1.421602] mmcblk0boot1: mmc0:0001 DA6016 4.00 MiB
[    1.426785] u32 classifier
[    1.432145] mmcblk0rpmb: mmc0:0001 DA6016 4.00 MiB, chardev (234:0)
[    1.436205]     input device check on
[    1.448814]     Actions configured
[    1.452592] NET: Registered PF_INET6 protocol family
[    1.458451] Segment Routing with IPv6
[    1.462159] In-situ OAM (IOAM) with IPv6
[    1.466114] NET: Registered PF_PACKET protocol family
[    1.471178] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.484294] Bluetooth: RFCOMM TTY layer initialized
[    1.489184] Bluetooth: RFCOMM socket layer initialized
[    1.494334] Bluetooth: RFCOMM ver 1.11
[    1.498081] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.503380] Bluetooth: BNEP filters: protocol multicast
[    1.508601] Bluetooth: BNEP socket layer initialized
[    1.513555] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.519467] Bluetooth: HIDP socket layer initialized
[    1.524639] 8021q: 802.1Q VLAN Support v1.8
[    1.528849] lib80211: common routines for IEEE802.11 drivers
[    1.534542] 9pnet: Installing 9P2000 support
[    1.538926] Key type dns_resolver registered
[    1.555918] registered taskstats version 1
[    1.560119] Loading compiled-in X.509 certificates
[    1.587161] usb_phy_generic usbphynop1: dummy supplies not allowed for exclusive requests
[    1.595488] usb_phy_generic usbphynop2: dummy supplies not allowed for exclusive requests
[    1.620949] isi-capture 4ae40000.isi:cap_device: deferring 4ae40000.isi:cap_device device registration
[    1.630413] mxc-isi_v1 4ae40000.isi: mxc_isi.0 registered successfully
[    1.638197] remoteproc remoteproc0: imx-rproc is available
[    1.652029] i2c 0-003d: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@1/endpoint
[    1.660976] adv7511 0-003d: supply avdd not found, using dummy regulator
[    1.667784] adv7511 0-003d: supply dvdd not found, using dummy regulator
[    1.674526] adv7511 0-003d: supply pvdd not found, using dummy regulator
[    1.681247] adv7511 0-003d: supply a2vdd not found, using dummy regulator
[    1.688050] adv7511 0-003d: supply v3p3 not found, using dummy regulator
[    1.694785] adv7511 0-003d: supply v1p2 not found, using dummy regulator
[    1.701818] adv7511 0-003d: Probe failed. Remote port 'dsi@4ae10000' disabled
[    1.709326] st_lsm6dsx_i2c 0-006a: supply vdd not found, using dummy regulator
[    1.716621] st_lsm6dsx_i2c 0-006a: supply vddio not found, using dummy regulator
[    2.256554] st_lsm6dsx_i2c 0-006a: mounting matrix not found: using identity...
[    2.264628] i2c i2c-0: LPI2C adapter registered
[    2.270794] pca953x 1-0022: supply vcc not found, using dummy regulator
[    2.277556] pca953x 1-0022: using AI
[    2.282942] adp5585-gpio adp5585-gpio.1.auto: DMA mask not set
[    2.289742] adp5585-pwm adp5585-pwm.2.auto: DMA mask not set
[    2.295558] i2c i2c-1: LPI2C adapter registered
[    2.301159] i2c 2-0050: Fixed dependency cycle(s) with /soc@0/usb@4c100000/port/endpoint
[    2.310027] i2c 2-0051: Fixed dependency cycle(s) with /soc@0/usb@4c200000/port/endpoint
[    2.318943] adp5585 2-0034: Failed to read reg 0x00, ret is -5
[    2.324810] adp5585: probe of 2-0034 failed with error -5
[    2.330366] i2c 2-003c: Fixed dependency cycle(s) with /soc@0/bus@42800000/camera/csi@4ae00000/port/endpoint
[    2.340445] i2c i2c-2: LPI2C adapter registered
[    2.346691] 42590000.serial: ttyLP4 at MMIO 0x42590010 (irq = 104, base_baud = 1500000) is a FSL_LPUART
[    2.356190] serial serial0: tty port ttyLP4 registered
[    2.362516] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[    2.370499] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -19
[    2.380502] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -19
[    2.390061] imx-drm display-subsystem: failed to bind 4ae10000.dsi (ops dw_mipi_dsi_imx_ops): -19
[    2.399120] imx-drm display-subsystem: adev bind failed: -19
[    2.404785] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -19
[    2.427295] sdhci-esdhc-imx 42860000.mmc: Got CD GPIO
[    2.427686] dwc-mipi-csi2-host 4ae00000.csi: lanes: 2, name: mxc-mipi-csi2.0
[    2.448378] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    2.451637] nxp-pca9450 1-0025: pca9451a probed.
[    2.457132] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    2.462015] mmc1: SDHCI controller on 42860000.mmc [42860000.mmc] using ADMA
[    2.470558] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    2.490916] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    2.499646] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    2.508351] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    2.524739] sdhci-esdhc-imx 428b0000.mmc: allocated mmc-pwrseq
[    2.533365] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    2.542637] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.548394] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    2.549570] clk: Disabling unused clocks
[    2.557028] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    2.561550] ALSA device list:
[    2.571631]   No soundcards found.
[    2.597551] mmc2: SDHCI controller on 428b0000.mmc [428b0000.mmc] using ADMA
[    2.613478] EXT4-fs (mmcblk0p2): mounted filesystem f768a293-4041-4ecd-9fd5-62184f828a43 r/w with ordered data mode. Quota mode: none.
[    2.628917] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.635249] devtmpfs: mounted
[    2.639505] Freeing unused kernel memory: 3904K
[    2.649598] Run /sbin/init as init process
/etc/init.d/rcS: line 4: /update.sh: not found

Processing /etc/profile... Done

~ # [    2.679277] mmc2: new ultra high speed SDR104 SDIO card at address 0001
df -Th
Filesystem           Type            Size      Used Available Use% Mounted on
/dev/root            ext4           14.5G      6.0M     13.7G   0% /
devtmpfs             devtmpfs      697.8M         0    697.8M   0% /dev
~ # 

6. 通过 uuu 工具烧录

原理如下:

  • 通过 usb 下载一个 uboot 到 ram 空间运行。

  • 接受电脑端的指令与数据,将数据写入 emmc 中

涉及的文件如下:

flash.bin 为 emmc 正常启动的 uboot 文件

mx93-linux-fs.sdcard.aa 为 5.2 章节构建的烧录包

flash.bat 为编写的 windows 烧录脚本

E:\tmp\mx93_myself>dir
 驱动器 E 中的卷是 DATA2
 卷的序列号是 7A9C-019A

 E:\tmp\mx93_myself 的目录

2024/06/11  14:01    <DIR>          .
2024/06/11  14:01    <DIR>          ..
2024/06/11  14:01               360 flash.bat
2024/06/11  13:44         1,487,872 flash.bin
2024/06/11  13:44       151,847,936 mx93-linux-fs.sdcard.aa
2023/06/25  15:17         1,472,000 uuu.exe
               4 个文件    154,808,168 字节
               2 个目录 1,375,275,208,704 可用字节

flash.bat 文件内容如下:

如果 mx93-linux-fs.sdcard 被分成了多个文件,需要将其合并为一个文件

@echo off

setlocal enabledelayedexpansion

if not exist uuu.exe (
    echo "uuu tool not found!"
    exit /b 1
)

REM 这是一个中文注释
uuu.exe -b emmc flash.bin
uuu.exe -b emmc_all flash.bin mx93-linux-fs.sdcard.aa

if errorlevel 1 (
    echo "Error occurred during flashing!"
    exit /b 1
)

echo "Flashing completed successfully!"
exit /b 0

将开发板拨到 usb 下载模式,双击 bat 文件开始烧录。

6.1 烧录和启动日志

烧录日志如下:

U-Boot SPL 2023.04-dirty (Jun 06 2024 - 13:35:08 +0800)
SOC: 0xa0009300
LC: 0x40010
PMIC: PCA9451A
PMIC: Over Drive Voltage Mode
DDR: 3733MTS
M33 prepare ok
Normal Boot
Trying to boot from BOOTROM
Boot Stage: USB boot
Find img info 0x88000000, size 288
Download 1200128, Total size 1201152
NOTICE:  BL31: v2.8(release):lf-6.6.3-1.0.0-0-g8dbe28631
NOTICE:  BL31: Built : 15:32:21, May 30 2024


U-Boot 2023.04-dirty (Jun 06 2024 - 13:35:08 +0800)

CPU:   i.MX93(52) rev1.0 1700 MHz (running at 1692 MHz)
CPU:   Consumer temperature grade (0C to 95C) at 35C
Reset cause: POR (0x1)
Model: NXP i.MX93 11X11 EVK board
DRAM:  2 GiB
optee optee: OP-TEE api uid mismatch
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x52]
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x51]
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x50]
Core:  229 devices, 36 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: 0xa3fa1137 0x9f490717 0x208828a4 0xe6e39a70
Detect USB boot. Will enter fastboot mode!
Net:   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 ...
Unknown image format!
Run fastboot ...
auto usb 0
Failed to configure default pinctrl
UID: 0xa3fa1137 0x9f490717 0x208828a4 0xe6e39a70
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
switch to partitions #0, OK
mmc0(part 0) is current device
Detect USB boot. Will enter fastboot mode!
Starting download of 1487872 bytes
...........
downloading of 1487872 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 2906 ... 2906 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!
switch to partitions #0, OK
mmc0(part 0) is current device
Detect USB boot. Will enter fastboot mode!
Starting download of 16776232 bytes
..........................................................................
.....................................................
downloading of 16776232 bytes finished
writing to partition 'all'
sparse flash target is mmc:0
writing to partition 'all' for sparse, buffer size 16776232
Flashing sparse image at offset 0
Flashing Sparse Image
........ wrote 16776192 bytes to 'all'
Starting download of 16776244 bytes
..........................................................................
.....................................................
downloading of 16776244 bytes finished
writing to partition 'all'
sparse flash target is mmc:0
writing to partition 'all' for sparse, buffer size 16776244
Flashing sparse image at offset 0
Flashing Sparse Image
........ wrote 16776192 bytes to 'all'
Starting download of 16776244 bytes
..........................................................................
.....................................................
downloading of 16776244 bytes finished
writing to partition 'all'
sparse flash target is mmc:0
writing to partition 'all' for sparse, buffer size 16776244
Flashing sparse image at offset 0
Flashing Sparse Image
........ wrote 16776192 bytes to 'all'
Starting download of 16776244 bytes
..........................................................................
.....................................................
downloading of 16776244 bytes finished
writing to partition 'all'
sparse flash target is mmc:0
writing to partition 'all' for sparse, buffer size 16776244
Flashing sparse image at offset 0
Flashing Sparse Image
........ wrote 16776192 bytes to 'all'
Starting download of 16776244 bytes
..........................................................................
.....................................................
downloading of 16776244 bytes finished
writing to partition 'all'
sparse flash target is mmc:0
writing to partition 'all' for sparse, buffer size 16776244
Flashing sparse image at offset 0
Flashing Sparse Image
........ wrote 16776192 bytes to 'all'
Starting download of 16776244 bytes
..........................................................................
.....................................................
downloading of 16776244 bytes finished
writing to partition 'all'
sparse flash target is mmc:0
writing to partition 'all' for sparse, buffer size 16776244
Flashing sparse image at offset 0
Flashing Sparse Image
........ wrote 16776192 bytes to 'all'
Starting download of 16776244 bytes
..........................................................................
.....................................................
downloading of 16776244 bytes finished
writing to partition 'all'
sparse flash target is mmc:0
writing to partition 'all' for sparse, buffer size 16776244
Flashing sparse image at offset 0
Flashing Sparse Image
........ wrote 16776192 bytes to 'all'
Starting download of 16776244 bytes
..........................................................................
.....................................................
downloading of 16776244 bytes finished
writing to partition 'all'
sparse flash target is mmc:0
writing to partition 'all' for sparse, buffer size 16776244
Flashing sparse image at offset 0
Flashing Sparse Image
........ wrote 16776192 bytes to 'all'
Starting download of 16776244 bytes
..........................................................................
.....................................................
downloading of 16776244 bytes finished
writing to partition 'all'
sparse flash target is mmc:0
writing to partition 'all' for sparse, buffer size 16776244
Flashing sparse image at offset 0
Flashing Sparse Image
........ wrote 16776192 bytes to 'all'
Starting download of 862260 bytes
......
downloading of 862260 bytes finished
writing to partition 'all'
sparse flash target is mmc:0
writing to partition 'all' for sparse, buffer size 862260
Flashing sparse image at offset 0
Flashing Sparse Image
........ wrote 862208 bytes to 'all'
Starting download of 1487872 bytes
...........
downloading of 1487872 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 2906 ... 2906 blocks written: OK
Writing 'bootloader' DONE!
Detect USB boot. Will enter fastboot mode!
Detect USB boot. Will enter fastboot mode!

启动日志如下:

U-Boot SPL 2023.04-dirty (Jun 06 2024 - 13:35:08 +0800)
SOC: 0xa0009300
LC: 0x40010
PMIC: PCA9451A
PMIC: Over Drive Voltage Mode
DDR: 3733MTS
M33 prepare ok
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x0, pagesize 0x200, ivt offset 0x0
Load image from 0x46000 by ROM_API
NOTICE:  BL31: v2.8(release):lf-6.6.3-1.0.0-0-g8dbe28631
NOTICE:  BL31: Built : 15:32:21, May 30 2024


U-Boot 2023.04-dirty (Jun 06 2024 - 13:35:08 +0800)

CPU:   i.MX93(52) rev1.0 1700 MHz (running at 1692 MHz)
CPU:   Consumer temperature grade (0C to 95C) at 35C
Reset cause: POR (0x1)
Model: NXP i.MX93 11X11 EVK board
DRAM:  2 GiB
optee optee: OP-TEE api uid mismatch
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x52]
SNK.Power3.0 on CC1
PDO 0: type 0, 5000 mV, 3000 mA [E]
PDO 1: type 0, 9000 mV, 3000 mA []
PDO 2: type 0, 15000 mV, 3000 mA []
PDO 3: type 0, 20000 mV, 2250 mA []
Requesting PDO 3: 20000 mV, 750 mA
Source accept request
PD source ready!
tcpc_pd_receive_message: Polling ALERT register, TCPC_ALERT_RX_STATUS bit failed, ret = -62
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x51]
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x50]
Core:  229 devices, 36 uclasses, devicetree: separate
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

[*]-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

switch to partitions #0, OK
mmc0(part 0) is current device
UID: 0xa3fa1137 0x9f490717 0x208828a4 0xe6e39a70
flash target is MMC:0
Net:   eth0: ethernet@42890000, eth1: ethernet@428a0000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0 
Working FDT set to 83000000
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
65082 bytes read in 2 ms (31 MiB/s)
Working FDT set to 83000000
MMC: no card present
optee optee: OP-TEE api uid mismatch
Unable to open OP-TEE session (err=-19)
mm_communicate failed!
Error: Cannot initialize UEFI sub-system, r = 3
MMC: no card present
starting USB...
Bus usb@4c100000: SNK.Default on CC1
SNK.Default on CC1
SNK.Default on CC1
Port not available.
Bus usb@4c200000: tcpc_setup_ufp_mode: Polling ALERT register, TCPC_ALERT_CC_STATUS bit failed, ret = -62
Port not available.
USB is stopped. Please issue 'usb start' first.
Running BSP bootcmd ...
switch to partitions #0, OK
mmc0(part 0) is current device
Failed to load 'boot.scr'
34880000 bytes read in 131 ms (253.9 MiB/s)
Booting from mmc ...
65082 bytes read in 8 ms (7.8 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 0000000083012e39
Working FDT set to 83000000
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.6.3-gccf0a99701a7-dirty (liangtao@RedmiBook) (aarch64-none-linux-gnu-gcc (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 13.2.1 20231009, GNU ld (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 2.41.0.20231009) #4 SMP PREEMPT Thu Jun  6 10:28:54 CST 2024
[    0.000000] KASLR disabled due to lack of seed
[    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] OF: reserved mem: 0x00000000b0000000..0x00000000bfffffff (262144 KiB) map reusable linux,cma
[    0.000000] OF: reserved mem: 0x000000002021e000..0x000000002021efff (4 KiB) nomap non-reusable rsc-table@2021e000
[    0.000000] OF: reserved mem: 0x00000000a4000000..0x00000000a4007fff (32 KiB) nomap non-reusable vdev0vring0@a4000000
[    0.000000] OF: reserved mem: 0x00000000a4008000..0x00000000a400ffff (32 KiB) nomap non-reusable vdev0vring1@a4008000
[    0.000000] OF: reserved mem: 0x00000000a4010000..0x00000000a4017fff (32 KiB) nomap non-reusable vdev1vring0@a4010000
[    0.000000] OF: reserved mem: 0x00000000a4018000..0x00000000a401ffff (32 KiB) nomap non-reusable vdev1vring1@a4018000
[    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] OF: reserved mem: 0x00000000a4020000..0x00000000a411ffff (1024 KiB) nomap non-reusable vdevbuffer@a4020000
[    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] OF: reserved mem: 0x00000000a4120000..0x00000000a421ffff (1024 KiB) nomap non-reusable ele-reserved@a4120000
[    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] OF: reserved mem: 0x00000000c0000000..0x00000000cfffffff (262144 KiB) map reusable ethosu_region@C0000000
[    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 0xffbb66c0-0xffbb8fff]
[    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 22 pages/cpu s50536 r8192 d31384 u90112
[    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] 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] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Policy zone: DMA
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 2.
[    0.000000] software IO TLB: mapped [mem 0x00000000f9800000-0x00000000fd800000] (64MB)
[    0.000000] Memory: 1429164K/2097152K available (20736K kernel code, 1614K rwdata, 7628K rodata, 3904K init, 634K bss, 143700K 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.008373] Console: colour dummy device 80x25
[    0.012607] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.022782] pid_max: default: 32768 minimum: 301
[    0.027418] LSM: initializing lsm=capability,integrity
[    0.032556] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.039856] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.048296] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.054673] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.061524] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.069147] rcu: Hierarchical SRCU implementation.
[    0.073771] rcu: 	Max phase no-delay instances is 1000.
[    0.079907] EFI services will not be available.
[    0.084398] smp: Bringing up secondary CPUs ...
[    0.089062] Detected VIPT I-cache on CPU1
[    0.089116] GICv3: CPU1: found redistributor 100 region 0:0x0000000048060000
[    0.089150] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    0.089250] smp: Brought up 1 node, 2 CPUs
[    0.110601] SMP: Total of 2 processors activated.
[    0.115271] CPU features: detected: 32-bit EL0 Support
[    0.120395] CPU features: detected: 32-bit EL1 Support
[    0.125500] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.134083] CPU features: detected: Common not Private translations
[    0.140316] CPU features: detected: CRC32 instructions
[    0.145440] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.151149] CPU features: detected: LSE atomic instructions
[    0.156696] CPU features: detected: Privileged Access Never
[    0.162241] CPU features: detected: RAS Extension Support
[    0.167616] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.174596] CPU: All CPU(s) started at EL2
[    0.178623] alternatives: applying system-wide alternatives
[    0.188419] devtmpfs: initialized
[    0.196947] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.206447] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.219991] pinctrl core: initialized pinctrl subsystem
[    0.226559] DMI not present or invalid.
[    0.230574] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.236866] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.243743] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.251447] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.259310] audit: initializing netlink subsys (disabled)
[    0.264787] audit: type=2000 audit(0.176:1): state=initialized audit_enabled=0 res=1
[    0.265168] thermal_sys: Registered thermal governor 'step_wise'
[    0.272351] thermal_sys: Registered thermal governor 'power_allocator'
[    0.278358] cpuidle: using governor menu
[    0.288907] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.295526] ASID allocator initialised with 65536 entries
[    0.301592] Serial: AMBA PL011 UART driver
[    0.305484] imx mu driver is registered.
[    0.309331] imx rpmsg driver is registered.
[    0.319658] imx93-pinctrl 443c0000.pinctrl: initialized IMX pinctrl driver
[    0.332975] platform 4ae30000.lcd-controller: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@0/endpoint
[    0.346374] Modules: 24080 pages in range for non-PLT usage
[    0.346385] Modules: 515600 pages in range for PLT usage
[    0.352456] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.364270] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.370502] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.377260] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.383501] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.390260] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.396501] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.403260] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.411150] ACPI: Interpreter disabled.
[    0.415472] iommu: Default domain type: Translated
[    0.420030] iommu: DMA domain TLB invalidation policy: strict mode
[    0.426413] SCSI subsystem initialized
[    0.430202] usbcore: registered new interface driver usbfs
[    0.435437] usbcore: registered new interface driver hub
[    0.440724] usbcore: registered new device driver usb
[    0.446586] mc: Linux media interface: v0.10
[    0.450638] videodev: Linux video capture interface: v2.00
[    0.456099] pps_core: LinuxPPS API ver. 1 registered
[    0.460992] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.470097] PTP clock support registered
[    0.474125] EDAC MC: Ver: 3.0.0
[    0.477577] scmi_core: SCMI protocol bus registered
[    0.482657] FPGA manager framework
[    0.485852] Advanced Linux Sound Architecture Driver Initialized.
[    0.492413] Bluetooth: Core ver 2.22
[    0.495745] NET: Registered PF_BLUETOOTH protocol family
[    0.501021] Bluetooth: HCI device and connection manager initialized
[    0.507345] Bluetooth: HCI socket layer initialized
[    0.512195] Bluetooth: L2CAP socket layer initialized
[    0.517228] Bluetooth: SCO socket layer initialized
[    0.522411] vgaarb: loaded
[    0.525465] clocksource: Switched to clocksource arch_sys_counter
[    0.531529] VFS: Disk quotas dquot_6.6.0
[    0.535234] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.542177] pnp: PnP ACPI: disabled
[    0.550464] NET: Registered PF_INET protocol family
[    0.555250] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.563579] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.571905] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.579568] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.587505] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.595132] TCP: Hash tables configured (established 16384 bind 16384)
[    0.601499] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.608092] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.615283] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.621121] RPC: Registered named UNIX socket transport module.
[    0.626788] RPC: Registered udp transport module.
[    0.631456] RPC: Registered tcp transport module.
[    0.636135] RPC: Registered tcp-with-tls transport module.
[    0.641596] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.648763] PCI: CLS 0 bytes, default 64
[    0.652653] kvm [1]: IPA Size Limit: 40 bits
[    0.656690] kvm [1]: GICv3: no GICV resource entry
[    0.661435] kvm [1]: disabling GICv2 emulation
[    0.665868] kvm [1]: GIC system register CPU interface enabled
[    0.671681] kvm [1]: vgic interrupt IRQ9
[    0.675582] kvm [1]: VHE mode initialized successfully
[    0.681612] Initialise system trusted keyrings
[    0.685973] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[    0.692451] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.698257] NFS: Registering the id_resolver key type
[    0.703079] Key type id_resolver registered
[    0.707204] Key type id_legacy registered
[    0.711204] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.717873] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.725243] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.731484] 9p: Installing v9fs 9p2000 file system support
[    0.759202] Key type asymmetric registered
[    0.763034] Asymmetric key parser 'x509' registered
[    0.767922] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    0.775262] io scheduler mq-deadline registered
[    0.779769] io scheduler kyber registered
[    0.783773] io scheduler bfq registered
[    0.792123] EINJ: ACPI disabled.
[    0.799714] Bus freq driver module loaded
[    0.809103] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.826877] printk: console [ttyLP0] enabled0x44380010 (irq = 17, base_baud = 1500000) is a FSL_LPUART
[    0.826877] printk: console [ttyLP0] enabled
[    0.835294] printk: bootconsole [lpuart32] disabled
[    0.835294] printk: bootconsole [lpuart32] disabled
[    0.856887] brd: module loaded
[    0.863138] loop: module loaded
[    0.867517] megasas: 07.725.01.00-rc1
[    0.876112] tun: Universal TUN/TAP device driver, 1.6
[    0.881913] thunder_xcv, ver 1.0
[    0.885153] thunder_bgx, ver 1.0
[    0.888402] nicpf, ver 1.0
[    0.892014] pps pps0: new PPS source ptp0
[    0.899315] fec 42890000.ethernet eth0: registered PHC device 0
[    0.906807] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    0.914043] hns3: Copyright (c) 2017 Huawei Corporation.
[    0.919386] hclge is initializing
[    0.922731] e1000: Intel(R) PRO/1000 Network Driver
[    0.927606] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    0.933365] e1000e: Intel(R) PRO/1000 Network Driver
[    0.938321] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.944245] igb: Intel(R) Gigabit Ethernet Network Driver
[    0.949634] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.955209] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    0.961469] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.967529] sky2: driver version 1.30
[    0.971574] usbcore: registered new device driver r8152-cfgselector
[    0.977864] usbcore: registered new interface driver r8152
[    0.983752] VFIO - User Level meta-driver version: 0.3
[    0.990878] usbcore: registered new interface driver uas
[    0.996230] usbcore: registered new interface driver usb-storage
[    1.002296] usbcore: registered new interface driver usbserial_generic
[    1.008836] usbserial: USB Serial support registered for generic
[    1.014858] usbcore: registered new interface driver ftdi_sio
[    1.020605] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.027913] usbcore: registered new interface driver usb_serial_simple
[    1.034464] usbserial: USB Serial support registered for carelink
[    1.040556] usbserial: USB Serial support registered for flashloader
[    1.046907] usbserial: USB Serial support registered for funsoft
[    1.052918] usbserial: USB Serial support registered for google
[    1.058842] usbserial: USB Serial support registered for hp4x
[    1.064587] usbserial: USB Serial support registered for kaufmann
[    1.070679] usbserial: USB Serial support registered for libtransistor
[    1.077206] usbserial: USB Serial support registered for moto_modem
[    1.083481] usbserial: USB Serial support registered for motorola_tetra
[    1.090094] usbserial: USB Serial support registered for nokia
[    1.095925] usbserial: USB Serial support registered for novatel_gps
[    1.102278] usbserial: USB Serial support registered for siemens_mpi
[    1.108631] usbserial: USB Serial support registered for suunto
[    1.114555] usbserial: USB Serial support registered for vivopay
[    1.120566] usbserial: USB Serial support registered for zio
[    1.126244] usbcore: registered new interface driver usb_ehset_test
[    1.135587] input: 44440000.bbnsm:pwrkey as /devices/platform/soc@0/44000000.bus/44440000.bbnsm/44440000.bbnsm:pwrkey/input/input0
[    1.150763] bbnsm_rtc 44440000.bbnsm:rtc: registered as rtc0
[    1.157064] bbnsm_rtc 44440000.bbnsm:rtc: setting system clock to 1970-01-01T00:00:00 UTC (0)
[    1.166315] i2c_dev: i2c /dev entries driver
[    1.172638] qoriq_thermal 44482000.tmu: invalid range data.
[    1.179466] imx7ulp-wdt 42490000.watchdog: imx93 wdt probe
[    1.209320] Bluetooth: HCI UART driver ver 2.3
[    1.213781] Bluetooth: HCI UART protocol H4 registered
[    1.218912] Bluetooth: HCI UART protocol BCSP registered
[    1.224233] Bluetooth: HCI UART protocol LL registered
[    1.229364] Bluetooth: HCI UART protocol ATH3K registered
[    1.234765] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    1.241169] Bluetooth: HCI UART protocol Broadcom registered
[    1.246834] Bluetooth: HCI UART protocol QCA registered
[    1.253258] sdhci: Secure Digital Host Controller Interface driver
[    1.259464] sdhci: Copyright(c) Pierre Ossman
[    1.264299] Synopsys Designware Multimedia Card Interface Driver
[    1.270706] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.277733] ledtrig-cpu: registered to indicate activity on CPUs
[    1.284743] fsl-se-fw se-fw2: assigned reserved memory node ele-reserved@a4120000
[    1.292307] fsl-se-fw se-fw2: Command Id[23], Response Failure = 0x29
[    1.298755] fsl-se-fw se-fw2: Failed to initialize ele fw.
[    1.304410] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.308550] mmc0: SDHCI controller on 42850000.mmc [42850000.mmc] using ADMA
[    1.311129] usbcore: registered new interface driver usbhid
[    1.323444] usbhid: USB HID core driver
[    1.328820] ethosu ethosu: assigned reserved memory node ethosu_region@C0000000
[    1.374555] hw perfevents: enabled with armv8_cortex_a55 PMU driver, 7 counters available
[    1.383451] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    1.384760]  cs_system_cfg: CoreSight Configuration manager initialised
[    1.390353] mmcblk0: mmc0:0001 DA6016 14.7 GiB
[    1.398032] optee: probing for conduit method.
[    1.402022]  mmcblk0: p1 p2
[    1.405360] optee: api uid mismatch
[    1.408568] mmcblk0boot0: mmc0:0001 DA6016 4.00 MiB
[    1.411581] optee: probe of firmware:optee failed with error -22
[    1.414902] NET: Registered PF_LLC protocol family
[    1.417547] mmcblk0boot1: mmc0:0001 DA6016 4.00 MiB
[    1.422731] u32 classifier
[    1.428151] mmcblk0rpmb: mmc0:0001 DA6016 4.00 MiB, chardev (234:0)
[    1.432154]     input device check on
[    1.444756]     Actions configured
[    1.448553] NET: Registered PF_INET6 protocol family
[    1.454430] Segment Routing with IPv6
[    1.458136] In-situ OAM (IOAM) with IPv6
[    1.462104] NET: Registered PF_PACKET protocol family
[    1.467176] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.480275] Bluetooth: RFCOMM TTY layer initialized
[    1.485171] Bluetooth: RFCOMM socket layer initialized
[    1.490319] Bluetooth: RFCOMM ver 1.11
[    1.494066] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.499365] Bluetooth: BNEP filters: protocol multicast
[    1.504585] Bluetooth: BNEP socket layer initialized
[    1.509540] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.515452] Bluetooth: HIDP socket layer initialized
[    1.520603] 8021q: 802.1Q VLAN Support v1.8
[    1.524815] lib80211: common routines for IEEE802.11 drivers
[    1.530498] 9pnet: Installing 9P2000 support
[    1.534903] Key type dns_resolver registered
[    1.551825] registered taskstats version 1
[    1.556025] Loading compiled-in X.509 certificates
[    1.583153] usb_phy_generic usbphynop1: dummy supplies not allowed for exclusive requests
[    1.591482] usb_phy_generic usbphynop2: dummy supplies not allowed for exclusive requests
[    1.616908] isi-capture 4ae40000.isi:cap_device: deferring 4ae40000.isi:cap_device device registration
[    1.626369] mxc-isi_v1 4ae40000.isi: mxc_isi.0 registered successfully
[    1.634295] remoteproc remoteproc0: imx-rproc is available
[    1.648334] i2c 0-003d: Fixed dependency cycle(s) with /soc@0/dsi@4ae10000/ports/port@1/endpoint
[    1.657259] adv7511 0-003d: supply avdd not found, using dummy regulator
[    1.664058] adv7511 0-003d: supply dvdd not found, using dummy regulator
[    1.670792] adv7511 0-003d: supply pvdd not found, using dummy regulator
[    1.677507] adv7511 0-003d: supply a2vdd not found, using dummy regulator
[    1.684316] adv7511 0-003d: supply v3p3 not found, using dummy regulator
[    1.691028] adv7511 0-003d: supply v1p2 not found, using dummy regulator
[    1.698067] adv7511 0-003d: Probe failed. Remote port 'dsi@4ae10000' disabled
[    1.705564] st_lsm6dsx_i2c 0-006a: supply vdd not found, using dummy regulator
[    1.712844] st_lsm6dsx_i2c 0-006a: supply vddio not found, using dummy regulator
[    2.252447] st_lsm6dsx_i2c 0-006a: mounting matrix not found: using identity...
[    2.260533] i2c i2c-0: LPI2C adapter registered
[    2.266714] pca953x 1-0022: supply vcc not found, using dummy regulator
[    2.273481] pca953x 1-0022: using AI
[    2.278848] adp5585-gpio adp5585-gpio.1.auto: DMA mask not set
[    2.285644] adp5585-pwm adp5585-pwm.2.auto: DMA mask not set
[    2.291457] i2c i2c-1: LPI2C adapter registered
[    2.297017] i2c 2-0050: Fixed dependency cycle(s) with /soc@0/usb@4c100000/port/endpoint
[    2.305968] i2c 2-0051: Fixed dependency cycle(s) with /soc@0/usb@4c200000/port/endpoint
[    2.314886] adp5585 2-0034: Failed to read reg 0x00, ret is -5
[    2.320754] adp5585: probe of 2-0034 failed with error -5
[    2.326323] i2c 2-003c: Fixed dependency cycle(s) with /soc@0/bus@42800000/camera/csi@4ae00000/port/endpoint
[    2.336421] i2c i2c-2: LPI2C adapter registered
[    2.342750] 42590000.serial: ttyLP4 at MMIO 0x42590010 (irq = 104, base_baud = 1500000) is a FSL_LPUART
[    2.352283] serial serial0: tty port ttyLP4 registered
[    2.358581] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[    2.366550] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -19
[    2.376561] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -19
[    2.386125] imx-drm display-subsystem: failed to bind 4ae10000.dsi (ops dw_mipi_dsi_imx_ops): -19
[    2.395191] imx-drm display-subsystem: adev bind failed: -19
[    2.400856] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -19
[    2.423310] sdhci-esdhc-imx 42860000.mmc: Got CD GPIO
[    2.423713] dwc-mipi-csi2-host 4ae00000.csi: lanes: 2, name: mxc-mipi-csi2.0
[    2.444366] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    2.447609] nxp-pca9450 1-0025: pca9451a probed.
[    2.453115] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    2.458142] mmc1: SDHCI controller on 42860000.mmc [42860000.mmc] using ADMA
[    2.466407] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@50/connector
[    2.486101] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    2.494866] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    2.503738] OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/tcpc@51/connector
[    2.520179] sdhci-esdhc-imx 428b0000.mmc: allocated mmc-pwrseq
[    2.529037] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    2.538234] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.543997] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    2.545562] clk: Disabling unused clocks
[    2.552618] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    2.557149] ALSA device list:
[    2.567245]   No soundcards found.
[    2.594195] mmc2: SDHCI controller on 428b0000.mmc [428b0000.mmc] using ADMA
[    2.607050] EXT4-fs (mmcblk0p2): mounted filesystem f768a293-4041-4ecd-9fd5-62184f828a43 r/w with ordered data mode. Quota mode: none.
[    2.619279] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.625744] devtmpfs: mounted
[    2.630001] Freeing unused kernel memory: 3904K
[    2.634695] Run /sbin/init as init process
/etc/init.d/rcS: line 4: /update.sh: not found

Processing /etc/profile... Done

~ # [    2.685719] mmc2: new ultra high speed SDR104 SDIO card at address 0001
df -Th
Filesystem           Type            Size      Used Available Use% Mounted on
/dev/root            ext4           12.3M      6.0M      5.1M  54% /
devtmpfs             devtmpfs      697.8M         0    697.8M   0% /dev
~ #