您尚未登录。

楼主 #1 2018-11-28 19:41:19

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

请各位大神,帮我看看,为什么不能挂Jffs2文件系统?

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..

离线

楼主 #3 2018-11-28 20:27:27

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

Re: 请各位大神,帮我看看,为什么不能挂Jffs2文件系统?

[    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,我改了,但没有任何变化

离线

楼主 #4 2018-11-28 20:29:02

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

Re: 请各位大神,帮我看看,为什么不能挂Jffs2文件系统?

[    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)

离线

楼主 #5 2018-11-28 20:29:42

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

Re: 请各位大神,帮我看看,为什么不能挂Jffs2文件系统?

[    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)

离线

楼主 #7 2018-11-28 20:45:58

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

Re: 请各位大神,帮我看看,为什么不能挂Jffs2文件系统?

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本来就没有吧??
没理解啊

离线

楼主 #9 2018-11-28 21:15:39

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

Re: 请各位大神,帮我看看,为什么不能挂Jffs2文件系统?

我看了一下,仔细对了一下,没有问题,原来提是ttys0,我们现在的是s2,能正常打印,说明这个是没有问题的

离线

楼主 #11 2018-11-29 08:36:55

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

Re: 请各位大神,帮我看看,为什么不能挂Jffs2文件系统?

我看起来,它是解析分区表时出错了。解析不出来。不知道这是为什么。

离线

页脚

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

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