zdfkjgdglzsd

zdfkjgdglzsd

0个粉丝

1

问答

0

专栏

0

资料

zdfkjgdglzsd  发布于  2024-11-12 17:00:03
采纳率 0%
1个问答
71

买了易百纳的hi3519dv500板子,自带的出厂固件的linux内核能正常使用,从海思官方的sdk编译出的内核会挂载不上根文件系统,求问怎么才能让海思官方sdk的内核能在易百纳板子使用

海思官方的内核能正常烧录,
bootargs=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),362M(rootfs),128M(ebapp)
和出厂固件的 bootargs 一样,文件系统格式是 ubifs 。
使用海思官方sdk编译出的内核,开机时挂载不到根文件系统,打印如下:

flash
boot table board switch:0x00000007
boot table version :V2.1
boot table build time :2024/03/19 08:07:22
boot table file name :Hi3519DV500-DMEB_6L_T_DDR4_2666M-1GB_16bit-A55_850M_battery.xlsm
DDR size: 0x00000400MB

System startup

Uncompress Ok!

U-Boot 2022.07 (Mar 19 2024 - 16:07:33 +0800)hi3519dv500

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: 0xe5 0xf4 Name:”DS35Q4GA-IB”
Block:128KB Page:2KB OOB:64B ECC:4bit/512
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 AT
dAFND read.: ..
evice 0 offset 0x180000, size 0xd00000
NOTICE: BL31: v2.7(release):801e4b1f6
NOTICE: BL31: Built : 16:07:25, Mar 19 2024
NOTICE: IPC: waiting for kernelSkipping bad block 0x00e40000
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.165 (wxt@wxt) (aarch64-v01c01-linux-musl-gcc (musl-1.2.3 linux-5.10 V12CS61.004.030 2024-03-05 21:24:39) 10.3.0, GNU ld (GNU Binutils) 2.38) #1 SMP Sat No
Machine model: Vendor HI3519DV500 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(kern
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: 98492K/132928K available (8958K kernel code, 470K rwdata, 2076K rodata, 1344K init, 293K bss, 30340K 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)
Table-perturb hash table entries: 65536 (order: 6, 262144 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
nand: This device[e5,f4] cannot found in spi nand id table!!
Cannot found a valid SPI Nand Device
bsp_spi_nand_probe(184): Error: driver probe, result: -19
gmac_v200 10290000.ethernet: invalid resource
attached PHY 1 to driver Generic PHY, PHY_ID=0x128
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-25T00:49:03 UTC (2076543)
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
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
printk: console [ttyAMA0] enabled
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
pl061_gpio 11090000.gpio_chip: PL061 GPIO chip registered
xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6d hci version 0x110 quirks 0x0000000000010010
pl061_gpio 11091000.gpio_chip: PL061 GPIO chip registered
xhci-hcd xhci-hcd.0.auto: irq 78, io mem 0x10320000
pl061_gpio 11092000.gpio_chip: PL061 GPIO chip registered
hub 1-0:1.0: USB hub found
pl061_gpio 11093000.gpio_chip: PL061 GPIO chip registered
hub 1-0:1.0: 1 port detected
pl061_gpio 11094000.gpio_chip: PL061 GPIO chip registered
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
pl061_gpio 11095000.gpio_chip: PL061 GPIO chip registered
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
pl061_gpio 11096000.gpio_chip: PL061 GPIO chip registered
xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
pl061_gpio 11097000.gpio_chip: PL061 GPIO chip registered
usb usb2: We don’t know the algorithms for LPM for this host, disabling LPM.
pl061_gpio 11098000.gpio_chip: PL061 GPIO chip registered
hub 2-0:1.0: USB hub found
pl061_gpio 11099000.gpio_chip: PL061 GPIO chip registered
hub 2-0:1.0: 1 port detected
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
UBI error: cannot open mtd 4, error -19
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?)
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.165 #1
Hardware name: Vendor HI3519DV500 DEMO Board (DT)
Call trace:
dump_backtrace+0x0/0x1a0
show_stack+0x18/0x24
dump_stack+0xd4/0x110
panic+0x198/0x34c
mount_block_root+0x300/0x3b4
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) ]—-

我来回答
回答3个
时间排序
认可量排序

MA_NONG

4个粉丝

7

问答

2

专栏

0

资料

MA_NONG 2024-11-12 18:13:07
认可0

原厂的固件 和 SDK的固件, uboot下 printenv 对比看看环境变量的设置。照着改就是了~~~

Stranger

9个粉丝

0

问答

5

专栏

6

资料

Stranger 2024-11-13 14:17:07
认可0

网盘资料里面有适配过的SDK的,直接和原厂的SDK对比差异就好了。社区有适配好的SDK,直接用就可以了。

毛巾卷

43个粉丝

25

问答

17

专栏

74

资料

毛巾卷 2024-11-13 15:02:27
认可0

可以直接用社区的

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区