您尚未登录。

楼主 #1 2019-11-23 12:11:25

yuliang_8
会员
所在地: 番禺 广州 中国
注册时间: 2019-08-28
已发帖子: 20
积分: 20

lichee-pi zero板子, 用主线uboot, 主线最新5.2.0版本内核后,SD卡启动,显示mmc0- err22

各位大佬,我昨天用Lichee-pi zero的核心板,
    主线uboot + 主线Linux 5.2.0版本内核,编译后,可以进入系统,linux内核启动完成,
    但是在检测/dev/mmc0blkp2,就是进入rootfs文件系统分区时,
    显示mmc0 initial 错误,如下:

Waiting for root device /dev/mmcblk0p2...
[    1.956879] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    1.962750] mmc0: error -22 whilst initialising SD card
[    3.076808] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    3.082679] mmc0: error -22 whilst initialising SD card
[    4.196812] sunxi-mmc 1c0f000.mmc: no support for card's volts

一直在打印 mmc0: error -22, 完整的系统调试口打印信息如下:


-------------------------------------------- 分界线  --------------------------------------------------------------

Connecting to COM4...
Connected.

4157976 bytes read in 239 ms (16.6 MiB/s)
reading sun8i-v3s-blueberrypi-csi-ov2640.dtb
12236 bytes read in 26 ms (459 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfffcb ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.11 (root@debian) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #8 SMP Sat Nov 23 11:49:14 CST 2019
[    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: Blueberry PI
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x43000000
[    0.000000] percpu: Embedded 16 pages/cpu s34572 r8192 d22772 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 earlyprintk rw
[    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: 38556K/65536K available (6144K kernel code, 386K rwdata, 1596K rodata, 1024K init, 244K bss, 10596K reserved, 16384K 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 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+0x2a0/0x430 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.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000021] Switching to timer-based delay loop, resolution 41ns
[    0.000243] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000499] Console: colour dummy device 80x30
[    0.000554] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000569] pid_max: default: 32768 minimum: 301
[    0.000731] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000746] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001535] CPU: Testing write buffer coherency: ok
[    0.002034] /cpus/cpu@0 missing clock-frequency property
[    0.002062] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002797] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002985] rcu: Hierarchical SRCU implementation.
[    0.003495] smp: Bringing up secondary CPUs ...
[    0.003517] smp: Brought up 1 node, 1 CPU
[    0.003526] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003533] CPU: All CPU(s) started in SVC mode.
[    0.004529] devtmpfs: initialized
[    0.008052] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.008331] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008362] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.009172] pinctrl core: initialized pinctrl subsystem
[    0.009730] NET: Registered protocol family 16
[    0.011022] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.012176] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.012192] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.028807] SCSI subsystem initialized
[    0.029412] usbcore: registered new interface driver usbfs
[    0.029469] usbcore: registered new interface driver hub
[    0.029564] usbcore: registered new device driver usb
[    0.029797] media: Linux media interface: v0.10
[    0.029842] videodev: Linux video capture interface: v2.00
[    0.029882] pps_core: LinuxPPS API ver. 1 registered
[    0.029890] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.029912] PTP clock support registered
[    0.030288] Advanced Linux Sound Architecture Driver Initialized.
[    0.031187] clocksource: Switched to clocksource arch_sys_counter
[    0.042386] NET: Registered protocol family 2
[    0.043003] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.043043] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.043070] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.043094] TCP: Hash tables configured (established 1024 bind 1024)
[    0.043242] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.043292] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.043534] NET: Registered protocol family 1
[    0.044500] RPC: Registered named UNIX socket transport module.
[    0.044523] RPC: Registered udp transport module.
[    0.044528] RPC: Registered tcp transport module.
[    0.044534] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.046438] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.054503] NFS: Registering the id_resolver key type
[    0.054560] Key type id_resolver registered
[    0.054568] Key type id_legacy registered
[    0.054684] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.054696] io scheduler mq-deadline registered
[    0.054703] io scheduler kyber registered
[    0.059284] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.126505] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.129694] printk: console [ttyS0] disabled
[    0.149973] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.666204] printk: console [ttyS0] enabled
[    0.694063] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.706366] libphy: Fixed MDIO Bus: probed
[    0.710474] CAN device driver interface
[    0.715030] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.720801] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.727013] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.734342] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.741587] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.746550] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.753347] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.759001] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.764918] libphy: stmmac: probed
[    0.768939] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    0.775284] libphy: mdio_mux: probed
[    0.778887] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    0.785288] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    0.792956] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.799714] musb-sunxi 1c19000.usb: Invalid or missing 'dr_mode' property
[    0.806643] musb-sunxi: probe of 1c19000.usb failed with error -22
[    0.813803] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    0.822996] sun6i-rtc 1c20400.rtc: registered as rtc0
[    0.828059] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.832889] i2c /dev entries driver
[    0.863798] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.882179] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    0.888043] mmc0: error -22 whilst initialising SD card
[    0.905957] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    0.914353] usbcore: registered new interface driver usbhid
[    0.919931] usbhid: USB HID core driver
[    0.925980] NET: Registered protocol family 17
[    0.930464] can: controller area network core (rev 20170425 abi 9)
[    0.936868] NET: Registered protocol family 29
[    0.941363] can: raw protocol (rev 20170425)
[    0.945632] can: broadcast manager protocol (rev 20170425 t)
[    0.951351] can: netlink gateway (rev 20170425) max_hops=1
[    0.957137] Key type dns_resolver registered
[    0.961605] Registering SWP/SWPB emulation handler
[    0.968424] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:00:04 UTC (4)
[    0.976690] ALSA device list:
[    0.979668]   No soundcards found.
[    0.984229] Waiting for root device /dev/mmcblk0p2...
[    1.956879] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    1.962750] mmc0: error -22 whilst initialising SD card
[    3.076808] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    3.082679] mmc0: error -22 whilst initialising SD card
[    4.196812] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    4.202673] mmc0: error -22 whilst initialising SD card
[    5.316810] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    5.322670] mmc0: error -22 whilst initialising SD card
[    6.436809] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    6.442672] mmc0: error -22 whilst initialising SD card
[    6.517038] random: fast init done
[    7.556829] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    7.562686] mmc0: error -22 whilst initialising SD card
[    8.676819] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    8.682677] mmc0: error -22 whilst initialising SD card
[    9.796794] sunxi-mmc 1c0f000.mmc: no support for card's volts
[    9.802659] mmc0: error -22 whilst initialising SD card
[   10.916798] sunxi-mmc 1c0f000.mmc: no support for card's volts
[   10.922657] mmc0: error -22 whilst initialising SD card
[   12.036817] sunxi-mmc 1c0f000.mmc: no support for card's volts
[   12.042675] mmc0: error -22 whilst initialising SD card
[   13.156815] sunxi-mmc 1c0f000.mmc: no support for card's volts
[   13.162678] mmc0: error -22 whilst initialising SD card


一直在打印 mmc0: error -22

但是我晕哥的主线内核启动帖子里面的,zImage,则可以启动正常。就是用我自己的zImage就不行。
哪位大侠知道啥原因?

另附上我的内核.config文件。

config.zip

离线

#2 2019-11-25 15:39:01

1310787957
会员
注册时间: 2019-10-27
已发帖子: 2
积分: 2

Re: lichee-pi zero板子, 用主线uboot, 主线最新5.2.0版本内核后,SD卡启动,显示mmc0- err22

sunxi-mmc 1c0f000.mmc: no support for card's volts

看提示是电压有问题,不支持该卡电压。你看看硬件,比如接触不良什么的

离线

#3 2019-11-25 15:47:22

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

Re: lichee-pi zero板子, 用主线uboot, 主线最新5.2.0版本内核后,SD卡启动,显示mmc0- err22

既然换个zImage可以,那是不是你配置的 5.2有问题





在线

#4 2019-11-25 15:57:06

IAMLIUBO
会员
注册时间: 2019-04-01
已发帖子: 85
积分: 47.5
个人网站

Re: lichee-pi zero板子, 用主线uboot, 主线最新5.2.0版本内核后,SD卡启动,显示mmc0- err22

我之前编译H5的主线内核也遇到了mmc的问题  就是不晓得是不是同一个问题~






唯有爱与科技不可辜负。
知乎专栏:IAMLIUBO的神奇物联网之旅
博客园:IAMLIUBO
Gayhub: IAMLIUBO

离线

页脚

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

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