您尚未登录。

楼主 #1 2021-04-09 17:48:59

linxx
会员
注册时间: 2020-11-27
已发帖子: 4
积分: 7

求助:全志A33芯片sd卡kernel启动时无法挂载mmc2

全志A33的电路板,sd卡是mmc0接口,emmc位于mmc2上。从sd卡启动,uboot阶段可以看到emmc也正常在线,但是启动kenerl后, 显示了一条错误mmc1: error -110 whilst initialising MMC card,应该是emmc没有正常初始化吧?请问该如何解决呢。uboot用的是sunxi-u-boot,内核用的是Linux version 5.12.0

uboot的输出

U-Boot SPL 2019.01-rc3-g829407b58f-dirty (Apr 08 2021 - 22:29:49 -0700)
DRAM: 512 MiB
Trying to boot from MMC1


U-Boot 2019.01-rc3-g829407b58f-dirty (Apr 08 2021 - 22:29:49 -0700) Allwinner Technology

CPU:   Allwinner A33 (SUN8I 1667)
Model: Sinlinx SinA33
DRAM:  512 MiB
MMC:   MMC0: 01c20060 = 0x4540, 01c20088 = 0x8140030b, 01c202c0 = 0x4540
MMC2: 01c20060 = 0x4540, 01c20090 = 0x80500000, 01c202c0 = 0x4540
mmc@1c0f000: 0, mmc@1c11000: 1
Loading Environment from FAT... Unable to use mmc 1:1... Setting up a 800x480 lcd console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
Allwinner mUSB OTG (Peripheral)
Net:
Warning: usb_ether using MAC address from ROM
eth0: usb_ether
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
scanning bus 0 for devices... 3 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 4 seconds
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
302 bytes read in 3 ms (97.7 KiB/s)
## Executing script at 43100000
4882072 bytes read in 227 ms (20.5 MiB/s)
23459 bytes read in 2 ms (11.2 MiB/s)
## Flattened Device Tree blob at 49000000
   Booting using the fdt blob at 0x49000000
   Loading Device Tree to 49ff7000, end 49fffba2 ... OK

dmesg的输出

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.12.0-rc5-00017-g5e46d1b78a03 (kian@ubuntu) (arm-linux-gnueabi-gcc (Linaro GCC 7.2-2017.11) 7.2.1 20171011, GNU ld (Linaro_Binutils-2017.11) 2.28.2.20170706) #5 SMP Wed Apr 7 02:11:04 PDT 2021
[    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: Sinlinx SinA33
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x5ec00000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000040000000-0x000000005fe88fff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000005fe88fff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fe88fff]
[    0.000000] On node 0 totalpages: 130697
[    0.000000]   Normal zone: 1022 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 130697 pages, LIFO batch:31
[    0.000000] percpu: Embedded 15 pages/cpu s31500 r8192 d21748 u61440
[    0.000000] pcpu-alloc: s31500 r8192 d21748 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: 129675
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk2p2 earlyprintk rw
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 489080K/522788K available (7168K kernel code, 908K rwdata, 1988K rodata, 1024K init, 244K bss, 17324K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    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=4
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x34c/0x4dc with crng_init=0
[    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.000002] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000021] Switching to timer-based delay loop, resolution 41ns
[    0.000221] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000678] Console: colour dummy device 80x30
[    0.000739] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000761] pid_max: default: 32768 minimum: 301
[    0.000903] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000925] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001646] CPU: Testing write buffer coherency: ok
[    0.001980] /cpus/cpu@0 missing clock-frequency property
[    0.002021] /cpus/cpu@1 missing clock-frequency property
[    0.002043] /cpus/cpu@2 missing clock-frequency property
[    0.002067] /cpus/cpu@3 missing clock-frequency property
[    0.002083] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002723] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002851] rcu: Hierarchical SRCU implementation.
[    0.003343] smp: Bringing up secondary CPUs ...
[    0.005118] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.007009] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.008813] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.008916] smp: Brought up 1 node, 4 CPUs
[    0.008944] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    0.008957] CPU: All CPU(s) started in SVC mode.
[    0.009668] devtmpfs: initialized
[    0.015493] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.015729] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.015758] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.016568] pinctrl core: initialized pinctrl subsystem
[    0.017701] NET: Registered protocol family 16
[    0.019119] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.020158] thermal_sys: Registered thermal governor 'step_wise'
[    0.020750] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.020779] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.039574] SCSI subsystem initialized
[    0.039788] libata version 3.00 loaded.
[    0.040055] usbcore: registered new interface driver usbfs
[    0.040119] usbcore: registered new interface driver hub
[    0.040165] usbcore: registered new device driver usb
[    0.040345] mc: Linux media interface: v0.10
[    0.040382] videodev: Linux video capture interface: v2.00
[    0.040529] pps_core: LinuxPPS API ver. 1 registered
[    0.040540] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.040566] PTP clock support registered
[    0.040935] Advanced Linux Sound Architecture Driver Initialized.
[    0.041831] clocksource: Switched to clocksource arch_sys_counter
[    0.042625] simple-framebuffer 5fe89000.framebuffer: framebuffer at 0x5fe89000, 0x177000 bytes, mapped to 0x(ptrval)
[    0.042653] simple-framebuffer 5fe89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    0.049187] Console: switching to colour frame buffer device 100x30
[    0.055295] simple-framebuffer 5fe89000.framebuffer: fb0: simplefb registered!
[    0.062362] NET: Registered protocol family 2
[    0.062892] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.062933] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.062988] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.063056] TCP: Hash tables configured (established 4096 bind 4096)
[    0.063176] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.063226] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.063414] NET: Registered protocol family 1
[    0.063995] RPC: Registered named UNIX socket transport module.
[    0.064021] RPC: Registered udp transport module.
[    0.064031] RPC: Registered tcp transport module.
[    0.064039] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.065611] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.071555] NFS: Registering the id_resolver key type
[    0.071618] Key type id_resolver registered
[    0.071629] Key type id_legacy registered
[    0.071714] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.071731] io scheduler mq-deadline registered
[    0.071742] io scheduler kyber registered
[    0.076701] sun8i-a33-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.077845] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    0.078048] pwm-backlight backlight: supply power not found, using dummy regulator
[    0.125724] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.127522] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
[    0.128454] printk: console [ttyS0] disabled
[    0.148679] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 41, base_baud = 1500000) is a U6_16550A
[    0.820203] printk: console [ttyS0] enabled
[    0.826396] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    0.838621] panel-simple panel: supply power not found, using dummy regulator
[    0.845988] panel-simple panel: Specify missing connector_type
[    0.854972] lima 1c40000.gpu: gp - mali400 version major 1 minor 1
[    0.861203] lima 1c40000.gpu: pp0 - mali400 version major 1 minor 1
[    0.867554] lima 1c40000.gpu: pp1 - mali400 version major 1 minor 1
[    0.873899] lima 1c40000.gpu: l2 cache 64K, 4-way, 64byte cache line, 64bit external bus
[    0.882382] lima 1c40000.gpu: bus rate = 200000000
[    0.887181] lima 1c40000.gpu: mod rate = 384000000
[    0.892073] lima 1c40000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19
[    0.900415] lima 1c40000.gpu: Failed to register cooling device
[    0.906772] [drm] Initialized lima 1.1.0 20191231 for 1c40000.gpu on minor 0
[    0.917127] libphy: Fixed MDIO Bus: probed
[    0.922095] CAN device driver interface
[    0.926635] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.933203] ehci-platform: EHCI generic platform driver
[    0.938732] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.944356] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.952418] ehci-platform 1c1a000.usb: irq 34, io mem 0x01c1a000
[    0.981832] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.988718] hub 1-0:1.0: USB hub found
[    0.992530] hub 1-0:1.0: 1 port detected
[    0.997015] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.003231] ohci-platform: OHCI generic platform driver
[    1.008736] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.015394] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.023372] ohci-platform 1c1a400.usb: irq 35, io mem 0x01c1a400
[    1.096487] hub 2-0:1.0: USB hub found
[    1.100273] hub 2-0:1.0: 1 port detected
[    1.105192] usb_phy_generic usb_phy_generic.0.auto: supply vcc not found, using dummy regulator
[    1.116873] sun6i-rtc 1f00000.rtc: registered as rtc0
[    1.122017] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-04T01:16:44 UTC (263804)
[    1.130376] sun6i-rtc 1f00000.rtc: RTC enabled
[    1.135177] i2c /dev entries driver
[    1.140563] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.149399] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.149642] sun4i-ss 1c15000.crypto-engine: Die ID 5
[    1.152206] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[    1.173399] usbcore: registered new interface driver usbhid
[    1.178986] usbhid: USB HID core driver
[    1.185973] NET: Registered protocol family 17
[    1.190455] can: controller area network core
[    1.194918] NET: Registered protocol family 29
[    1.199364] can: raw protocol
[    1.202345] can: broadcast manager protocol
[    1.206531] can: netlink gateway - max_hops=1
[    1.211109] Key type dns_resolver registered
[    1.215517] Registering SWP/SWPB emulation handler
[    1.230375] sun8i-a23-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    1.238009] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    1.246711] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.255353] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    1.264708] panel-simple panel: supply power not found, using dummy regulator
[    1.272019] panel-simple panel: Specify missing connector_type
[    1.279694] sun8i-a23-r-pinctrl 1f02c00.pinctrl: supply vcc-pl not found, using dummy regulator
[    1.279797] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[    1.280011] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.288756] sunxi-rsb 1f03400.rsb: RSB running at 3000000 Hz
[    1.311532] axp20x-rsb sunxi-rsb-3a3: AXP20x variant AXP223 found
[    1.319370] input: axp20x-pek as /devices/platform/soc@1c00000/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/input/input0
[    1.330621] axp22x-adc: Failed to locate of_node [id: -1]
[    1.337062] axp20x-battery-power-supply axp20x-battery-power-supply: DMA mask not set
[    1.345965] vcc-3v0: supplied by regulator-dummy
[    1.350862] vdd-sys: supplied by regulator-dummy
[    1.355770] vdd-cpu: supplied by regulator-dummy
[    1.360616] dcdc4: supplied by regulator-dummy
[    1.365387] vcc-dram: supplied by regulator-dummy
[    1.370339] vcc-lcd: supplied by vcc-3v0
[    1.371841] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    1.381673] vdd-cpus: supplied by vcc-dram
[    1.386167] vcc-io: supplied by regulator-dummy
[    1.391077] vdd-dll: supplied by regulator-dummy
[    1.396093] vcc-pll-avcc: supplied by regulator-dummy
[    1.401378] eldo1: supplied by vcc-3v0
[    1.405478] eldo2: supplied by vcc-3v0
[    1.409540] eldo3: supplied by vcc-3v0
[    1.413688] dldo1: supplied by regulator-dummy
[    1.418478] dldo2: supplied by regulator-dummy
[    1.423202] dldo3: supplied by regulator-dummy
[    1.427894] dldo4: supplied by regulator-dummy
[    1.432582] vcc-rtc: supplied by regulator-dummy
[    1.437465] ldo_io0: supplied by regulator-dummy
[    1.442329] ldo_io1: supplied by regulator-dummy
[    1.447594] axp20x-ac-power-supply axp20x-ac-power-supply: DMA mask not set
[    1.455771] axp20x-rsb sunxi-rsb-3a3: AXP20X driver loaded
[    1.461699] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    1.470374] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.478956] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    1.488349] panel-simple panel: supply power not found, using dummy regulator
[    1.495667] panel-simple panel: Specify missing connector_type
[    1.502464] input: 1c22800.lradc as /devices/platform/soc@1c00000/1c22800.lradc/input/input1
[    1.514894] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    1.515117] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.515171] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[    1.540666] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.549410] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    1.558747] panel-simple panel: supply power not found, using dummy regulator
[    1.566084] panel-simple panel: Specify missing connector_type
[    1.572327] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    1.580922] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.584347] hub 1-1:1.0: USB hub found
[    1.589366] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    1.592592] hub 1-1:1.0: 4 ports detected
[    1.601508] panel-simple panel: supply power not found, using dummy regulator
[    1.612094] panel-simple panel: Specify missing connector_type
[    1.618296] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    1.626930] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.635261] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    1.644428] panel-simple panel: supply power not found, using dummy regulator
[    1.651685] panel-simple panel: Specify missing connector_type
[    1.658028] ALSA device list:
[    1.661001]   No soundcards found.
[    1.665832] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    1.690548] sunxi-mmc 1c11000.mmc: initialized, max. request size: 16384 KB
[    1.704538] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    1.704760] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.713234] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.733511] Waiting for root device /dev/mmcblk2p2...
[    1.734322] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    1.754595] panel-simple panel: supply power not found, using dummy regulator
[    1.761898] panel-simple panel: Specify missing connector_type
[    1.768114] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    1.776757] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.780775] mmc2: host does not support reading read-only switch, assuming write-enable
[    1.805567] mmc2: new high speed SDHC card at address aaaa
[    1.812054] mmcblk2: mmc2:aaaa SC32G 29.7 GiB
[    1.839968]  mmcblk2: p1 p2
[    1.844291] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    1.853818] panel-simple panel: supply power not found, using dummy regulator
[    1.861132] panel-simple panel: Specify missing connector_type
[    1.861614] mmc1: error -110 whilst initialising MMC card
[    1.867420] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    1.881027] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.931876] usb 1-1.4: new high-speed USB device number 3 using ehci-platform
[    1.947194] random: fast init done
[    1.983532] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
[    1.993878] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.004309] devtmpfs: mounted
[    2.015183] Freeing unused kernel memory: 1024K
[    2.020046] Run /sbin/init as init process
[    2.024787]   with arguments:
[    2.024993]     /sbin/init
[    2.025204]     earlyprintk
[    2.025398]   with environment:
[    2.025844]     HOME=/
[    2.026046]     TERM=linux
[    2.098782] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    2.114468] panel-simple panel: supply power not found, using dummy regulator
[    2.122173] panel-simple panel: Specify missing connector_type
[    2.129458] sun8i-a33-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    2.138277] pwm-backlight backlight: supply power not found, using dummy regulator
[    2.219886] EXT4-fs (mmcblk2p2): re-mounted. Opts: (null). Quota mode: disabled.
[    2.563315] random: dd: uninitialized urandom read (512 bytes read)
[   31.831985] vcc3v0: disabling
[   31.835198] vcc3v3: disabling

设备树的配置

&mmc0 {
	pinctrl-names = "default";
	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_sina33>;
	vmmc-supply = <&reg_dcdc1>;
	bus-width = <4>;
	cd-gpios = <&pio 1 4 GPIO_ACTIVE_LOW>; /* PB4 */
	status = "okay";
};

&mmc2 {
	pinctrl-names = "default";
	pinctrl-0 = <&mmc2_8bit_pins>;
	vmmc-supply = <&reg_dcdc1>;
	bus-width = <8>;
	non-removable;
	cap-mmc-hw-reset;
	status = "okay";
};

&mmc2_8bit_pins {
	/* Increase drive strength for DDR modes */
	drive-strength = <40>;
	/* eMMC is missing pull-ups */
	bias-pull-up;
};

dmesg中有看到cpu的频率配置信息是缺少的,是不是这个原因导致的呢,看了其他板子的设备树文件,目前还是不太清楚应该如何去设置这个频率。

离线

#2 2021-04-09 17:59:45

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,387
积分: 1902
个人网站

Re: 求助:全志A33芯片sd卡kernel启动时无法挂载mmc2

把这个文件系统去掉

[    2.004309] devtmpfs: mounted





离线

楼主 #3 2021-04-09 19:01:28

linxx
会员
注册时间: 2020-11-27
已发帖子: 4
积分: 7

Re: 求助:全志A33芯片sd卡kernel启动时无法挂载mmc2

哇酷小二 说:

把这个文件系统去掉

[    2.004309] devtmpfs: mounted

去掉之后还是报相同的错误

离线

楼主 #4 2021-04-11 13:40:42

linxx
会员
注册时间: 2020-11-27
已发帖子: 4
积分: 7

Re: 求助:全志A33芯片sd卡kernel启动时无法挂载mmc2

问题解决了,把"drive-strength = <40>;"去掉就好了

离线

#5 2021-04-11 16:53:07

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,387
积分: 1902
个人网站

Re: 求助:全志A33芯片sd卡kernel启动时无法挂载mmc2

linxx 说:

问题解决了,把"drive-strength = <40>;"去掉就好了

喔,还有这种操作 :[(]





离线

楼主 #6 2021-04-11 20:44:28

linxx
会员
注册时间: 2020-11-27
已发帖子: 4
积分: 7

Re: 求助:全志A33芯片sd卡kernel启动时无法挂载mmc2

我也不清楚为何,mmc默认的drive-strength = <30>,结果设置到<40>,增强了驱动能力,反而不行了,就很奇怪。还希望有大神能解释一下.

离线

#7 2021-04-11 20:47:25

raspberryman
会员
注册时间: 2019-12-27
已发帖子: 503
积分: 465

Re: 求助:全志A33芯片sd卡kernel启动时无法挂载mmc2

linxx 说:

我也不清楚为何,mmc默认的drive-strength = <30>,结果设置到<40>,增强了驱动能力,反而不行了,就很奇怪。还希望有大神能解释一下.

好像我搞x3驱动eMMC的时候遇到一样的问题,改下驱动能力就好了

离线

#8 2021-04-12 16:13:52

amsl
会员
注册时间: 2020-03-17
已发帖子: 4
积分: 5.5

Re: 求助:全志A33芯片sd卡kernel启动时无法挂载mmc2

可能是驱动能力设置太强,控制器无法控制IO状态翻转,或者导致IO电平不满足要求了

离线

页脚

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

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