页次: 1
luckymist 说:git clone https://github.com/Icenowy/linux.git
git clone https://github.com/Lichee-Pi/linux.git
这两个用哪个好?
主线不能直接用在nano上吧?
git clone https://github.com/Icenowy/linux.git
git clone https://github.com/Lichee-Pi/linux.git
这两个用哪个好?
一堆的这个log是什么问题?
[ 6.456488] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002f5f8: Read 0x04024088, calculated 0xd7622e1b
[ 6.507023] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002f704: Read 0x05001009, calculated 0x647954da
[ 6.557683] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002f80c: Read 0x4980119c, calculated 0xaab1750d
[ 6.608434] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002f934: Read 0x44025009, calculated 0xb70698ba
[ 6.659018] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002fa64: Read 0x4d804000, calculated 0x1ee426b3
[ 6.709563] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002fb9c: Read 0x44824119, calculated 0xb5ce878a
[ 6.760110] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002fcb8: Read 0x05825008, calculated 0xc682349b
[ 6.810736] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002fdb8: Read 0x04025118, calculated 0x754f9d89
[ 6.861438] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002fec0: Read 0x0582419d, calculated 0xc6e68d2e
clean后重新编译linux,开机后卡在[ 1.435954] Waiting for root device /dev/mtdblock3...
rootfs是jffs2的linux中也配置编译了jffs2文件系统。。。
U-Boot 2018.01-05679-g013ca45 (Sep 25 2019 - 16:44:44 +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
Setting up a 800x480 lcd console (overscan 0x0)
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 0x10000
SF: 65536 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 80e5f000, end 80e63ddc ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.2.0-licheepi-nano+ (x@x-HP-Z600) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #7 Fri Sep 27 14:53:08 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] Built 1 zonelists, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: panic=5 rootwait root=/dev/mtdblock3 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: 23760K/32768K available (5120K kernel code, 210K rwdata, 1332K rodata, 1024K init, 221K bss, 9008K reserved, 0K cma-reserved, 0K highmem)
[ 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.000000] random: get_random_bytes called from start_kernel+0x244/0x40c with crng_init=0
[ 0.000052] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000135] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000746] Console: colour dummy device 80x30
[ 0.001354] printk: console [tty0] enabled
[ 0.001454] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[ 0.070287] pid_max: default: 32768 minimum: 301
[ 0.070756] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070846] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.072657] CPU: Testing write buffer coherency: ok
[ 0.075005] Setting up static identity map for 0x80100000 - 0x80100058
[ 0.077568] devtmpfs: initialized
[ 0.083606] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.083785] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.084169] pinctrl core: initialized pinctrl subsystem
[ 0.087754] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.089976] cpuidle: using governor menu
[ 0.143816] SCSI subsystem initialized
[ 0.144307] usbcore: registered new interface driver usbfs
[ 0.144552] usbcore: registered new interface driver hub
[ 0.144815] usbcore: registered new device driver usb
[ 0.145412] pps_core: LinuxPPS API ver. 1 registered
[ 0.145503] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.146173] Advanced Linux Sound Architecture Driver Initialized.
[ 0.146593] clocksource: Switched to clocksource timer
[ 0.179199] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.181517] Initialise system trusted keyrings
[ 0.182261] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[ 0.200763] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.201499] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.209705] Key type asymmetric registered
[ 0.209830] Asymmetric key parser 'x509' registered
[ 0.210062] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.210155] io scheduler mq-deadline registered
[ 0.210200] io scheduler kyber registered
[ 0.222643] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.422433] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.428785] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[ 0.451002] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 24, base_baud = 6250000) is a 16550A
[ 0.783972] printk: console [ttyS0] enabled
[ 0.792256] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[ 0.811008] SCSI Media Changer driver v0.25
[ 0.816960] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[ 0.830300] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.836123] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.842705] Creating 4 MTD partitions on "spi0.0":
[ 0.847648] 0x000000000000-0x000000100000 : "u-boot"
[ 0.854394] 0x000000100000-0x000000110000 : "dtb"
[ 0.860888] 0x000000110000-0x000000510000 : "kernel"
[ 0.867568] 0x000000510000-0x000001000000 : "rootfs"
[ 0.874589] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.881351] ehci-platform: EHCI generic platform driver
[ 0.887050] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.893356] ohci-platform: OHCI generic platform driver
[ 0.899197] usbcore: registered new interface driver usb-storage
[ 0.906039] udc-core: couldn't find an available UDC - added [zero] to list of pending drivers
[ 0.915184] i2c /dev entries driver
[ 0.922867] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 0.961192] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 0.970753] usbcore: registered new interface driver usbhid
[ 0.976412] usbhid: USB HID core driver
[ 0.999447] Loading compiled-in X.509 certificates
[ 1.015109] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[ 1.026863] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[ 1.037875] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0638fd4)
[ 1.047043] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0637c2c)
[ 1.054797] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.061528] [drm] No driver support for vblank timestamp query.
[ 1.068883] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 1.324638] Console: switching to colour frame buffer device 100x30
[ 1.378082] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[ 1.400307] ALSA device list:
[ 1.417679] #0: Loopback 1
[ 1.435954] Waiting for root device /dev/mtdblock3...
[ 2.237519] random: fast init done
开机log如下:
U-Boot SPL 2018.01-05679-g013ca45 (Sep 25 2019 - 16:44:44)
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 (Sep 25 2019 - 16:44:44 +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
Setting up a 800x480 lcd console (overscan 0x0)
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 0x10000
SF: 65536 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 80e5f000, end 80e64047 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.2.0-licheepi-nano+ (x@x-HP-Z600) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #6 Fri Sep 27 14:40:33 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] Built 1 zonelists, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: panic=5 rootwait root=/dev/mtdblock3 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: 23752K/32768K available (5120K kernel code, 210K rwdata, 1332K rodata, 1024K init, 221K bss, 9016K reserved, 0K cma-reserved, 0K highmem)
[ 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.000000] random: get_random_bytes called from start_kernel+0x244/0x40c with crng_init=0
[ 0.000054] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000139] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000761] Console: colour dummy device 80x30
[ 0.001372] printk: console [tty0] enabled
[ 0.001474] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[ 0.070292] pid_max: default: 32768 minimum: 301
[ 0.070767] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070849] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.072645] CPU: Testing write buffer coherency: ok
[ 0.075007] Setting up static identity map for 0x80100000 - 0x80100058
[ 0.077536] devtmpfs: initialized
[ 0.083961] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.084143] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.084540] pinctrl core: initialized pinctrl subsystem
[ 0.088121] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.090540] cpuidle: using governor menu
[ 0.144908] SCSI subsystem initialized
[ 0.145392] usbcore: registered new interface driver usbfs
[ 0.145640] usbcore: registered new interface driver hub
[ 0.145939] usbcore: registered new device driver usb
[ 0.146524] pps_core: LinuxPPS API ver. 1 registered
[ 0.146617] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.147267] Advanced Linux Sound Architecture Driver Initialized.
[ 0.147689] clocksource: Switched to clocksource timer
[ 0.180359] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.182521] Initialise system trusted keyrings
[ 0.183184] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[ 0.201834] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.202552] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.210744] Key type asymmetric registered
[ 0.210865] Asymmetric key parser 'x509' registered
[ 0.211088] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.211177] io scheduler mq-deadline registered
[ 0.211224] io scheduler kyber registered
[ 0.223696] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.422689] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.429023] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[ 0.451250] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[ 0.784209] printk: console [ttyS0] enabled
[ 0.792600] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[ 0.809588] panel-simple panel: panel supply power not found, using dummy regulator
[ 0.819223] SCSI Media Changer driver v0.25
[ 0.824997] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
luckymist 说:luckymist 说:这个可能是我刚才没插入esp8089模块
现在模块插入后,执行insmod报错:
# insmod /lib/modules/esp8089.ko
[ 253.462913] Set sdio block size 512 failed: -110)
[ 253.468052] first error exit
[ 253.471056] eagle_sdio: probe of mmc0:0001:1 failed with error -110额~ 重启了一下,wlan0就出来了。。。。
极不稳定,一会wlan0就没了。重启也没再出来。。。
跟Gadget有关吗?
luckymist 说:luckymist 说:这个失败有关系吗?
[ 1.144798] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.153583] cfg80211: failed to load regulatory.db这个可能是我刚才没插入esp8089模块
现在模块插入后,执行insmod报错:
# insmod /lib/modules/esp8089.ko
[ 253.462913] Set sdio block size 512 failed: -110)
[ 253.468052] first error exit
[ 253.471056] eagle_sdio: probe of mmc0:0001:1 failed with error -110额~ 重启了一下,wlan0就出来了。。。。
极不稳定,一会wlan0就没了。重启也没再出来。。。
luckymist 说:这个失败有关系吗?
[ 1.144798] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.153583] cfg80211: failed to load regulatory.db这个可能是我刚才没插入esp8089模块
现在模块插入后,执行insmod报错:
# insmod /lib/modules/esp8089.ko
[ 253.462913] Set sdio block size 512 failed: -110)
[ 253.468052] first error exit
[ 253.471056] eagle_sdio: probe of mmc0:0001:1 failed with error -110
额~ 重启了一下,wlan0就出来了。。。。
这个失败有关系吗?
[ 1.144798] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.153583] cfg80211: failed to load regulatory.db
这个可能是我刚才没插入esp8089模块
现在模块插入后,执行insmod报错:
# insmod /lib/modules/esp8089.ko
[ 253.462913] Set sdio block size 512 failed: -110)
[ 253.468052] first error exit
[ 253.471056] eagle_sdio: probe of mmc0:0001:1 failed with error -110
开机进去之后只有lo,怎样才能把wlan0启动出来?
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
#
作为热点是用 hostapd 命令
烧写帖子里的镜像
连不上wifi,提示 Could not read interface wlan0 flags: No such device
# wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant.conf -d
wpa_supplicant v2.6
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ap_scan=1
Priority group 0
id=0 ssid='360HCFA'
id=1 ssid='cts_v4'
rfkill: Cannot get wiphy information
WEXT: RFKILL status not available
Could not read interface wlan0 flags: No such device
WEXT: Could not set interface 'wlan0' UP
wlan0: Failed to initialize driver interface
Failed to add interface wlan0
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout
晕哥大爱啊,真神速
我去试下
log如下:
# insmod /lib/modules/4.14.0-licheepi-nano\+/esp8089.ko
[ 40.843744] eagle_sdio mmc0:0001:1: Direct firmware load for eagle_fw_ate_config_v19.bin failed with error -2
[ 40.853913] download firmware failed
[ 40.857547] esp_init_all failed: -2
[ 40.861057] first error exit
开机完整log如下:
-Boot SPL 2018.01-05679-g013ca45 (Sep 25 2019 - 16:44:44)
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 (Sep 25 2019 - 16:44:44 +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
Setting up a 800x480 lcd console (overscan 0x0)
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 0x10000
SF: 65536 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 80e5f000, end 80e64047 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.0-licheepi-nano+ (x@x-HP-Z600) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #2 Wed Sep 25 21:07:22 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] Built 1 zonelists, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 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: 22672K/32768K available (6144K kernel code, 212K rwdata, 1388K rodata, 1024K init, 243K bss, 10096K 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 : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a350c0 ( 213 kB)
[ 0.000000] .bss : 0xc0a3a4cc - 0xc0a774ac ( 244 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.000048] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000120] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000746] Console: colour dummy device 80x30
[ 0.001664] console [tty0] enabled
[ 0.001765] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[ 0.070298] pid_max: default: 32768 minimum: 301
[ 0.070698] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070813] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.072428] CPU: Testing write buffer coherency: ok
[ 0.074379] Setting up static identity map for 0x80100000 - 0x80100058
[ 0.077081] devtmpfs: initialized
[ 0.083885] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.084048] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.084354] pinctrl core: initialized pinctrl subsystem
[ 0.086456] random: get_random_u32 called from bucket_table_alloc+0x80/0x1a4 with crng_init=0
[ 0.086840] NET: Registered protocol family 16
[ 0.088789] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.091013] cpuidle: using governor menu
[ 0.117209] SCSI subsystem initialized
[ 0.117697] usbcore: registered new interface driver usbfs
[ 0.117947] usbcore: registered new interface driver hub
[ 0.118220] usbcore: registered new device driver usb
[ 0.118787] pps_core: LinuxPPS API ver. 1 registered
[ 0.118873] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.119010] PTP clock support registered
[ 0.119610] Advanced Linux Sound Architecture Driver Initialized.
[ 0.122981] clocksource: Switched to clocksource timer
[ 0.151296] NET: Registered protocol family 2
[ 0.152955] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.153260] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.153352] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.153757] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.153878] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.154441] NET: Registered protocol family 1
[ 0.155640] RPC: Registered named UNIX socket transport module.
[ 0.155755] RPC: Registered udp transport module.
[ 0.155806] RPC: Registered tcp transport module.
[ 0.155850] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.156935] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.158761] Initialise system trusted keyrings
[ 0.159493] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[ 0.175215] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.177731] NFS: Registering the id_resolver key type
[ 0.177925] Key type id_resolver registered
[ 0.177984] Key type id_legacy registered
[ 0.178150] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.180021] random: fast init done
[ 0.192875] Key type asymmetric registered
[ 0.193112] Asymmetric key parser 'x509' registered
[ 0.193412] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.193522] io scheduler noop registered
[ 0.193570] io scheduler deadline registered
[ 0.194422] io scheduler cfq registered (default)
[ 0.194524] io scheduler mq-deadline registered
[ 0.194576] io scheduler kyber registered
[ 0.195850] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[ 0.206185] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.388336] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.415786] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[ 0.907136] console [ttyS0] enabled
[ 0.917991] panel-simple panel: panel supply power not found, using dummy regulator
[ 0.927424] SCSI Media Changer driver v0.25
[ 0.935586] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.940471] 4 ofpart partitions found on MTD device spi0.0
[ 0.946137] Creating 4 MTD partitions on "spi0.0":
[ 0.951004] 0x000000000000-0x000000070000 : "u-boot"
[ 0.958964] 0x000000100000-0x000000110000 : "dtb"
[ 0.966639] 0x000000110000-0x000000510000 : "kernel"
[ 0.974447] 0x000000510000-0x000001000000 : "rootfs"
[ 0.982807] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.989566] ehci-platform: EHCI generic platform driver
[ 0.995228] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.001521] ohci-platform: OHCI generic platform driver
[ 1.007370] usbcore: registered new interface driver usb-storage
[ 1.014469] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.023664] i2c /dev entries driver
[ 1.083121] sunxi-mmc 1c0f000.mmc: base:0xc28a6000 irq:19
[ 1.090845] usbcore: registered new interface driver usbhid
[ 1.096648] usbhid: USB HID core driver
[ 1.119217] NET: Registered protocol family 17
[ 1.124169] Key type dns_resolver registered
[ 1.130883] Loading compiled-in X.509 certificates
[ 1.147251] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.154114] [drm] No driver support for vblank timestamp query.
[ 1.161061] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0737ce8)
[ 1.170120] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc073709c)
[ 1.184405] sun4i-drm display-engine: fb0: frame buffer device
[ 1.191657] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 1.200907] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.212680] ------------[ cut here ]------------
[ 1.217563] WARNING: CPU: 0 PID: 3 at drivers/usb/musb/sunxi.c:411 sunxi_musb_ep_offset+0x3c/0x54
[ 1.226555] sunxi_musb_ep_offset called with non 0 offset
[ 1.231986] Modules linked in:
[ 1.235133] CPU: 0 PID: 3 Comm: kworker/0:0 Not tainted 4.14.0-licheepi-nano+ #2
[ 1.242562] Hardware name: Allwinner suniv Family
[ 1.247376] Workqueue: events deferred_probe_work_func
[ 1.252625] [<c010e50c>] (unwind_backtrace) from [<c010b68c>] (show_stack+0x10/0x14)
[ 1.260515] [<c010b68c>] (show_stack) from [<c011666c>] (__warn+0xd4/0xfc)
[ 1.267506] [<c011666c>] (__warn) from [<c01166cc>] (warn_slowpath_fmt+0x38/0x48)
[ 1.275120] [<c01166cc>] (warn_slowpath_fmt) from [<c0475f98>] (sunxi_musb_ep_offset+0x3c/0x54)
[ 1.283967] [<c0475f98>] (sunxi_musb_ep_offset) from [<c0469aa4>] (ep_config_from_hw+0xc4/0x158)
[ 1.292846] [<c0469aa4>] (ep_config_from_hw) from [<c046b718>] (musb_probe+0x8dc/0xbec)
[ 1.300991] [<c046b718>] (musb_probe) from [<c03f1b08>] (platform_drv_probe+0x50/0xac)
[ 1.309062] [<c03f1b08>] (platform_drv_probe) from [<c03f0320>] (driver_probe_device+0x234/0x2f0)
[ 1.318080] [<c03f0320>] (driver_probe_device) from [<c03ee940>] (bus_for_each_drv+0x48/0x94)
[ 1.326739] [<c03ee940>] (bus_for_each_drv) from [<c03f0008>] (__device_attach+0xac/0x114)
[ 1.335136] [<c03f0008>] (__device_attach) from [<c03ef614>] (bus_probe_device+0x84/0x8c)
[ 1.343434] [<c03ef614>] (bus_probe_device) from [<c03eda9c>] (device_add+0x370/0x58c)
[ 1.351421] [<c03eda9c>] (device_add) from [<c03f1920>] (platform_device_add+0x100/0x218)
[ 1.359719] [<c03f1920>] (platform_device_add) from [<c03f22f0>] (platform_device_register_full+0xec/0x100)
[ 1.369585] [<c03f22f0>] (platform_device_register_full) from [<c0475bf4>] (sunxi_musb_probe+0x244/0x408)
[ 1.379273] [<c0475bf4>] (sunxi_musb_probe) from [<c03f1b08>] (platform_drv_probe+0x50/0xac)
[ 1.387843] [<c03f1b08>] (platform_drv_probe) from [<c03f0320>] (driver_probe_device+0x234/0x2f0)
[ 1.396848] [<c03f0320>] (driver_probe_device) from [<c03ee940>] (bus_for_each_drv+0x48/0x94)
[ 1.405504] [<c03ee940>] (bus_for_each_drv) from [<c03f0008>] (__device_attach+0xac/0x114)
[ 1.413895] [<c03f0008>] (__device_attach) from [<c03ef614>] (bus_probe_device+0x84/0x8c)
[ 1.422147] [<c03ef614>] (bus_probe_device) from [<c03efa50>] (deferred_probe_work_func+0x48/0x140)
[ 1.431327] [<c03efa50>] (deferred_probe_work_func) from [<c0129a7c>] (process_one_work+0x1d8/0x3ec)
[ 1.440595] [<c0129a7c>] (process_one_work) from [<c0129f2c>] (worker_thread+0x29c/0x5b8)
[ 1.448907] [<c0129f2c>] (worker_thread) from [<c012efc8>] (kthread+0x120/0x138)
[ 1.456445] [<c012efc8>] (kthread) from [<c0107da8>] (ret_from_fork+0x14/0x2c)
[ 1.463765] ---[ end trace 9e17022f5770202a ]---
[ 1.468438] musb-sunxi 1c13000.usb: Error unknown readb offset 128
[ 1.474804] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -22
[ 1.482659] musb-hdrc: probe of musb-hdrc.1.auto failed with error -22
[ 1.490240] ALSA device list:
[ 1.493436] #0: Loopback 1
[ 1.593674] random: crng init done
[ 2.122276] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[ 2.130347] devtmpfs: mounted
[ 2.137921] Freeing unused kernel memory: 1024K
https://whycan.cn/t_2703.html#p21662
0x01: 开机卡在waiting for rootfs
原因有两点
1. 找不到SPI flash
f1c100s应使用A31的spi控制器驱动,但lichee官方config中是启用的A10 SoC的驱动。
表现为开机ttl日志中没有dts中的spiflash 分区信息打印,且卡在waiting for rootfs
启用:Device Driver ---> SPI Support ---> Allwinner A31 SPI controller
禁用:Device Driver ---> SPI Support ---> Allwinner A10 SoCs SPI controller
兄台,你用的是nano-5.2-flash分支吗?
检查一下 zImage 有没有超过 4M, 如果没有就开启 early printk: https://whycan.cn/t_2402.html#p18838
开启了 ealyprintk 才会提示具体的错误信息。
改用nano-4.14-exp分支,可以进入kernel了。
nano-5.2-flash分支进不去的问题下午打开early printk看下。
你的Linux 是不是烧在 这个位置: 0x110000 , 大小是: 0x400000 ?
是的
参考这个说明来烧写的:
“
目前支持 w25q128, 其他 flash 未测, 烧录命令:
sunxi-fel -p spiflash-write 0x000000 u-boot-sunxi-with-spl.bin
sunxi-fel -p spiflash-write 0x060000 whycan.bmp.gz
sunxi-fel -p spiflash-write 0x110000 zImage
sunxi-fel -p spiflash-write 0x100000 suniv-f1c100s-licheepi-nano-800480.dtb
sunxi-fel -p spiflash-write 0x510000 jffs2.bin
”
事先烧写“分享一个 5寸的 800x480 的 f1c100s 固件, 感谢 @xm1994”帖子里的固件可以正常开机进入kernel。
下载linux代码:
git clone https://github.com/Lichee-Pi/linux.git
git checkout nano-5.2-flash
参考“U-Boot的编译和填坑”:https://whycan.cn/t_2179.html
编译出来zImage和dtb文件进行烧写替换,开机后log停在 “Starting kernel ...”,屏幕黑白条纹一直闪烁刷新。
log如下:
U-Boot 2018.01-05679-g013ca45 (Sep 19 2019 - 15:38:15 +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
Setting up a 800x480 lcd console (overscan 0x0)
In: serial
Out: vga
Err: vga
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
sf - SPI flash sub-system
Usage:
sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus
and chip select
sf read addr offset|partition len - read `len' bytes starting at
`offset' or from start of mtd
`partition'to memory at `addr'
sf write addr offset|partition len - write `len' bytes from memory
at `addr' to flash at `offset'
or to start of mtd `partition'
sf erase offset|partition [+]len - erase `len' bytes from `offset'
or from start of mtd `partition'
`+len' round up `len' to block size
sf update addr offset|partition len - erase and write `len' bytes from memory
at `addr' to flash at `offset'
or to start of mtd `partition'
sf protect lock/unlock sector len - protect/unprotect 'len' bytes starting
at address 'sector'
device 0 offset 0x100000, size 0x10000
SF: 65536 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 80e5f000, end 80e63ddc ... OK
Starting kernel ...
只是换了自己编译的uboot,启动后报错 :
[ 1.884551] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
log如下:
U-Boot SPL 2018.01-05679-g013ca45 (Sep 19 2019 - 15:20:53)
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 (Sep 19 2019 - 15:20:53 +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
Setting up a 800x480 lcd console (overscan 0x0)
In: serial
Out: vga
Err: vga
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
sf - SPI flash sub-system
Usage:
sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus
and chip select
sf read addr offset|partition len - read `len' bytes starting at
`offset' or from start of mtd
`partition'to memory at `addr'
sf write addr offset|partition len - write `len' bytes from memory
at `addr' to flash at `offset'
or to start of mtd `partition'
sf erase offset|partition [+]len - erase `len' bytes from `offset'
or from start of mtd `partition'
`+len' round up `len' to block size
sf update addr offset|partition len - erase and write `len' bytes from memory
at `addr' to flash at `offset'
or to start of mtd `partition'
sf protect lock/unlock sector len - protect/unprotect 'len' bytes starting
at address 'sector'
device 0 offset 0x100000, size 0x10000
SF: 65536 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 80e5f000, end 80e63f2a ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.15.0-licheepi-nano+ (root@ubuntu) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #41 Sun Jul 21 21:25:38 EDT 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] Built 1 zonelists, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=squashfs
[ 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: 22676K/32768K available (6144K kernel code, 235K rwdata, 1404K rodata, 1024K init, 245K bss, 10092K 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) (7136 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 236 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 246 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.000045] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000109] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000642] Console: colour dummy device 80x30
[ 0.001547] console [tty0] enabled
[ 0.001656] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[ 0.070286] pid_max: default: 32768 minimum: 301
[ 0.070656] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070754] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.072429] CPU: Testing write buffer coherency: ok
[ 0.074230] Setting up static identity map for 0x80100000 - 0x80100058
[ 0.076995] devtmpfs: initialized
[ 0.083749] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.083932] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.084278] pinctrl core: initialized pinctrl subsystem
[ 0.086461] random: get_random_u32 called from bucket_table_alloc+0x80/0x1a4 with crng_init=0
[ 0.086853] NET: Registered protocol family 16
[ 0.088492] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.090656] cpuidle: using governor menu
[ 0.117704] SCSI subsystem initialized
[ 0.118103] usbcore: registered new interface driver usbfs
[ 0.118357] usbcore: registered new interface driver hub
[ 0.118603] usbcore: registered new device driver usb
[ 0.119133] pps_core: LinuxPPS API ver. 1 registered
[ 0.119212] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.119345] PTP clock support registered
[ 0.119914] Advanced Linux Sound Architecture Driver Initialized.
[ 0.121101] random: fast init done
[ 0.121852] clocksource: Switched to clocksource timer
[ 0.151098] NET: Registered protocol family 2
[ 0.152869] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.153034] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.153139] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.153554] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.153673] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.154276] NET: Registered protocol family 1
[ 0.155721] RPC: Registered named UNIX socket transport module.
[ 0.155838] RPC: Registered udp transport module.
[ 0.155889] RPC: Registered tcp transport module.
[ 0.155932] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.158226] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.160386] Initialise system trusted keyrings
[ 0.161128] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[ 0.179640] NFS: Registering the id_resolver key type
[ 0.179811] Key type id_resolver registered
[ 0.179874] Key type id_legacy registered
[ 0.180045] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.195447] Key type asymmetric registered
[ 0.195565] Asymmetric key parser 'x509' registered
[ 0.195842] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.195948] io scheduler noop registered
[ 0.195997] io scheduler deadline registered
[ 0.196906] io scheduler cfq registered (default)
[ 0.197006] io scheduler mq-deadline registered
[ 0.197064] io scheduler kyber registered
[ 0.198306] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[ 0.208739] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.396955] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.424521] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[ 0.910778] console [ttyS0] enabled
[ 0.921692] panel-simple panel: panel supply power not found, using dummy regulator
[ 0.931296] SCSI Media Changer driver v0.25
[ 0.939583] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.945545] 4 ofpart partitions found on MTD device spi0.0
[ 0.951119] Creating 4 MTD partitions on "spi0.0":
[ 0.956095] 0x000000000000-0x000000100000 : "u-boot"
[ 0.964053] 0x000000100000-0x000000110000 : "dtb"
[ 0.971582] 0x000000110000-0x000000510000 : "kernel"
[ 0.979485] 0x000000510000-0x000001000000 : "rootfs"
[ 0.988089] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.994845] ehci-platform: EHCI generic platform driver
[ 1.000444] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.006833] ohci-platform: OHCI generic platform driver
[ 1.012650] usbcore: registered new interface driver usb-storage
[ 1.019689] i2c /dev entries driver
[ 1.081995] sunxi-mmc 1c0f000.mmc: base:0x(ptrval) irq:19
[ 1.089774] usbcore: registered new interface driver usbhid
[ 1.095569] usbhid: USB HID core driver
[ 1.118772] NET: Registered protocol family 17
[ 1.123740] Key type dns_resolver registered
[ 1.130559] Loading compiled-in X.509 certificates
[ 1.147245] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0739cb8)
[ 1.156301] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0738f9c)
[ 1.164195] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.170853] [drm] No driver support for vblank timestamp query.
[ 1.370428] Console: switching to colour frame buffer device 100x30
[ 1.420800] sun4i-drm display-engine: fb0: frame buffer device
[ 1.439547] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 1.460508] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.496086] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.514282] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 1.536872] hub 1-0:1.0: USB hub found
[ 1.553278] hub 1-0:1.0: 1 port detected
[ 1.572248] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 1.602882] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 1.622963] vcc3v3: disabling
[ 1.638945] ALSA device list:
[ 1.654603] #0: Loopback 1
[ 1.670855] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.692670] cfg80211: failed to load regulatory.db
[ 1.712634] VFS: Cannot open root device "mtdblock3" or unknown-block(31,3): error -19
[ 1.734090] Please append a correct "root=" boot option; here are the available partitions:
[ 1.755939] 1f00 1024 mtdblock0
[ 1.755952] (driver?)
[ 1.788966] 1f01 64 mtdblock1
[ 1.788980] (driver?)
[ 1.821633] 1f02 4096 mtdblock2
[ 1.821645] (driver?)
[ 1.853700] 1f03 11200 mtdblock3
[ 1.853712] (driver?)
[ 1.884551] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 1.905264] CPU: 0 PID: 1 Comm: swapper Not tainted 4.15.0-licheepi-nano+ #41
[ 1.924698] Hardware name: Allwinner suniv Family
[ 1.941683] [<c010e584>] (unwind_backtrace) from [<c010b6cc>] (show_stack+0x10/0x14)
[ 1.962074] [<c010b6cc>] (show_stack) from [<c0116880>] (panic+0xb8/0x230)
[ 1.981569] [<c0116880>] (panic) from [<c0901190>] (mount_block_root+0x170/0x250)
[ 2.001632] [<c0901190>] (mount_block_root) from [<c0901364>] (mount_root+0xf4/0x120)
[ 2.021957] [<c0901364>] (mount_root) from [<c09014b8>] (prepare_namespace+0x128/0x188)
[ 2.042237] [<c09014b8>] (prepare_namespace) from [<c0900dc0>] (kernel_init_freeable+0x174/0x1b8)
[ 2.063562] [<c0900dc0>] (kernel_init_freeable) from [<c065c6b0>] (kernel_init+0x8/0x10c)
[ 2.084368] [<c065c6b0>] (kernel_init) from [<c0107de0>] (ret_from_fork+0x14/0x34)
[ 2.104387] Rebooting in 5 seconds..
[ 8.096110] Reboot failed -- System halted
=> sf probe 0 60000000
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
=> sf read 0x80c00000 0x100000 0x10000
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
=> sf read 0x80008000 0x110000 0x40000
device 0 offset 0x110000, size 0x40000
SF: 262144 bytes @ 0x110000 Read: OK
=> bootz 0x80008000 - 0x80c00000
## Flattened Device Tree blob at 80c00000
Booting using the fdt blob at 0x80c00000
Loading Device Tree to 80e5f000, end 80e63f2a ... OK
Starting kernel ...
一直卡在这里又是什么问题。。。
晕哥 说:只是换了吗u-boot?
只是换了uboot
重新做一遍,报错如下:
=> sf probe 0 60000000
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
=> sf read 0x80c00000 0x100000 0x1000
device 0 offset 0x100000, size 0x1000
SF: 4096 bytes @ 0x100000 Read: OK
=> sf read 0x80008000 0x110000 0x4000
device 0 offset 0x110000, size 0x4000
SF: 16384 bytes @ 0x110000 Read: OK
=> bootz 0x80008000 - 0x80c00000
## Flattened Device Tree blob at 80c00000
Booting using the fdt blob at 0x80c00000
Loading Device Tree to 80e5f000, end 80e63f2a ... OK
fdt_find_or_add_subnode: chosen: FDT_ERR_BADSTRUCTURE
ERROR: /chosen node create failed
- must RESET the board to recover.FDT creation failed! hanging...### ERROR ### Please RESET the board ###
长度不对
sf read 0x80c00000 0x100000 0x1000
sf read 0x80008000 0x110000 0x4000
复制粘贴进去后烧了个0
应该是:
sf read 0x80c00000 0x100000 0x10000
sf read 0x80008000 0x110000 0x40000
只是换了吗u-boot?
只是换了uboot
重新做一遍,报错如下:
=> sf probe 0 60000000
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
=> sf read 0x80c00000 0x100000 0x1000
device 0 offset 0x100000, size 0x1000
SF: 4096 bytes @ 0x100000 Read: OK
=> sf read 0x80008000 0x110000 0x4000
device 0 offset 0x110000, size 0x4000
SF: 16384 bytes @ 0x110000 Read: OK
=> bootz 0x80008000 - 0x80c00000
## Flattened Device Tree blob at 80c00000
Booting using the fdt blob at 0x80c00000
Loading Device Tree to 80e5f000, end 80e63f2a ... OK
fdt_find_or_add_subnode: chosen: FDT_ERR_BADSTRUCTURE
ERROR: /chosen node create failed
- must RESET the board to recover.
FDT creation failed! hanging...### ERROR ### Please RESET the board ###
参考https://whycan.cn/t_2689.html这个固件烧写,是可以启动的到kernel的:
sunxi-fel -p spiflash-write 0x000000 u-boot-sunxi-with-spl.bin
sunxi-fel -p spiflash-write 0x060000 whycan.bmp.gz
sunxi-fel -p spiflash-write 0x110000 zImage
sunxi-fel -p spiflash-write 0x100000 suniv-f1c100s-licheepi-nano-800480.dtb
sunxi-fel -p spiflash-write 0x510000 jffs2.bin
接着把自己编译的uboot烧写进去
uboot启动了,在uboot中执行如下命令,进入了kernel,最后在报错:VFS: Cannot open root device "mtdblock3" or unknown-block(31,3): error -19
是文件系统分区找不到?
sf probe 0 60000000; sf read 0x80c00000 0x100000 0x10000; sf read 0x80008000 0x110000 0x400000; bootz 0x80008000 - 0x80c00000
[09-47-08.523]=> sf probe 0 60000000; sf read 0x80c00000 0x100000 0x10000; sf read 0x80008000 0x110000 0x400000; bootz 0x80008000 - 0x80c00000
[09-47-08.524]SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[09-47-08.524]device 0 offset 0x100000, size 0x10000
[09-47-08.548]SF: 65536 bytes @ 0x100000 Read: OK
[09-47-08.549]device 0 offset 0x110000, size 0x400000
[09-47-09.660]SF: 4194304 bytes @ 0x110000 Read: OK
[09-47-09.660]## Flattened Device Tree blob at 80c00000
[09-47-09.661] Booting using the fdt blob at 0x80c00000
[09-47-09.669] Loading Device Tree to 816fb000, end 816fff2a ... OK
[09-47-09.677]
[09-47-09.678]Starting kernel ...
[09-47-09.678]
[09-47-10.859][ 0.000000] Booting Linux on physical CPU 0x0
[09-47-10.870][ 0.000000] Linux version 4.15.0-licheepi-nano+ (root@ubuntu) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #41 Sun Jul 21 21:25:38 EDT 2019
[09-47-10.890][ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[09-47-10.896][ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[09-47-10.897][ 0.000000] OF: fdt: Machine model: Lichee Pi Nano
[09-47-10.905][ 0.000000] Memory policy: Data cache writeback
[09-47-10.910][ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 8128
[09-47-10.916][ 0.000000] Kernel command line: panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=squashfs
[09-47-10.928][ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[09-47-10.929][ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[09-47-10.936][ 0.000000] Memory: 22676K/32768K available (6144K kernel code, 235K rwdata, 1404K rodata, 1024K init, 245K bss, 10092K reserved, 0K cma-reserved, 0K highmem)
[09-47-10.950][ 0.000000] Virtual kernel memory layout:
[09-47-10.951][ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[09-47-10.961][ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[09-47-10.962][ 0.000000] vmalloc : 0xc2800000 - 0xff800000 ( 976 MB)
[09-47-10.971][ 0.000000] lowmem : 0xc0000000 - 0xc2000000 ( 32 MB)
[09-47-10.972][ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[09-47-10.983][ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[09-47-10.984][ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7136 kB)
[09-47-11.002][ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
[09-47-11.003][ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 236 kB)
[09-47-11.009][ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 246 kB)
[09-47-11.009][ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[09-47-11.017][ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[09-47-11.026][ 0.000045] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[09-47-11.038][ 0.000109] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[09-47-11.038][ 0.000629] Console: colour dummy device 80x30
[09-47-11.039][ 0.001527] console [tty0] enabled
[09-47-11.050][ 0.001627] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[09-47-11.054][ 0.070279] pid_max: default: 32768 minimum: 301
[09-47-11.061][ 0.070613] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[09-47-11.062][ 0.070698] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[09-47-11.072][ 0.072162] CPU: Testing write buffer coherency: ok
[09-47-11.072][ 0.073868] Setting up static identity map for 0x80100000 - 0x80100058
[09-47-11.081][ 0.076428] devtmpfs: initialized
[09-47-11.094][ 0.082786] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[09-47-11.094][ 0.082952] futex hash table entries: 256 (order: -1, 3072 bytes)
[09-47-11.111][ 0.083255] pinctrl core: initialized pinctrl subsystem
[09-47-11.112][ 0.085130] random: get_random_u32 called from bucket_table_alloc+0x80/0x1a4 with crng_init=0
[09-47-11.121][ 0.085457] NET: Registered protocol family 16
[09-47-11.122][ 0.086790] DMA: preallocated 256 KiB pool for atomic coherent allocations
[09-47-11.129][ 0.088628] cpuidle: using governor menu
[09-47-11.130][ 0.113062] SCSI subsystem initialized
[09-47-11.138][ 0.113464] usbcore: registered new interface driver usbfs
[09-47-11.138][ 0.113700] usbcore: registered new interface driver hub
[09-47-11.149][ 0.113948] usbcore: registered new device driver usb
[09-47-11.150][ 0.114423] pps_core: LinuxPPS API ver. 1 registered
[09-47-11.161][ 0.114501] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[09-47-11.162][ 0.114626] PTP clock support registered
[09-47-11.171][ 0.115128] Advanced Linux Sound Architecture Driver Initialized.
[09-47-11.171][ 0.116047] random: fast init done
[09-47-11.171][ 0.116709] clocksource: Switched to clocksource timer
[09-47-11.183][ 0.142694] NET: Registered protocol family 2
[09-47-11.183][ 0.144157] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[09-47-11.193][ 0.144308] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[09-47-11.207][ 0.144393] TCP: Hash tables configured (established 1024 bind 1024)
[09-47-11.216][ 0.144704] UDP hash table entries: 256 (order: 0, 4096 bytes)
[09-47-11.222][ 0.144810] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[09-47-11.222][ 0.145324] NET: Registered protocol family 1
[09-47-11.227][ 0.146576] RPC: Registered named UNIX socket transport module.
[09-47-11.227][ 0.146811] RPC: Registered udp transport module.
[09-47-11.228][ 0.146877] RPC: Registered tcp transport module.
[09-47-11.240][ 0.146922] RPC: Registered tcp NFSv4.1 backchannel transport module.
[09-47-11.251][ 0.149045] NetWinder Floating Point Emulator V0.97 (double precision)
[09-47-11.252][ 0.150940] Initialise system trusted keyrings
[09-47-11.264][ 0.151588] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[09-47-11.264][ 0.168960] NFS: Registering the id_resolver key type
[09-47-11.265][ 0.169111] Key type id_resolver registered
[09-47-11.274][ 0.169166] Key type id_legacy registered
[09-47-11.275][ 0.169317] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[09-47-11.282][ 0.183352] Key type asymmetric registered
[09-47-11.282][ 0.183456] Asymmetric key parser 'x509' registered
[09-47-11.297][ 0.183699] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[09-47-11.298][ 0.183794] io scheduler noop registered
[09-47-11.307][ 0.183839] io scheduler deadline registered
[09-47-11.307][ 0.184676] io scheduler cfq registered (default)
[09-47-11.307][ 0.184772] io scheduler mq-deadline registered
[09-47-11.316][ 0.184823] io scheduler kyber registered
[09-47-11.326][ 0.185962] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[09-47-11.331][ 0.195711] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[09-47-11.332][ 0.363277] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[09-47-11.337][ 0.390205] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[09-47-11.343][ 0.876366] console [ttyS0] enabled
[09-47-11.360][ 0.886975] panel-simple panel: panel supply power not found, using dummy regulator
[09-47-11.373][ 0.896348] SCSI Media Changer driver v0.25
[09-47-11.374][ 0.904189] m25p80 spi0.0: w25q128 (16384 Kbytes)
[09-47-11.377][ 0.910128] 4 ofpart partitions found on MTD device spi0.0
[09-47-11.388][ 0.915693] Creating 4 MTD partitions on "spi0.0":
[09-47-11.389][ 0.920642] 0x000000000000-0x000000100000 : "u-boot"
[09-47-11.405][ 0.928256] 0x000000100000-0x000000110000 : "dtb"
[09-47-11.406][ 0.935462] 0x000000110000-0x000000510000 : "kernel"
[09-47-11.419][ 0.943041] 0x000000510000-0x000001000000 : "rootfs"
[09-47-11.420][ 0.951203] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[09-47-11.431][ 0.957936] ehci-platform: EHCI generic platform driver
[09-47-11.432][ 0.963504] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[09-47-11.444][ 0.969870] ohci-platform: OHCI generic platform driver
[09-47-11.445][ 0.975551] usbcore: registered new interface driver usb-storage
[09-47-11.449][ 0.982648] i2c /dev entries driver
[09-47-11.522][ 1.046832] sunxi-mmc 1c0f000.mmc: base:0x(ptrval) irq:19
[09-47-11.523][ 1.054345] usbcore: registered new interface driver usbhid
[09-47-11.526][ 1.060110] usbhid: USB HID core driver
[09-47-11.560][ 1.081924] NET: Registered protocol family 17
[09-47-11.561][ 1.086817] Key type dns_resolver registered
[09-47-11.565][ 1.093406] Loading compiled-in X.509 certificates
[09-47-11.579][ 1.109424] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0739cb8)
[09-47-11.604][ 1.118437] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0738f9c)
[09-47-11.605][ 1.126201] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[09-47-11.609][ 1.132969] [drm] No driver support for vblank timestamp query.
[09-47-11.842][ 1.182338] mmc0: host does not support reading read-only switch, assuming write-enable
[09-47-11.856][ 1.182702] mmc0: new SDHC card at address 0001
[09-47-11.872][ 1.183930] mmcblk0: mmc0:0001 00000 14.9 GiB
[09-47-11.883][ 1.186309] mmcblk0: p1 p2
[09-47-11.901][ 1.334685] Console: switching to colour frame buffer device 100x30
[09-47-11.923][ 1.450559] sun4i-drm display-engine: fb0: frame buffer device
[09-47-11.939][ 1.469397] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[09-47-11.964][ 1.490601] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[09-47-11.994][ 1.526687] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[09-47-12.015][ 1.545650] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[09-47-12.038][ 1.569240] hub 1-0:1.0: USB hub found
[09-47-12.052][ 1.586363] hub 1-0:1.0: 1 port detected
[09-47-12.075][ 1.605660] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[09-47-12.107][ 1.636443] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[09-47-12.124][ 1.656412] ALSA device list:
[09-47-12.140][ 1.672274] #0: Loopback 1
[09-47-12.164][ 1.688575] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[09-47-12.177][ 1.710671] cfg80211: failed to load regulatory.db
[09-47-12.203][ 1.730755] VFS: Cannot open root device "mtdblock3" or unknown-block(31,3): error -19
[09-47-12.222][ 1.752425] Please append a correct "root=" boot option; here are the available partitions:
[09-47-12.241][ 1.774822] 1f00 1024 mtdblock0
[09-47-12.257][ 1.774836] (driver?)
[09-47-12.276][ 1.809089] 1f01 64 mtdblock1
[09-47-12.291][ 1.809104] (driver?)
[09-47-12.308][ 1.842259] 1f02 4096 mtdblock2
[09-47-12.324][ 1.842273] (driver?)
[09-47-12.341][ 1.874145] 1f03 11200 mtdblock3
[09-47-12.355][ 1.874157] (driver?)
[09-47-12.370][ 1.904968] b300 15605760 mmcblk0
[09-47-12.385][ 1.904984] driver: mmcblk
[09-47-12.403][ 1.935018] b301 32768 mmcblk0p1 000a709e-01
[09-47-12.416][ 1.935031]
[09-47-12.432][ 1.964760] b302 15571968 mmcblk0p2 000a709e-02
[09-47-12.445][ 1.964773]
[09-47-12.465][ 1.994141] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[09-47-12.483][ 2.014014] CPU: 0 PID: 1 Comm: swapper Not tainted 4.15.0-licheepi-nano+ #41
[09-47-12.499][ 2.032509] Hardware name: Allwinner suniv Family
[09-47-12.518][ 2.048297] [<c010e584>] (unwind_backtrace) from [<c010b6cc>] (show_stack+0x10/0x14)
[09-47-12.536][ 2.067481] [<c010b6cc>] (show_stack) from [<c0116880>] (panic+0xb8/0x230)
[09-47-12.555][ 2.085819] [<c0116880>] (panic) from [<c0901190>] (mount_block_root+0x170/0x250)
[09-47-12.574][ 2.104742] [<c0901190>] (mount_block_root) from [<c0901364>] (mount_root+0xf4/0x120)
[09-47-12.594][ 2.124359] [<c0901364>] (mount_root) from [<c09014b8>] (prepare_namespace+0x128/0x188)
[09-47-12.615][ 2.144090] [<c09014b8>] (prepare_namespace) from [<c0900dc0>] (kernel_init_freeable+0x174/0x1b8)
[09-47-12.634][ 2.164839] [<c0900dc0>] (kernel_init_freeable) from [<c065c6b0>] (kernel_init+0x8/0x10c)
[09-47-12.654][ 2.184996] [<c065c6b0>] (kernel_init) from [<c0107de0>] (ret_from_fork+0x14/0x34)
[09-47-12.670][ 2.204726] Rebooting in 5 seconds..
[09-47-36.848][ 8.195697] Reboot failed -- System halted
仔细看: U-Boot的编译和填坑
看过还是不行,我是纯小白没差了:(
烧过这个固件,可以开进去的。
小白一枚,参考http://nano.lichee.pro的步骤编译uboot烧写后开机进不了linux,求助!
log如下:
[14-29-23.735]U-Boot SPL 2018.01-05679-g013ca45 (Sep 18 2019 - 14:25:01)
[14-29-23.749]DRAM: 32 MiB
[14-29-23.750]Trying to boot from MMC1
[14-29-23.774]Card did not respond to voltage select!
[14-29-23.775]mmc_init: -95, time 22
[14-29-23.776]spl: mmc init failed with error: -95
[14-29-23.782]Trying to boot from sunxi SPI
[14-29-24.300]
[14-29-24.300]
[14-29-24.300]U-Boot 2018.01-05679-g013ca45 (Sep 18 2019 - 14:25:01 +0800) Allwinner Technology
[14-29-24.300]
[14-29-24.301]CPU: Allwinner F Series (SUNIV)
[14-29-24.308]Model: Lichee Pi Nano
[14-29-24.309]DRAM: 32 MiB
[14-29-24.843]MMC: SUNXI SD/MMC: 0
[14-29-24.844]SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[14-29-27.590]*** Warning - bad CRC, using default environment
[14-29-27.590]
[14-29-27.591]Setting up a 800x480 lcd console (overscan 0x0)
[14-29-27.692]In: serial@1c25000
[14-29-27.692]Out: serial@1c25000
[14-29-27.692]Err: serial@1c25000
[14-29-27.693]Net: No ethernet found.
[14-29-27.694]starting USB...
[14-29-27.702]No controllers found
[14-29-29.703]Hit any key to stop autoboot: 0
[14-29-29.731]Card did not respond to voltage select!
[14-29-29.731]mmc_init: -95, time 23
[14-29-29.731]starting USB...
[14-29-29.732]No controllers found
[14-29-29.742]USB is stopped. Please issue 'usb start' first.
[14-29-29.742]starting USB...
[14-29-29.742]No controllers found
[14-29-29.742]No ethernet found.
[14-29-29.743]missing environment variable: pxeuuid
[14-29-29.753]missing environment variable: bootfile
[14-29-29.753]Retrieving file: pxelinux.cfg/00000000
[14-29-29.753]No ethernet found.
[14-29-29.765]missing environment variable: bootfile
[14-29-29.765]Retrieving file: pxelinux.cfg/0000000
[14-29-29.765]No ethernet found.
[14-29-29.766]missing environment variable: bootfile
[14-29-29.775]Retrieving file: pxelinux.cfg/000000
[14-29-29.775]No ethernet found.
[14-29-29.775]missing environment variable: bootfile
[14-29-29.775]Retrieving file: pxelinux.cfg/00000
[14-29-29.786]No ethernet found.
[14-29-29.786]missing environment variable: bootfile
[14-29-29.786]Retrieving file: pxelinux.cfg/0000
[14-29-29.787]No ethernet found.
[14-29-29.799]missing environment variable: bootfile
[14-29-29.799]Retrieving file: pxelinux.cfg/000
[14-29-29.799]No ethernet found.
[14-29-29.800]missing environment variable: bootfile
[14-29-29.807]Retrieving file: pxelinux.cfg/00
[14-29-29.808]No ethernet found.
[14-29-29.808]missing environment variable: bootfile
[14-29-29.808]Retrieving file: pxelinux.cfg/0
[14-29-29.809]No ethernet found.
[14-29-29.818]missing environment variable: bootfile
[14-29-29.818]Retrieving file: pxelinux.cfg/default-arm-sunxi
[14-29-29.819]No ethernet found.
[14-29-29.832]missing environment variable: bootfile
[14-29-29.832]Retrieving file: pxelinux.cfg/default-arm
[14-29-29.833]No ethernet found.
[14-29-29.833]missing environment variable: bootfile
[14-29-29.841]Retrieving file: pxelinux.cfg/default
[14-29-29.842]No ethernet found.
[14-29-29.842]Config file not found
[14-29-29.842]starting USB...
[14-29-29.842]No controllers found
[14-29-29.849]No ethernet found.
[14-29-29.849]No ethernet found.
[14-29-30.712]=>
[14-29-31.152]=>
[14-29-31.541]=>
[14-29-33.411]=>
[14-39-31.957]=>
[14-43-33.817]=>
@晕哥 请教,怎么从小白快速入门? 我参考 http://nano.lichee.pro 的资料编译uboot烧入后进不了内核了。
页次: 1