海思hi3519A rootfs(cramfs)文件系统错误 Kernel panic - not syncing: No working init found.  Try passing init

新打样的板子需要烧写uboot,kernel和rootfs,编译后通过hitools第一次通过串口烧写,吐槽一下非常慢,该工具只能首次烧写,如果网络通了使用tftp烧写会比较快些。文件系统起不来。打印如下: 

System startup

Uncompress Ok!

U-Boot 2016.11 (Nov 01 2019 - 08:53:07 +0800)hi3519av100

Relocation Offset is: 1f72a000
Relocating to 3ff2a000, new gd at 3fe89ef0, sp at 3fe89ed0
MMC:   ** First descriptor is NOT a primary desc on 0:1 **
hisi-sdhci: 0 (eMMC)
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   gmac0
Error: gmac0 address not set.

Hit any key to stop autoboot:  0 

MMC read: dev # 0, block # 2048, count 40960 ... 40960 blocks read: OK
## Booting kernel from Legacy Image at 22000000 ...
   Image Name:   Linux-4.9.37
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3943569 Bytes = 3.8 MiB
   Load Address: 22008000
   Entry Point:  22008000
   Loading Kernel Image ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.9.37 (pc@localhost.localdomain) (gcc version 6.3.0 (HC&C V100R002C00B021_20180917) ) #3 SMP Fri Nov 1 10:00:00 CST 2019
CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Hisilicon Hi3519AV100 SMP Board
cma: Reserved 16 MiB at 0x31000000
Memory policy: Data cache writealloc
percpu: Embedded 13 pages/cpu @cedc6000 s21772 r8192 d23284 u53248
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: mem=256M console=ttyAMA0,115200 clk_ignore_unused rw rootwait root=/dev/mmcblk0p3 rootfstype=cramfs blkdevparts=mmcblk0:1M(u-boot.bin),20M(kernel),100M(rootfs),30M(app),10M(param),10M(backup.param)
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 233520K/262144K available (6144K kernel code, 174K rwdata, 1364K rodata, 1024K init, 329K bss, 12240K reserved, 16384K cma-reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0700000   (7136 kB)
      .init : 0xc0900000 - 0xc0a00000   (1024 kB)
      .data : 0xc0a00000 - 0xc0a2bbc0   ( 175 kB)
       .bss : 0xc0a2d000 - 0xc0a7f670   ( 330 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
 Build-time adjustment of leaf fanout to 32.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
Gic dist init...
arm_arch_timer: Architected 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
Switching to timer-based delay loop, resolution 41ns
clocksource: hisp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
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: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x22100000 - 0x22100058
CPU1: thread -1, cpu 0, socket 1, mpidr 80000100
Brought up 2 CPUs
SMP: Total of 2 processors activated (96.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 512 (order: 3, 32768 bytes)
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Serial: AMBA PL011 UART driver
4540000.uart: ttyAMA0 at MMIO 0x4540000 (irq = 21, base_baud = 0) is a PL011 rev2
console [ttyAMA0] enabled
vgaarb: loaded
SCSI subsystem initialized
ssp-pl022 4570000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 4570000.spi: mapped registers from 0x04570000 to d085b000
ssp-pl022 4571000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 4571000.spi: mapped registers from 0x04571000 to d085d000
ssp-pl022 4572000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 4572000.spi: mapped registers from 0x04572000 to d0871000
ssp-pl022 4573000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 4573000.spi: mapped registers from 0x04573000 to d0873000
ssp-pl022 4574000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 4574000.spi: mapped registers from 0x04574000 to d0875000
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Linux video capture interface: v2.00
clocksource: Switched to clocksource hisp804
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
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.
workingset: timestamp_bits=30 max_order=16 bucket_order=0
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.26)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
pl061_gpio 45f0000.gpio_chip: PL061 GPIO chip @0x045f0000 registered
pl061_gpio 45f1000.gpio_chip: PL061 GPIO chip @0x045f1000 registered
pl061_gpio 45f2000.gpio_chip: PL061 GPIO chip @0x045f2000 registered
pl061_gpio 45f3000.gpio_chip: PL061 GPIO chip @0x045f3000 registered
pl061_gpio 45f4000.gpio_chip: PL061 GPIO chip @0x045f4000 registered
pl061_gpio 45f5000.gpio_chip: PL061 GPIO chip @0x045f5000 registered
pl061_gpio 45f6000.gpio_chip: PL061 GPIO chip @0x045f6000 registered
pl061_gpio 45f7000.gpio_chip: PL061 GPIO chip @0x045f7000 registered
pl061_gpio 45f8000.gpio_chip: PL061 GPIO chip @0x045f8000 registered
pl061_gpio 45f9000.gpio_chip: PL061 GPIO chip @0x045f9000 registered
pl061_gpio 45fa000.gpio_chip: PL061 GPIO chip @0x045fa000 registered
pl061_gpio 45fb000.gpio_chip: PL061 GPIO chip @0x045fb000 registered
pl061_gpio 45fc000.gpio_chip: PL061 GPIO chip @0x045fc000 registered
pl061_gpio 45fd000.gpio_chip: PL061 GPIO chip @0x045fd000 registered
pl061_gpio 45fe000.gpio_chip: PL061 GPIO chip @0x045fe000 registered
brd: module loaded
libphy: hisi_gemac_mii_bus: probed
libphy: Fixed MDIO Bus: probed
hi_gmac_v200 40e0000.ethernet: invalid resource
hi_gmac_v200 40e0000.ethernet (unnamed net_device) (uninitialized): using random MAC address 6a:cd:18:59:b9:14
usbcore: registered new interface driver r8152
xhci-hcd 4110000.xhci_0: xHCI Host Controller
xhci-hcd 4110000.xhci_0: new USB bus registered, assigned bus number 1
xhci-hcd 4110000.xhci_0: hcc params 0x0220fe6d hci version 0x110 quirks 0x20010010
xhci-hcd 4110000.xhci_0: irq 45, io mem 0x04110000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd 4110000.xhci_0: xHCI Host Controller
xhci-hcd 4110000.xhci_0: new USB bus registered, assigned bus number 2
usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
usbcore: registered new interface driver xpad
hibvt_rtc 4550000.rtc: rtc core: registered 4550000.rtc as rtc0
hibvt_rtc 4550000.rtc: RTC driver for hibvt enabled
i2c /dev entries driver
hibvt-i2c 4560000.i2c: hibvt-i2c0@100000hz registered
hibvt-i2c 4561000.i2c: hibvt-i2c1@100000hz registered
hibvt-i2c 4562000.i2c: hibvt-i2c2@100000hz registered
hibvt-i2c 4563000.i2c: hibvt-i2c3@100000hz registered
hibvt-i2c 4564000.i2c: hibvt-i2c4@100000hz registered
hibvt-i2c 4565000.i2c: hibvt-i2c5@100000hz registered
hibvt-i2c 4566000.i2c: hibvt-i2c6@100000hz registered
hibvt-i2c 4567000.i2c: hibvt-i2c7@100000hz registered
hibvt-i2c 4568000.i2c: hibvt-i2c8@100000hz registered
hibvt-i2c 4569000.i2c: hibvt-i2c9@100000hz registered
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
mmc0: SDHCI controller on 4030000.eMMC [4030000.eMMC] using ADMA 64-bit in legacy mode
mmc1: SDHCI controller on 40c0000.SD [40c0000.SD] using ADMA 64-bit in legacy mode
mmc2: 3.3V output did not became stable
mmc0: CMDQ supported: depth: 16
mmc0: new HS400 Enhanced strobe MMC card at address 0001
mmc2: SDHCI controller on 40d0000.SD [40d0000.SD] using ADMA 64-bit in legacy mode
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
hivdmav100 driver inited.
mmc0: -524: cmdq: unable to set-up
NET: Registered protocol family 10
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
Registering SWP/SWPB emulation handler
mmcblk0: mmc0:0001 8GTF4R 7.28 GiB 
mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB
 mmcblk0: p1(u-boot.bin) p2(kernel) p3(rootfs) p4(app) p5(param) p6(backup.param)
mmc2: 3.3V output did not became stable
hibvt_rtc 4550000.rtc: setting system clock to 1970-01-01 00:00:00 UTC (0)
clk: Not disabling unused clocks
uart-pl011 4540000.uart: no DMA platform data
VFS: Mounted root (cramfs filesystem) readonly on device 179:3.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0900000 - c0a00000)
Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.9.37 #3
Hardware name: Generic DT based system

如果错误如下:Kernel panic - not syncing: No working init found.  Try passing init= option to kernel,网上只是大概说配置文件管脚复用不对,仔细检查一遍都正确。

考虑到之前一直hi3559a时候系统自带内核库要移植到rootfs/lib/下,把runtime_lib下库移植到rootfs/lib下重新编译烧写,ok啦

Welcome to HiLinux.多么熟悉

load nnie.ko for Hi3519AV100...OK!
load dsp.ko for Hi3519AV100...OK!
load dpu_rect.ko for Hi3519AV100...OK!
load dpu_match.ko for Hi3519AV100...OK!
load hi_piris.ko OK!!
Load sensor_spi.ko for Hi3519AV100...OK !
insert audio
load mipi_rx driver successful!
[RCS]: /etc/init.d/S80network
ifconfig: SIOCSIFADDR: No such device
route: SIOCADDRT: Network is unreachable
ifconfig: SIOCGIFFLAGS: No such device
[RCS]: /etc/init.d/S90app
mount -t ext4 /dev/mmcblk0p4 /home
mount -t ext4 /dev/mmcblk0p7 /opt
start MainApp!
mkdir: can't create directory '/var/lib': File exists
/etc/init.d/S90app: cd: line 20: can't cd to /opt/bin
Auto login as root ...
login[180]: root login on 'ttyS000'
Welcome to HiLinux.
None of nfsroot found in cmdline.

 

 

 

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值