AM3352: AM335x 启动Linux内核时停止

Part Number: AM3352
Other Parts Discussed in Thread: TPS65910

专家你好!

我之前升级到ti-processor-sdk-linux-am335x-evm-09.03.05.02-Linux-x86-Install报错后提交问题,目前还没有得到回复。

现在使用ti-processor-sdk-linux-am335x-evm-08.02.00.24-Linux-x86-Install,启动内核时停止了,具体的信息如下。

U-Boot SPL 2021.01-00001-gc59bf25a38-dirty (Jan 07 2025 - 10:43:52 +0800)
Trying to boot from MMC1


U-Boot 2021.01-00001-gc59bf25a38-dirty (Jan 07 2025 - 10:43:52 +0800)

CPU : AM335X-GP rev 2.1
Model: TI AM335x EVM
DRAM: 512 MiB
WDT: Started with servicing (60s timeout)
NAND: 0 MiB
MMC: OMAP SD/MMC: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net: No ethernet found.
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
Failed to load 'boot.scr'
275 bytes read in 4 ms (66.4 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...
** Bad device specification 0:2 uuid **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Scanning disk mmc@48060000.blk...
Found 3 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
5046784 bytes read in 336 ms (14.3 MiB/s)
** Bad device specification 0:2 uuid **
66239 bytes read in 13 ms (4.9 MiB/s)
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8ffec000, end 8ffff2be ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.10.100-g7a7a3af903 (root@t100u) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #1 PREEMPT Tue Jan 7 10:53:35 CST 2025
[ 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] Memory policy: Data cache writeback
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 48 MiB at 0x9c800000
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000080000000-0x000000009fefffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x000000009fefffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fefffff]
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (neon)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129666
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID= rw rootfstype=ext4 rootwait
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 452360K/523264K available (10240K kernel code, 697K rwdata, 3424K rodata, 1024K init, 283K bss, 21752K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 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] random: get_random_bytes called from start_kernel+0x30c/0x4c8 with crng_init=0
[ 0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
[ 0.000010] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[ 0.000027] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[ 0.000352] TI gptimer clockevent: 25000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
[ 0.001250] Console: colour dummy device 80x30
[ 0.001289] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.001297] This ensures that you still see kernel messages. Please
[ 0.001303] update your kernel commandline.
[ 0.001359] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[ 0.090422] pid_max: default: 32768 minimum: 301
[ 0.090583] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.090599] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.091428] CPU: Testing write buffer coherency: ok
[ 0.091502] CPU0: Spectre v2: using BPIALL workaround
[ 0.092302] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.092444] rcu: Hierarchical SRCU implementation.
[ 0.092533] EFI services will not be available.
[ 0.092892] devtmpfs: initialized
[ 0.102668] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.102917] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.102940] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.106128] pinctrl core: initialized pinctrl subsystem
[ 0.107053] DMI not present or invalid.
[ 0.107514] NET: Registered protocol family 16
[ 0.109655] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.127523] l3-aon-clkctrl:0000:0: failed to disable
[ 0.128676] thermal_sys: Registered thermal governor 'fair_share'
[ 0.128689] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.128703] thermal_sys: Registered thermal governor 'step_wise'
[ 0.128710] thermal_sys: Registered thermal governor 'user_space'
[ 0.129058] cpuidle: using governor ladder
[ 0.129096] cpuidle: using governor menu
[ 1.226364] No ATAGs?
[ 1.226393] hw-breakpoint: debug architecture 0x4 unsupported.
[ 1.250793] iommu: Default domain type: Translated
[ 1.252789] SCSI subsystem initialized
[ 1.253252] mc: Linux media interface: v0.10
[ 1.253294] videodev: Linux video capture interface: v2.00
[ 1.253400] pps_core: LinuxPPS API ver. 1 registered
[ 1.253410] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 1.253431] PTP clock support registered
[ 1.253492] EDAC MC: Ver: 3.0.0
[ 1.254628] Advanced Linux Sound Architecture Driver Initialized.
[ 1.255926] clocksource: Switched to clocksource dmtimer
[ 1.263353] NET: Registered protocol family 2
[ 1.263560] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 1.264560] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 1.264598] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 1.264639] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 1.264678] TCP: Hash tables configured (established 4096 bind 4096)
[ 1.264789] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 1.264811] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 1.264933] NET: Registered protocol family 1
[ 1.265460] RPC: Registered named UNIX socket transport module.
[ 1.265475] RPC: Registered udp transport module.
[ 1.265482] RPC: Registered tcp transport module.
[ 1.265489] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.265507] PCI: CLS 0 bytes, default 64
[ 1.266665] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 1.267860] Initialise system trusted keyrings
[ 1.268223] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 1.271778] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.272530] NFS: Registering the id_resolver key type
[ 1.272577] Key type id_resolver registered
[ 1.272586] Key type id_legacy registered
[ 1.272676] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.272688] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 1.272728] ntfs: driver 2.1.32 [Flags: R/O].
[ 1.273318] Key type asymmetric registered
[ 1.273338] Asymmetric key parser 'x509' registered
[ 1.273389] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 1.273400] io scheduler mq-deadline registered
[ 1.273409] io scheduler kyber registered
[ 1.666650] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 1.785379] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
[ 1.785426] edma 49000000.dma: TI EDMA DMA engine driver
[ 1.797256] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[ 1.801296] pwm-backlight backlight: supply power not found, using dummy regulator
[ 1.849050] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[ 1.853527] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 21, base_baud = 3000000) is a 8250
[ 2.488631] random: fast init done
[ 2.533935] printk: console [ttyS0] enabled
[ 2.540042] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 28, base_baud = 3000000) is a 8250
[ 2.550566] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 29, base_baud = 3000000) is a 8250
[ 2.561144] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 40, base_baud = 3000000) is a 8250
[ 2.571567] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 41, base_baud = 3000000) is a 8250
[ 2.581995] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 42, base_baud = 3000000) is a 8250
[ 2.593736] omap_rng 48310000.rng: Random Number Generator ver. 20
[ 2.600298] random: crng init done
[ 2.604469] Failed to request gpio for gprs control power on......
[ 2.610725] Failed to request gpio for gprs control status......
[ 2.616778] Sucess on adding gprs control device
[ 2.821064] Sucess on adding plc control device
[ 2.840438] panel-simple panel: supply power not found, using dummy regulator
[ 2.861032] brd: module loaded
[ 2.870883] loop: module loaded
[ 2.879523] spi-nor spi0.0: found s25fl064k, expected w25q64
[ 2.885364] spi-nor spi0.0: s25fl064k (8192 Kbytes)
[ 2.890484] 4 fixed-partitions partitions found on MTD device spi0.0
[ 2.896893] Creating 4 MTD partitions on "spi0.0":
[ 2.901710] 0x000000000000-0x000000080000 : "u-boot-spl"
[ 2.916662] 0x000000080000-0x000000180000 : "u-boot"
[ 2.926599] 0x000000180000-0x0000001a0000 : "u-boot-env"
[ 2.936585] 0x0000001a0000-0x000000800000 : "misc"
[ 2.949360] tun: Universal TUN/TAP device driver, 1.6
[ 3.015951] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[ 3.023909] mdio_bus 4a101000.mdio: MDIO device at address 1 is missing.
[ 3.031232] cpsw-switch 4a100000.switch: initialized cpsw ale version 1.4
[ 3.038107] cpsw-switch 4a100000.switch: ALE Table size 1024
[ 3.043897] cpsw-switch 4a100000.switch: cpts: overflow check period 500 (jiffies)
[ 3.051529] cpsw-switch 4a100000.switch: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec
[ 3.062606] cpsw-switch 4a100000.switch: Detected MACID = e4:15:f6:de:76:8c
[ 3.070448] cpsw-switch 4a100000.switch: initialized (regs 0x4a100000, pool size 256) hw_ver:0019010C 1.12 (0)
[ 3.080956] PPP generic driver version 2.4.2
[ 3.085488] PPP BSD Compression module registered
[ 3.090254] PPP Deflate Compression module registered
[ 3.095337] PPP MPPE Compression module registered
[ 3.100160] NET: Registered protocol family 24
[ 3.105351] i2c /dev entries driver
[ 3.111726] cpuidle: enable-method property 'ti,am3352' found operations
[ 3.119230] sdhci: Secure Digital Host Controller Interface driver
[ 3.125443] sdhci: Copyright(c) Pierre Ossman
[ 3.130983] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.138637] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
[ 3.147149] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.169908] NET: Registered protocol family 10
[ 3.176543] Segment Routing with IPv6
[ 3.180308] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 3.196616] NET: Registered protocol family 17
[ 3.217324] Key type dns_resolver registered
[ 3.222214] omap_voltage_late_init: Voltage driver support not added
[ 3.244632] Loading compiled-in X.509 certificates
[ 3.261353] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 3.266703] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 3.275097] nand: No NAND device found
[ 3.281012] OMAP GPIO hardware version 0.1
[ 3.285805] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
[ 3.316156] tps65910 0-002d: No interrupt support, no core IRQ
[ 3.324190] vrtc: supplied by vbat
[ 3.331185] vio: supplied by vbat
[ 3.336407] vdd_mpu: supplied by vbat
[ 3.340129] mmc0: Problem switching card into high-speed mode!
[ 3.346179] mmc0: new SDHC card at address 0001
[ 3.351898] mmcblk0: mmc0:0001 SD16G 7.48 GiB
[ 3.356837] vdd_core: supplied by vbat
[ 3.362843] mmcblk0: p1 p2
[ 3.367397] vdig1: supplied by vbat
[ 3.372293] vdig2: supplied by vbat
[ 3.377134] vpll: supplied by vbat
[ 3.381788] vdac: supplied by vbat
[ 3.386500] vaux1: supplied by vbat
[ 3.391252] vaux2: supplied by vbat
[ 3.395995] vaux33: supplied by vbat
[ 3.400952] vmmc: supplied by vbat
[ 3.405746] vbb: supplied by vbat
[ 3.410099] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 3.418626] 8<--- cut here ---
[ 3.421707] Unhandled fault: external abort on non-linefetch (0x1008) at 0xe0326000
[ 3.429400] pgd = 2d439e86
[ 3.432114] [e0326000] *pgd=82838811, *pte=4a326653, *ppte=4a326453
[ 3.438427] Internal error: : 1008 [#1] PREEMPT ARM
[ 3.443324] Modules linked in:
[ 3.446397] CPU: 0 PID: 51 Comm: kworker/0:3 Not tainted 5.10.100-g7a7a3af903 #1
[ 3.453822] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 3.459965] Workqueue: events deferred_probe_work_func
[ 3.465141] PC is at sysc_probe+0xce8/0x1550
[ 3.469434] LR is at omap_reset_deassert+0x1ac/0x318
[ 3.474416] pc : [<c04e175c>] lr : [<c0566f54>] psr: 60000113
[ 3.480706] sp : c1ec3e28 ip : 00000000 fp : c0b2f6fc
[ 3.485950] r10: 00000028 r9 : 00000000 r8 : c0b2fbbc
[ 3.491194] r7 : c1965c10 r6 : 00000000 r5 : c10e03e4 r4 : c2954540
[ 3.497746] r3 : e0326000 r2 : 00000000 r1 : 00026000 r0 : 00000000
[ 3.504301] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 3.511463] Control: 10c5387d Table: 80004019 DAC: 00000051
[ 3.517232] Process kworker/0:3 (pid: 51, stack limit = 0x43a50b8b)
[ 3.523524] Stack: (0xc1ec3e28 to 0xc1ec4000)
[ 3.527901] 3e20: 00000001 00000000 c10099d0 00000000 c10e03e4 c0d76a14
[ 3.536115] 3e40: c1965c10 c0d768f4 00000001 00000001 00000030 c1003048 00000000 00000000
[ 3.544327] 3e60: c1965c10 c10832a8 00000000 c10e4b8c c10832a8 0000000c c1e8bb60 c0650c58
[ 3.552541] 3e80: c1965c10 c10e4b84 00000000 00000000 c10e4b8c c064eb2c 00000000 c1965c10
[ 3.560754] 3ea0: c10832a8 c064f040 c1091df8 00000000 00000000 c1091e24 c1e8bb60 c064ef40
[ 3.568967] 3ec0: 00000000 c1ec3ef4 c064f040 c064ce08 00000000 c192005c c1a9f2b4 c1003048
[ 3.577180] 3ee0: c1965c10 00000001 c1965c54 c064e9c8 c1965c10 c1965c10 00000001 c1003048
[ 3.585393] 3f00: c1965c10 c1965c10 c1092080 c064dc7c c1965c10 c1091dec c1091dec c064e128
[ 3.593606] 3f20: c1091e20 c1ea4a00 00000000 dfa2d200 00000000 c013f790 c1ec2000 c1076ae0
[ 3.601821] 3f40: c1ea4a00 c100c18c c1ea4a14 c1ec2000 c1076ae0 c100c1a0 c100c18c c013fc4c
[ 3.610034] 3f60: 00000000 c1e8bb40 c1e8bb00 c1ec2000 00000000 c013fa18 c1ea4a00 c186fed0
[ 3.618247] 3f80: c1e8bb60 c01445e0 00000000 c1e8bb00 c01444a0 00000000 00000000 00000000
[ 3.626461] 3fa0: 00000000 00000000 00000000 c0100148 00000000 00000000 00000000 00000000
[ 3.634675] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 3.642888] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[ 3.651121] [<c04e175c>] (sysc_probe) from [<c0650c58>] (platform_drv_probe+0x48/0x98)
[ 3.659080] [<c0650c58>] (platform_drv_probe) from [<c064eb2c>] (really_probe+0xf0/0x398)
[ 3.667299] [<c064eb2c>] (really_probe) from [<c064ef40>] (driver_probe_device+0x5c/0xb4)
[ 3.675515] [<c064ef40>] (driver_probe_device) from [<c064ce08>] (bus_for_each_drv+0x84/0xd0)
[ 3.684079] [<c064ce08>] (bus_for_each_drv) from [<c064e9c8>] (__device_attach+0xf0/0x15c)
[ 3.692381] [<c064e9c8>] (__device_attach) from [<c064dc7c>] (bus_probe_device+0x84/0x8c)
[ 3.700596] [<c064dc7c>] (bus_probe_device) from [<c064e128>] (deferred_probe_work_func+0x7c/0xa8)
[ 3.709602] [<c064e128>] (deferred_probe_work_func) from [<c013f790>] (process_one_work+0x1c4/0x44c)
[ 3.718778] [<c013f790>] (process_one_work) from [<c013fc4c>] (worker_thread+0x234/0x5cc)
[ 3.726994] [<c013fc4c>] (worker_thread) from [<c01445e0>] (kthread+0x140/0x184)
[ 3.734424] [<c01445e0>] (kthread) from [<c0100148>] (ret_from_fork+0x14/0x2c)
[ 3.741674] Exception stack(0xc1ec3fb0 to 0xc1ec3ff8)
[ 3.746746] 3fa0: 00000000 00000000 00000000 00000000
[ 3.754960] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 3.763171] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 3.769818] Code: e3130004 1a00014c e5943014 e0833001 (e593c000)
[ 3.775941] ---[ end trace cbceceefe1df7755 ]---

还请专家能对该问题进行诊断下。

非常感谢!

秦龙

  • 你这个设备树配置有问题吧

  • 设备树是不是有问题

  • zmg你好!

    的确如你说的,我现在先把多余的去掉,使用tiny文件系统,可以到登录了。

    我在逐步增加设备,看究竟是哪个地方出问题。

    另外请教一个问题。

    我使用ti-processor-sdk-linux-am335x-evm-09.03.05.02-Linux-x86-Install.bin

    报定时器初始化错误,具体如下。

    U-Boot SPL 2023.04 (Jan 03 2025 - 14:14:26 +0800)
    Trying to boot from MMC1


    U-Boot 2023.04 (Jan 03 2025 - 14:14:26 +0800)

    CPU : AM335X-GP rev 2.1
    Model: TI AM335x EVM
    DRAM: 512 MiB
    Core: 161 devices, 18 uclasses, devicetree: separate
    Could not initialize timer (err -19)

    resetting ...

    这个问题我也在提交了问题,但是目前还没有专家来回答,还请你有空的时候帮我分析一下!

    非常感谢!

    秦龙