您尚未登录。

楼主 #1 2018-11-29 08:55:10

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

各位帮我看一下。

我的SPI flash启动不起来,不知道为什么。。。。
[    0.819749] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.824837] spi0.0: parser cmdlinepart: 0
[    0.828928] spi0.0: parser ofpart: 0
以上是Log信息。也确认命令行内容是没有问题的。
却解析不出分区信息来。不知道为什么。

离线

#2 2018-11-29 08:59:46

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 各位帮我看一下。

https://licheezero.readthedocs.io/zh/latest/%E7%B3%BB%E7%BB%9F%E5%BC%80%E5%8F%91/SPI_falsh_doc3.html

正常识别到分区,应该报以下信息:

[    0.862858] m25p80 spi32766.0: w25q128 (16384 Kbytes)
[    0.867927] in cmdline partion
[    0.871123] p4 : size=100000
[    0.874005] p4 : size=10000
[    0.876796] p4 : size=400000
[    0.879714] p4 : size=2f0000
[    0.882596] spi32766.0: parser cmdlinepart: 4
[    0.886949] 4 cmdlinepart partitions found on MTD device spi32766.0
[    0.893230] Creating 4 MTD partitions on "spi32766.0":
[    0.898374] 0x000000000000-0x000000100000 : "uboot"
[    0.904828] 0x000000100000-0x000000110000 : "dtb"
[    0.910973] 0x000000110000-0x000000510000 : "kernel"
[    0.917258] 0x000000510000-0x000000800000 : "rootfs"





离线

#3 2018-11-29 09:07:59

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 各位帮我看一下。





离线

楼主 #4 2018-11-29 09:08:03

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

Re: 各位帮我看一下。

我照着文档对了一轮,menuconfig中没有问题,那些其他参数也都是对的。却查不到问题在哪里。。。。。真的是很坑爹。

离线

#5 2018-11-29 09:12:43

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 各位帮我看一下。

pqfeng 说:

我照着文档对了一轮,menuconfig中没有问题,那些其他参数也都是对的。却查不到问题在哪里。。。。。真的是很坑爹。

找个正常的固件, 从 u-boot, dtb, zImage, jffs2文件系统, 一个一个替换排除问题了。





离线

楼主 #6 2018-11-29 09:25:14

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

Re: 各位帮我看一下。

嗯。连轮都轮不了。。。。。。因为我现在是用的新的板。公司的,把串口改到2去了。原来的,全部用不了。。。这才是最坑爹的地方。。。。

离线

#7 2018-11-29 09:52:16

v3s
会员
注册时间: 2017-09-08
已发帖子: 105
积分: 105

Re: 各位帮我看一下。

pqfeng 说:

嗯。连轮都轮不了。。。。。。因为我现在是用的新的板。公司的,把串口改到2去了。原来的,全部用不了。。。这才是最坑爹的地方。。。。

先飞线用原来的串口






此人很懒,没有签名!

离线

楼主 #8 2018-11-29 10:45:41

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

Re: 各位帮我看一下。

好的,也只有这个方法来试试了。多谢方法

离线

楼主 #9 2018-11-29 12:42:51

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

Re: 各位帮我看一下。

我重新下了4.13.版的源代码来编译,终于可以识别到分区了。可是不能正确引导。。。。。吐血。。。。前面的问题,经过对比,发现是dts的问题。
[    3.906083] jffs2: Empty flash at 0x00ae9ffc ends at 0x00aea000
[    3.912798] jffs2: Empty flash at 0x00aeaffc ends at 0x00aeb000
[    3.919478] jffs2: Empty flash at 0x00aebf7c ends at 0x00aec000
[    3.926131] jffs2: Empty flash at 0x00aecffc ends at 0x00aed000
[    3.932827] jffs2: Empty flash at 0x00aedffc ends at 0x00aee000
[    3.939513] jffs2: Empty flash at 0x00aeeffc ends at 0x00aef000
[    3.945855] jffs2: error: (1) jffs2_build_filesystem: child dir "network" (ino #100) of dir ino #4 is also hard linked from dir ino #1
[    3.960607] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[    3.968861] devtmpfs: error mounting -20
[    3.974121] Freeing unused kernel memory: 1024K

[    4.669463] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-a91c, throttling...
[    9.686886] request_module: modprobe binfmt-a91c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[    9.702258] Starting init: /sbin/init exists but couldn't execute it (error -8)

[    9.764321] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-a91c, throttling...
[   14.806920] request_module: modprobe binfmt-a91c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[   14.822672] Starting init: /bin/sh exists but couldn't execute it (error -8)
[   14.841017] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[   14.855171] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #2
[   14.862467] Hardware name: Allwinner sun8i Family
[   14.867209] [<c010e5d0>] (unwind_backtrace) from [<c010b358>] (show_stack+0x10/0x14)
[   14.874952] [<c010b358>] (show_stack) from [<c0680374>] (dump_stack+0x94/0xa8)
[   14.882175] [<c0680374>] (dump_stack) from [<c011b614>] (panic+0xdc/0x254)


新的问题又出来了。。。。哪位兄弟帮我解答一下。谢谢了。

离线

#10 2018-11-29 12:50:37

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 各位帮我看一下。

jffs2文件系统挂载成功,但是几个可执行文件都执行失败,看下是不是文件系统做得有问题,或者文件没有可执行属性,或者缺库





离线

楼主 #11 2018-11-29 13:51:57

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

Re: 各位帮我看一下。

只有重新再做一个试试。

离线

#12 2019-01-19 22:50:23

xiongxinjian
会员
注册时间: 2019-01-13
已发帖子: 43
积分: 13

Re: 各位帮我看一下。

pqfeng 说:

我重新下了4.13.版的源代码来编译,终于可以识别到分区了。可是不能正确引导。。。。。吐血。。。。前面的问题,经过对比,发现是dts的问题。

[    3.906083] jffs2: Empty flash at 0x00ae9ffc ends at 0x00aea000
[    3.912798] jffs2: Empty flash at 0x00aeaffc ends at 0x00aeb000
[    3.919478] jffs2: Empty flash at 0x00aebf7c ends at 0x00aec000
[    3.926131] jffs2: Empty flash at 0x00aecffc ends at 0x00aed000
[    3.932827] jffs2: Empty flash at 0x00aedffc ends at 0x00aee000
[    3.939513] jffs2: Empty flash at 0x00aeeffc ends at 0x00aef000
[    3.945855] jffs2: error: (1) jffs2_build_filesystem: child dir "network" (ino #100) of dir ino #4 is also hard linked from dir ino #1
[    3.960607] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[    3.968861] devtmpfs: error mounting -20
[    3.974121] Freeing unused kernel memory: 1024K

[    4.669463] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-a91c, throttling...
[    9.686886] request_module: modprobe binfmt-a91c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[    9.702258] Starting init: /sbin/init exists but couldn't execute it (error -8)

[    9.764321] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-a91c, throttling...
[   14.806920] request_module: modprobe binfmt-a91c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[   14.822672] Starting init: /bin/sh exists but couldn't execute it (error -8)
[   14.841017] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[   14.855171] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #2
[   14.862467] Hardware name: Allwinner sun8i Family
[   14.867209] [<c010e5d0>] (unwind_backtrace) from [<c010b358>] (show_stack+0x10/0x14)
[   14.874952] [<c010b358>] (show_stack) from [<c0680374>] (dump_stack+0x94/0xa8)
[   14.882175] [<c0680374>] (dump_stack) from [<c011b614>] (panic+0xdc/0x254)

新的问题又出来了。。。。哪位兄弟帮我解答一下。谢谢了。

   发现的是DTS的那个方面的问题???我现在调A13也遇到这个问题,调了好几天还是没有进展。下面是LOG

U-Boot 2017.01-rc2-00071-gf03c1f5-dirty (Jan 14 2019 - 19:42:05 +0800) Allwinner Technology

CPU:   Allwinner A13 (SUN5I)
Model: Lichee A13
I2C:   ready
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

Setting up a 1024x768 vga console (overscan 0x0)
dotclock: 65000kHz = 64909kHz: (2 * 3MHz * 119) / 11
In:    serial
Out:   vga
Err:   vga
Net:   No ethernet found.
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
scanning bus 0 for devices... 2 USB Device(s) found
Hit any key to stop autoboot:  0
probe ---->>>>>>
bus=0 , cs=0
speed=0 , mode=0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
read ---->>>>>>
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
read ---->>>>>>
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 49ff7000, end 49fff789 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@linux-host) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #1 SMP Sat Jan 19 19:09:42 CST 2019
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee A13 ONE--->>
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] percpu: Embedded 16 pages/cpu @df8d7000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129286
[    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: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 506824K/521216K available (6144K kernel code, 195K rwdata, 1436K rodata, 1024K init, 264K bss, 14392K 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 : 0xe0000000 - 0xff800000   ( 504 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdfd00000   ( 509 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 - 0xc0a30d80   ( 196 kB)
[    0.000000]        .bss : 0xc0a37ad8 - 0xc0a79c6c   ( 265 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.000027] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000057] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000208] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000462] Console: colour dummy device 80x30
[    0.000496] Calibrating delay loop... 1001.88 BogoMIPS (lpj=5009408)
[    0.090114] pid_max: default: 32768 minimum: 301
[    0.090237] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090252] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090834] CPU: Testing write buffer coherency: ok
[    0.091175] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.091561] Setting up static identity map for 0x40100000 - 0x40100060
[    0.091697] Hierarchical SRCU implementation.
[    0.092125] smp: Bringing up secondary CPUs ...
[    0.092137] smp: Brought up 1 node, 1 CPU
[    0.092147] SMP: Total of 1 processors activated (1001.88 BogoMIPS).
[    0.092154] CPU: All CPU(s) started in SVC mode.
[    0.093605] devtmpfs: initialized
[    0.098459] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.098717] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.098742] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.098851] pinctrl core: initialized pinctrl subsystem
[    0.099637] random: get_random_u32 called from bucket_table_alloc+0xf4/0x244 with crng_init=0
[    0.099745] NET: Registered protocol family 16
[    0.100436] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.101340] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.112814] reg-fixed-voltage usb0-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb0_vbus_pin@0, deferring probe
[    0.113897] SCSI subsystem initialized
[    0.114127] usbcore: registered new interface driver usbfs
[    0.114181] usbcore: registered new interface driver hub
[    0.114249] usbcore: registered new device driver usb
[    0.114429] pps_core: LinuxPPS API ver. 1 registered
[    0.114438] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.114466] PTP clock support registered
[    0.114666] Advanced Linux Sound Architecture Driver Initialized.
[    0.116115] clocksource: Switched to clocksource timer
[    0.116962] simple-framebuffer 5fd00000.framebuffer: framebuffer at 0x5fd00000, 0x300000 bytes, mapped to 0xe0100000
[    0.116980] simple-framebuffer 5fd00000.framebuffer: format=x8r8g8b8, mode=1024x768x32, linelength=4096
[    0.129301] Console: switching to colour frame buffer device 128x48
[    0.140802] simple-framebuffer 5fd00000.framebuffer: fb0: simplefb registered!
[    0.149290] NET: Registered protocol family 2
[    0.149820] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.149869] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.149929] TCP: Hash tables configured (established 4096 bind 4096)
[    0.150039] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.150061] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.150191] NET: Registered protocol family 1
[    0.150648] RPC: Registered named UNIX socket transport module.
[    0.150661] RPC: Registered udp transport module.
[    0.150668] RPC: Registered tcp transport module.
[    0.150674] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.152351] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.160478] NFS: Registering the id_resolver key type
[    0.160529] Key type id_resolver registered
[    0.160536] Key type id_legacy registered
[    0.160579] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.161801] random: fast init done
[    0.164716] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.164731] io scheduler noop registered
[    0.164739] io scheduler deadline registered
[    0.164935] io scheduler cfq registered (default)
[    0.164945] io scheduler mq-deadline registered
[    0.164952] io scheduler kyber registered
[    0.165375] sun4i-usb-phy 1c13400.phy: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb0_id_detect_pin@0, deferring probe
[    0.167908] sun5i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.228983] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.231734] console [ttyS0] disabled
[    0.251874] 1c28400.serial: ttyS0 at MMIO 0x1c28400 (irq = 27, base_baud = 1500000) is a U6_16550A
[    0.865037] console [ttyS0] enabled
[    0.872469] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.877600] spi0.0: parser cmdlinepart: 0
[    0.881608] spi0.0: parser ofpart: 0
[    0.886000] libphy: Fixed MDIO Bus: probed
[    0.890500] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.897046] ehci-platform: EHCI generic platform driver
[    0.902504] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.908720] ohci-platform: OHCI generic platform driver
[    0.914457] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.923770] input: 1c22800.lradc as /devices/platform/soc@01c00000/1c22800.lradc/input/input0
[    0.932872] i2c /dev entries driver

离线

#13 2019-01-19 22:57:34

smartcar
会员
注册时间: 2018-02-19
已发帖子: 735
积分: 735

Re: 各位帮我看一下。

@xiongxinjian 这个有什么问题? 是没有然后了吗?

离线

页脚

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

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