谢谢答疑! 现在Hi3516DV500烧写镜像文件到 SPI NAND Flash后,开机会报以下错误,有没有什么思路呀?
flash
boot table board switch:0x00000007
boot table version :V2.0
boot table build time :2025/03/29 11:36:21
boot table file name :Hi3516DV500-DMEB_6L_T_DDR4_2400M-2GB_16bitx2-A55_850M.xlsm
DDR size: 0x00000800MB
System startup
Uncompress Ok!
U-Boot 2022.07 (Mar 29 2025 - 11:36:50 +0800)hi3516dv500
DRAM: Relocation Offset is: 17723000
Relocating to 5ff23000, new gd at 5fae2de0, sp at 5fae2dd0
Core: 1 devices, 1 uclasses
SPI Nor: Boot Media isn’t SPI Nor
NAND: fmc_ip_ver_check(32): Check Flash Memory Controller v100 …fmc_ip_ver_check(38): Found
SPI Nand ID Table Version 2.7
SPI Nand(cs 0) ID: 0x98 0xed 0x51 Name:”TC58CVG2S0HRAIJ”
Block:256KB Page:4KB OOB:200B ECC:24bit/1K
Chipsize:512 MiB
Loading Environment from SPIFlash… Boot Media isn’t SPI Nor
- Warning - spi_flash_probe() failed, using default environment
Loading Environment from NAND… OK
In: serial
Out: serial
Err: serial
Net: gmac0
Error: gmac0 address not set.
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x100000, size 0x80000
524288 bytes read: OK
core0 start ATF
N AND .read.: .
device 0 offset 0x180000, size 0xd00000
NOTICE: BL31: v2.7(release):
NOTICE: BL31: Built : 11:38:01, Mar 29 2025
NOTICE: IPC: waiting for kernel 13631488 bytes read: OK
Run the smc command to switch to the GSL.
sram to npu!
Booting Linux on physical CPU 0x0000000000 [0x412fd050]
Linux version 5.10.0 (root@zp-virtual-machine) (aarch64-v01c01-linux-musl-gcc (GCC-10.3.0 musl-1.2.3 ver100.110 2023-06-09 09:00:00) 10.3.0, GNU ld (GNU Binutils) 2.38) #1 SMP Sat Mar 29 11:40:42 CST 2025
Machine model: Vendor HI3516DV500 DEMO Board
Memory limited to 129MB
Zone ranges:
DMA [mem 0x0000000040030000-0x00000000481fffff]
DMA32 empty
Normal empty
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000040030000-0x00000000481fffff]
Initmem setup node 0 [mem 0x0000000040030000-0x00000000481fffff]
On node 0, zone DMA: 512 pages in unavailable ranges
cma zone is not set!
cma: Reserved 4 MiB at 0x0000000046c00000
psci: probing for conduit method from DT.
psci: PSCIv1.1 detected in firmware.
psci: Using standard PSCI v0.2 function IDs
psci: MIGRATE_INFO_TYPE not supported.
psci: SMC Calling Convention v1.2
percpu: Embedded 19 pages/cpu s40024 r8192 d29608 u77824
Detected VIPT I-cache on CPU0
CPU features: detected: GIC system register CPU interface
CPU features: detected: ARM errata 1165522, 1319367, or 1530923
Built 1 zonelists, mobility grouping on. Total pages: 32712
Kernel command line: mem=132928K console=ttyAMA0,115200 clk_ignore_unused root=ubi0:ubifs rootfstype=ubifs rw ubi.mtd=4 mtdparts=nand:512K(boot),512K(env),512K(bl31),13M(kernel),32M(rootfs)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
mem auto-init: stack:off, heap alloc:off, heap free:off
Memory: 98364K/132928K available (8894K kernel code, 464K rwdata, 2072K rodata, 1344K init, 551K bss, 30468K reserved, 4096K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
rcu: Hierarchical RCU implementation.
rcu: RCU event tracing is enabled.
Tracing variant of Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
GICv3: 320 SPIs implemented
GICv3: 0 Extended SPIs implemented
GICv3: Distributor has no Range Selector support
GICv3: 16 PPIs implemented
GICv3: CPU0: found redistributor 0 region 0:0x0000000012440000
arch_timer: cp15 timer(s) running at 24.00MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
Console: colour dummy device 80x25
Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
rcu: Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs …
Detected VIPT I-cache on CPU1
GICv3: CPU1: found redistributor 100 region 0:0x0000000012460000
CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
smp: Brought up 1 node, 2 CPUs
SMP: Total of 2 processors activated.
CPU features: detected: Privileged Access Never
CPU features: detected: User Access Override
CPU features: detected: 32-bit EL0 Support
CPU features: detected: Common not Private translations
CPU features: detected: RAS Extension Support
CPU features: detected: Data cache clean to the PoU not required for I/D coherence
CPU features: detected: CRC32 instructions
CPU features: detected: Speculative Store Bypassing Safe (SSBS)
CPU: All CPU(s) started at EL1
alternatives: patching kernel code
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 512 (order: 3, 32768 bytes, linear)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
ASID allocator initialised with 65536 entries
Serial: AMBA PL011 UART driver
vgaarb: loaded
SCSI subsystem initialized
ssp-pl022 11070000.spi: deassert reset
ssp-pl022 11070000.spi: Failed to work in dma mode, work without dma!
ssp-pl022 11071000.spi: deassert reset
ssp-pl022 11071000.spi: Failed to work in dma mode, work without dma!
ssp-pl022 11072000.spi: deassert reset
ssp-pl022 11072000.spi: Failed to work in dma mode, work without dma!
ssp-pl022 11073000.spi: deassert reset
ssp-pl022 11073000.spi: Failed to work in dma mode, work without dma!
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
videodev: Linux video capture interface: v2.00
[UPS-PHY][ups_phy_module_init]registered new ups phy driver
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource arch_sys_counter
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
NET: Registered protocol family 2
IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
TCP established hash table entries: 1024 (order: 1, 8192 bytes, linear)
TCP bind hash table entries: 1024 (order: 2, 16384 bytes, linear)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PCI: CLS 0 bytes, default 64
workingset: timestamp_bits=62 max_order=15 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse: init (API version 7.32)
SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler mq-deadline registered
io scheduler kyber registered
cacheinfo: Unable to detect cache hierarchy for CPU 0
brd: module loaded
loop: module loaded
bsp_nand: Failed to locate of_node [id: 0]
bsp-sfc bsp_spi_nor.0: SPI Nor ID Table Version 1.2
bsp-sfc bsp_spi_nor.0: unrecognized Manufacturer ID
bsp-sfc bsp_spi_nor.0: spi nor register fail!
bsp-sfc: probe of bsp_spi_nor.0 failed with error -2
SPI Nand ID Table Version 2.7
SPI Nand(cs 0) ID: 0x98 0xed 0x51
nand: device found, Manufacturer ID: 0x98, Chip ID: 0xed
nand: Toshiba TC58CVG2S0HRAIJ
nand: 512 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 200
Nand(Auto):
OOB:200B
ECC:24bit/1k
nand: NAND_ECC_ENGINE_TYPE_NONE selected by board driver. This is not recommended!
5 cmdlinepart partitions found on MTD device nand
Creating 5 MTD partitions on “nand”:
0x000000000000-0x000000080000 : “boot”
0x000000080000-0x000000100000 : “env”
0x000000100000-0x000000180000 : “bl31”
0x000000180000-0x000000e80000 : “kernel”
0x000000e80000-0x000002e80000 : “rootfs”
gmac_v200 10290000.ethernet: invalid resource
attached PHY 1 to driver Generic PHY, PHY_ID=0x1cc916
ETH: rgmii-id, phy_addr=1
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
bsp_rtc 11110000.rtc: registered as rtc0
bsp_rtc 11110000.rtc: setting system clock to 1970-01-02T03:38:54 UTC (99534)
bsp_rtc 11110000.rtc: RTC driver for bsp enabled
i2c /dev entries driver
bsp-i2c 11060000.i2c: deassert reset
bsp-i2c 11060000.i2c: IRQ index 0 not found
bsp-i2c 11061000.i2c: deassert reset
bsp-i2c 11061000.i2c: IRQ index 0 not found
bsp-i2c 11062000.i2c: deassert reset
bsp-i2c 11062000.i2c: IRQ index 0 not found
bsp-i2c 11063000.i2c: deassert reset
bsp-i2c 11063000.i2c: IRQ index 0 not found
bsp-i2c 11064000.i2c: deassert reset
bsp-i2c 11064000.i2c: IRQ index 0 not found
bsp-i2c 11065000.i2c: deassert reset
bsp-i2c 11065000.i2c: IRQ index 0 not found
bsp-i2c 11066000.i2c: deassert reset
bsp-i2c 11066000.i2c: IRQ index 0 not found
bsp-i2c 11067000.i2c: deassert reset
bsp-i2c 11067000.i2c: IRQ index 0 not found
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ….
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
[WING-USB][wing_usb_module_init]register wing usb driver
mmc0: SDHCI controller on 10030000.SDIO [10030000.SDIO] using ADMA 64-bit
NET: Registered protocol family 10
Segment Routing with IPv6
NET: Registered protocol family 17
uart-pl011 11040000.uart: deassert reset
11040000.uart: ttyAMA0 at MMIO 0x11040000 (irq = 16, base_baud = 0) is a PL011 rev2
mmc0: tuning done! valid phase shift [11, 10] Final Phase:26
printk: console [ttyAMA0] enabled
mmc0: new ultra high speed SDR104 SDXC card at address aaaa
pl061_gpio 11090000.gpio_chip: PL061 GPIO chip registered
mmcblk0: mmc0:aaaa SD64G 59.5 GiB
pl061_gpio 11091000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11092000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11093000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11094000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11095000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11096000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11097000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11098000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11099000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 1109a000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 1109b000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 1109c000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 1109d000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 1109e000.gpio_chip: PL061 GPIO chip registered
ubi0: attaching mtd4
ubi0 error: validate_ec_hdr: bad VID header offset 2048, expected 4096
ubi0 error: validate_ec_hdr: bad EC header
Erase counter header dump:
magic 0x55424923
version 1
ec 0
vid_hdr_offset 2048
data_offset 4096
image_seq 556637905
hdr_crc 0xf3fb28a1
erase counter header hexdump:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.0 #1
Hardware name: Vendor HI3516DV500 DEMO Board (DT)
Call trace:
dump_backtrace+0x0/0x1a0
show_stack+0x18/0x24
dump_stack+0xd4/0x110
validate_ec_hdr+0xa4/0xe4
ubi_io_read_ec_hdr+0x190/0x224
ubi_attach+0x1bc/0x12f0
ubi_attach_mtd_dev+0x4a8/0xbc0
ubi_init+0x1b4/0x240
do_one_initcall+0x50/0x1c0
kernel_init_freeable+0x1c0/0x238
kernel_init+0x14/0x114
ret_from_fork+0x10/0x38
ubi0 error: ubi_io_read_ec_hdr: validation failed for PEB 0
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd4, error -22
UBI error: cannot attach mtd4
clk: Not disabling unused clocks
ALSA device list:
No soundcards found.
uart-pl011 11040000.uart: no DMA platform data
VFS: Cannot open root device “ubi0:ubifs” or unknown-block(0,0): error -19
Please append a correct “root=” boot option; here are the available partitions:
0100 65536 ram0
(driver?)
0101 65536 ram1
(driver?)
0102 65536 ram2
(driver?)
0103 65536 ram3
(driver?)
0104 65536 ram4
(driver?)
0105 65536 ram5
(driver?)
0106 65536 ram6
(driver?)
0107 65536 ram7
(driver?)
0108 65536 ram8
(driver?)
0109 65536 ram9
(driver?)
010a 65536 ram10
(driver?)
010b 65536 ram11
(driver?)
010c 65536 ram12
(driver?)
010d 65536 ram13
(driver?)
010e 65536 ram14
(driver?)
010f 65536 ram15
(driver?)
1f00 512 mtdblock0
(driver?)
1f01 512 mtdblock1
(driver?)
1f02 512 mtdblock2
(driver?)
1f03 13312 mtdblock3
(driver?)
1f04 32768 mtdblock4
(driver?)
b300 62367744 mmcblk0
driver: mmcblk
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.0 #1
Hardware name: Vendor HI3516DV500 DEMO Board (DT)
Call trace:
dump_backtrace+0x0/0x1a0
show_stack+0x18/0x24
dump_stack+0xd4/0x110
panic+0x170/0x324
mount_block_root+0x2fc/0x3ac
prepare_namespace+0x90/0x164
kernel_init_freeable+0x1fc/0x238
kernel_init+0x14/0x114
ret_from_fork+0x10/0x38
SMP: stopping secondary CPUs
Kernel Offset: disabled
CPU features: 0x00040026,2a00a218
Memory Limit: 129 MB
—-[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]—-