AM3352: 升级uboot 从sdk 的2017 到2026,启动同一个fitimage 新的uboot 2026 出现Starting kernel ... 问题

Part Number: AM3352

我现在是将板子的uboot 从sdk 的2017 版本,升级到2026 版本,原本旧的uboot 是可以正常启动fitimage 的,且bootargs 配置为 'earlycon=ns16550a,mmio32,0x44e09000 console=ttyO0,115200n8 loglevel=8 root=/dev/ram0 rw', 可以正常看到kernel 启动log, 并正常启动,现在换成uboot 2026 版本后,bootargs 没变,还是 'earlycon=ns16550a,mmio32,0x44e09000 console=ttyO0,115200n8 loglevel=8 root=/dev/ram0 rw', 

=> bootm 0x88000000
## Loading kernel (any) from FIT Image at 88000000 ...
   Using 'conf-1' configuration
   Verifying Hash Integrity ... OK
   Trying 'kernel-1' kernel subimage
     Description:  Linux Kernel
     Created:      2011-04-05  23:00:00 UTC
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x880113f0
     Data Size:    5902848 Bytes = 5.6 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x80300000
     Entry Point:  0x80300000
     Hash algo:    sha256
     Hash value:   dbc1b7373ca439fe70850915362be5991d21580c810c08f430ae67eaa0a65bea
   Verifying Hash Integrity ... sha256+ OK
## Loading ramdisk (any) from FIT Image at 88000000 ...
   Using 'conf-1' configuration
   Verifying Hash Integrity ... OK
   Trying 'ramdisk-1' ramdisk subimage
     Description:  Ramdisk Image
     Created:      2011-04-05  23:00:00 UTC
     Type:         RAMDisk Image
     Compression:  uncompressed
     Data Start:   0x885b26e8
     Data Size:    2108265 Bytes = 2 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x83000000
     Entry Point:  0x83000000
     Hash algo:    sha256
     Hash value:   f2adcb28abc8db029d08a70b44922d17181ef12d965b85a1aaa959d4058625e6
   Verifying Hash Integrity ... sha256+ OK
   Loading ramdisk from 0x885b26e8 to 0x83000000
## Loading fdt (any) from FIT Image at 88000000 ...
   Using 'conf-1' configuration
   Verifying Hash Integrity ... OK
   Trying 'fdt-1' fdt subimage
     Description:  Flattened Device Tree blob
     Created:      2011-04-05  23:00:00 UTC
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x880000d0
     Data Size:    70204 Bytes = 68.6 KiB
     Architecture: ARM
     Load Address: 0x80200000
     Hash algo:    sha256
     Hash value:   922e664890d89e3e29510ceebcf806157170f2ac0492084f377b4ae4c9d527ac
   Verifying Hash Integrity ... sha256+ OK
   Loading fdt from 0x880000d0 to 0x80200000
   Booting using the fdt blob at 0x80200000
Working FDT set to 80200000
   Loading Kernel Image to 80300000
   Using Device Tree in place at 80200000, end 8021423b
Working FDT set to 80200000

Starting kernel ...

CCCCCCCC

上面出现Starting kernel ... 后大概等了30s 后出现CCCC, 板子重启,由于kernel 在旧的uboot 可以正常启动,且bootargs 起了作用,我现在怀疑是新的uboot 导致, 为什么新的uboot 下bootargs 没起作用,内核也没看到输出,不知道什么原因,大家有遇到过吗,能帮忙一下!

  • 板子的env 如下:

    => printenv
    arch=arm
    baudrate=115200
    board=am335x
    board_name=A33515BB
    board_rev=1.0
    board_serial=unknown
    bootargs=earlycon=ns16550a,mmio32,0x44e09000 console=ttyO0,115200n8 loglevel=8 root=/dev/ram0 rw
    bootcmd=run bootcmd_nand
    bootcmd_nand=echo Booting from primary nand image ...; mw.b 0x83000000 0xff 0x1000000; nand read 0x83000000 0x300000 0x1000000;bootm 0x83000000; echo Booting from backup nand image ...; mw.b 0x83000000 0xff 0x1000000; nand read 0x83000000 0x1300000 0x1000000;bootm 0x83000000
    bootcount=18
    bootdelay=2
    cpu=armv7
    eth1addr=04:23:22:68:0e:fa
    eth2addr=04:23:22:68:0e:f8
    ethaddr=04:23:22:68:0e:f8
    fdtcontroladdr=8df19510
    ice_mii=mii
    ipaddr=192.168.0.1
    loadaddr=0x82000000
    mtdids=nand0=nand.0
    mtdparts=mtdparts=nand.0:512k(spl),1m(u-boot),1m(u-boot.backup),512k(env),16m(fit),16m(fit.backup),80m(rootfs),80m(rootfs.backup),4m(config),4m(config.backup),53m(storage)
    netmask=255.255.255.0
    serial#=04:23:22:68:0e:f8
    serverip=192.168.0.10
    soc=am33xx
    stderr=serial@0
    stdin=serial@0
    stdout=serial@0
    vendor=ti
    ver=U-Boot 2026.01-ti-g5fb294342321 (Jul 09 2026 - 22:23:09 +0000)

    Environment size: 1079/131068 bytes

  • 您好

    已经收到了您的案例,调查需要些时间,感谢您的耐心等待

  • 你好,

    收到启动内核消息后,电路板似乎正在复位,ROM 引导加载程序进入 UART 引导模式,发送“CCCCC”。

    这是定制硬件还是EVM?

    您使用的是与最新 U-boot 对应的 Linux 内核,还是尝试使用旧内核?

    30 秒的延迟可能表明触发了 WDT 复位。因此,请在新的 Uboot 控制台上运行以下命令,检查是否有 WDT 信息,并分享输出日志。

    wdt list
    wdt dev

    问候,
    维努

  • 您好,非常感谢你的建议
    根据您的建议,我这边验证,确实是WDT 导致发送CCCCC, 我关掉WDT 后,没有再重启并发送CCCC了,但是还是一直卡在 Starting kernel ... , 这个fitImage 我是在uboot 2017下,是能够正确启动的,现在这个情况是什么原因导致?

  • 你好,

    您使用的是与最新 U-boot 对应的 Linux 内核,还是尝试使用旧内核?

    [/引用]

    请问您使用的是带有最新版 U-boot 的旧内核,还是最新的内核本身?

    请提供内核和 U-boot 版本信息。

    问候,
    维努

  • 是用新的uboot 2026 +  旧的kernel, 6.1.46, 这个旧的kernel 6.1.46在uboot 2017 下是能正常运行的

  • 这是uboot2017  下的
    => bdinfo
    arch_number = 0x00000E05
    boot_params = 0x80000100
    DRAM bank = 0x00000000
    -> start = 0x80000000
    -> size = 0x10000000
    eth0name = cpsw
    ethaddr = 04:23:22:68:0e:f8
    eth1name = usb_ether
    eth1addr = 04:23:22:68:0e:fa
    current eth = cpsw
    ip_addr = 192.168.0.1
    baudrate = 115200 bps
    TLB addr = 0x8FFF0000
    relocaddr = 0x8FF53000
    reloc off = 0x0F753000
    irq_sp = 0x8DF08FE0
    sp start = 0x8DF08FD0
    Early malloc usage: 1ec / 400

    这是uboot2026  下的

    => bdinfo
    boot_params = 0x80000100
    DRAM bank = 0x00000000
    -> start = 0x80000000
    -> size = 0x10000000
    flashstart = 0x00000000
    flashsize = 0x00000000
    flashoffset = 0x00000000
    baudrate = 115200 bps
    relocaddr = 0x8ff50000
    reloc off = 0x0f750000
    Build = 32-bit
    current eth = ethernet@4a100000
    eth2addr = 04:23:22:68:0e:f8
    IP addr = <NULL>
    fdt_blob = 0x8df1a510
    lmb_dump_all:
    memory.count = 0x1
    memory[0] [0x80000000-0x8fffffff], 0x10000000 bytes, flags: none
    reserved.count = 0x2
    reserved[0] [0x8cf17000-0x8cf19fff], 0x3000 bytes, flags: no-notify, no-overwrite
    reserved[1] [0x8cf1a4f0-0x8fffffff], 0x30e5b10 bytes, flags: no-overwrite
    devicetree = separate
    serial addr = 0x44e09000
    width = 0x00000000
    shift = 0x00000002
    offset = 0x00000000
    clock = 0x02dc6c00
    arch_number = 0x00000e05
    TLB addr = 0x8fff0000
    irq_sp = 0x8df1a500
    sp start = 0x8df1a4f0
    Early malloc usage: a74 / 2000

  • 你好,

    U-Boot 在 2017 年至 2026 年间发生了巨大的变化。

    完全迁移到驱动程序模型/DT驱动的初始化,每个SoC系列重复重做SPL/DDR启动,看门狗子系统(你刚刚遇到的),缓存/MMU清理路径,重定位处理,FIT/启动脚本框架等。

    为了兼容性,建议使用相应的 Uboot - 内核对(SDK 中提供)。

    请尝试使用兼容的内核,并检查问题是否仍然存在?

    问候,
    维努

  • 这个uboot 不支持吗,我们是在openbmc 中编译的,但是meta-ti 无法编译2017 版uboot, 不兼容,这个有什么建议吗?

  • 你好,

    翻译服务似乎没有将要尝试的命令共享到原帖中。

    下面我再分享一遍。

    请分享您在当前 Uboot 2026 设置下以下命令的输出结果。

    bootm start 0x88000000; bootm loados; bootm ramdisk; bootm fdt
    fdt addr ${fdtaddr}
    fdt print /chosen

    问候,
    维努

  • 你好,

    最新的 AM335x SDK 版本为11.02.05.02,它采用的是基于 U-boot 2025.01 的引导加载程序,而不是 2026。

    我尝试了 SDK 09.01中的旧内核 6.1.46 和 2025.01 U-boot。

    我找不到旧的 fitImage 文件,所以我直接使用了内核和 DTB 文件,并且成功启动了系统。

    以下是日志。

    e2e.ti.com/.../am335x_5F00_bootlogs_5F00_kernel_5F00_6_5F00_1_5F00_46_5F00_Uboot_5F00_2025_5F00_01.txt

    我建议使用 2025.01 版本的 U-boot,看看问题是否能够解决。

    如果不行,请分享创建 fitImage 的步骤,包括 ITS 文件。

    问候,
    维努

  • => tftp 0x83000000 fitImage-ti-am3352-m1
    link up on port 0, speed 100, full duplex
    Using ethernet@4a100000 device
    TFTP from server 192.168.0.10; our IP address is 192.168.0.1
    Filename 'fitImage-ti-am3352-m1'.
    Load address: 0x83000000
    Loading: ################################################## 7.7 MiB
    1.5 MiB/s
    done
    Bytes transferred = 8082012 (7b525c hex)
    => bootm start 0x83000000; bootm loados; bootm ramdisk; bootm fdt
    ## Loading kernel from FIT Image at 83000000 ...
    Using 'conf-1' configuration
    Verifying Hash Integrity ... OK
    Trying 'kernel-1' kernel subimage
    Description: Linux Kernel
    Created: 2011-04-05 23:00:00 UTC
    Type: Kernel Image
    Compression: uncompressed
    Data Start: 0x830000c8
    Data Size: 5902848 Bytes = 5.6 MiB
    Architecture: ARM
    OS: Linux
    Load Address: 0x80200000
    Entry Point: 0x80200000
    Hash algo: sha256
    Hash value: dbc1b7373ca439fe70850915362be5991d21580c810c08f430ae67eaa0a65bea
    Verifying Hash Integrity ... sha256+ OK
    ## Loading ramdisk from FIT Image at 83000000 ...
    Using 'conf-1' configuration
    Verifying Hash Integrity ... OK
    Trying 'ramdisk-1' ramdisk subimage
    Description: Ramdisk Image
    Created: 2011-04-05 23:00:00 UTC
    Type: RAMDisk Image
    Compression: uncompressed
    Data Start: 0x835b2420
    Data Size: 2108265 Bytes = 2 MiB
    Architecture: ARM
    OS: Linux
    Load Address: 0x82000000
    Entry Point: 0x82000000
    Hash algo: sha256
    Hash value: f2adcb28abc8db029d08a70b44922d17181ef12d965b85a1aaa959d4058625e6
    Verifying Hash Integrity ... sha256+ OK
    Loading ramdisk from 0x835b2420 to 0x82000000
    ## Loading fdt from FIT Image at 83000000 ...
    Using 'conf-1' configuration
    Verifying Hash Integrity ... OK
    Trying 'fdt-1' fdt subimage
    Description: Flattened Device Tree blob
    Created: 2011-04-05 23:00:00 UTC
    Type: Flat Device Tree
    Compression: uncompressed
    Data Start: 0x835a13c8
    Data Size: 69492 Bytes = 67.9 KiB
    Architecture: ARM
    Load Address: 0x80f80000
    Hash algo: sha256
    Hash value: 3b30b3c50dba18c3b088225c3374a4f4374cbda9a2054c796b1f6eadfb2cb817
    Verifying Hash Integrity ... sha256+ OK
    Loading fdt from 0x835a13c8 to 0x80f80000
    Booting using the fdt blob at 0x80f80000
    Working FDT set to 80f80000
    Loading Kernel Image to 80200000
    Loading Ramdisk to 8cd13000, end 8cf15b69 ... OK
    Loading Device Tree to 8ccff000, end 8cd12f73 ... OK
    Working FDT set to 8ccff000
    => fdt addr ${fdtaddr}
    Working FDT set to 8ccff000
    => fdt print /chosen
    chosen {
    stdout-path = "/ocp/interconnect@44c00000/segment@200000/target-module@9000/serial@0";
    bootargs = "console=ttyO0,115200n8 root=/dev/ram0";
    };
    =>
    => bootm prep
    Loading Device Tree to 8cce8000, end 8ccfef73 ... OK
    Working FDT set to 8cce8000
    => fdt header
    magic: 0xd00dfeed
    totalsize: 0x12000 (73728)
    off_dt_struct: 0x48
    off_dt_strings: 0x10608
    off_mem_rsvmap: 0x28
    version: 17
    last_comp_version: 16
    boot_cpuid_phys: 0x0
    size_dt_strings: 0xabb
    size_dt_struct: 0x105c0
    number mem_rsv: 0x1

    => fdt print /chosen
    chosen {
    linux,initrd-end = <0x8cf15b69>;
    linux,initrd-start = <0x8cd13000>;
    u-boot,bootconf = "conf-1";
    u-boot,version = "2025.01-00800-g1612e4d1deb1-dirty";
    stdout-path = "/ocp/interconnect@44c00000/segment@200000/target-module@9000/serial@0";
    bootargs = "earlycon=ns16550a,mmio32,0x44e09000 console=ttyO0,115200n8 loglevel=8 root=/dev/ram0 rw";
    };
    =>

  • 我今天试了运行uboot2025.01 也是同样的情况,
    我不是用的AM335x SDK 版本为11.02.05.02, 我们是编译openbmc, 用的是meta-ti, 网址https://git.yoctoproject.org/meta-ti, uboot 的下载地址为:git://git.ti.com/git/ti-u-boot/ti-u-boot.git, branch为"ti-u-boot-2025.01", 

    fitimage 的dts 配置为:

    /dts-v1/;

    / {
    description = "am3352 pdu fit image";
    #address-cells = <1>;

    images {
    kernel-1 {
    description = "Linux Kernel";
    data = /incbin/("./zImage");
    type = "kernel";
    arch = "arm";
    os = "linux";
    compression = "none";
    load = <0x80200000>;
    entry = <0x80200000>;
    hash-1 {
    algo = "sha256";
    };
    };
    fdt-1 {
    description = "Flattened Device Tree blob";
    data = /incbin/("./am335x-evm.dtb");
    type = "flat_dt";
    arch = "arm";
    compression = "none";
    load = <0x80F80000>;
    entry = <0x80F80000>;
    hash-1 {
    algo = "sha256";
    };
    };


    ramdisk-1 {
    description = "Ramdisk Image";
    data = /incbin/("./obmc-phosphor-initramfs-ti-am3352.cpio.gz");
    type = "ramdisk";
    arch = "arm";
    os = "linux";
    compression = "none";
    load = <0x82000000>;
    entry = <0x82000000>;
    hash-1 {
    algo = "sha256";
    };
    };
    };
    configurations {
    default = "conf-1";
    conf-1 {
    description = "Boot Linux Kernel, FDT blob and ramdisk";
    kernel = "kernel-1";
    fdt = "fdt-1";
    ramdisk = "ramdisk-1";
    };
    };
    };

    ~

     


  • U-Boot 2025.01-00800-g1612e4d1deb1-dirty (Jun 11 2026 - 13:10:21 +0000)

    CPU : AM335X-GP rev 2.1
    Model: TI AM335x EVM
    DRAM: 256 MiB
    Core: 154 devices, 16 uclasses, devicetree: separate
    NAND: 256 MiB
    MMC:
    Loading Environment from nowhere... OK
    Net: eth2: ethernet@4a100000
    Hit any key to stop autoboot: 0
    =>
    =>
    => tftp 0x83000000 fitImage-ti-am3352-m1
    link up on port 0, speed 1000, full duplex
    Using ethernet@4a100000 device
    TFTP from server 192.168.0.10; our IP address is 192.168.0.1
    Filename 'fitImage-ti-am3352-m1'.
    Load address: 0x83000000
    Loading: ################################################## 7.7 MiB
    1.7 MiB/s
    done
    Bytes transferred = 8082012 (7b525c hex)
    => bootm 0x83000000
    ## Loading kernel from FIT Image at 83000000 ...
    Using 'conf-1' configuration
    Verifying Hash Integrity ... OK
    Trying 'kernel-1' kernel subimage
    Description: Linux Kernel
    Created: 2011-04-05 23:00:00 UTC
    Type: Kernel Image
    Compression: uncompressed
    Data Start: 0x830000c8
    Data Size: 5902848 Bytes = 5.6 MiB
    Architecture: ARM
    OS: Linux
    Load Address: 0x80200000
    Entry Point: 0x80200000
    Hash algo: sha256
    Hash value: dbc1b7373ca439fe70850915362be5991d21580c810c08f430ae67eaa0a65bea
    Verifying Hash Integrity ... sha256+ OK
    ## Loading ramdisk from FIT Image at 83000000 ...
    Using 'conf-1' configuration
    Verifying Hash Integrity ... OK
    Trying 'ramdisk-1' ramdisk subimage
    Description: Ramdisk Image
    Created: 2011-04-05 23:00:00 UTC
    Type: RAMDisk Image
    Compression: uncompressed
    Data Start: 0x835b2420
    Data Size: 2108265 Bytes = 2 MiB
    Architecture: ARM
    OS: Linux
    Load Address: 0x82000000
    Entry Point: 0x82000000
    Hash algo: sha256
    Hash value: f2adcb28abc8db029d08a70b44922d17181ef12d965b85a1aaa959d4058625e6
    Verifying Hash Integrity ... sha256+ OK
    Loading ramdisk from 0x835b2420 to 0x82000000
    ## Loading fdt from FIT Image at 83000000 ...
    Using 'conf-1' configuration
    Verifying Hash Integrity ... OK
    Trying 'fdt-1' fdt subimage
    Description: Flattened Device Tree blob
    Created: 2011-04-05 23:00:00 UTC
    Type: Flat Device Tree
    Compression: uncompressed
    Data Start: 0x835a13c8
    Data Size: 69492 Bytes = 67.9 KiB
    Architecture: ARM
    Load Address: 0x80f80000
    Hash algo: sha256
    Hash value: 3b30b3c50dba18c3b088225c3374a4f4374cbda9a2054c796b1f6eadfb2cb817
    Verifying Hash Integrity ... sha256+ OK
    Loading fdt from 0x835a13c8 to 0x80f80000
    Booting using the fdt blob at 0x80f80000
    Working FDT set to 80f80000
    Loading Kernel Image to 80200000
    Loading Ramdisk to 8cd13000, end 8cf15b69 ... OK
    Loading Device Tree to 8ccff000, end 8cd12f73 ... OK
    Working FDT set to 8ccff000

    Starting kernel ...

  • 你好,

    这是定制硬件还是EVM?

    [/引用]

    请问这是否是定制电路板?

    问候,
    维努

  • 这会是哪些情况会导致的,这样的问题?

  • 你好,

    你使用的DDR内存和参考EVM中的内存一样吗?

    您能否尝试像我一样直接使用内核和 DTS 启动,而不是使用 fitImage(最好不使用 initramfs)?

    问候,
    维努

  • 我试过了用bootz 命令分开启动, 也是一样的情况,我们板子用的是EM6GD16EWBH-12H ddr 

  • 你好,

    这很奇怪。请分享日志。2025 Uboot 中的 DDR 配置是否正确?

    另外,您能否运行此命令并分享 U-boot 的输出结果?

    mtest 0x80000000 0x8fffffff 0 10

    此外,为了进一步调试,CONFIG_DEBUG_LL +CONFIG_DEBUG_UNCOMPRESS + CONFIG_EARLY_PRINTK建议启用内核重建功能。

    请分享内核重建启动后的日志。

    问候,
    维努

  • => mtest 0x80000000 0x8cffffff 0x0 10
    Testing 80000000 ... 8cffffff:
    Pattern FFFFFFFF Writing... Reading...Iteration: 16
    Tested 16 iteration(s) with 0 errors.

  • => tftp 0x80008000 zImage
    link up on port 0, speed 1000, full duplex
    Using ethernet@4a100000 device
    TFTP from server 192.168.0.10; our IP address is 192.168.0.1
    Filename 'zImage'.
    Load address: 0x80008000
    Loading: ################################################## 5.6 MiB
    1.4 MiB/s
    done
    Bytes transferred = 5902848 (5a1200 hex)
    => tftp 0x8b000000 am335x-evm.dtb
    link up on port 0, speed 1000, full duplex
    Using ethernet@4a100000 device
    TFTP from server 192.168.0.10; our IP address is 192.168.0.1
    Filename 'am335x-evm.dtb'.
    Load address: 0x8b000000
    Loading: ################################################## 67.9 KiB
    652.3 KiB/s
    done
    Bytes transferred = 69492 (10f74 hex)
    => bootz 0x80008000 - 0x8b000000
    Kernel image @ 0x80008000 [ 0x000000 - 0x5a1200 ]
    ## Flattened Device Tree blob at 8b000000
    Booting using the fdt blob at 0x8b000000
    Working FDT set to 8b000000
    Loading Device Tree to 8cf02000, end 8cf15f73 ... OK
    Working FDT set to 8cf02000

    Starting kernel ...

    C:0x800090A0-0x805A9200->0x80EFC200-0x8149C360
    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 6.1.46-ti-gbbfe7dc461b4 (oe-user@oe-host) (arm-openbmc-linux-gnueabi-gcc (GCC) 15.2.0, GNU ld (GNU Binutils) 2.46) #1 PREEMPT Mon Aug 31 18:01:53 CST 2026
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] OF: fdt: Machine model: TI AM335x EVM
    [ 0.000000] earlycon: ns16550a0 at MMIO32 0x44e09000 (options '')
    [ 0.000000] printk: bootconsole [ns16550a0] enabled
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] efi: UEFI not found.
    [ 0.000000] cma: Reserved 64 MiB at 0x88800000
    [ 0.000000] Zone ranges:
    [ 0.000000] Normal [mem 0x0000000080000000-0x000000008fdfffff]
    [ 0.000000] HighMem empty
    [ 0.000000] Movable zone start for each node
    [ 0.000000] Early memory node ranges
    [ 0.000000] node 0: [mem 0x0000000080000000-0x000000008fdfffff]
    [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000008fdfffff]
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (neon)
    [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    [ 0.000000] pcpu-alloc: [0] 0
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64516
    [ 0.000000] Kernel command line: earlycon=ns16550a,mmio32,0x44e09000 console=ttyO0,115200n8 loglevel=8 root=/dev/ram0 rw
    [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
    [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
    [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [ 0.000000] Memory: 177248K/260096K available (9216K kernel code, 1005K rwdata, 2364K rodata, 1024K init, 282K bss, 17312K reserved, 65536K cma-reserved, 0K highmem)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] trace event string verifier disabled
    [ 0.000000] 8<--- cut here ---
    [ 0.000000] Unable to handle kernel NULL pointer dereference at virtual address 00000000
    [ 0.000000] [00000000] *pgd=00000000
    [ 0.000000] Internal error: Oops: 80000005 [#1] PREEMPT ARM
    [ 0.000000] Modules linked in:
    [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 6.1.46-ti-gbbfe7dc461b4 #1
    [ 0.000000] Hardware name: Generic AM33XX (Flattened Device Tree)
    [ 0.000000] PC is at 0x0
    [ 0.000000] LR is at alloc_workqueue+0x388/0x42c
    [ 0.000000] pc : [<00000000>] lr : [<c014c908>] psr: 60000093
    [ 0.000000] sp : c0e01f28 ip : ffffffff fp : 00000000
    [ 0.000000] r10: 00000000 r9 : c101005c r8 : c0efd7e4
    [ 0.000000] r7 : c1010008 r6 : c1010010 r5 : c0efd6c8 r4 : c1010000
    [ 0.000000] r3 : c0e08040 r2 : 00000000 r1 : 00000000 r0 : c1010010
    [ 0.000000] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
    [ 0.000000] Control: 10c5387d Table: 80004019 DAC: 00000051
    [ 0.000000] Register r0 information: slab kmalloc-192 start c1010000 pointer offset 16 size 192
    [ 0.000000] Register r1 information: NULL pointer
    [ 0.000000] Register r2 information: NULL pointer
    [ 0.000000] Register r3 information: non-slab/vmalloc memory
    [ 0.000000] Register r4 information: slab kmalloc-192 start c1010000 pointer offset 0 size 192
    [ 0.000000] Register r5 information: non-slab/vmalloc memory
    [ 0.000000] Register r6 information: slab kmalloc-192 start c1010000 pointer offset 16 size 192
    [ 0.000000] Register r7 information: slab kmalloc-192 start c1010000 pointer offset 8 size 192
    [ 0.000000] Register r8 information: non-slab/vmalloc memory
    [ 0.000000] Register r9 information: slab kmalloc-192 start c1010000 pointer offset 92 size 192
    [ 0.000000] Register r10 information: NULL pointer
    [ 0.000000] Register r11 information: NULL pointer
    [ 0.000000] Register r12 information: non-paged memory
    [ 0.000000] Process swapper (pid: 0, stack limit = 0x(ptrval))
    [ 0.000000] Stack: (0xc0e01f28 to 0xc0e02000)
    [ 0.000000] 1f20: c014b700 ffffffff c1800000 cfb9f200 00000000 c0e1c9f8
    [ 0.000000] 1f40: c0e01f6c 00000000 00000001 c0e04284 00000001 00000001 c0e01f80 c0efd7e4
    [ 0.000000] 1f60: 00000002 c0d0ff60 00000000 00000001 00000cc0 ffffffff 00000000 ffffffec
    [ 0.000000] 1f80: 00000000 00000000 00000000 c0efc000 c0f292a4 c0e04240 00000000 ffffffff
    [ 0.000000] 1fa0: cfdffc00 c0d00f24 ffffffff ffffffff 00000000 c0d006e0 c0e08040 00000000
    [ 0.000000] 1fc0: 00000000 c0d44a64 00000000 00000000 00000000 c0d00420 00000051 10c0387d
    [ 0.000000] 1fe0: 00000000 8cf02000 413fc082 10c5387d 00000000 00000000 00000000 00000000
    [ 0.000000] alloc_workqueue from workqueue_init_early+0x174/0x290
    [ 0.000000] workqueue_init_early from start_kernel+0x48c/0x6b4
    [ 0.000000] start_kernel from 0x0
    [ 0.000000] Code: bad PC value
    [ 0.000000] ---[ end trace 0000000000000000 ]---
    [ 0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
    [ 0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---

  • 你好,

    内核开始执行,然后遇到了内核空指针解引用问题。

    [ 0.000000] 8<--- 从此处截断 ---
    [ 0.000000] 无法处理虚拟地址 00000000 处的内核空指针解引用
    [ 0.000000] [00000000] *pgd=00000000
    [0.000000] 内部错误:糟糕:80000005 [#1] PREEMPT ARM
    [ 0.000000] 已链接模块:
    [ 0.000000] CPU: 0 PID: 0 通信: swapper 未被污染 6.1.46-ti-gbbfe7dc461b4 #1
    [ 0.000000] 硬件名称:通用 AM33XX(扁平化设备树)
    [ 0.000000] PC 位于 0x0
    [ 0.000000] LR 位于 alloc_workqueue+0x388/0x42c
    [ 0.000000] pc : [<00000000>] lr : [<c014c908>] psr: 60000093
    [ 0.000000] sp : c0e01f28 ip : ffffffff fp : 00000000
    [0.000000] r10: 00000000 r9: c101005c r8: c0efd7e4
    [ 0.000000] r7 : c1010008 r6 : c1010010 r5 : c0efd6c8 r4 : c1010000
    [ 0.000000] r3 : c0e08040 r2 : 00000000 r1 : 00000000 r0 : c1010010
    [ 0.000000] 标志:nZCv IRQ 关闭 FIQ 开启 模式 SVC_32 ISA ARM 段 无
    [ 0.000000] 控制:10c5387d 表:80004019 DAC:00000051
    [ 0.000000] 寄存器 r0 信息:slab kmalloc-192 起始 c1010000 指针偏移 16 大小 192
    [ 0.000000] 寄存器 r1 信息:空指针
    [ 0.000000] 寄存器 r2 信息:空指针
    [ 0.000000] 寄存器 r3 信息:非 slab/vmalloc 内存
    [ 0.000000] 寄存器 r4 信息:slab kmalloc-192 起始 c1010000 指针偏移量 0 大小 192
    [ 0.000000] 寄存器 r5 信息:非 slab/vmalloc 内存
    [ 0.000000] 寄存器 r6 信息:slab kmalloc-192 起始 c1010000 指针偏移 16 大小 192
    [ 0.000000] 寄存器 r7 信息:slab kmalloc-192 起始 c1010000 指针偏移量 8 大小 192
    [ 0.000000] 寄存器 r8 信息:非 slab/vmalloc 内存
    [ 0.000000] 寄存器 r9 信息:slab kmalloc-192 起始 c1010000 指针偏移 92 大小 192
    [ 0.000000] 寄存器 r10 信息:空指针
    [ 0.000000] 寄存器 r11 信息:空指针
    [ 0.000000] 寄存器 r12 信息:非分页内存
    [ 0.000000] 进程交换器(pid:0,堆栈限制 = 0x(ptrval))
    [ 0.000000] 堆栈:(0xc0e01f28 至 0xc0e02000)
    [ 0.000000] 1f20: c014b700 ffffffff c1800000 cfb9f200 00000000 c0e1c9f8
    [ 0.000000] 1f40: c0e01f6c 00000000 00000001 c0e04284 00000001 00000001 c0e01f80 c0efd7e4
    [ 0.000000] 1f60: 00000002 c0d0ff60 00000000 00000001 00000cc0 ffffffff 00000000 ffffffec
    [ 0.000000] 1f80: 00000000 00000000 00000000 c0efc000 c0f292a4 c0e04240 00000000 ffffffff
    [ 0.000000] 1fa0: cfdffc00 c0d00f24 ffffffff ffffffff 00000000 c0d006e0 c0e08040 00000000
    [ 0.000000] 1fc0: 00000000 c0d44a64 00000000 00000000 00000000 c0d00420 00000051 10c0387d
    [ 0.000000] 1fe0: 00000000 8cf02000 413fc082 10c5387d 00000000 00000000 00000000 00000000
    [ 0.000000] 从 workqueue_init_early+0x174/0x290 分配工作队列
    [ 0.000000] workqueue_init_early 来自 start_kernel+0x48c/0x6b4
    [ 0.000000] 从 0x0 开始启动内核
    [ 0.000000] 代码:错误的 PC 值
    [ 0.000000] ---[ 跟踪结束 00000000000000000 ]---

    您能否尝试使用相同的内核,但使用旧版的 U-boot,然后捕获并分享启动日志?

    (无需重新编译,请使用上述内核和 DTB 中的旧版 U-boot 二进制文件)

    问候,
    维努

  • => tftp 0x80008000 zImage
    link up on port 0, speed 1000, full duplex
    Using cpsw device
    TFTP from server 192.168.0.10; our IP address is 192.168.0.1
    Filename 'zImage'.
    Load address: 0x80008000
    Loading: #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #############
    1.2 MiB/s
    done
    Bytes transferred = 5902848 (5a1200 hex)
    => tftp 0x8b000000 am335x-evm.dtb
    link up on port 0, speed 1000, full duplex
    Using cpsw device
    TFTP from server 192.168.0.10; our IP address is 192.168.0.1
    Filename 'am335x-evm.dtb'.
    Load address: 0x8b000000
    Loading: #####
    721.7 KiB/s
    done
    Bytes transferred = 69492 (10f74 hex)
    => printenv bootargs
    bootargs=earlycon=ns16550a,mmio32,0x44e09000 console=ttyO0,115200n8 loglevel=8 root=/dev/ram0 rw
    => bootz 0x80008000 - 0x8b000000
    ## Flattened Device Tree blob at 8b000000
    Booting using the fdt blob at 0x8b000000
    Loading Device Tree to 8def3000, end 8df06f73 ... OK

    Starting kernel ...

    C:0x800090A0-0x805A9200->0x80EFC200-0x8149C360
    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 6.1.46-ti-gbbfe7dc461b4 (oe-user@oe-host) (arm-openbmc-linux-gnueabi-gcc (GCC) 15.2.0, GNU ld (GNU Binutils) 2.46) #1 PREEMPT Mon Aug 31 18:01:53 CST 2026
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] OF: fdt: Machine model: TI AM335x EVM
    [ 0.000000] earlycon: ns16550a0 at MMIO32 0x44e09000 (options '')
    [ 0.000000] printk: bootconsole [ns16550a0] enabled
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] efi: UEFI not found.
    [ 0.000000] cma: Reserved 64 MiB at 0x89800000
    [ 0.000000] Zone ranges:
    [ 0.000000] Normal [mem 0x0000000080000000-0x000000008fdfffff]
    [ 0.000000] HighMem empty
    [ 0.000000] Movable zone start for each node
    [ 0.000000] Early memory node ranges
    [ 0.000000] node 0: [mem 0x0000000080000000-0x000000008fdfffff]
    [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000008fdfffff]
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (neon)
    [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    [ 0.000000] pcpu-alloc: [0] 0
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64516
    [ 0.000000] Kernel command line: earlycon=ns16550a,mmio32,0x44e09000 console=ttyO0,115200n8 loglevel=8 root=/dev/ram0 rw
    [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
    [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
    [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [ 0.000000] Memory: 177248K/260096K available (9216K kernel code, 1005K rwdata, 2364K rodata, 1024K init, 282K bss, 17312K reserved, 65536K cma-reserved, 0K highmem)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] trace event string verifier disabled
    [ 0.000000] rcu: Preemptible hierarchical RCU implementation.
    [ 0.000000] rcu: RCU event tracing is enabled.
    [ 0.000000] Trampoline variant of Tasks RCU enabled.
    [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
    [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
    [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [ 0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
    [ 0.000003] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.008081] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.018227] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
    [ 0.030607] Console: colour dummy device 80x30
    [ 0.035261] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [ 0.154717] CPU: Testing write buffer coherency: ok
    [ 0.159829] CPU0: Spectre v2: using BPIALL workaround
    [ 0.165034] pid_max: default: 32768 minimum: 301
    [ 0.169937] LSM: Security Framework initializing
    [ 0.174886] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.182458] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.192907] cblist_init_generic: Setting adjustable number of callback queues.
    [ 0.200453] cblist_init_generic: Setting shift to 0 and lim to 1.
    [ 0.206947] Setting up static identity map for 0x80100000 - 0x80100060
    [ 0.213932] rcu: Hierarchical SRCU implementation.
    [ 0.218912] rcu: Max phase no-delay instances is 1000.
    [ 0.226684] EFI services will not be available.
    [ 0.232166] devtmpfs: initialized
    [ 0.256444] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.264830] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.275018] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
    [ 0.288549] pinctrl core: initialized pinctrl subsystem
    [ 0.295031] DMI not present or invalid.
    [ 0.300101] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [ 0.309349] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.317982] thermal_sys: Registered thermal governor 'step_wise'
    [ 0.339798] No ATAGs?
    [ 0.348397] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.357292] Serial: AMBA PL011 UART driver
    [ 0.394114] SCSI subsystem initialized
    [ 0.398888] pps_core: LinuxPPS API ver. 1 registered
    [ 0.404012] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.427328] PTP clock support registered
    [ 0.431672] EDAC MC: Ver: 3.0.0
    [ 0.438330] clocksource: Switched to clocksource dmtimer
    [ 0.471178] NET: Registered PF_INET protocol family
    [ 0.488627] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
    [ 0.503888] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.512829] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [ 0.520854] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
    [ 0.528805] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
    [ 0.536195] TCP: Hash tables configured (established 2048 bind 2048)
    [ 0.542899] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
    [ 0.549673] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
    [ 0.557083] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [ 0.564985] Initialise system trusted keyrings
    [ 0.570147] workingset: timestamp_bits=30 max_order=16 bucket_order=0
    [ 0.584558] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.590726] jffs2: version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
    [ 0.598181] Key type asymmetric registered
    [ 0.602484] Asymmetric key parser 'x509' registered
    [ 0.607740] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
    [ 0.615412] io scheduler mq-deadline registered
    [ 0.620102] io scheduler kyber registered
    [ 0.714721] Serial: 8250/16550 driver, 5 ports, IRQ sharing enabled
    [ 0.724604] STMicroelectronics ASC driver initialized
    [ 0.745718] brd: module loaded
    [ 0.757416] loop: module loaded
    [ 0.768645] CAN device driver interface
    [ 0.775412] i2c_dev: i2c /dev entries driver
    [ 0.782061] ledtrig-cpu: registered to indicate activity on CPUs
    [ 0.792378] NET: Registered PF_INET6 protocol family
    [ 0.799602] Segment Routing with IPv6
    [ 0.803472] In-situ OAM (IOAM) with IPv6
    [ 0.807645] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [ 0.814921] NET: Registered PF_PACKET protocol family
    [ 0.820268] can: controller area network core
    [ 0.824832] NET: Registered PF_CAN protocol family
    [ 0.829815] can: raw protocol
    [ 0.832877] can: broadcast manager protocol
    [ 0.837192] can: netlink gateway - max_hops=1
    [ 0.841896] 8021q: 802.1Q VLAN Support v1.8
    [ 0.846489] Key type dns_resolver registered
    [ 0.851077] ThumbEE CPU extension supported.
    [ 0.855488] Registering SWP/SWPB emulation handler
    [ 0.860970] omap_voltage_late_init: Voltage driver support not added
    [ 0.868312] Loading compiled-in X.509 certificates
    [ 0.879087] Key type encrypted registered
    [ 0.883312] ima: No TPM chip found, activating TPM-bypass!
    [ 0.889324] ima: Allocated hash algorithm: sha1
    [ 0.894052] ima: No architecture policies found
    [ 0.899122] evm: Initialising EVM extended attributes:
    [ 0.904425] evm: security.selinux (disabled)
    [ 0.908970] evm: security.SMACK64 (disabled)
    [ 0.913371] evm: security.SMACK64EXEC (disabled)
    [ 0.918121] evm: security.SMACK64TRANSMUTE (disabled)
    [ 0.923379] evm: security.SMACK64MMAP (disabled)
    [ 0.928133] evm: security.apparmor (disabled)
    [ 0.932650] evm: security.ima
    [ 0.935704] evm: security.capability
    [ 0.939432] evm: HMAC attrs: 0x1
    [ 0.974794] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [ 0.988655] gpio gpiochip0: (gpio-0-31): not an immutable chip, please consider fixing it!
    [ 0.997819] OMAP GPIO hardware version 0.1
    [ 1.005629] printk: console [ttyO0] disabled
    [ 1.010337] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 18, base_baud = 3000000) is a 8250
    [ 1.019506] printk: console [ttyO0] enabled
    [ 1.019506] printk: console [ttyO0] enabled
    [ 1.028020] printk: bootconsole [ns16550a0] disabled
    [ 1.028020] printk: bootconsole [ns16550a0] disabled
    [ 1.042745] i2c i2c-0: of_i2c: modalias failure on /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/tps@2d
    [ 1.054258] i2c i2c-0: Failed to create I2C device for /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/tps@2d
    [ 1.066426] at24 0-0054: supply vcc not found, using dummy regulator
    [ 1.098623] at24 0-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
    [ 1.105532] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.117861] ti-sysc: probe of 44e31000.target-module failed with error -16
    [ 1.129087] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 15 sec
    [ 1.145263] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 21, base_baud = 3000000) is a 8250
    [ 1.163941] ti-sysc: probe of 48040000.target-module failed with error -16
    [ 1.184675] gpio gpiochip1: (gpio-32-63): not an immutable chip, please consider fixing it!
    [ 1.207939] gpio gpiochip2: (gpio-64-95): not an immutable chip, please consider fixing it!
    [ 1.219557] gpio gpiochip3: (gpio-96-127): not an immutable chip, please consider fixing it!
    [ 1.232051] c_can_platform 481cc000.can: c_can_platform device registered (regs=(ptrval), irq=31)
    [ 1.244762] c_can_platform 481d0000.can: c_can_platform device registered (regs=(ptrval), irq=32)
    [ 1.263974] omap_rng 48310000.rng: Random Number Generator ver. 20
    [ 1.270435] random: crng init done
    [ 1.338451] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [ 1.351025] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver Micrel KSZ9031 Gigabit PHY
    [ 1.360901] davinci_mdio 4a101000.mdio: phy[2]: device 4a101000.mdio:02, driver Micrel KSZ9031 Gigabit PHY
    [ 1.371220] cpsw-switch 4a100000.switch: initialized cpsw ale version 1.4
    [ 1.378064] cpsw-switch 4a100000.switch: ALE Table size 1024
    [ 1.384027] cpsw-switch 4a100000.switch: cpts: overflow check period 500 (jiffies)
    [ 1.391732] cpsw-switch 4a100000.switch: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec
    [ 1.402835] cpsw-switch 4a100000.switch: Detected MACID = 04:23:22:68:0e:f8
    [ 1.409975] cpsw-switch 4a100000.switch: Detected MACID = 04:23:22:68:0e:fa
    [ 1.419895] cpsw-switch 4a100000.switch: initialized (regs 0x4a100000, pool size 256) hw_ver:0019010C 1.12 (0)
    [ 1.440512] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
    [ 1.448590] edma 49000000.dma: TI EDMA DMA engine driver
    [ 1.469154] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [ 1.474375] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [ 1.502151] omap_reset_deassert: timedout waiting for gfx:0
    [ 1.507877] ti-sysc: probe of 5600fe00.target-module failed with error -110
    [ 1.518318] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 1.531738] l3-aon-clkctrl:0000:0: failed to disable
    [ 1.544594] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xda
    [ 1.551184] nand: Winbond W29N02KV
    [ 1.554614] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128
    [ 1.562502] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [ 1.568072] 11 fixed-partitions partitions found on MTD device omap2-nand.0
    [ 1.575123] Creating 11 MTD partitions on "omap2-nand.0":
    [ 1.580582] 0x000000000000-0x000000080000 : "SPL"
    [ 1.587736] 0x000000080000-0x000000180000 : "u-boot"
    [ 1.595088] 0x000000180000-0x000000280000 : "u-boot.backup"
    [ 1.602995] 0x000000280000-0x000000300000 : "u-boot-env"
    [ 1.610637] 0x000000300000-0x000001300000 : "fit"
    [ 1.622147] 0x000001300000-0x000002300000 : "fit.backup"
    [ 1.634257] 0x000002300000-0x000007300000 : "rootfs"
    [ 1.665206] 0x000007300000-0x00000c300000 : "rootfs.backup"
    [ 1.696867] 0x00000c300000-0x00000c700000 : "config"
    [ 1.705049] 0x00000c700000-0x00000cb00000 : "config.backup"
    [ 1.713874] 0x00000cb00000-0x000010000000 : "storage"
    [ 1.739150] input: volume-keys as /devices/platform/volume-keys/input/input0
    这是uboot2017 启动的同一个zImage 和 dtb 的log

  • 你好,

    您能否尝试将此参数添加到 2025 Uboot 启动参数中并捕获日志?

    slub_debug=FZP

    如果仍然无效,请使用以下命令重新编译内核:

    CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y

    请分享日志文件。

    问候,
    维努

  • U-Boot 2025.01-00800-g1612e4d1deb1-dirty (Jun 11 2026 - 13:10:21 +0000)

    CPU : AM335X-GP rev 2.1
    Model: TI AM335x EVM
    DRAM: 256 MiB
    Core: 154 devices, 16 uclasses, devicetree: separate
    NAND: 256 MiB
    MMC:
    Loading Environment from nowhere... OK
    Net: eth2: ethernet@4a100000
    Hit any key to stop autoboot: 0
    =>
    => setenv bootargs 'earlycon=ns16550a,mmio32,0x44e09000 console=ttyO0,115200n8 loglevel=8 root=/dev/ram0 rw init_on_alloc=1 slub_debug=FZPU'
    => tftp 0x83000000 zImage
    link up on port 0, speed 1000, full duplex
    Using ethernet@4a100000 device
    TFTP from server 192.168.0.10; our IP address is 192.168.0.1
    Filename 'zImage'.
    Load address: 0x83000000
    Loading: ################################################## 5.6 MiB
    1.1 MiB/s
    done
    Bytes transferred = 5902848 (5a1200 hex)
    => tftp 0x88000000 am335x-evm.dtb
    link up on port 0, speed 1000, full duplex
    Using ethernet@4a100000 device
    TFTP from server 192.168.0.10; our IP address is 192.168.0.1
    Filename 'am335x-evm.dtb'.
    Load address: 0x88000000
    Loading: ################################################## 67.9 KiB
    538.1 KiB/s
    done
    Bytes transferred = 69492 (10f74 hex)
    => bootz 0x83000000 - 0x88000000
    Kernel image @ 0x83000000 [ 0x000000 - 0x5a1200 ]
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Working FDT set to 88000000
    Loading Device Tree to 8cf02000, end 8cf15f73 ... OK
    Working FDT set to 8cf02000

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 6.1.46-ti-gbbfe7dc461b4 (oe-user@oe-host) (arm-openbmc-linux-gnueabi-gcc (GCC) 15.2.0, GNU ld (GNU Binutils) 2.46) #1 PREEMPT Mon Aug 31 18:01:53 CST 2026
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] OF: fdt: Machine model: TI AM335x EVM
    [ 0.000000] earlycon: ns16550a0 at MMIO32 0x44e09000 (options '')
    [ 0.000000] printk: bootconsole [ns16550a0] enabled
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] efi: UEFI not found.
    [ 0.000000] cma: Reserved 64 MiB at 0x88800000
    [ 0.000000] Zone ranges:
    [ 0.000000] Normal [mem 0x0000000080000000-0x000000008fdfffff]
    [ 0.000000] HighMem empty
    [ 0.000000] Movable zone start for each node
    [ 0.000000] Early memory node ranges
    [ 0.000000] node 0: [mem 0x0000000080000000-0x000000008fdfffff]
    [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000008fdfffff]
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (neon)
    [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    [ 0.000000] pcpu-alloc: [0] 0
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64516
    [ 0.000000] Kernel command line: earlycon=ns16550a,mmio32,0x44e09000 console=ttyO0,115200n8 loglevel=8 root=/dev/ram0 rw init_on_alloc=1 slub_debug=FZPU
    [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
    [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
    [ 0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
    [ 0.000000] stackdepot hash table entries: 16384 (order: 4, 65536 bytes, linear)
    [ 0.000000] Memory: 177184K/260096K available (9216K kernel code, 1005K rwdata, 2364K rodata, 1024K init, 282K bss, 17376K reserved, 65536K cma-reserved, 0K highmem)
    [ 0.000000] **********************************************************
    [ 0.000000] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **
    [ 0.000000] ** **
    [ 0.000000] ** This system shows unhashed kernel memory addresses **
    [ 0.000000] ** via the console, logs, and other interfaces. This **
    [ 0.000000] ** might reduce the security of your system. **
    [ 0.000000] ** **
    [ 0.000000] ** If you see this message and you are not debugging **
    [ 0.000000] ** the kernel, report this immediately to your system **
    [ 0.000000] ** administrator! **
    [ 0.000000] ** **
    [ 0.000000] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **
    [ 0.000000] **********************************************************
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] trace event string verifier disabled
    [ 0.000000] rcu: Preemptible hierarchical RCU implementation.
    [ 0.000000] rcu: RCU event tracing is enabled.
    [ 0.000000] Trampoline variant of Tasks RCU enabled.
    [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
    [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [ 0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
    [ 0.000002] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.008074] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.018255] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
    [ 0.030411] Console: colour dummy device 80x30
    [ 0.035059] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
    [ 0.124730] CPU: Testing write buffer coherency: ok
    [ 0.129960] CPU0: Spectre v2: using BPIALL workaround
    [ 0.135161] pid_max: default: 32768 minimum: 301
    [ 0.140347] LSM: Security Framework initializing
    [ 0.145710] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.153281] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.167696] cblist_init_generic: Setting adjustable number of callback queues.
    [ 0.175255] cblist_init_generic: Setting shift to 0 and lim to 1.
    [ 0.181949] Setting up static identity map for 0x80100000 - 0x80100060
    [ 0.189127] rcu: Hierarchical SRCU implementation.
    [ 0.194064] rcu: Max phase no-delay instances is 1000.
    [ 0.201729] EFI services will not be available.
    [ 0.208055] devtmpfs: initialized
    [ 0.365510] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.374752] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.384939] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
    [ 0.398073] pinctrl core: initialized pinctrl subsystem
    [ 0.408456] DMI not present or invalid.
    [ 0.414738] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [ 0.429909] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.444698] thermal_sys: Registered thermal governor 'step_wise'
    [ 0.478468] No ATAGs?
    [ 0.487012] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.495960] Serial: AMBA PL011 UART driver
    [ 0.602039] SCSI subsystem initialized
    [ 0.608729] pps_core: LinuxPPS API ver. 1 registered
    [ 0.613854] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.623446] PTP clock support registered
    [ 0.628210] EDAC MC: Ver: 3.0.0
    [ 0.642332] clocksource: Switched to clocksource dmtimer
    [ 0.756863] NET: Registered PF_INET protocol family
    [ 0.772680] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
    [ 0.794447] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.812611] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [ 0.820742] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
    [ 0.842455] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
    [ 0.849866] TCP: Hash tables configured (established 2048 bind 2048)
    [ 0.872912] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
    [ 0.879689] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
    [ 0.903184] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [ 0.923077] Initialise system trusted keyrings
    [ 0.928417] workingset: timestamp_bits=30 max_order=16 bucket_order=0
    [ 1.000360] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 1.006500] jffs2: version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
    [ 1.021423] Key type asymmetric registered
    [ 1.025751] Asymmetric key parser 'x509' registered
    [ 1.032063] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
    [ 1.039744] io scheduler mq-deadline registered
    [ 1.044483] io scheduler kyber registered
    [ 1.081991] 8<--- cut here ---
    [ 1.085297] Unable to handle kernel NULL pointer dereference at virtual address 00000000
    [ 1.093649] [00000000] *pgd=00000000
    [ 1.097345] Internal error: Oops: 5 [#1] PREEMPT ARM
    [ 1.102457] Modules linked in:
    [ 1.105604] CPU: 0 PID: 1 Comm: swapper Not tainted 6.1.46-ti-gbbfe7dc461b4 #1
    [ 1.113042] Hardware name: Generic AM33XX (Flattened Device Tree)
    [ 1.119309] PC is at strlen+0x0/0x2c
    [ 1.123020] LR is at kernfs_name_hash+0x14/0x70
    [ 1.127691] pc : [<c0937f0c>] lr : [<c031cbd0>] psr: 40000013
    [ 1.134138] sp : d0009d10 ip : 00000118 fp : 00000000
    [ 1.139511] r10: 00000000 r9 : 00000002 r8 : d0009e3c
    [ 1.144884] r7 : c0ec2bd0 r6 : c145dee0 r5 : c16a0560 r4 : 00000000
    [ 1.151599] r3 : 00000011 r2 : 00000001 r1 : 00000000 r0 : 00000000
    [ 1.158315] Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
    [ 1.165660] Control: 10c5387d Table: 80004019 DAC: 00000051
    [ 1.171570] Register r0 information: NULL pointer
    [ 1.176415] Register r1 information: NULL pointer
    [ 1.181255] Register r2 information: non-paged memory
    [ 1.186453] Register r3 information: non-paged memory
    [ 1.191650] Register r4 information: NULL pointer
    [ 1.196490] Register r5 information: slab kernfs_node_cache start c16a0558 data offset 8 pointer offset 0 allocated at __kernfs_new_node+0x4c/0x218
    [ 1.210132] __kernfs_new_node+0x4c/0x218
    [ 1.214527] kernfs_create_dir_ns+0x40/0xc4
    [ 1.219103] sysfs_create_dir_ns+0x68/0x100
    [ 1.223683] kobject_add_internal+0xa8/0x2b4
    [ 1.228346] kobject_add+0x5c/0xbc
    [ 1.232115] device_add+0xbc/0x834
    [ 1.235891] tty_register_device_attr+0xf4/0x21c
    [ 1.240925] tty_register_driver+0x100/0x1d8
    [ 1.245591] pty_init+0x178/0x3e8
    [ 1.249275] do_one_initcall+0x44/0x204
    [ 1.253497] kernel_init_freeable+0x1b8/0x210
    [ 1.258253] kernel_init+0x18/0x12c
    [ 1.262120] ret_from_fork+0x14/0x2c
    [ 1.266067] Register r6 information: slab kernfs_node_cache start c145ded8 data offset 8 pointer offset 0 allocated at __kernfs_new_node+0x4c/0x218
    [ 1.279698] __kernfs_new_node+0x4c/0x218
    [ 1.284093] kernfs_create_dir_ns+0x40/0xc4
    [ 1.288667] sysfs_create_dir_ns+0x68/0x100
    [ 1.293244] kobject_add_internal+0xa8/0x2b4
    [ 1.297906] kobject_add+0x5c/0xbc
    [ 1.301674] get_device_parent+0x13c/0x1ac
    [ 1.306159] device_add+0x498/0x834
    [ 1.310019] device_create_groups_vargs+0xbc/0xd8
    [ 1.315131] device_create+0x34/0x58
    [ 1.319079] tty_init+0x80/0x134
    [ 1.322669] do_one_initcall+0x44/0x204
    [ 1.326886] kernel_init_freeable+0x1b8/0x210
    [ 1.331638] kernel_init+0x18/0x12c
    [ 1.335499] ret_from_fork+0x14/0x2c
    [ 1.339445] Register r7 information: non-slab/vmalloc memory
    [ 1.345269] Register r8 information: 2-page vmalloc region starting at 0xd0008000 allocated at kernel_clone+0x8c/0x388
    [ 1.356303] Register r9 information: non-paged memory
    [ 1.361501] Register r10 information: NULL pointer
    [ 1.366431] Register r11 information: NULL pointer
    [ 1.371360] Register r12 information: non-paged memory
    [ 1.376646] Process swapper (pid: 1, stack limit = 0xd0008000)
    [ 1.382651] Stack: (0xd0009d10 to 0xd000a000)
    [ 1.387136] 9d00: c10ee234 00000000 c10ee234 c031ea18
    [ 1.395555] 9d20: c1690800 64a95437 000000cc c1690800 c145dee0 00000000 c0ec2bd0 c16a0560
    [ 1.403973] 9d40: c145dee0 00000000 c0ec2bd0 c031eb70 00000000 00000000 00000001 00000000
    [ 1.412390] 9d60: 00000000 c1690800 c145dee0 c0321bf4 00000000 c1690800 00000000 00000dc0
    [ 1.420809] 9d80: d0009e3c c028e054 cfb9f030 00000000 00000000 64a95437 c1690800 c145f100
    [ 1.429227] 9da0: 00000000 c092070c c056280c 000001b8 d0009e40 c1690800 c145f100 00000000
    [ 1.437644] 9dc0: 0000001c c0920974 d0009de4 64a95437 00000000 c1690800 c167be00 c0562404
    [ 1.446063] 9de0: 00000000 c145f100 c145f100 00000000 d0009e3c c0577560 c1690800 0020001c
    [ 1.454481] 9e00: 0000001c 64a95437 c1690800 c1690800 c167be00 0020001c 0000001c d0009e3c
    [ 1.462900] 9e20: 00000002 c050dcec 0000000c c056a3b8 c029d9f0 00000000 00000000 71797470
    [ 1.471318] 9e40: c0290063 c16794c0 00000000 c1679340 00000100 00009600 c0bb4528 00020004
    [ 1.479736] 9e60: c16794c0 c029d99c c029d734 c029de58 c16794c0 00020004 c16794c0 64a95437
    [ 1.488154] 9e80: c167be00 0000001c c167be00 00000000 00000000 00009600 c0bb4528 00020004
    [ 1.496572] 9ea0: c167d080 c050df30 00000000 c050f2b4 00200000 64a95437 c167be00 000000bf
    [ 1.504991] 9ec0: c0ebd148 c0d2a804 c1108040 60000013 00000000 c0a56de8 c0bb4534 c0bb4540
    [ 1.513409] 9ee0: c0d5e744 c1108040 c0ef37e0 c0d44830 c0d2a68c 00000000 c0d44850 00000006
    [ 1.521827] 9f00: c0d5e748 c0101f70 00000000 00000000 c115b558 c014ef00 c0ef37e0 c0d004c8
    [ 1.530245] 9f20: 000000e1 c0bd64e8 00000000 00000000 00000006 00000006 00000010 c115b568
    [ 1.538663] 9f40: c115b573 64a95437 00000011 000000e1 c115b500 64a95437 000000e1 c115b500
    [ 1.547081] 9f60: c0d44830 c0ef37e0 c0efc000 c0d01358 00000006 00000006 00000000 c0d004c8
    [ 1.555499] 9f80: c0951364 c0e04240 c0951364 00000000 00000000 00000000 00000000 00000000
    [ 1.563917] 9fa0: 00000000 c095137c 00000000 c0100148 00000000 00000000 00000000 00000000
    [ 1.572334] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 1.580752] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
    [ 1.589169] strlen from kernfs_name_hash+0x14/0x70
    [ 1.594206] kernfs_name_hash from kernfs_add_one+0x68/0x148
    [ 1.600039] kernfs_add_one from kernfs_create_dir_ns+0x78/0xc4
    [ 1.606141] kernfs_create_dir_ns from sysfs_create_dir_ns+0x68/0x100
    [ 1.612781] sysfs_create_dir_ns from kobject_add_internal+0xa8/0x2b4
    [ 1.619420] kobject_add_internal from kobject_add+0x5c/0xbc
    [ 1.625251] kobject_add from device_add+0xbc/0x834
    [ 1.630279] device_add from tty_register_device_attr+0xf4/0x21c
    [ 1.636473] tty_register_device_attr from tty_register_driver+0x100/0x1d8
    [ 1.643562] tty_register_driver from pty_init+0x178/0x3e8
    [ 1.649218] pty_init from do_one_initcall+0x44/0x204
    [ 1.654425] do_one_initcall from kernel_init_freeable+0x1b8/0x210
    [ 1.660796] kernel_init_freeable from kernel_init+0x18/0x12c
    [ 1.666720] kernel_init from ret_from_fork+0x14/0x2c
    [ 1.671927] Exception stack(0xd0009fb0 to 0xd0009ff8)
    [ 1.677125] 9fa0: 00000000 00000000 00000000 00000000
    [ 1.685542] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 1.693959] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
    [ 1.700770] Code: e1510003 1afffff6 e3a00000 e12fff1e (e5d03000)
    [ 1.707129] ---[ end trace 0000000000000000 ]---
    [ 1.711901] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
    [ 1.719786] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---

    另外我发现,不同的zimage 和 dtb 加载地址会有不同的错误,如何上面, 且在同一个加载地址上面,多次重启也不有不通的加载错误, 怎么感觉时内存的问题或者覆盖问题什么的,但是我在uboot 下用mtest 测1000 没有报错,非常奇怪, 还有是不是uboot2026 在启动时修改dts 和重定位导致的错误?

  • => tftp 0x83000000 zImage
    link up on port 0, speed 100, full duplex
    Using ethernet@4a100000 device
    TFTP from server 192.168.0.10; our IP address is 192.168.0.1
    Filename 'zImage'.
    Load address: 0x83000000
    Loading: ################################################## 5.6 MiB
    468.8 KiB/s
    done
    Bytes transferred = 5902848 (5a1200 hex)
    => tftp 0x88000000 am335x-evm.dtb
    link up on port 0, speed 100, full duplex
    Using ethernet@4a100000 device
    TFTP from server 192.168.0.10; our IP address is 192.168.0.1
    Filename 'am335x-evm.dtb'.
    Load address: 0x88000000
    Loading: ################################################## 67.9 KiB
    360.4 KiB/s
    done
    Bytes transferred = 69492 (10f74 hex)
    => bootz 0x83000000 - 0x88000000
    Kernel image @ 0x83000000 [ 0x000000 - 0x5a1200 ]
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Working FDT set to 88000000
    Loading Device Tree to 8cf02000, end 8cf15f73 ... OK
    Working FDT set to 8cf02000

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 6.1.46-ti-gbbfe7dc461b4 (oe-user@oe-host) (arm-openbmc-linux-gnueabi-gcc (GCC) 15.2.0, GNU ld (GNU Binutils) 2.46) #1 PREEMPT Mon Aug 31 18:01:53 CST 2026
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] OF: fdt: Machine model: TI AM335x EVM
    [ 0.000000] earlycon: ns16550a0 at MMIO32 0x44e09000 (options '')
    [ 0.000000] printk: bootconsole [ns16550a0] enabled
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] efi: UEFI not found.
    [ 0.000000] cma: Reserved 64 MiB at 0x88800000
    [ 0.000000] Zone ranges:
    [ 0.000000] Normal [mem 0x0000000080000000-0x000000008fdfffff]
    [ 0.000000] HighMem empty
    [ 0.000000] Movable zone start for each node
    [ 0.000000] Early memory node ranges
    [ 0.000000] node 0: [mem 0x0000000080000000-0x000000008fdfffff]
    [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000008fdfffff]
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (neon)
    [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    [ 0.000000] pcpu-alloc: [0] 0
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64516
    [ 0.000000] Kernel command line: earlycon=ns16550a,mmio32,0x44e09000 console=ttyO0,115200n8 loglevel=8 root=/dev/ram0 rw
    [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
    [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
    [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [ 0.000000] Memory: 177248K/260096K available (9216K kernel code, 1005K rwdata, 2364K rodata, 1024K init, 282K bss, 17312K reserved, 65536K cma-reserved, 0K highmem)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] trace event string verifier disabled
    [ 0.000000] rcu: Preemptible hierarchical RCU implementation.
    [ 0.000000] rcu: RCU event tracing is enabled.
    [ 0.000000] Trampoline variant of Tasks RCU enabled.
    [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
    [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
    [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [ 0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
    [ 0.000002] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.008075] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.018101] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
    [ 0.029923] Console: colour dummy device 80x30
    [ 0.034562] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
    [ 0.124575] CPU: Testing write buffer coherency: ok
    [ 0.129674] CPU0: Spectre v2: using BPIALL workaround
    [ 0.134875] pid_max: default: 32768 minimum: 301
    [ 0.139743] LSM: Security Framework initializing
    [ 0.144658] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.152219] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.162204] cblist_init_generic: Setting adjustable number of callback queues.
    [ 0.169735] cblist_init_generic: Setting shift to 0 and lim to 1.
    [ 0.176182] Setting up static identity map for 0x80100000 - 0x80100060
    [ 0.183115] rcu: Hierarchical SRCU implementation.
    [ 0.188048] rcu: Max phase no-delay instances is 1000.
    [ 0.195333] EFI services will not be available.
    [ 0.200706] devtmpfs: initialized
    [ 0.220197] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.228472] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.238642] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
    [ 0.251342] pinctrl core: initialized pinctrl subsystem
    [ 0.257627] DMI not present or invalid.
    [ 0.262501] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [ 0.271084] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.279489] thermal_sys: Registered thermal governor 'step_wise'
    [ 0.296110] No ATAGs?
    [ 0.304737] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.313039] Serial: AMBA PL011 UART driver
    [ 0.343078] SCSI subsystem initialized
    [ 0.347527] pps_core: LinuxPPS API ver. 1 registered
    [ 0.362326] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.371820] PTP clock support registered
    [ 0.376065] EDAC MC: Ver: 3.0.0
    [ 0.382101] clocksource: Switched to clocksource dmtimer
    [ 0.396886] 8<--- cut here ---
    [ 0.400069] Unable to handle kernel paging request at virtual address c0e8ce70
    [ 0.407503] [c0e8ce70] *pgd=80e0041e(bad)
    [ 0.411648] Internal error: Oops: 8000000d [#1] PREEMPT ARM
    [ 0.417387] Modules linked in:
    [ 0.420534] CPU: 0 PID: 9 Comm: kworker/u2:0 Not tainted 6.1.46-ti-gbbfe7dc461b4 #1
    [ 0.428419] Hardware name: Generic AM33XX (Flattened Device Tree)
    [ 0.434691] Workqueue: eval_map_wq tracer_init_tracefs_work_func
    [ 0.440897] PC is at 0xc0e8ce70
    [ 0.444129] LR is at up_write+0x3c/0x74
    [ 0.448086] pc : [<c0e8ce70>] lr : [<c016ccb4>] psr: 60000013
    [ 0.454532] sp : d0029eb0 ip : 00000000 fp : c1005600
    [ 0.459906] r10: 00000000 r9 : c187b770 r8 : c0e8cf0c
    [ 0.465279] r7 : c1023360 r6 : c1821880 r5 : c0b7ab8c r4 : c0a0fa68
    [ 0.471995] r3 : 00000000 r2 : 00000000 r1 : 00000001 r0 : 00000000
    [ 0.478711] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
    [ 0.486056] Control: 10c5387d Table: 80004019 DAC: 00000051
    [ 0.491964] Register r0 information: NULL pointer
    [ 0.496809] Register r1 information: non-paged memory
    [ 0.502007] Register r2 information: NULL pointer
    [ 0.506848] Register r3 information: NULL pointer
    [ 0.511687] Register r4 information: non-slab/vmalloc memory
    [ 0.517513] Register r5 information: non-slab/vmalloc memory
    [ 0.523336] Register r6 information: slab dentry start c1821880 pointer offset 0 size 40
    [ 0.531687] Register r7 information: slab trace_event_file start c1023360 pointer offset 0
    [ 0.540206] Register r8 information: non-slab/vmalloc memory
    [ 0.546030] Register r9 information: slab dentry start c187b770 pointer offset 0 size 40
    [ 0.554373] Register r10 information: NULL pointer
    [ 0.559302] Register r11 information: slab kmalloc-512 start c1005600 pointer offset 0 size 512
    [ 0.568272] Register r12 information: NULL pointer
    [ 0.573201] Process kworker/u2:0 (pid: 9, stack limit = 0x(ptrval))
    [ 0.579653] Stack: (0xd0029eb0 to 0xd002a000)
    [ 0.584138] 9ea0: c0e91220 c0c042dc c0a0f770 c1023360
    [ 0.592556] 9ec0: c0e8cf14 c0e8ce70 c1012200 c10cc000 c1012205 00000000 c1005600 c01ebc9c
    [ 0.600974] 9ee0: 00000000 c0e8ce70 c0ef3a00 c0d163d0 c0a0fb78 c0951fe8 c0e9123c c0e8cde0
    [ 0.609392] 9f00: c0a0df78 c0d15acc 00000000 c095240c c0d493b0 c0d493b0 c109a400 c0ef3a00
    [ 0.617810] 9f20: c1012200 c0149b94 c10cc000 c10cc000 c1005600 c1005600 c10cc000 c109a400
    [ 0.626228] 9f40: c1005600 c109a418 c10cc000 c1005618 c0e86b60 00000088 c1005600 c0149ef4
    [ 0.634646] 9f60: c109a400 c1005644 60000013 c10cc000 c108db40 c0149ea4 c109a400 c10cb080
    [ 0.643064] 9f80: d0009ec0 00000000 00000000 c015120c c108db40 c0151130 00000000 00000000
    [ 0.651481] 9fa0: 00000000 00000000 00000000 c0100148 00000000 00000000 00000000 00000000
    [ 0.659899] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 0.668316] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
    [ 0.676746] up_write from 0xc1023360
    [ 0.680528] Code: 00160000 00000000 c0e8ce68 c0e8ce68 (c0e8cf44)
    [ 0.686803] ---[ end trace 0000000000000000 ]---
    [ 0.691551] note: kworker/u2:0[9] exited with irqs disabled
    [ 0.706571] NET: Registered PF_INET protocol family
    [ 0.711921] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
    [ 0.720699] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.729554] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [ 0.737565] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
    [ 0.745497] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
    [ 0.752889] TCP: Hash tables configured (established 2048 bind 2048)
    [ 0.759549] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
    [ 0.766311] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
    [ 0.773685] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [ 0.780917] Initialise system trusted keyrings
    [ 0.786269] workingset: timestamp_bits=30 max_order=16 bucket_order=0
    [ 0.798554] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.804758] jffs2: version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
    [ 0.811966] Key type asymmetric registered
    [ 0.816283] Asymmetric key parser 'x509' registered
    [ 0.821500] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
    [ 0.829164] io scheduler mq-deadline registered
    [ 0.833846] io scheduler kyber registered
    [ 0.906356] Serial: 8250/16550 driver, 5 ports, IRQ sharing enabled
    [ 0.915503] STMicroelectronics ASC driver initialized
    [ 0.933087] brd: module loaded
    [ 0.942862] loop: module loaded
    [ 0.951923] CAN device driver interface
    [ 0.958250] i2c_dev: i2c /dev entries driver
    [ 0.964386] ledtrig-cpu: registered to indicate activity on CPUs
    [ 0.973903] NET: Registered PF_INET6 protocol family
    [ 0.980672] Segment Routing with IPv6
    [ 0.984669] In-situ OAM (IOAM) with IPv6
    [ 0.988820] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [ 0.995802] NET: Registered PF_PACKET protocol family
    [ 1.001071] can: controller area network core
    [ 1.005677] NET: Registered PF_CAN protocol family
    [ 1.010613] can: raw protocol
    [ 1.013694] can: broadcast manager protocol
    [ 1.018006] can: netlink gateway - max_hops=1
    [ 1.022666] 8021q: 802.1Q VLAN Support v1.8
    [ 1.027238] Key type dns_resolver registered
    [ 1.031745] ThumbEE CPU extension supported.
    [ 1.036313] Registering SWP/SWPB emulation handler
    [ 1.041708] omap_voltage_late_init: Voltage driver support not added
    [ 1.049050] Loading compiled-in X.509 certificates
    [ 1.058491] Key type encrypted registered
    [ 1.062886] ima: No TPM chip found, activating TPM-bypass!
    [ 1.068711] ima: Allocated hash algorithm: sha1
    [ 1.073528] ima: No architecture policies found
    [ 1.078289] evm: Initialising EVM extended attributes:
    [ 1.083779] evm: security.selinux (disabled)
    [ 1.088179] evm: security.SMACK64 (disabled)
    [ 1.092631] evm: security.SMACK64EXEC (disabled)
    [ 1.097382] evm: security.SMACK64TRANSMUTE (disabled)
    [ 1.102614] evm: security.SMACK64MMAP (disabled)
    [ 1.107364] evm: security.apparmor (disabled)
    [ 1.111842] evm: security.ima
    [ 1.114913] evm: security.capability
    [ 1.118588] evm: HMAC attrs: 0x1
    [ 1.146238] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [ 1.158548] gpio gpiochip0: (gpio-0-31): not an immutable chip, please consider fixing it!
    [ 1.167791] OMAP GPIO hardware version 0.1
    [ 1.174960] printk: console [ttyO0] disabled
    [ 1.179483] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 18, base_baud = 3000000) is a 8250
    [ 1.188692] printk: console [ttyO0] enabled
    [ 1.188692] printk: console [ttyO0] enabled
    [ 1.197259] printk: bootconsole [ns16550a0] disabled
    [ 1.197259] printk: bootconsole [ns16550a0] disabled
    [ 1.211049] i2c i2c-0: of_i2c: modalias failure on /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/tps@2d
    [ 1.222514] i2c i2c-0: Failed to create I2C device for /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/tps@2d
    [ 1.234580] at24 0-0054: supply vcc not found, using dummy regulator
    [ 1.262355] at24 0-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
    [ 1.269229] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.280260] ti-sysc: probe of 44e31000.target-module failed with error -16
    [ 1.290751] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 15 sec
    [ 1.305322] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 21, base_baud = 3000000) is a 8250
    [ 1.321736] ti-sysc: probe of 48040000.target-module failed with error -16
    [ 1.339850] gpio gpiochip1: (gpio-32-63): not an immutable chip, please consider fixing it!
    [ 1.360151] gpio gpiochip2: (gpio-64-95): not an immutable chip, please consider fixing it!
    [ 1.371218] gpio gpiochip3: (gpio-96-127): not an immutable chip, please consider fixing it!
    [ 1.383090] c_can_platform 481cc000.can: c_can_platform device registered (regs=(ptrval), irq=31)
    [ 1.395079] c_can_platform 481d0000.can: c_can_platform device registered (regs=(ptrval), irq=32)
    [ 1.412063] omap_rng 48310000.rng: Random Number Generator ver. 20
    [ 1.418848] random: crng init done
    [ 1.482213] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [ 1.494279] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver Micrel KSZ9031 Gigabit PHY
    [ 1.504120] davinci_mdio 4a101000.mdio: phy[2]: device 4a101000.mdio:02, driver Micrel KSZ9031 Gigabit PHY
    [ 1.514307] cpsw-switch 4a100000.switch: initialized cpsw ale version 1.4
    [ 1.521143] cpsw-switch 4a100000.switch: ALE Table size 1024
    [ 1.527038] cpsw-switch 4a100000.switch: cpts: overflow check period 500 (jiffies)
    [ 1.534718] cpsw-switch 4a100000.switch: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec
    [ 1.545801] cpsw-switch 4a100000.switch: Detected MACID = 04:23:22:68:0e:f8
    [ 1.552872] cpsw-switch 4a100000.switch: Detected MACID = 04:23:22:68:0e:fa
    [ 1.562081] cpsw-switch 4a100000.switch: initialized (regs 0x4a100000, pool size 256) hw_ver:0019010C 1.12 (0)
    [ 1.580187] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
    [ 1.588289] edma 49000000.dma: TI EDMA DMA engine driver
    [ 1.605546] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [ 1.610757] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [ 1.637474] omap_reset_deassert: timedout waiting for gfx:0
    [ 1.643196] ti-sysc: probe of 5600fe00.target-module failed with error -110
    [ 1.653023] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 1.666318] l3-aon-clkctrl:0000:0: failed to disable
    [ 1.677834] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xda
    [ 1.684372] nand: Winbond W29N02KV
    [ 1.687795] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128
    [ 1.695673] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [ 1.701194] 11 fixed-partitions partitions found on MTD device omap2-nand.0
    [ 1.708237] Creating 11 MTD partitions on "omap2-nand.0":
    [ 1.713683] 0x000000000000-0x000000080000 : "SPL"
    [ 1.720367] 0x000000080000-0x000000180000 : "u-boot"
    [ 1.727246] 0x000000180000-0x000000280000 : "u-boot.backup"
    [ 1.734669] 0x000000280000-0x000000300000 : "u-boot-env"
    [ 1.741737] 0x000000300000-0x000001300000 : "fit"
    [ 1.752706] 0x000001300000-0x000002300000 : "fit.backup"
    [ 1.764196] 0x000002300000-0x000007300000 : "rootfs"
    [ 1.793807] 0x000007300000-0x00000c300000 : "rootfs.backup"
    [ 1.824131] 0x00000c300000-0x00000c700000 : "config"
    [ 1.831746] 0x00000c700000-0x00000cb00000 : "config.backup"
    [ 1.840096] 0x00000cb00000-0x000010000000 : "storage"
    [ 1.863917] input: volume-keys as /devices/platform/volume-keys/input/input0
    这是重启后,的log, 不一样

  • 你好,

    您能否尝试使用 TI-kernel 6.1.46 版本,看看在您的开发板上是否会出现该错误?

    问候,
    维努

  • 我上面就是使用的TI-kernel 6.1.46 版本

  • 另外我今天上午kernel 成功启动了一次,但是重启,又不行了

  • 目前测试看来,错误是随机的,是ddr 问题吗,但是我在uboot 下mtest 是ok 的

  • 你好,

    还有一个测试可以帮助我们缩小问题范围。您能否尝试从标准的 meta-ti / TI 参考构建设置(而不是通过您的 OpenBMC 层)构建并启动内核,然后在您的开发板上使用 U-Boot 2025.01 进行测试?

    我们之所以这样问,是因为将您的内核版本字符串与已知可用的参考版本进行比较后,我们发现除了内核版本之外,还有一些其他差异:

    1. 内核版本标签:您的内核版本显示为“6.1.46-ti-gbbfe7dc461b4”;参考内核版本显示为“6.1.46-g1d4b5da681”(没有“-ti-”标签),这表明它可能来自不同的配方/层路径。
    2. 工具链:您的版本使用 arm-openbmc-linux-gnueabi-gcc (GCC) 15.2.0 构建;参考版本使用 arm-oe-linux-gnueabi-gcc (GCC) 11.4.0 构建——这是一个明显较旧但经过更广泛验证的编译器,适用于此内核版本。

    问候,
    维努