您好、支持团队、
定制板
- Nand FLASH: MT29F2G08ABAEAWP
-DDR:MT41K128M16JT
修改了源代码: am335x-evmsk.dts、 am335x_evm.h、board.c、board.h
在我们的定制板上载 SDK 时、引导期间会发生内核严重错误、如下所示。
您能指导我解决方案吗?
U-Boot 2021.01-00001-gc59bf25a38-dirty (Jan 20 2023 - 10:46:52 +0900) CPU : AM335X-GP rev 2.1 Model: TI AM335x EVM-SK DRAM: 256 MiB WDT: Started with servicing (60s timeout) NAND: 256 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Loading Environment from FAT... <ethaddr> not set. Validating first E-fuse MAC Net: eth2: ethernet@4a100000 Hit any key to stop autoboot: 0 Booting from nand ... NAND read: device 0 offset 0x80000, size 0x40000 262144 bytes read: OK NAND read: device 0 offset 0x200000, size 0x800000 8388608 bytes read: OK ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Device Tree to 8df2c000, end 8df3eeab ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.10.100-g7a7a3af903 (root@ssc-VirtualBox) (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) #2 PREEMPT Thu Jan 19 18:08:43 KST 2023 [ 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-SK [ 0.000000] Memory policy: Data cache writeback [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Reserved 48 MiB at 0x8a800000 [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000080000000-0x000000008fefffff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080000000-0x000000008fefffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000008fefffff] [ 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: 64706 [ 0.000000] Kernel command line: console=ttyS0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1 [ 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: 192728K/261120K available (10240K kernel code, 695K rwdata, 3404K rodata, 1024K init, 280K bss, 19240K 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.000022] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns [ 0.000070] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000885] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000 [ 0.003578] Console: colour dummy device 80x30 [ 0.003738] Calibrating delay loop... 298.59 BogoMIPS (lpj=1492992) [ 0.070975] pid_max: default: 32768 minimum: 301 [ 0.071362] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.071407] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.073329] CPU: Testing write buffer coherency: ok [ 0.073482] CPU0: Spectre v2: using BPIALL workaround [ 0.075311] Setting up static identity map for 0x80100000 - 0x80100060 [ 0.075661] rcu: Hierarchical SRCU implementation. [ 0.075887] EFI services will not be available. [ 0.076593] devtmpfs: initialized [ 0.105345] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3 [ 0.105919] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.105976] futex hash table entries: 256 (order: -1, 3072 bytes, linear) [ 0.112936] pinctrl core: initialized pinctrl subsystem [ 0.114954] DMI not present or invalid. [ 0.115924] NET: Registered protocol family 16 [ 0.121550] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.149632] l3-aon-clkctrl:0000:0: failed to disable [ 0.152498] thermal_sys: Registered thermal governor 'fair_share' [ 0.152523] thermal_sys: Registered thermal governor 'bang_bang' [ 0.152559] thermal_sys: Registered thermal governor 'step_wise' [ 0.152581] thermal_sys: Registered thermal governor 'user_space' [ 0.153300] cpuidle: using governor ladder [ 0.153394] cpuidle: using governor menu [ 2.560995] random: fast init done [ 3.523807] No ATAGs? [ 3.523863] hw-breakpoint: debug architecture 0x4 unsupported. [ 3.591740] v1_8d: supplied by vbat [ 3.593364] v3_3d: supplied by vbat [ 3.596204] iommu: Default domain type: Translated [ 3.602688] SCSI subsystem initialized [ 3.603918] mc: Linux media interface: v0.10 [ 3.604031] videodev: Linux video capture interface: v2.00 [ 3.604318] pps_core: LinuxPPS API ver. 1 registered [ 3.604348] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 3.604413] PTP clock support registered [ 3.604563] EDAC MC: Ver: 3.0.0 [ 3.607234] Advanced Linux Sound Architecture Driver Initialized. [ 3.610237] clocksource: Switched to clocksource dmtimer [ 3.630781] NET: Registered protocol family 2 [ 3.631181] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 3.633211] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear) [ 3.633305] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 3.633388] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 3.633464] TCP: Hash tables configured (established 2048 bind 2048) [ 3.633699] UDP hash table entries: 256 (order: 0, 4096 bytes, linear) [ 3.633763] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear) [ 3.634036] NET: Registered protocol family 1 [ 3.635219] RPC: Registered named UNIX socket transport module. [ 3.635257] RPC: Registered udp transport module. [ 3.635279] RPC: Registered tcp transport module. [ 3.635299] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 3.635339] PCI: CLS 0 bytes, default 64 [ 3.637325] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available [ 3.640724] Initialise system trusted keyrings [ 3.641212] workingset: timestamp_bits=14 max_order=16 bucket_order=2 [ 3.651966] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 3.653631] NFS: Registering the id_resolver key type [ 3.653726] Key type id_resolver registered [ 3.653752] Key type id_legacy registered [ 3.653968] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 3.654000] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 3.654091] ntfs: driver 2.1.32 [Flags: R/O]. [ 3.655414] Key type asymmetric registered [ 3.655460] Asymmetric key parser 'x509' registered [ 3.655575] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244) [ 3.655607] io scheduler mq-deadline registered [ 3.655631] io scheduler kyber registered [ 4.617587] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400 [ 4.825651] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present! [ 4.825740] edma 49000000.dma: TI EDMA DMA engine driver [ 4.857582] pinctrl-single 44e10800.pinmux: 142 pins, size 568 [ 5.001786] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled [ 5.012793] printk: console [ttyS0] disabled [ 5.013247] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 21, base_baud = 3000000) is a 8250 [ 5.686395] printk: console [ttyS0] enabled [ 5.694894] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 27, base_baud = 3000000) is a 8250 [ 5.711162] omap_rng 48310000.rng: Random Number Generator ver. 20 [ 5.720876] random: crng init done [ 5.772694] brd: module loaded [ 5.792987] loop: module loaded [ 5.880362] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000 [ 5.891788] mdio_bus 4a101000.mdio: MDIO device at address 1 is missing. [ 5.898576] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver TI DP83867 [ 5.908591] cpsw-switch 4a100000.switch: initialized cpsw ale version 1.4 [ 5.915638] cpsw-switch 4a100000.switch: ALE Table size 1024 [ 5.921621] cpsw-switch 4a100000.switch: cpts: overflow check period 500 (jiffies) [ 5.929269] cpsw-switch 4a100000.switch: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec [ 5.940521] cpsw-switch 4a100000.switch: Detected MACID = 68:47:49:b1:e5:25 [ 5.947586] cpsw-switch 4a100000.switch: Detected MACID = 68:47:49:b1:e5:27 [ 5.958316] cpsw-switch 4a100000.switch: initialized (regs 0x4a100000, pool size 256) hw_ver:0019010C 1.12 (0) [ 5.970841] i2c /dev entries driver [ 5.981152] cpuidle: enable-method property 'ti,am3352' found operations [ 5.989380] sdhci: Secure Digital Host Controller Interface driver [ 5.995744] sdhci: Copyright(c) Pierre Ossman [ 6.003201] sdhci-pltfm: SDHCI platform and OF driver helper [ 6.013569] ledtrig-cpu: registered to indicate activity on CPUs [ 6.031103] NET: Registered protocol family 10 [ 6.038445] Segment Routing with IPv6 [ 6.042565] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 6.050073] NET: Registered protocol family 17 [ 6.055339] Key type dns_resolver registered [ 6.061033] omap_voltage_late_init: Voltage driver support not added [ 6.068628] Loading compiled-in X.509 certificates [ 6.102535] omap-gpmc 50000000.gpmc: GPMC revision 6.0 [ 6.107772] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000 [ 6.118421] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda [ 6.124954] nand: Micron MT29F2G08ABAEAWP [ 6.129008] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 6.136788] omap2-nand 8000000.nand: using prefetch polled xfer mode [ 6.143417] omap2-nand 8000000.nand: ELM device not found [ 6.148863] omap2-nand 8000000.nand: ELM not available [ 6.154167] omap2-nand: probe of 8000000.nand failed with error -22 [ 6.164911] OMAP GPIO hardware version 0.1 [ 6.200659] tps65910 0-002d: No interrupt support, no core IRQ [ 6.210425] vrtc: supplied by vbat [ 6.218090] vio: supplied by vbat [ 6.224223] vdd_mpu: supplied by vbat [ 6.230530] vdd_core: supplied by vbat [ 6.238239] vdig1: supplied by vbat [ 6.243794] vdig2: supplied by vbat [ 6.249263] vpll: supplied by vbat [ 6.254696] vdac: supplied by vbat [ 6.260092] vaux1: supplied by vbat [ 6.265624] vaux2: supplied by vbat [ 6.271153] vaux33: supplied by vbat [ 6.276945] vmmc: supplied by vbat [ 6.282757] vbb: supplied by vbat [ 6.289670] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz [ 6.298555] pinctrl-single 44e10800.pinmux: pin PIN85 already requested by 44e10800.pinmux; cannot claim for 4819c000.i2c [ 6.309710] pinctrl-single 44e10800.pinmux: pin-85 (4819c000.i2c) status -22 [ 6.316857] pinctrl-single 44e10800.pinmux: could not request pin 85 (PIN85) from group i2c2_pins_default on device pinctrl-single [ 6.328813] omap_i2c 4819c000.i2c: Error applying setting, reverse things back [ 6.336161] omap_i2c: probe of 4819c000.i2c failed with error -22 [ 6.357626] omap_reset_deassert: timedout waiting for gfx:0 [ 6.363439] ti-sysc: probe of 5600fe00.target-module failed with error -110 [ 6.373049] cpu cpu0: dev_pm_opp_set_rate: failed to find current OPP for freq 600000000 (-34) [ 6.382487] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 600000 KHz, changing to: 300000 KHz [ 6.397711] UBI error: cannot open mtd NAND.file-system, error -2 [ 6.411715] input: gpio_buttons0 as /devices/platform/gpio_buttons0/input/input0 [ 6.424731] ALSA device list: [ 6.427803] No soundcards found. [ 6.433945] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19 [ 6.442364] Please append a correct "root=" boot option; here are the available partitions: [ 6.451100] 0100 65536 ram0 [ 6.451124] (driver?) [ 6.457339] 0101 65536 ram1 [ 6.457359] (driver?) [ 6.463678] 0102 65536 ram2 [ 6.463698] (driver?) [ 6.469898] 0103 65536 ram3 [ 6.469917] (driver?) [ 6.476191] 0104 65536 ram4 [ 6.476212] (driver?) [ 6.482568] 0105 65536 ram5 [ 6.482591] (driver?) [ 6.488796] 0106 65536 ram6 [ 6.488816] (driver?) [ 6.495090] 0107 65536 ram7 [ 6.495111] (driver?) [ 6.501376] 0108 65536 ram8 [ 6.501396] (driver?) [ 6.507594] 0109 65536 ram9 [ 6.507614] (driver?) [ 6.513966] 010a 65536 ram10 [ 6.513989] (driver?) [ 6.520350] 010b 65536 ram11 [ 6.520372] (driver?) [ 6.526659] 010c 65536 ram12 [ 6.526679] (driver?) [ 6.533031] 010d 65536 ram13 [ 6.533051] (driver?) [ 6.539335] 010e 65536 ram14 [ 6.539354] (driver?) [ 6.545827] 010f 65536 ram15 [ 6.545850] (driver?) [ 6.552230] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 6.560626] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
请检查。
谢谢你。
S.C.