页次: 1
使用荔枝派官方网站上的方法,编译的SPI-FLASH系统,折腾了好几天,rootfs加载不成功,个人感觉是buildroot编译的文件系统有问题,导致init进程运行错误哦,但是不知道如何解决,请哪位朋友知道此问题,给指点一下,感激不尽,日志如下
U-Boot SPL 2018.01-05679-g013ca45-dirty (Apr 17 2019 - 14:22:16)
DRAM: 32 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
mmc_init: -95, time 22
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI
U-Boot 2018.01-05679-g013ca45-dirty (Apr 17 2019 - 14:22:16 +0800) Allwinner Technology
CPU: Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM: 32 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
In: serial@1c25000
Out: serial@1c25000
Err: serial@1c25000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x4000
SF: 16384 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 80c00000
Booting using the fdt blob at 0x80c00000
Loading Device Tree to 816fb000, end 816fff3e ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.15.0-rc8-licheepi-nano+ (lsh@lsh-pc) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #10 Mon Apr 15 17:26:30 CST 2019
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Nano
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] random: fast init done
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=31:3 rw rootfstype=jffs2
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Memory: 23756K/32768K available (5120K kernel code, 208K rwdata, 1164K rodata, 1024K init, 219K bss, 9012K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc2800000 - 0xff800000 ( 976 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc2000000 ( 32 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (6112 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 209 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 220 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000116] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000662] Console: colour dummy device 80x30
[ 0.000754] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[ 0.070244] pid_max: default: 32768 minimum: 301
[ 0.070655] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070700] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.072177] CPU: Testing write buffer coherency: ok
[ 0.073898] Setting up static identity map for 0x80100000 - 0x80100058
[ 0.076442] devtmpfs: initialized
[ 0.082990] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.083059] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.083332] pinctrl core: initialized pinctrl subsystem
[ 0.085839] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.087809] cpuidle: using governor menu
[ 0.111826] SCSI subsystem initialized
[ 0.112202] usbcore: registered new interface driver usbfs
[ 0.112363] usbcore: registered new interface driver hub
[ 0.112544] usbcore: registered new device driver usb
[ 0.113016] pps_core: LinuxPPS API ver. 1 registered
[ 0.113046] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.113588] Advanced Linux Sound Architecture Driver Initialized.
[ 0.114003] clocksource: Switched to clocksource timer
[ 0.141410] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.143227] Initialise system trusted keyrings
[ 0.143776] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[ 0.159114] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.174817] Key type asymmetric registered
[ 0.174860] Asymmetric key parser 'x509' registered
[ 0.175454] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.175498] io scheduler noop registered
[ 0.175518] io scheduler deadline registered
[ 0.175933] io scheduler cfq registered (default)
[ 0.175969] io scheduler mq-deadline registered
[ 0.175990] io scheduler kyber registered
[ 0.177132] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[ 0.187754] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.360731] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.367798] console [ttyS0] disabled
[ 0.388066] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[ 0.777331] console [ttyS0] enabled
[ 0.788472] panel-simple panel: panel supply power not found, using dummy regulator
[ 0.797894] SCSI Media Changer driver v0.25
[ 0.805770] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.810560] 4 ofpart partitions found on MTD device spi0.0
[ 0.816156] Creating 4 MTD partitions on "spi0.0":
[ 0.820992] 0x000000000000-0x000000100000 : "u-boot"
[ 0.827269] 0x000000100000-0x000000110000 : "dtb"
[ 0.832975] 0x000000110000-0x000000510000 : "kernel"
[ 0.839149] 0x000000510000-0x000001000000 : "rootfs"
[ 0.845654] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.852193] ehci-platform: EHCI generic platform driver
[ 0.857828] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.864130] ohci-platform: OHCI generic platform driver
[ 0.869797] usbcore: registered new interface driver usb-storage
[ 0.876865] udc-core: couldn't find an available UDC - added [zero] to list of pending drivers
[ 0.885844] i2c /dev entries driver
[ 0.944153] sunxi-mmc 1c0f000.mmc: base:0x346193f6 irq:19
[ 0.951685] usbcore: registered new interface driver usbhid
[ 0.957386] usbhid: USB HID core driver
[ 0.980941] Loading compiled-in X.509 certificates
[ 0.996742] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0636498)
[ 1.005709] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc063577c)
[ 1.013378] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.020103] [drm] No driver support for vblank timestamp query.
[ 1.074408] Console: switching to colour frame buffer device 60x34
[ 1.097652] sun4i-drm display-engine: fb0: frame buffer device
[ 1.104999] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 1.114306] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.126210] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.132014] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 1.142368] hub 1-0:1.0: USB hub found
[ 1.146435] hub 1-0:1.0: 1 port detected
[ 1.152075] zero gadget: Gadget Zero, version: Cinco de Mayo 2008
[ 1.158306] zero gadget: zero ready
[ 1.162900] vcc3v3: disabling
[ 1.166026] ALSA device list:
[ 1.169051] #0: Loopback 1
[ 1.283022] random: crng init done
[ 2.340264] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[ 2.348498] devtmpfs: mounted
[ 2.356285] Freeing unused kernel memory: 1024K
[ 4.808781] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[ 4.808781]
[ 4.817937] CPU: 0 PID: 1 Comm: init Not tainted 4.15.0-rc8-licheepi-nano+ #10
[ 4.825144] Hardware name: Allwinner suniv Family
[ 4.829840] Backtrace:
[ 4.832365] [<c010b9c8>] (dump_backtrace) from [<c010bc88>] (show_stack+0x18/0x1c)
[ 4.839928] r6:c182de70 r5:00000000 r4:c09342ec
[ 4.844582] [<c010bc70>] (show_stack) from [<c050934c>] (dump_stack+0x20/0x28)
[ 4.851808] [<c050932c>] (dump_stack) from [<c0115a8c>] (panic+0xc0/0x238)
[ 4.858680] [<c01159d0>] (panic) from [<c0117334>] (do_exit+0x970/0x9a8)
[ 4.865377] r3:c182e000 r2:c182e00c r1:00000004 r0:c06a8744
[ 4.871023] r7:00000000
[ 4.873573] [<c01169c4>] (do_exit) from [<c0117ef4>] (do_group_exit+0x44/0xbc)
[ 4.880774] r7:c1830000
[ 4.883347] [<c0117eb0>] (do_group_exit) from [<c01211f4>] (get_signal+0x150/0x56c)
[ 4.890987] r4:ffffe000
[ 4.893556] [<c01210a4>] (get_signal) from [<c010ac7c>] (do_signal+0xcc/0x40c)
[ 4.900780] r10:00000000 r9:c182c000 r8:b6f5e2e0 r7:b6f5e2dc r6:00000000 r5:c182ded0
[ 4.908587] r4:c182dfb0
[ 4.911145] [<c010abb0>] (do_signal) from [<c010b19c>] (do_work_pending+0xc0/0xd4)
[ 4.918714] r10:00000000 r9:c182c000 r8:c01085e4 r7:00900000 r6:c182dfb0 r5:c01085e4
[ 4.926520] r4:ffffe000
[ 4.929078] [<c010b0dc>] (do_work_pending) from [<c0108428>] (slow_work_pending+0xc/0x20)
[ 4.937239] r6:b6f6ed90 r5:00008034 r4:00000008
[ 4.941861] Rebooting in 5 seconds..
[ 10.921097] Reboot failed -- System halted
页次: 1