您尚未登录。

楼主 #1 2019-09-26 10:25:15

luckymist
会员
注册时间: 2019-09-18
已发帖子: 50
积分: 50

请教:kernel启动过程中musb报错crash掉是什么原因?

开机完整log如下:

-Boot SPL 2018.01-05679-g013ca45 (Sep 25 2019 - 16:44:44)
DRAM: 32 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
mmc_init: -95, time 22
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI


U-Boot 2018.01-05679-g013ca45 (Sep 25 2019 - 16:44:44 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 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)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
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 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e5f000, end 80e64047 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.0-licheepi-nano+ (x@x-HP-Z600) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #2 Wed Sep 25 21:07:22 CST 2019
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 22672K/32768K available (6144K kernel code, 212K rwdata, 1388K rodata, 1024K init, 243K bss, 10096K 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 : 0xc2800000 - 0xff800000   ( 976 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 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 - 0xc0a350c0   ( 213 kB)
[    0.000000]        .bss : 0xc0a3a4cc - 0xc0a774ac   ( 244 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000048] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000120] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000746] Console: colour dummy device 80x30
[    0.001664] console [tty0] enabled
[    0.001765] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070298] pid_max: default: 32768 minimum: 301
[    0.070698] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070813] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072428] CPU: Testing write buffer coherency: ok
[    0.074379] Setting up static identity map for 0x80100000 - 0x80100058
[    0.077081] devtmpfs: initialized
[    0.083885] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.084048] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.084354] pinctrl core: initialized pinctrl subsystem
[    0.086456] random: get_random_u32 called from bucket_table_alloc+0x80/0x1a4 with crng_init=0
[    0.086840] NET: Registered protocol family 16
[    0.088789] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.091013] cpuidle: using governor menu
[    0.117209] SCSI subsystem initialized
[    0.117697] usbcore: registered new interface driver usbfs
[    0.117947] usbcore: registered new interface driver hub
[    0.118220] usbcore: registered new device driver usb
[    0.118787] pps_core: LinuxPPS API ver. 1 registered
[    0.118873] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.119010] PTP clock support registered
[    0.119610] Advanced Linux Sound Architecture Driver Initialized.
[    0.122981] clocksource: Switched to clocksource timer
[    0.151296] NET: Registered protocol family 2
[    0.152955] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.153260] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.153352] TCP: Hash tables configured (established 1024 bind 1024)
[    0.153757] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.153878] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.154441] NET: Registered protocol family 1
[    0.155640] RPC: Registered named UNIX socket transport module.
[    0.155755] RPC: Registered udp transport module.
[    0.155806] RPC: Registered tcp transport module.
[    0.155850] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.156935] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.158761] Initialise system trusted keyrings
[    0.159493] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.175215] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.177731] NFS: Registering the id_resolver key type
[    0.177925] Key type id_resolver registered
[    0.177984] Key type id_legacy registered
[    0.178150] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.180021] random: fast init done
[    0.192875] Key type asymmetric registered
[    0.193112] Asymmetric key parser 'x509' registered
[    0.193412] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.193522] io scheduler noop registered
[    0.193570] io scheduler deadline registered
[    0.194422] io scheduler cfq registered (default)
[    0.194524] io scheduler mq-deadline registered
[    0.194576] io scheduler kyber registered
[    0.195850] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.206185] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.388336] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.415786] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[    0.907136] console [ttyS0] enabled
[    0.917991] panel-simple panel: panel supply power not found, using dummy regulator
[    0.927424] SCSI Media Changer driver v0.25 
[    0.935586] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.940471] 4 ofpart partitions found on MTD device spi0.0
[    0.946137] Creating 4 MTD partitions on "spi0.0":
[    0.951004] 0x000000000000-0x000000070000 : "u-boot"
[    0.958964] 0x000000100000-0x000000110000 : "dtb"
[    0.966639] 0x000000110000-0x000000510000 : "kernel"
[    0.974447] 0x000000510000-0x000001000000 : "rootfs"
[    0.982807] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.989566] ehci-platform: EHCI generic platform driver
[    0.995228] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.001521] ohci-platform: OHCI generic platform driver
[    1.007370] usbcore: registered new interface driver usb-storage
[    1.014469] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.023664] i2c /dev entries driver
[    1.083121] sunxi-mmc 1c0f000.mmc: base:0xc28a6000 irq:19
[    1.090845] usbcore: registered new interface driver usbhid
[    1.096648] usbhid: USB HID core driver
[    1.119217] NET: Registered protocol family 17
[    1.124169] Key type dns_resolver registered
[    1.130883] Loading compiled-in X.509 certificates
[    1.147251] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.154114] [drm] No driver support for vblank timestamp query.
[    1.161061] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0737ce8)
[    1.170120] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc073709c)
[    1.184405] sun4i-drm display-engine: fb0:  frame buffer device
[    1.191657] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.200907] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.212680] ------------[ cut here ]------------
[    1.217563] WARNING: CPU: 0 PID: 3 at drivers/usb/musb/sunxi.c:411 sunxi_musb_ep_offset+0x3c/0x54
[    1.226555] sunxi_musb_ep_offset called with non 0 offset
[    1.231986] Modules linked in:
[    1.235133] CPU: 0 PID: 3 Comm: kworker/0:0 Not tainted 4.14.0-licheepi-nano+ #2
[    1.242562] Hardware name: Allwinner suniv Family
[    1.247376] Workqueue: events deferred_probe_work_func
[    1.252625] [<c010e50c>] (unwind_backtrace) from [<c010b68c>] (show_stack+0x10/0x14)
[    1.260515] [<c010b68c>] (show_stack) from [<c011666c>] (__warn+0xd4/0xfc)
[    1.267506] [<c011666c>] (__warn) from [<c01166cc>] (warn_slowpath_fmt+0x38/0x48)
[    1.275120] [<c01166cc>] (warn_slowpath_fmt) from [<c0475f98>] (sunxi_musb_ep_offset+0x3c/0x54)
[    1.283967] [<c0475f98>] (sunxi_musb_ep_offset) from [<c0469aa4>] (ep_config_from_hw+0xc4/0x158)
[    1.292846] [<c0469aa4>] (ep_config_from_hw) from [<c046b718>] (musb_probe+0x8dc/0xbec)
[    1.300991] [<c046b718>] (musb_probe) from [<c03f1b08>] (platform_drv_probe+0x50/0xac)
[    1.309062] [<c03f1b08>] (platform_drv_probe) from [<c03f0320>] (driver_probe_device+0x234/0x2f0)
[    1.318080] [<c03f0320>] (driver_probe_device) from [<c03ee940>] (bus_for_each_drv+0x48/0x94)
[    1.326739] [<c03ee940>] (bus_for_each_drv) from [<c03f0008>] (__device_attach+0xac/0x114)
[    1.335136] [<c03f0008>] (__device_attach) from [<c03ef614>] (bus_probe_device+0x84/0x8c)
[    1.343434] [<c03ef614>] (bus_probe_device) from [<c03eda9c>] (device_add+0x370/0x58c)
[    1.351421] [<c03eda9c>] (device_add) from [<c03f1920>] (platform_device_add+0x100/0x218)
[    1.359719] [<c03f1920>] (platform_device_add) from [<c03f22f0>] (platform_device_register_full+0xec/0x100)
[    1.369585] [<c03f22f0>] (platform_device_register_full) from [<c0475bf4>] (sunxi_musb_probe+0x244/0x408)
[    1.379273] [<c0475bf4>] (sunxi_musb_probe) from [<c03f1b08>] (platform_drv_probe+0x50/0xac)
[    1.387843] [<c03f1b08>] (platform_drv_probe) from [<c03f0320>] (driver_probe_device+0x234/0x2f0)
[    1.396848] [<c03f0320>] (driver_probe_device) from [<c03ee940>] (bus_for_each_drv+0x48/0x94)
[    1.405504] [<c03ee940>] (bus_for_each_drv) from [<c03f0008>] (__device_attach+0xac/0x114)
[    1.413895] [<c03f0008>] (__device_attach) from [<c03ef614>] (bus_probe_device+0x84/0x8c)
[    1.422147] [<c03ef614>] (bus_probe_device) from [<c03efa50>] (deferred_probe_work_func+0x48/0x140)
[    1.431327] [<c03efa50>] (deferred_probe_work_func) from [<c0129a7c>] (process_one_work+0x1d8/0x3ec)
[    1.440595] [<c0129a7c>] (process_one_work) from [<c0129f2c>] (worker_thread+0x29c/0x5b8)
[    1.448907] [<c0129f2c>] (worker_thread) from [<c012efc8>] (kthread+0x120/0x138)
[    1.456445] [<c012efc8>] (kthread) from [<c0107da8>] (ret_from_fork+0x14/0x2c)
[    1.463765] ---[ end trace 9e17022f5770202a ]---
[    1.468438] musb-sunxi 1c13000.usb: Error unknown readb offset 128
[    1.474804] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -22
[    1.482659] musb-hdrc: probe of musb-hdrc.1.auto failed with error -22
[    1.490240] ALSA device list:
[    1.493436]   #0: Loopback 1
[    1.593674] random: crng init done
[    2.122276] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[    2.130347] devtmpfs: mounted
[    2.137921] Freeing unused kernel memory: 1024K

离线

#2 2019-09-26 10:32:57

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

Re: 请教:kernel启动过程中musb报错crash掉是什么原因?

貌似有位朋友解决了, 得找一下帖子.





在线

#3 2019-09-26 10:37:53

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

Re: 请教:kernel启动过程中musb报错crash掉是什么原因?

你试一试 checkout 大神这个修改: https://whycan.cn/t_1672.html#p22720

直接按照上面各位大佬的步骤patch到4.14内核是没问题的,但荔枝派官方4.14-exp版本内核有个bug,就是105楼@Peter所遇到的
填坑:修改drivers/usb/musb/sunxi.c:742行

-      of_device_is_compatible(np, "allwinner,suniv-musb")) {
+      of_device_is_compatible(np, "allwinner,suniv-f1c100s-musb")) {




在线

页脚

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

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