请教各位大佬全志V3S从SPI FLASH启动失败问题
-
请教各位大佬全志V3S从SPI FLASH启动失败,FLASH芯片是W25Q128JVSIQ
报错如下: rootfs根文件系统有尝试更换几次 均无效果
linux内核版本也有更换过[ 1.122629] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19 [ 1.130324] Please append a correct "root=" boot option; here are the available partitions: [ 1.138704] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
下面是完整启动信息
U-Boot SPL 2017.01-rc2-00073-gdd6e8740dc-dirty (Dec 02 2022 - 10:23:41) DRAM: 64 MiB Trying to boot from sunxi SPI U-Boot 2017.01-rc2-00073-gdd6e8740dc-dirty (Dec 02 2022 - 10:23:41 +0800) Allwinner Technology CPU: Allwinner V3s (SUN8I 1681) Model: Lichee Pi Zero DRAM: 64 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) dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6 In: serial@01c28000 Out: serial@01c28000 Err: serial@01c28000 U-Boot 2017.01-rc2-00073-gdd6e8740dc-dirty (Dec 02 2022 - 10:23:41 +0800) Allwinner Technology CPU: Allwinner V3s (SUN8I 1681) Model: Lichee Pi Zero DRAM: 64 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) dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6 In: serial@01c28000 Out: serial@01c28000 Err: serial@01c28000 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 41800000 Booting using the fdt blob at 0x41800000 Loading Device Tree to 42dfa000, end 42dff4bf ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.10.15-licheepi-zero+ (root@ymc-virtual-machine) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01) ) #1 SMP Thu Dec 1 10:52:28 CST 2022 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt:Machine model: Lichee Pi Zero with Dock [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] percpu: Embedded 14 pages/cpu @c3dea000 s24768 r8192 d24384 u57344 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 15883 [ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2 [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Memory: 53644K/64036K available (6144K kernel code, 199K rwdata, 1392K rodata, 1024K init, 260K bss, 10392K 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 : 0xc4000000 - 0xff800000 ( 952 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc3e89000 ( 62 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 - 0xc0a31ec0 ( 200 kB) [ 0.000000] .bss : 0xc0a33000 - 0xc0a7405c ( 261 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1 [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (virt). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000018] Switching to timer-based delay loop, resolution 41ns [ 0.000144] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000357] Console: colour dummy device 80x30 [ 0.000393] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.000409] pid_max: default: 32768 minimum: 301 [ 0.000548] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000559] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001269] CPU: Testing write buffer coherency: ok [ 0.001682] /cpus/cpu@0 missing clock-frequency property [ 0.001706] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.002081] Setting up static identity map for 0x40100000 - 0x40100058 [ 0.002834] smp: Bringing up secondary CPUs ... [ 0.002851] smp: Brought up 1 node, 1 CPU [ 0.002860] SMP: Total of 1 processors activated (48.00 BogoMIPS). [ 0.002867] CPU: All CPU(s) started in SVC mode. [ 0.003651] devtmpfs: initialized [ 0.006597] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.006899] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.006929] futex hash table entries: 256 (order: 2, 16384 bytes) [ 0.007085] pinctrl core: initialized pinctrl subsystem [ 0.008070] NET: Registered protocol family 16 [ 0.008564] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.009813] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.009834] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.021963] SCSI subsystem initialized [ 0.022256] usbcore: registered new interface driver usbfs [ 0.022339] usbcore: registered new interface driver hub [ 0.022441] usbcore: registered new device driver usb [ 0.022677] pps_core: LinuxPPS API ver. 1 registered [ 0.022687] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.022709] PTP clock support registered [ 0.022916] Advanced Linux Sound Architecture Driver Initialized. [ 0.024755] clocksource: Switched to clocksource arch_sys_counter [ 0.025619] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4080000 [ 0.025642] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200 [ 0.032515] Console: switching to colour frame buffer device 100x30 [ 0.038676] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered! [ 0.048592] NET: Registered protocol family 2 [ 0.049237] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.049267] TCP bind hash table entries: 1024 (order: 1, 8192 bytes) [ 0.049290] TCP: Hash tables configured (established 1024 bind 1024) [ 0.049382] UDP hash table entries: 256 (order: 1, 8192 bytes) [ 0.049431] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [ 0.049657] NET: Registered protocol family 1 [ 0.050264] RPC: Registered named UNIX socket transport module. [ 0.050282] RPC: Registered udp transport module. [ 0.050287] RPC: Registered tcp transport module. [ 0.050293] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.052577] workingset: timestamp_bits=30 max_order=14 bucket_order=0 [ 0.061740] NFS: Registering the id_resolver key type [ 0.061791] Key type id_resolver registered [ 0.061798] Key type id_legacy registered [ 0.065960] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 0.065983] io scheduler noop registered [ 0.065990] io scheduler deadline registered [ 0.066173] io scheduler cfq registered (default) [ 0.070393] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver [ 0.140254] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled [ 0.143494] console [ttyS0] disabled [ 0.163780] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1500000) is a U6_16550A [ 0.756084] console [ttyS0] enabled [ 0.760276] [drm] Initialized [ 0.766437] m25p80 spi32766.0: w25q128 (16384 Kbytes) [ 0.773005] libphy: Fixed MDIO Bus: probed [ 0.777564] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.784093] ehci-platform: EHCI generic platform driver [ 0.789497] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 0.795730] ohci-platform: OHCI generic platform driver [ 0.801447] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers [ 0.810985] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0 [ 0.820015] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0 [ 0.826926] sun6i-rtc 1c20400.rtc: RTC enabled [ 0.831469] i2c /dev entries driver [ 0.836411] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1 [ 0.846075] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0) [ 0.914787] sunxi-mmc 1c0f000.mmc: base:0xc4061000 irq:23 [ 0.974777] sunxi-mmc 1c10000.mmc: base:0xc4065000 irq:24 [ 0.981150] usbcore: registered new interface driver usbhid [ 0.986807] usbhid: USB HID core driver [ 0.992245] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered [ 1.000306] sun4i-codec 1c22c00.codec: Failed to register our card [ 1.007495] NET: Registered protocol family 17 [ 1.012055] Key type dns_resolver registered [ 1.016594] Registering SWP/SWPB emulation handler [ 1.029988] usb_phy_generic.0.auto supply vcc not found, using dummy regulator [ 1.037990] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver [ 1.043753] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1 [ 1.052996] hub 1-0:1.0: USB hub found [ 1.056988] hub 1-0:1.0: 1 port detected [ 1.061658] using random self ethernet address [ 1.066240] using random host ethernet address [ 1.071734] usb0: HOST MAC c6:47:e1:59:9a:2e [ 1.076185] usb0: MAC 3a:5d:ee:2f:6e:85 [ 1.080074] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008 [ 1.087592] g_cdc gadget: g_cdc ready [ 1.093773] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok [ 1.102395] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:06 UTC (6) [ 1.110646] vcc5v0: disabling [ 1.113619] ALSA device list: [ 1.116643] #0: V3s Audio Codec [ 1.122629] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19 [ 1.130324] Please append a correct "root=" boot option; here are the available partitions: [ 1.138704] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3) [ 1.147048] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.10.15-licheepi-zero+ #1 [ 1.154344] Hardware name: Allwinner sun8i Family [ 1.159083] [<c010e308>] (unwind_backtrace) from [<c010b10c>] (show_stack+0x10/0x14) [ 1.166828] [<c010b10c>] (show_stack) from [<c0333380>] (dump_stack+0x94/0xa8) [ 1.174052] [<c0333380>] (dump_stack) from [<c01a53f0>] (panic+0xdc/0x254) [ 1.180929] [<c01a53f0>] (panic) from [<c0901180>] (mount_block_root+0x18c/0x260) [ 1.188408] [<c0901180>] (mount_block_root) from [<c0901370>] (mount_root+0x11c/0x124) [ 1.196318] [<c0901370>] (mount_root) from [<c09014d0>] (prepare_namespace+0x158/0x19c) [ 1.204314] [<c09014d0>] (prepare_namespace) from [<c0900e50>] (kernel_init_freeable+0x1e8/0x1f8) [ 1.213181] [<c0900e50>] (kernel_init_freeable) from [<c0642940>] (kernel_init+0x8/0x114) [ 1.221355] [<c0642940>] (kernel_init) from [<c0107678>] (ret_from_fork+0x14/0x3c) [ 1.228925] Rebooting in 5 seconds..
-
@rysz123 还请各位大佬不吝赐教 感激不尽
-
@rysz123
配置uboot默认环境变量如下
在文件 include/configs/sun8i.h#define CONFIG_BOOTCOMMAND "sf probe 0; "
"sf read 0x41800000 0x100000 0x10000; "
"sf read 0x41000000 0x110000 0x400000; "
"bootz 0x41000000 - 0x41800000"#define CONFIG_BOOTARGS "console=ttyS0,115200 earlyprintk panic=5 rootwait "
"mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2" -
看日志, 是没有生成 mtd 分区:
-
@rysz123
制作烧录镜像步骤如下烧录指令
sudo sunxi-fel -p spiflash-write 0 flashimg.bin
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号