log 日志如下:
为什么打印中没有显示jffs2的那个表??加载不成功啊。
sunxi_display.monitor = 3
sunxi_display.depth = 18
sunxi_display.fb_size = 2457600,1024, 600
Setting up a 1024x600 lcd console (overscan 0x0)
gd->bd->bi_dram[0].start = 1073741824, 67108864, 2457600
dotclock: 48000kHz = 48000kHz: (1 * 3MHz * 96) / 6
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 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 42dffc6a ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.16-licheepi-zero+ (pqfeng@ubuntu) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09)) #66 SMP Wed Nov 28 16:42:23 CST 2018
[ 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
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @c3d07000 s33920 r8192 d23424 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 15660
[ 0.000000] Kernel command line: console=ttyS2,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: 52684K/63136K available (6144K kernel code, 218K rwdata, 1500K rodata, 1024K init, 266K bss, 10452K 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 - 0xc3da8000 ( 61 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 - 0xc0a36b40 ( 219 kB)
[ 0.000000] .bss : 0xc0a3db44 - 0xc0a8037c ( 267 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: 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.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000019] Switching to timer-based delay loop, resolution 41ns
[ 0.000179] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000309] 44444444444444444444444444444444444444444444444
[ 0.000408] Console: colour dummy device 80x30
[ 0.000440] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000455] pid_max: default: 32768 minimum: 301
[ 0.000501] 5555555555555555555555555555555555555555
[ 0.000595] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000609] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001211] 6666666666666666666666666666666666666666666666
[ 0.001232] CPU: Testing write buffer coherency: ok
[ 0.001269] 7777777777777777777777777777777777777777777777
[ 0.001590] /cpus/cpu@0 missing clock-frequency property
[ 0.001615] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002061] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002238] Hierarchical SRCU implementation.
[ 0.002750] smp: Bringing up secondary CPUs ...
[ 0.002764] smp: Brought up 1 node, 1 CPU
[ 0.002773] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002781] CPU: All CPU(s) started in SVC mode.
[ 0.003554] devtmpfs: initialized
[ 0.006649] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.006920] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.006951] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007123] pinctrl core: initialized pinctrl subsystem
[ 0.008023] random: get_random_u32 called from bucket_table_alloc+0xf0/0x240 with crng_init=0
[ 0.008165] NET: Registered protocol family 16
[ 0.008659] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009824] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009846] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.022272] SCSI subsystem initialized
[ 0.022561] usbcore: registered new interface driver usbfs
[ 0.022629] usbcore: registered new interface driver hub
[ 0.022726] usbcore: registered new device driver usb
[ 0.022948] Linux video capture interface: v2.00
[ 0.023010] pps_core: LinuxPPS API ver. 1 registered
[ 0.023017] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.023040] PTP clock support registered
[ 0.023256] Advanced Linux Sound Architecture Driver Initialized.
[ 0.025114] clocksource: Switched to clocksource arch_sys_counter
[ 0.025630] ggggggggggggggggggggggggggggggggggggg
[ 0.026084] fffffffffffffffffffffffffffffffffffff
[ 0.036261] NET: Registered protocol family 2
[ 0.036875] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.036907] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.036930] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.037062] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037110] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037320] NET: Registered protocol family 1
[ 0.037912] RPC: Registered named UNIX socket transport module.
[ 0.037931] RPC: Registered udp transport module.
[ 0.037937] RPC: Registered tcp transport module.
[ 0.037943] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.039849] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.049119] NFS: Registering the id_resolver key type
[ 0.049173] Key type id_resolver registered
[ 0.049180] Key type id_legacy registered
[ 0.049199] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.049235] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.050696] random: fast init done
[ 0.053518] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.053541] io scheduler noop registered
[ 0.053548] io scheduler deadline registered
[ 0.053836] io scheduler cfq registered (default)
[ 0.053847] io scheduler mq-deadline registered
[ 0.053854] io scheduler kyber registered
[ 0.058356] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.126995] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.150661] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[ 0.172256] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 32, base_baud = 1500000) is a U6_16550A
[ 0.812766] console [ttyS2] enabled
[ 0.819690] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.824773] spi0.0: parser cmdlinepart: 0
[ 0.828863] spi0.0: parser ofpart: 0
[ 0.833451] libphy: Fixed MDIO Bus: probed
[ 0.838117] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.843910] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.849714] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.855746] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[ 0.865200] aaaaaaaaaaaaaaaaaaaaa
[ 0.868539] bbbbbbbbbbbbbbbbbbbbb
[ 0.871873] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.877548] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.884762] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.890428] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.897653] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.902612] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.909602] libphy: stmmac: probed
[ 0.914832] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.921495] ehci-platform: EHCI generic platform driver
[ 0.926910] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.933122] ohci-platform: OHCI generic platform driver
[ 0.939625] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 0.946517] sun6i-rtc 1c20400.rtc: RTC enabled
[ 0.951074] i2c /dev entries driver
[ 0.955563] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.015162] sunxi-mmc 1c0f000.mmc: base:0xc406d000 irq:23
[ 1.021604] usbcore: registered new interface driver usbhid
[ 1.027263] usbhid: USB HID core driver
[ 1.032946] NET: Registered protocol family 17
[ 1.037657] Key type dns_resolver registered
[ 1.042085] Registering SWP/SWPB emulation handler
[ 1.052757] simple-framebuffer 43da8000.framebuffer: framebuffer at 0x43da8000, 0x258000 bytes, mapped to 0xc4500000
[ 1.063406] simple-framebuffer 43da8000.framebuffer: format=x8r8g8b8, mode=1024x600x32, linelength=4096
[ 1.085479] Console: switching to colour frame buffer device 128x37
[ 1.101379] simple-framebuffer 43da8000.framebuffer: fb0: simplefb registered!
[ 1.109988] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.121410] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.127268] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 1.136497] hub 1-0:1.0: USB hub found
[ 1.140369] hub 1-0:1.0: 1 port detected
[ 1.148933] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:28:41 UTC (1721)
[ 1.157428] vcc3v0: disabling
[ 1.160402] vcc5v0: disabling
[ 1.163366] ALSA device list:
[ 1.166389] No soundcards found.
[ 1.170731] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
[ 1.178400] Please append a correct "root=" boot option; here are the available partitions:
[ 1.186776] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 1.195122] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #66
[ 1.202504] Hardware name: Allwinner sun8i Family
[ 1.207244] [<c010e5d0>] (unwind_backtrace) from [<c010b358>] (show_stack+0x10/0x14)
[ 1.214989] [<c010b358>] (show_stack) from [<c068c234>] (dump_stack+0x94/0xa8)
[ 1.222211] [<c068c234>] (dump_stack) from [<c011b594>] (panic+0xdc/0x254)
[ 1.229089] [<c011b594>] (panic) from [<c0901120>] (mount_block_root+0x204/0x2c8)
[ 1.236567] [<c0901120>] (mount_block_root) from [<c09013ac>] (prepare_namespace+0x14c/0x190)
[ 1.245085] [<c09013ac>] (prepare_namespace) from [<c0900e00>] (kernel_init_freeable+0x1d0/0x1e0)
[ 1.253950] [<c0900e00>] (kernel_init_freeable) from [<c069ef88>] (kernel_init+0x8/0x110)
[ 1.262122] [<c069ef88>] (kernel_init) from [<c01076b8>] (ret_from_fork+0x14/0x3c)
[ 1.269695] Rebooting in 5 seconds..
离线
[ 0.819690] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.824773] spi0.0: parser cmdlinepart: 0
[ 0.828863] spi0.0: parser ofpart: 0
[ 0.833451] libphy: Fixed MDIO Bus: probed
我看了一下,但问题还是没有解决。它把主频从50M改成16M,我改了,但没有任何变化
离线
[ 0.053682] io scheduler noop registered
[ 0.053689] io scheduler deadline registered
[ 0.053974] io scheduler cfq registered (default)
[ 0.053985] io scheduler mq-deadline registered
[ 0.053991] io scheduler kyber registered
[ 0.058525] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.127321] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.150999] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[ 0.172606] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 32, base_baud = 1500000) is a U6_16550A
[ 0.813121] console [ttyS2] enabled
[ 0.820066] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.825236] spi0.0: parser cmdlinepart: 0
[ 0.829247] spi0.0: parser ofpart: 0
[ 0.833819] libphy: Fixed MDIO Bus: probed
[ 0.838487] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.844283] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.850082] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.856122] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
离线
[ 0.053682] io scheduler noop registered
[ 0.053689] io scheduler deadline registered
[ 0.053974] io scheduler cfq registered (default)
[ 0.053985] io scheduler mq-deadline registered
[ 0.053991] io scheduler kyber registered
[ 0.058525] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.127321] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.150999] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[ 0.172606] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 32, base_baud = 1500000) is a U6_16550A
[ 0.813121] console [ttyS2] enabled
[ 0.820066] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.825236] spi0.0: parser cmdlinepart: 0
[ 0.829247] spi0.0: parser ofpart: 0
[ 0.833819] libphy: Fixed MDIO Bus: probed
[ 0.838487] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.844283] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.850082] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.856122] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
离线
[ 0.053682] io scheduler noop registered
[ 0.053689] io scheduler deadline registered
[ 0.053974] io scheduler cfq registered (default)
[ 0.053985] io scheduler mq-deadline registered
[ 0.053991] io scheduler kyber registered
[ 0.058525] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.127321] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.150999] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[ 0.172606] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 32, base_baud = 1500000) is a U6_16550A
[ 0.813121] console [ttyS2] enabled
[ 0.820066] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.825236] spi0.0: parser cmdlinepart: 0
[ 0.829247] spi0.0: parser ofpart: 0
[ 0.833819] libphy: Fixed MDIO Bus: probed
[ 0.838487] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.844283] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.850082] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.856122] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
检测到了 SPI FLASH, 但是你的 cmdline 里面 parts 参数 和 dts 里面均没有找到分区信息, 所以就挂不起文件系统。
离线
cmdline应该没有问题啊。 Kernel command line: console=ttyS2,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2 你说dts没有分区信息。dts本来就没有吧??
没理解啊
离线
cmdline应该没有问题啊。 Kernel command line: console=ttyS2,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2 你说dts没有分区信息。dts本来就没有吧??
没理解啊
我的意思是,根据log信息 既没有在mtdparts分析出mtd分区信息,也没有在dts分析出mtd分区信息。
看下cmdline这行是不是错了字符?
离线
我看了一下,仔细对了一下,没有问题,原来提是ttys0,我们现在的是s2,能正常打印,说明这个是没有问题的
离线
我看起来,它是解析分区表时出错了。解析不出来。不知道这是为什么。
离线
楼主,问题解决了吗,我目前的问题跟你的一样
离线
楼主,问题解决了吗,我目前的问题跟你的一样
什么问题,把 log 贴出来吧.
1. 添加 m25p80 驱动
2. 设备树添加 spi flash
3. 内核配置 config commandline parts (也可以配置设备树 dts parts)
4. bootargs 添加 mtdparts 命令行 (也可以在设备树配置mtdparts)
5. 用 mkfs.jffs2 制作根文件系统, 并且烧录到 前面mtdparts指定的位置.
离线
我使用w25q256,
1. 添加 m25p80 驱动
已添加
2. 设备树添加 spi flash
已添加
3. 内核配置 config commandline parts (也可以配置设备树 dts parts)
已添加
4. bootargs 添加 mtdparts 命令行 (也可以在设备树配置mtdparts)
已添加
5. 用 mkfs.jffs2 制作根文件系统, 并且烧录到 前面mtdparts指定的位置.
完全参考看云上的方法做的,https://www.kancloud.cn/lichee/lpi0/331844。
我的log如下,
U-Boot 2017.01-rc2 (Dec 14 2018 - 11:34:03 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
I2C: ready
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
*** Warning - bad CRC, using default environment
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 w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
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 42dff2b2 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.0-licheepi-zero (wlyu@wlyu-virtual-machine) (gcc version 4.7.4 (Ubuntu/Linaro 4.7.4-3ubuntu12)) #19 SMP Fri Dec 14 14:02:26 CST 2018
[ 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
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] random: fast init done
[ 0.000000] percpu: Embedded 16 pages/cpu @c3f61000 s33740 r8192 d23604 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 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: 55028K/65536K available (6144K kernel code, 286K rwdata, 1504K rodata, 1024K init, 263K bss, 10508K 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 : 0xc4800000 - 0xff800000 ( 944 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 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 - 0xc0a478a0 ( 287 kB)
[ 0.000000] .bss : 0xc0a4eaf0 - 0xc0a909f4 ( 264 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000018] Switching to timer-based delay loop, resolution 41ns
[ 0.000166] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000399] Console: colour dummy device 80x30
[ 0.000440] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000456] pid_max: default: 32768 minimum: 301
[ 0.000581] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000597] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001264] CPU: Testing write buffer coherency: ok
[ 0.001649] /cpus/cpu@0 missing clock-frequency property
[ 0.001672] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002109] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002276] Hierarchical SRCU implementation.
[ 0.002766] smp: Bringing up secondary CPUs ...
[ 0.002782] smp: Brought up 1 node, 1 CPU
[ 0.002790] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002796] CPU: All CPU(s) started in SVC mode.
[ 0.003561] devtmpfs: initialized
[ 0.006418] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.006702] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.006730] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.006901] pinctrl core: initialized pinctrl subsystem
[ 0.007887] NET: Registered protocol family 16
[ 0.008386] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009502] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009519] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.020283] SCSI subsystem initialized
[ 0.020536] usbcore: registered new interface driver usbfs
[ 0.020588] usbcore: registered new interface driver hub
[ 0.020670] usbcore: registered new device driver usb
[ 0.020887] pps_core: LinuxPPS API ver. 1 registered
[ 0.020896] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.020916] PTP clock support registered
[ 0.021111] Advanced Linux Sound Architecture Driver Initialized.
[ 0.022826] clocksource: Switched to clocksource arch_sys_counter
[ 0.031888] NET: Registered protocol family 2
[ 0.032528] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.032556] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.032579] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.032710] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.032758] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.033053] NET: Registered protocol family 1
[ 0.033702] RPC: Registered named UNIX socket transport module.
[ 0.033723] RPC: Registered udp transport module.
[ 0.033728] RPC: Registered tcp transport module.
[ 0.033734] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.035543] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.041299] NFS: Registering the id_resolver key type
[ 0.041351] Key type id_resolver registered
[ 0.041358] Key type id_legacy registered
[ 0.041639] JFS: nTxBlock = 429, nTxLock = 3439
[ 0.046646] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.046668] io scheduler noop registered
[ 0.046675] io scheduler deadline registered
[ 0.046875] io scheduler cfq registered (default)
[ 0.046886] io scheduler mq-deadline registered
[ 0.046893] io scheduler kyber registered
[ 0.047428] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.050515] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.109349] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.112245] console [ttyS0] disabled
[ 0.132512] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 30, base_baud = 1500000) is a U6_16550A
[ 0.716132] console [ttyS0] enabled
[ 0.723702] m25p80 spi0.0: w25q256 (32768 Kbytes)
[ 0.729405] libphy: Fixed MDIO Bus: probed
[ 0.733907] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.740432] ehci-platform: EHCI generic platform driver
[ 0.745782] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.752001] ohci-platform: OHCI generic platform driver
[ 0.757760] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 0.767297] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 0.774168] sun6i-rtc 1c20400.rtc: RTC enabled
[ 0.778728] i2c /dev entries driver
[ 0.782418] IR NEC protocol handler initialized
[ 0.786995] IR RC5(x/sz) protocol handler initialized
[ 0.792040] IR RC6 protocol handler initialized
[ 0.796581] IR JVC protocol handler initialized
[ 0.801104] IR Sony protocol handler initialized
[ 0.805726] IR SANYO protocol handler initialized
[ 0.810422] IR Sharp protocol handler initialized
[ 0.815130] IR MCE Keyboard/mouse protocol handler initialized
[ 0.820952] IR XMP protocol handler initialized
[ 0.826110] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.892868] sunxi-mmc 1c0f000.mmc: base:0xc489d000 irq:22
[ 0.899658] usbcore: registered new interface driver usbhid
[ 0.905329] usbhid: USB HID core driver
[ 0.910691] NET: Registered protocol family 17
[ 0.915359] Key type dns_resolver registered
[ 0.919810] Registering SWP/SWPB emulation handler
[ 0.931436] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 0.942987] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 0.948756] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 0.959837] hub 1-0:1.0: USB hub found
[ 0.963835] hub 1-0:1.0: 1 port detected
[ 0.968867] using random self ethernet address
[ 0.973435] using random host ethernet address
[ 0.978748] usb0: HOST MAC f2:e1:be:48:4a:01
[ 0.983217] usb0: MAC b6:4c:e4:72:da:1a
[ 0.987114] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 0.994642] g_cdc gadget: g_cdc ready
[ 0.998675] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:07 UTC (7)
[ 1.006891] vcc3v0: disabling
[ 1.009868] vcc5v0: disabling
[ 1.012886] ALSA device list:
[ 1.015852] No soundcards found.
[ 1.020642] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
[ 1.028324] Please append a correct "root=" boot option; here are the available partitions:
[ 1.036699] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 1.045044] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.0-licheepi-zero #19
[ 1.052254] Hardware name: sun8i
[ 1.055518] [<c010e794>] (unwind_backtrace) from [<c010b540>] (show_stack+0x10/0x14)
[ 1.063260] [<c010b540>] (show_stack) from [<c0679630>] (dump_stack+0x80/0xa0)
[ 1.070483] [<c0679630>] (dump_stack) from [<c011b39c>] (panic+0xd0/0x25c)
[ 1.077358] [<c011b39c>] (panic) from [<c0901150>] (mount_block_root+0x174/0x260)
[ 1.084835] [<c0901150>] (mount_block_root) from [<c0901344>] (mount_root+0x108/0x12c)
[ 1.092744] [<c0901344>] (mount_root) from [<c0901494>] (prepare_namespace+0x12c/0x190)
[ 1.100740] [<c0901494>] (prepare_namespace) from [<c0900e04>] (kernel_init_freeable+0x18c/0x1d0)
[ 1.109606] [<c0900e04>] (kernel_init_freeable) from [<c068be54>] (kernel_init+0x8/0x114)
[ 1.117777] [<c068be54>] (kernel_init) from [<c0107970>] (ret_from_fork+0x14/0x24)
[ 1.125348] Rebooting in 5 seconds..
然后我替换了kernel以后出现如下log
U-Boot 2017.01-rc2 (Dec 14 2018 - 11:34:03 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
I2C: ready
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
*** Warning - bad CRC, using default environment
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 w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
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 42dff2b2 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.0-licheepi-zero+ (root@ubuntu) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP Sun Jul 15 23:54:34 CST 2018
[ 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
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @c3f61000 s33868 r8192 d23476 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 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: 55104K/65536K available (6144K kernel code, 224K rwdata, 1356K rodata, 1024K init, 251K bss, 10432K 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 : 0xc4800000 - 0xff800000 ( 944 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 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 - 0xc0a383e0 ( 225 kB)
[ 0.000000] .bss : 0xc0a3f61c - 0xc0a7e48c ( 252 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: 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.000167] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000380] Console: colour dummy device 80x30
[ 0.000414] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000430] pid_max: default: 32768 minimum: 301
[ 0.000551] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000568] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001150] CPU: Testing write buffer coherency: ok
[ 0.001511] /cpus/cpu@0 missing clock-frequency property
[ 0.001535] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.001960] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002140] Hierarchical SRCU implementation.
[ 0.002620] smp: Bringing up secondary CPUs ...
[ 0.002637] smp: Brought up 1 node, 1 CPU
[ 0.002646] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002653] CPU: All CPU(s) started in SVC mode.
[ 0.003396] devtmpfs: initialized
[ 0.005882] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.006150] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.006179] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.006345] pinctrl core: initialized pinctrl subsystem
[ 0.007197] random: get_random_u32 called from bucket_table_alloc+0xf0/0x23c with crng_init=0
[ 0.007334] NET: Registered protocol family 16
[ 0.007772] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.008806] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.008825] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.018996] SCSI subsystem initialized
[ 0.019290] usbcore: registered new interface driver usbfs
[ 0.019356] usbcore: registered new interface driver hub
[ 0.019446] usbcore: registered new device driver usb
[ 0.019638] pps_core: LinuxPPS API ver. 1 registered
[ 0.019648] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.019670] PTP clock support registered
[ 0.019903] Advanced Linux Sound Architecture Driver Initialized.
[ 0.021733] clocksource: Switched to clocksource arch_sys_counter
[ 0.031789] NET: Registered protocol family 2
[ 0.032377] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.032409] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.032432] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.032559] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.032606] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.032833] NET: Registered protocol family 1
[ 0.034627] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.042654] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.044122] random: fast init done
[ 0.046910] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.046934] io scheduler noop registered
[ 0.046941] io scheduler deadline registered
[ 0.047173] io scheduler cfq registered (default)
[ 0.047184] io scheduler mq-deadline registered
[ 0.047192] io scheduler kyber registered
[ 0.051469] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.115187] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.118283] console [ttyS0] disabled
[ 0.138549] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 30, base_baud = 1500000) is a U6_16550A
[ 0.693714] console [ttyS0] enabled
[ 0.700760] m25p80 spi32766.0: w25q256 (32768 Kbytes)
[ 0.705928] 4 cmdlinepart partitions found on MTD device spi32766.0
[ 0.712220] Creating 4 MTD partitions on "spi32766.0":
[ 0.717363] 0x000000000000-0x000000100000 : "uboot"
[ 0.723692] 0x000000100000-0x000000110000 : "dtb"
[ 0.729597] 0x000000110000-0x000000510000 : "kernel"
[ 0.735906] 0x000000510000-0x000002000000 : "rootfs"
[ 0.742349] libphy: Fixed MDIO Bus: probed
[ 0.746758] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.753361] ehci-platform: EHCI generic platform driver
[ 0.758676] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.764902] ohci-platform: OHCI generic platform driver
[ 0.770287] usbcore: registered new interface driver usb-storage
[ 0.776756] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 0.786327] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 0.793196] sun6i-rtc 1c20400.rtc: RTC enabled
[ 0.797743] i2c /dev entries driver
[ 0.802018] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.861785] sunxi-mmc 1c0f000.mmc: base:0xc48b2000 irq:22
[ 0.868631] usbcore: registered new interface driver usbhid
[ 0.874302] usbhid: USB HID core driver
[ 0.879628] NET: Registered protocol family 17
[ 0.884353] Registering SWP/SWPB emulation handler
[ 0.895955] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 0.907406] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 0.913255] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 0.924437] hub 1-0:1.0: USB hub found
[ 0.928295] hub 1-0:1.0: 1 port detected
[ 0.933513] using random self ethernet address
[ 0.938002] using random host ethernet address
[ 0.943614] usb0: HOST MAC 42:5b:e6:44:64:90
[ 0.947931] usb0: MAC d2:86:b5:e1:10:8f
[ 0.951923] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 0.959401] g_cdc gadget: g_cdc ready
[ 0.963432] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:06 UTC (6)
[ 0.971600] vcc3v0: disabling
[ 0.974646] vcc5v0: disabling
[ 0.977615] ALSA device list:
[ 0.980578] No soundcards found.
[ 0.990610] jffs2: Node at 0x00000fe0 with length 0x000000cd would run over the end of the erase block
[ 1.000028] jffs2: Perhaps the file system was created with the wrong erase size?
[ 1.007571] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fe4: 0x00cd instead
[ 1.017087] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fe8: 0x02ac instead
[ 1.026600] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fec: 0x0014 instead
[ 1.036085] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000ff0: 0x000b instead
[ 1.045753] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000ff4: 0x81ed instead
[ 1.055749] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001000: 0x22bf instead
[ 1.065266] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001004: 0x22bf instead
[ 1.074753] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001008: 0x22bf instead
[ 1.084231] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000100c: 0x0a00 instead
[ 1.093707] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001010: 0x0089 instead
[ 1.103180] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001014: 0x0100 instead
[ 1.112655] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001018: 0x0006 instead
[ 1.122166] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000101c: 0xbef7 instead
[ 1.131633] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001020: 0x8a40 instead
[ 1.141114] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001024: 0x5e78 instead
[ 1.150588] jffs2: Further such events for this erase block will not be printed
[ 1.160108] jffs2: Node at 0x00001f50 with length 0x000000f2 would run over the end of the erase block
[ 1.169440] jffs2: Perhaps the file system was created with the wrong erase size?
[ 1.177338] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002000: 0x9f9c instead
[ 1.186843] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002004: 0x4605 instead
[ 1.196326] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002008: 0x2f92 instead
[ 1.205804] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000200c: 0x5bc6 instead
[ 1.215281] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002010: 0x5d23 instead
[ 1.224755] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002014: 0x7945 instead
[ 1.234230] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002018: 0x0d2f instead
[ 1.243705] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000201c: 0xb254 instead
[ 1.253178] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002020: 0xd5f7 instead
[ 1.262653] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002024: 0xc142 instead
[ 1.272126] jffs2: Further such events for this erase block will not be printed
[ 1.281615] jffs2: Node at 0x00002f88 with length 0x000000e0 would run over the end of the erase block
[ 1.290939] jffs2: Perhaps the file system was created with the wrong erase size?
[ 1.298826] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003000: 0x208e instead
[ 1.308329] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003004: 0xfa88 instead
[ 1.317809] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003008: 0x853e instead
[ 1.327285] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000300c: 0xe120 instead
[ 1.336760] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003010: 0x02fa instead
[ 1.346236] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003014: 0xb484 instead
[ 1.355710] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003018: 0x6be3 instead
[ 1.365185] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000301c: 0x7206 instead
[ 1.374660] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003020: 0xefbc instead
[ 1.384135] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003024: 0x287b instead
[ 1.393607] jffs2: Further such events for this erase block will not be printed
[ 1.403098] jffs2: Node at 0x00003fd0 with length 0x0000013e would run over the end of the erase block
[ 1.412418] jffs2: Perhaps the file system was created with the wrong erase size?
[ 1.420288] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004000: 0x00fa instead
[ 1.429788] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004004: 0x00ff instead
[ 1.439268] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004008: 0x0006 instead
[ 1.448745] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000400c: 0xdb4e instead
[ 1.458221] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004010: 0xe2a3 instead
[ 1.467700] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004014: 0x5e78 instead
[ 1.477176] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004018: 0xd0c0 instead
[ 1.486652] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000401c: 0xf110 instead
[ 1.496126] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004020: 0x8181 instead
[ 1.505602] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004024: 0xe181 instead
[ 1.515074] jffs2: Further such events for this erase block will not be printed
晕哥帮忙看一下~
离线
我只替换了zImage,用的是您发的 V3s_W25Q256_MX25L256_Qt5.9.1.bin 里dd出来的kernel,
内核里这个也选中了<*> Command line partition table parsing
离线
我只替换了zImage,用的是您发的 V3s_W25Q256_MX25L256_Qt5.9.1.bin 里dd出来的kernel,
内核里这个也选中了<*> Command line partition table parsing
看不出问题了,
有这个log
m25p80 spi0.0: w25q256 (32768 Kbytes)
而没有解析出分区,可能是设备树没有配 spi flash
你把你的 dts 贴出来看下
这是我前几天做的flash镜像,你试一试: v3s_32M_flash.tgz
离线
感觉我的问题可能出在这
我uboot log,说
SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
另外我的dts是
&spi0 {
status = "okay";
w25q128:w25q128@0 {
compatible = "jedec,spi-nor";
reg = <0x0>;
spi-max-frequency = <16000000>;
#address-cells = <1>;
#size-cells = <1>;
};
};
小猪佩奇 说:我只替换了zImage,用的是您发的 V3s_W25Q256_MX25L256_Qt5.9.1.bin 里dd出来的kernel,
内核里这个也选中了<*> Command line partition table parsing
看不出问题了,
有这个log
m25p80 spi0.0: w25q256 (32768 Kbytes)
而没有解析出分区,可能是设备树没有配 spi flash
你把你的 dts 贴出来看下
这是我前几天做的flash镜像,你试一试: v3s_32M_flash.tgz
离线
那会不会是我镜像文件生成的有问题,我是这样操作的,(w25q256)
jffs2分区总空间是 32M-1M-64K-4M= 0x1AF0000
mkfs.jffs2 -s 0x100 -e 0x10000 -p 0x1AF0000 -d rootfs/ -o jffs2.img
dd if=/dev/zero of=flashimg.bin bs=32M count=1
dd if=../ubootmainline/u-boot/u-boot-sunxi-with-spl.bin of=flashimg.bin bs=1K conv=notrunc
dd if=../zero41y/linux-zero-4.10.y/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dtb of=flashimg.bin bs=1K seek=1024 conv=notrunc
dd if=../zero41y/linux-zero-4.10.y/arch/arm/boot/zImage of=flashimg.bin bs=1K seek=1088 conv=notrunc
dd if=../zero_imager/jffs2/jffs2.img of=flashimg.bin bs=1K seek=5184 conv=notrunc
离线
把这两个参数去掉,并换成4.13y的内核
现在可以启动了,感谢晕哥~
把这两个参数先去掉: -s 0x100 -e 0x10000
离线
把这两个参数去掉,并换成4.13y的内核
现在可以启动了,感谢晕哥~晕哥 说:把这两个参数先去掉: -s 0x100 -e 0x10000
客气客气, 看到有朋友解决问题了很开森.
去掉这两个参数就是使用命令行的默认参数了 -s 0x1000 -e 0x10000,
s 是指 page size, 可能是驱动设置的page size 就是 0x1000
具体你可以用 beyond compare 比较二者生成的二进制文件和驱动代码。
离线
另外我想除了USB烧写方式以外可不可以TF卡烧写,
把生成的bin文件放到TF卡里面,然后用mtd_write,或者dd是否可行,我试了一下目前是没写进去
离线
离线