您尚未登录。

楼主 #1 2020-04-22 22:44:18

ifree64
会员
注册时间: 2019-06-27
已发帖子: 74
积分: 143.5

V3s licheepi板子启动失败, jffs2: jffs2_scan_eraseblock():Magic bitmask 0x198

打算从uboot、kernel、rootfs自己做一个32M Flash上的系统,折腾好几天了,期间遇到各种问题,现在感觉已经看到曙光了,但还是启动失败。
从启动信息来看,应该是jffs2.bin制作的参数不对。jffs2.bin的制作是仿照晕哥的命令来制作的。

mkfs.jffs2 --pad 0x1A00000 -d output/target 

所用的flash芯片为32M的Nor Flash,型号为:MX25L256
启动信息为

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-zero+ (xlee@ubuntu) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu1)) #3 SMP Wed Apr 22 20:06:32 CST 2020
[    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 s34508 r8192 d22836 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=spi0.0:512k(uboot)ro,512k(dtb)ro,5120k(kernel)ro,-(rootfs) root=/dev/mtdblock3 rw rootfstype=jffs2 init=/linuxrc
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 53544K/64036K available (6144K kernel code, 303K rwdata, 1740K rodata, 1024K init, 253K bss, 10492K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	RCU event tracing is enabled.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    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] random: get_random_bytes called from start_kernel+0x2f8/0x494 with crng_init=0
[    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.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000208] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000444] Console: colour dummy device 80x30
[    0.000500] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000515] pid_max: default: 32768 minimum: 301
[    0.000677] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000694] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001522] CPU: Testing write buffer coherency: ok
[    0.002048] /cpus/cpu@0 missing clock-frequency property
[    0.002076] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002901] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003119] rcu: Hierarchical SRCU implementation.
[    0.003671] smp: Bringing up secondary CPUs ...
[    0.003695] smp: Brought up 1 node, 1 CPU
[    0.003705] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003713] CPU: All CPU(s) started in SVC mode.
[    0.004809] devtmpfs: initialized
[    0.008207] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.008543] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008576] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.008834] pinctrl core: initialized pinctrl subsystem
[    0.010033] NET: Registered protocol family 16
[    0.010581] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.011881] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.011899] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.035669] SCSI subsystem initialized
[    0.035938] usbcore: registered new interface driver usbfs
[    0.036016] usbcore: registered new interface driver hub
[    0.036129] usbcore: registered new device driver usb
[    0.036353] mc: Linux media interface: v0.10
[    0.036395] videodev: Linux video capture interface: v2.00
[    0.036633] Advanced Linux Sound Architecture Driver Initialized.
[    0.037981] clocksource: Switched to clocksource arch_sys_counter
[    0.051124] NET: Registered protocol family 2
[    0.051944] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.051986] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.052011] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.052035] TCP: Hash tables configured (established 1024 bind 1024)
[    0.052183] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.052235] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.052540] NET: Registered protocol family 1
[    0.054482] Initialise system trusted keyrings
[    0.054875] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.062077] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.062295] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.098852] Key type asymmetric registered
[    0.098877] Asymmetric key parser 'x509' registered
[    0.098980] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.098993] io scheduler mq-deadline registered
[    0.099000] io scheduler kyber registered
[    0.100066] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.103821] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.177283] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.179932] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.181079] printk: console [ttyS0] disabled
[    0.201397] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[    0.724959] printk: console [ttyS0] enabled
[    0.755647] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.767376] m25p80 spi0.0: mx25l25635e (32768 Kbytes)
[    0.772538] 4 cmdlinepart partitions found on MTD device spi0.0
[    0.778476] Creating 4 MTD partitions on "spi0.0":
[    0.783275] 0x000000000000-0x000000080000 : "uboot"
[    0.790101] 0x000000080000-0x000000100000 : "dtb"
[    0.796601] 0x000000100000-0x000000600000 : "kernel"
[    0.803489] 0x000000600000-0x000002000000 : "rootfs"
[    0.811053] libphy: Fixed MDIO Bus: probed
[    0.815288] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.821907] ehci-platform: EHCI generic platform driver
[    0.827406] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.833077] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.841045] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    0.868009] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.875250] hub 1-0:1.0: USB hub found
[    0.879215] hub 1-0:1.0: 1 port detected
[    0.883841] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.890178] ohci-platform: OHCI generic platform driver
[    0.895744] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.902478] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.910466] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    0.983092] hub 2-0:1.0: USB hub found
[    0.986937] hub 2-0:1.0: 1 port detected
[    0.994249] usbcore: registered new interface driver usb-storage
[    1.001881] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.006947] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.011672] i2c /dev entries driver
[    1.016594] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    1.026294] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.034965] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.070622] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.078185] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.089610] usbcore: registered new interface driver usbhid
[    1.095192] usbhid: USB HID core driver
[    1.101882] Initializing XFRM netlink socket
[    1.106198] NET: Registered protocol family 17
[    1.111332] Registering SWP/SWPB emulation handler
[    1.117215] Loading compiled-in X.509 certificates
[    1.127287] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0x(ptrval)
[    1.137984] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.154206] Console: switching to colour frame buffer device 100x30
[    1.166345] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.175200] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.186725] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.192577] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.201686] hub 3-0:1.0: USB hub found
[    1.205564] hub 3-0:1.0: 1 port detected
[    1.211074] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T02:35:28 UTC (9328)
[    1.219621] vcc3v0: disabling
[    1.222604] vcc5v0: disabling
[    1.225571] ALSA device list:
[    1.228600]   No soundcards found.
[    1.236091] jffs2: Node at 0x00000c38 with length 0x00000752 would run over the end of the erase block
[    1.245538] jffs2: Perhaps the file system was created with the wrong erase size?
[    1.253191] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000c3c: 0x0752 instead
[    1.262793] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000c40: 0xe5db instead
[    1.272355] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000c44: 0x0017 instead
[    1.281847] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000c48: 0x0001 instead
[    1.291325] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000c4c: 0x81ed instead
[    1.300801] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000c50: 0x03e8 instead
[    1.310278] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000c54: 0x4bdc instead

请教一下,是什么地方做错了?

离线

#2 2020-04-22 22:55:19

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: V3s licheepi板子启动失败, jffs2: jffs2_scan_eraseblock():Magic bitmask 0x198

linux kernel make menuconfig disable CONFIG_MTD_SPI_NOR_USE_4K_SECTORS





离线

楼主 #3 2020-04-22 23:20:08

ifree64
会员
注册时间: 2019-06-27
已发帖子: 74
积分: 143.5

Re: V3s licheepi板子启动失败, jffs2: jffs2_scan_eraseblock():Magic bitmask 0x198

是要取消这个选项吗?我去试试,谢谢!

离线

#4 2020-04-22 23:31:59

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: V3s licheepi板子启动失败, jffs2: jffs2_scan_eraseblock():Magic bitmask 0x198

ifree64 说:

是要取消这个选项吗?我去试试,谢谢!

对的, 你先取消这个选项试一试.





离线

楼主 #5 2020-04-23 10:21:00

ifree64
会员
注册时间: 2019-06-27
已发帖子: 74
积分: 143.5

Re: V3s licheepi板子启动失败, jffs2: jffs2_scan_eraseblock():Magic bitmask 0x198

OK,搞定了,谢谢!
下一步搞定5.2内核的以太网支持,默认进系统后没有网络,不知道这个版本的内核是否支持网络。

离线

#6 2020-04-23 10:26:34

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: V3s licheepi板子启动失败, jffs2: jffs2_scan_eraseblock():Magic bitmask 0x198

ifree64 说:

OK,搞定了,谢谢!
下一步搞定5.2内核的以太网支持,默认进系统后没有网络,不知道这个版本的内核是否支持网络。

支持的,kernel和dts配好就可以了,踩在巨人的肩膀上。





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn