页次: 1
我是下载的主线内核 https://www.kernel.org/
在设备树中添加vqmmc-supply选项,还是出现了同样的错误,还有个细节,日志上显示将sd卡调速到400khz,而实际在示波器上看到只有200khz,我在Google看到过相似的错误,但没看到解决方案
https://github.com/atmelcorp/atmel-software-package/issues/58 https://github.com/atmelcorp/atmel-software-package/issues/58
芯片:全志A40I
kernel 4.19.113
sd在uboot中可以正确加载,linux启动后出现卡死在初始化SD卡ACMD51命令,我尝试启动initramfs,发现也sd无法识别到,启动日志如下:
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.113 (parallels@parallels-Parallels-Virtual-Platform) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #35 SMP Tue Mar 31 17:09:44 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: Banana Pi BPI-M2-Ultra
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 16 MiB at 0x7ec00000
[ 0.000000] On node 0 totalpages: 262144
[ 0.000000] Normal zone: 1536 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 196608 pages, LIFO batch:63
[ 0.000000] HighMem zone: 65536 pages, LIFO batch:15
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] random: get_random_bytes called from start_kernel+0x98/0x3a8 with crng_init=0
[ 0.000000] percpu: Embedded 15 pages/cpu s31180 r8192 d22068 u61440
[ 0.000000] pcpu-alloc: s31180 r8192 d22068 u61440 alloc=15*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260608
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rw init=/init rootfstype=ext4 rootdelay=10
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 1013008K/1048576K available (6144K kernel code, 421K rwdata, 1528K rodata, 1024K init, 242K bss, 19184K reserved, 16384K cma-reserved, 245748K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7136 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 422 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 243 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000018] Switching to timer-based delay loop, resolution 41ns
[ 0.000172] Console: colour dummy device 80x30
[ 0.000223] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000235] pid_max: default: 32768 minimum: 301
[ 0.000380] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000395] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000964] CPU: Testing write buffer coherency: ok
[ 0.001311] /cpus/cpu@0 missing clock-frequency property
[ 0.001328] /cpus/cpu@1 missing clock-frequency property
[ 0.001341] /cpus/cpu@2 missing clock-frequency property
[ 0.001354] /cpus/cpu@3 missing clock-frequency property
[ 0.001367] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.001823] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.001947] rcu: Hierarchical SRCU implementation.
[ 0.002552] smp: Bringing up secondary CPUs ...
[ 0.013233] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.024034] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.034761] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.034846] smp: Brought up 1 node, 4 CPUs
[ 0.034870] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[ 0.034876] CPU: All CPU(s) started in HYP mode.
[ 0.034882] CPU: Virtualization extensions available.
[ 0.035787] devtmpfs: initialized
[ 0.038772] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.038959] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.038982] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.039771] pinctrl core: initialized pinctrl subsystem
[ 0.040626] NET: Registered protocol family 16
[ 0.041752] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.042561] cpuidle: using governor menu
[ 0.042790] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.042800] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.051481] SCSI subsystem initialized
[ 0.051735] libata version 3.00 loaded.
[ 0.051931] usbcore: registered new interface driver usbfs
[ 0.051972] usbcore: registered new interface driver hub
[ 0.052025] usbcore: registered new device driver usb
[ 0.052205] pps_core: LinuxPPS API ver. 1 registered
[ 0.052213] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.052232] PTP clock support registered
[ 0.052418] Advanced Linux Sound Architecture Driver Initialized.
[ 0.053217] clocksource: Switched to clocksource arch_sys_counter
[ 0.059862] NET: Registered protocol family 2
[ 0.060363] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.060391] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.060479] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.060594] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.060703] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.060773] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.060968] NET: Registered protocol family 1
[ 0.061448] RPC: Registered named UNIX socket transport module.
[ 0.061459] RPC: Registered udp transport module.
[ 0.061465] RPC: Registered tcp transport module.
[ 0.061470] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.062724] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 0.068733] NFS: Registering the id_resolver key type
[ 0.068776] Key type id_resolver registered
[ 0.068783] Key type id_legacy registered
[ 0.069603] bounce: pool size: 64 pages
[ 0.069660] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.069670] io scheduler noop registered
[ 0.069677] io scheduler deadline registered
[ 0.069812] io scheduler cfq registered (default)
[ 0.069821] io scheduler mq-deadline registered
[ 0.069828] io scheduler kyber registered
[ 0.114497] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.117347] libphy: Fixed MDIO Bus: probed
[ 0.117362] CAN device driver interface
[ 0.117626] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.117635] ehci-platform: EHCI generic platform driver
[ 0.117688] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.117705] ohci-platform: OHCI generic platform driver
[ 0.118154] i2c /dev entries driver
[ 0.119442] usbcore: registered new interface driver usbhid
[ 0.119451] usbhid: USB HID core driver
[ 0.120352] NET: Registered protocol family 17
[ 0.120376] can: controller area network core (rev 20170425 abi 9)
[ 0.120464] NET: Registered protocol family 29
[ 0.120474] can: raw protocol (rev 20170425)
[ 0.120482] can: broadcast manager protocol (rev 20170425 t)
[ 0.120493] can: netlink gateway (rev 20170425) max_hops=1
[ 0.120710] Key type dns_resolver registered
[ 0.120844] Registering SWP/SWPB emulation handler
[ 0.132653] sun4i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.133597] console [ttyS0] disabled
[ 0.153760] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 24, base_baud = 1500000) is a U6_16550A
[ 0.901171] console [ttyS0] enabled
[ 0.905829] axp20x-i2c 0-0034: AXP20x variant AXP221 found
[ 0.924518] input: axp20x-pek as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0034/axp221-pek/input/input0
[ 0.934703] dcdc1: supplied by regulator-dummy
[ 0.940214] dcdc2: supplied by regulator-dummy
[ 0.945280] dcdc3: supplied by regulator-dummy
[ 0.950318] dcdc4: supplied by regulator-dummy
[ 0.955356] dcdc5: supplied by regulator-dummy
[ 0.960395] dc1sw: supplied by dcdc1
[ 0.964555] dc5ldo: supplied by vcc-dram
[ 0.969055] aldo1: supplied by regulator-dummy
[ 0.974129] aldo2: supplied by regulator-dummy
[ 0.979162] aldo3: supplied by regulator-dummy
[ 0.984641] eldo1: supplied by regulator-dummy
[ 0.989666] eldo2: supplied by regulator-dummy
[ 0.994363] random: fast init done
[ 0.998061] eldo3: supplied by regulator-dummy
[ 1.003093] dldo1: supplied by regulator-dummy
[ 1.008126] dldo2: supplied by regulator-dummy
[ 1.013169] dldo3: supplied by regulator-dummy
[ 1.018218] dldo4: supplied by regulator-dummy
[ 1.023295] rtc_ldo: supplied by regulator-dummy
[ 1.028064] ldo_io0: supplied by regulator-dummy
[ 1.033695] ldo_io1: supplied by regulator-dummy
[ 1.039660] axp20x-adc axp22x-adc: DMA mask not set
[ 1.045802] axp20x-ac-power-supply axp20x-ac-power-supply: DMA mask not set
[ 1.053039] axp20x-battery-power-supply axp20x-battery-power-supply: DMA mask not set
[ 1.061139] axp20x-usb-power-supply axp20x-usb-power-supply: DMA mask not set
[ 1.068329] axp20x-i2c 0-0034: AXP20X driver loaded
[ 1.073879] sunxi-mmc 1c12000.mmc: Linked as a consumer to regulator.2
[ 1.080428] sunxi-mmc 1c12000.mmc: No vqmmc regulator found
[ 1.086702] mmc0: clock 0Hz busmode 2 powermode 1 cs 0 Vdd 21 width 1 timing 0
[ 1.093938] sunxi-mmc 1c12000.mmc: Powering card up
[ 1.098821] sunxi-mmc 1c12000.mmc: disabling the clock
[ 1.103964] sunxi-mmc 1c12000.mmc: Initial signal voltage of 3.3v
[ 1.123215] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 1 timing 0
[ 1.130862] sunxi-mmc 1c12000.mmc: Ignoring unknown card power state
[ 1.137219] sunxi-mmc 1c12000.mmc: disabling the clock
[ 1.142366] sunxi-mmc 1c12000.mmc: setting clk to 400000, rounded 400000
[ 1.149086] sunxi-mmc 1c12000.mmc: enabling the clock
[ 1.173222] sunxi-mmc 1c12000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[ 1.182244] hctosys: unable to open rtc device (rtc0)
[ 1.187585] ALSA device list:
[ 1.190552] No soundcards found.
[ 1.194317] mmc_rescan start
[ 1.197204] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
[c[ 1.204034] sunxi-mmc 1c12000.mmc: cmd 52(80000174) arg c00 ie 0x0000bbc6 len 0
[ 1.211422] Waiting 10 sec before mounting root device...
[ 1.212903] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000100 idi 00000000
[ 1.223873] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.230918] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
[ 1.238057] mmc0: starting CMD52 arg 80000c08 flags 00000195
[ 1.243728] sunxi-mmc 1c12000.mmc: cmd 52(80000174) arg 80000c08 ie 0x0000bbc6 len 0
[ 1.253031] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000100 idi 00000000
[ 1.260083] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.267124] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
[ 1.274261] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 1 timing 0
[ 1.281908] sunxi-mmc 1c12000.mmc: Ignoring unknown card power state
[ 1.288265] sunxi-mmc 1c12000.mmc: disabling the clock
[ 1.293433] sunxi-mmc 1c12000.mmc: setting clk to 400000, rounded 400000
[ 1.300130] sunxi-mmc 1c12000.mmc: enabling the clock
[ 1.313212] mmc0: starting CMD0 arg 00000000 flags 000000c0
[ 1.318782] sunxi-mmc 1c12000.mmc: cmd 0(80008000) arg 0 ie 0x0000bbc6 len 0
[ 1.326540] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.333581] mmc0: req done (CMD0): 0: 00000000 00000000 00000000 00000000
[ 1.343211] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 1 timing 0
[ 1.350857] sunxi-mmc 1c12000.mmc: Ignoring unknown card power state
[ 1.357210] sunxi-mmc 1c12000.mmc: disabling the clock
[ 1.362370] sunxi-mmc 1c12000.mmc: setting clk to 400000, rounded 400000
[ 1.369072] sunxi-mmc 1c12000.mmc: enabling the clock
[ 1.383212] mmc0: starting CMD8 arg 000001aa flags 000002f5
[ 1.388781] sunxi-mmc 1c12000.mmc: cmd 8(80000148) arg 1aa ie 0x0000bbc6 len 0
[ 1.396590] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.403631] mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
[ 1.410419] mmc0: starting CMD5 arg 00000000 flags 000002e1
[ 1.415997] sunxi-mmc 1c12000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[ 1.424605] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000100 idi 00000000
[ 1.431649] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.438697] mmc0: req failed (CMD5): -110, retrying...
[ 1.443841] sunxi-mmc 1c12000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[ 1.452445] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000100 idi 00000000
[ 1.459496] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.466544] mmc0: req failed (CMD5): -110, retrying...
[ 1.471679] sunxi-mmc 1c12000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[ 1.480295] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000100 idi 00000000
[ 1.487347] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.494394] mmc0: req failed (CMD5): -110, retrying...
[ 1.499529] sunxi-mmc 1c12000.mmc: cmd 5(80000045) arg 0 ie 0x0000bbc6 len 0
[ 1.508145] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000100 idi 00000000
[ 1.515197] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.522237] mmc0: req done (CMD5): -110: 00000000 00000000 00000000 00000000
[ 1.529282] mmc attach sd start
[ 1.532424] mmc0: starting CMD55 arg 00000000 flags 000000f5
[ 1.538088] sunxi-mmc 1c12000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
[ 1.545830] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.552871] mmc0: req done (CMD55): 0: 00400120 00000000 00000000 00000000
[ 1.559746] mmc0: starting CMD41 arg 00000000 flags 000000e1
[ 1.565411] sunxi-mmc 1c12000.mmc: cmd 41(80000069) arg 0 ie 0x0000bbc6 len 0
[ 1.573130] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.580170] mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
[ 1.587043] mmc sd init card start
[ 1.590445] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 1 timing 0
[ 1.598100] sunxi-mmc 1c12000.mmc: Ignoring unknown card power state
[ 1.604452] sunxi-mmc 1c12000.mmc: disabling the clock
[ 1.609611] sunxi-mmc 1c12000.mmc: setting clk to 400000, rounded 400000
[ 1.616314] sunxi-mmc 1c12000.mmc: enabling the clock
[ 1.623211] mmc0: starting CMD0 arg 00000000 flags 000000c0
[ 1.628779] sunxi-mmc 1c12000.mmc: cmd 0(80008000) arg 0 ie 0x0000bbc6 len 0
[ 1.636540] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.643581] mmc0: req done (CMD0): 0: 00ff8000 00000000 00000000 00000000
[ 1.653210] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 1 timing 0
[ 1.660856] sunxi-mmc 1c12000.mmc: Ignoring unknown card power state
[ 1.667209] sunxi-mmc 1c12000.mmc: disabling the clock
[ 1.672370] sunxi-mmc 1c12000.mmc: setting clk to 400000, rounded 400000
[ 1.679072] sunxi-mmc 1c12000.mmc: enabling the clock
[ 1.693211] mmc0: starting CMD8 arg 000001aa flags 000002f5
[ 1.698779] sunxi-mmc 1c12000.mmc: cmd 8(80000148) arg 1aa ie 0x0000bbc6 len 0
[ 1.706625] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.713666] mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
[ 1.720454] mmc0: starting CMD55 arg 00000000 flags 000000f5
[ 1.726119] sunxi-mmc 1c12000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
[ 1.733865] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.740906] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
[ 1.747780] mmc0: starting CMD41 arg 40200000 flags 000000e1
[ 1.753445] sunxi-mmc 1c12000.mmc: cmd 41(80000069) arg 40200000 ie 0x0000bbc6 len 0
[ 1.761769] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.768810] mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
[ 1.793209] mmc0: starting CMD55 arg 00000000 flags 000000f5
[ 1.798865] sunxi-mmc 1c12000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
[ 1.806585] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.813625] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
[ 1.820499] mmc0: starting CMD41 arg 40200000 flags 000000e1
[ 1.826164] sunxi-mmc 1c12000.mmc: cmd 41(80000069) arg 40200000 ie 0x0000bbc6 len 0
[ 1.834495] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.841536] mmc0: req done (CMD41): 0: 00ff8000 00000000 00000000 00000000
[ 1.863209] mmc0: starting CMD55 arg 00000000 flags 000000f5
[ 1.868865] sunxi-mmc 1c12000.mmc: cmd 55(80000177) arg 0 ie 0x0000bbc6 len 0
[ 1.876585] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.883626] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
[ 1.890500] mmc0: starting CMD41 arg 40200000 flags 000000e1
[ 1.896165] sunxi-mmc 1c12000.mmc: cmd 41(80000069) arg 40200000 ie 0x0000bbc6 len 0
[ 1.904495] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.911536] mmc0: req done (CMD41): 0: c0ff8000 00000000 00000000 00000000
[ 1.918411] mmc0: starting CMD2 arg 00000000 flags 00000007
[ 1.923989] sunxi-mmc 1c12000.mmc: cmd 2(800001c2) arg 0 ie 0x0000bbc6 len 0
[ 1.932060] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.939101] mmc0: req done (CMD2): 0: 03534453 43313647 80445f0e f20128c1
[ 1.945895] mmc0: starting CMD3 arg 00000000 flags 00000075
[ 1.951463] sunxi-mmc 1c12000.mmc: cmd 3(80000143) arg 0 ie 0x0000bbc6 len 0
[ 1.959145] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.966185] mmc0: req done (CMD3): 0: aaaa0520 00000000 00000000 00000000
[ 1.972974] mmc0: starting CMD9 arg aaaa0000 flags 00000007
[ 1.978553] sunxi-mmc 1c12000.mmc: cmd 9(800001c9) arg aaaa0000 ie 0x0000bbc6 len 0
[ 1.987265] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 1.994306] mmc0: req done (CMD9): 0: 400e0032 5b590000 76b27f80 0a404013
[ 2.001096] mmc0: starting CMD7 arg aaaa0000 flags 00000015
[ 2.006674] sunxi-mmc 1c12000.mmc: cmd 7(80000147) arg aaaa0000 ie 0x0000bbc6 len 0
[ 2.014945] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 2.021986] mmc0: req done (CMD7): 0: 00000700 00000000 00000000 00000000
[ 2.028771] run mmc_app_send_scr
[ 2.031998] mmc0: starting CMD55 arg aaaa0000 flags 00000095
[ 2.037662] sunxi-mmc 1c12000.mmc: cmd 55(80000177) arg aaaa0000 ie 0x0000bbc6 len 0
[ 2.046025] sunxi-mmc 1c12000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
[ 2.053057] mmc0: req done (CMD55): 0: 00000920 00000000 00000000 00000000
[ 2.059934] mmc0: starting CMD51 arg 00000000 flags 000000b5
[ 2.065596] mmc0: blksz 8 blocks 1 flags 00000200 tsac 100 ms nsac 0
[ 2.072299] sunxi-mmc 1c12000.mmc: cmd 51(80002373) arg 0 ie 0x0000bbca len 8
[ 11.373413] VFS: Cannot open root device "mmcblk0p2" or unknown-block(0,0): error -6
[ 11.381146] Please append a correct "root=" boot option; here are the available partitions:
[ 11.389511] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 11.397767] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 4.19.113 #35
[ 11.403937] Hardware name: Allwinner sun8i Family
[ 11.408664] [<c010ee84>] (unwind_backtrace) from [<c010b71c>] (show_stack+0x10/0x14)
[ 11.416404] [<c010b71c>] (show_stack) from [<c066aeb8>] (dump_stack+0x94/0xa8)
[ 11.423623] [<c066aeb8>] (dump_stack) from [<c011dd34>] (panic+0xf0/0x25c)
[ 11.430496] [<c011dd34>] (panic) from [<c0901224>] (mount_block_root+0x1a8/0x290)
[ 11.437972] [<c0901224>] (mount_block_root) from [<c0901450>] (mount_root+0x144/0x160)
[ 11.445880] [<c0901450>] (mount_root) from [<c09015b0>] (prepare_namespace+0x144/0x188)
[ 11.453877] [<c09015b0>] (prepare_namespace) from [<c0900e54>] (kernel_init_freeable+0x1d0/0x1e0)
[ 11.462740] [<c0900e54>] (kernel_init_freeable) from [<c067e4a8>] (kernel_init+0x8/0x10c)
[ 11.470911] [<c067e4a8>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[ 11.478469] Exception stack(0xef05bfb0 to 0xef05bff8)
[ 11.483515] bfa0: 00000000 00000000 00000000 00000000
[ 11.491682] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 11.499848] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 11.506463] CPU1: stopping
[ 11.509172] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.19.113 #35
[ 11.515340] Hardware name: Allwinner sun8i Family
[ 11.520046] [<c010ee84>] (unwind_backtrace) from [<c010b71c>] (show_stack+0x10/0x14)
[ 11.527781] [<c010b71c>] (show_stack) from [<c066aeb8>] (dump_stack+0x94/0xa8)
[ 11.534997] [<c066aeb8>] (dump_stack) from [<c010e0a0>] (handle_IPI+0x1c8/0x1e8)
[ 11.542391] [<c010e0a0>] (handle_IPI) from [<c037a788>] (gic_handle_irq+0x8c/0x90)
[ 11.549956] [<c037a788>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/0x90)
[ 11.557426] Exception stack(0xef09bf60 to 0xef09bfa8)
[ 11.562474] bf60: 00000000 00003834 ef7c63e8 c0118180 ffffe000 c0a04c70 c0a04cac 00000002
[ 11.570642] bf80: 00000000 c0a04c48 c0951370 00000000 c0a04c70 ef09bfb0 c0108754 c0108758
[ 11.578805] bfa0: 60000013 ffffffff
[ 11.582296] [<c0101a0c>] (__irq_svc) from [<c0108758>] (arch_cpu_idle+0x38/0x3c)
[ 11.589689] [<c0108758>] (arch_cpu_idle) from [<c014611c>] (do_idle+0x1b4/0x290)
[ 11.597080] [<c014611c>] (do_idle) from [<c0146494>] (cpu_startup_entry+0x18/0x1c)
[ 11.604641] [<c0146494>] (cpu_startup_entry) from [<4010240c>] (0x4010240c)
[ 11.611593] CPU2: stopping
[ 11.614299] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.19.113 #35
[ 11.620468] Hardware name: Allwinner sun8i Family
[ 11.625172] [<c010ee84>] (unwind_backtrace) from [<c010b71c>] (show_stack+0x10/0x14)
[ 11.632907] [<c010b71c>] (show_stack) from [<c066aeb8>] (dump_stack+0x94/0xa8)
[ 11.640122] [<c066aeb8>] (dump_stack) from [<c010e0a0>] (handle_IPI+0x1c8/0x1e8)
[ 11.647512] [<c010e0a0>] (handle_IPI) from [<c037a788>] (gic_handle_irq+0x8c/0x90)
[ 11.655075] [<c037a788>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/0x90)
[ 11.662545] Exception stack(0xef09df60 to 0xef09dfa8)
[ 11.667593] df60: 00000000 0000361c ef7d53e8 c0118180 ffffe000 c0a04c70 c0a04cac 00000004
[ 11.675761] df80: 00000000 c0a04c48 c0951370 00000000 c0a04c70 ef09dfb0 c0108754 c0108758
[ 11.683925] dfa0: 60000013 ffffffff
[ 11.687414] [<c0101a0c>] (__irq_svc) from [<c0108758>] (arch_cpu_idle+0x38/0x3c)
[ 11.694804] [<c0108758>] (arch_cpu_idle) from [<c014611c>] (do_idle+0x1b4/0x290)
[ 11.702193] [<c014611c>] (do_idle) from [<c0146494>] (cpu_startup_entry+0x18/0x1c)
[ 11.709753] [<c0146494>] (cpu_startup_entry) from [<4010240c>] (0x4010240c)
[ 11.716704] CPU0: stopping
[ 11.719412] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.19.113 #35
[ 11.725582] Hardware name: Allwinner sun8i Family
[ 11.730287] [<c010ee84>] (unwind_backtrace) from [<c010b71c>] (show_stack+0x10/0x14)
[ 11.738022] [<c010b71c>] (show_stack) from [<c066aeb8>] (dump_stack+0x94/0xa8)
[ 11.745237] [<c066aeb8>] (dump_stack) from [<c010e0a0>] (handle_IPI+0x1c8/0x1e8)
[ 11.752627] [<c010e0a0>] (handle_IPI) from [<c037a788>] (gic_handle_irq+0x8c/0x90)
[ 11.760189] [<c037a788>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/0x90)
[ 11.767659] Exception stack(0xc0a01f10 to 0xc0a01f58)
[ 11.772705] 1f00: 00000000 00003000 ef7b73e8 c0118180
[ 11.780873] 1f20: ffffe000 c0a04c70 c0a04cac 00000001 00000000 c0a04c48 c0951370 00000000
[ 11.789039] 1f40: c0a04c70 c0a01f60 c0108754 c0108758 60000013 ffffffff
[ 11.795649] [<c0101a0c>] (__irq_svc) from [<c0108758>] (arch_cpu_idle+0x38/0x3c)
[ 11.803038] [<c0108758>] (arch_cpu_idle) from [<c014611c>] (do_idle+0x1b4/0x290)
[ 11.810427] [<c014611c>] (do_idle) from [<c0146494>] (cpu_startup_entry+0x18/0x1c)
[ 11.817989] [<c0146494>] (cpu_startup_entry) from [<c0900c5c>] (start_kernel+0x380/0x3a8)
[ 11.826157] [<c0900c5c>] (start_kernel) from [<00000000>] ( (null))
[ 11.832511] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
设备树配置如下:
mmc3: mmc@1c12000 {
compatible = "allwinner,sun8i-r40-mmc",
"allwinner,sun50i-a64-mmc";
reg = <0x01c12000 0x1000>;
clocks = <&ccu CLK_BUS_MMC3>, <&ccu CLK_MMC3>;
clock-names = "ahb", "mmc";
resets = <&ccu RST_BUS_MMC3>;
reset-names = "ahb";
pinctrl-0 = <&mmc3_pins>;
pinctrl-names = "default";
interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
};
&mmc3 {
vmmc-supply = <®_vcc3v3>;
bus-width = <4>;
broken-cd;
status = "okay";
};
页次: 1