内核在启动后不识别 mmc 设备

问题描述 投票:0回答:0

我正在为 tinkerboard 2s rk3288 构建一个 buildroot 系统,它在 sd 卡(mmc0,映射到 /dev/mmcblk0)上运行完美,但我似乎没有找到 emmc 设备(mmc1)启动内核后,即使 uboot 正确识别。内核日志显示:

>> dmesg | grep mmc 
[    0.000000] Kernel command line: console=ttyS2,115200n8 root=/dev/mmcblk0p1 rootwait
[    3.102179] dwmmc_rockchip ff0c0000.mmc: IDMAC supports 32-bit address mode.
[    3.110858] dwmmc_rockchip ff0f0000.mmc: IDMAC supports 32-bit address mode.
[    3.116458] dwmmc_rockchip ff0d0000.mmc: IDMAC supports 32-bit address mode.
[    3.132245] dwmmc_rockchip ff0c0000.mmc: Using internal DMA controller.
[    3.146360] dwmmc_rockchip ff0c0000.mmc: Version ID is 270a
[    3.158141] dwmmc_rockchip ff0c0000.mmc: DW MMC controller at irq 70,32 bit host data width,256 deep fifo
[    3.173065] mmc_host mmc0: card is polling.
[    3.182045] dwmmc_rockchip ff0f0000.mmc: Using internal DMA controller.
[    3.194553] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    3.195938] dwmmc_rockchip ff0f0000.mmc: Version ID is 270a
[    3.211896] dwmmc_rockchip ff0f0000.mmc: DW MMC controller at irq 72,32 bit host data width,256 deep fifo
[    3.223016] mmc_host mmc1: card is non-removable.
[    3.251559] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    3.282541] dwmmc_rockchip ff0d0000.mmc: Using internal DMA controller.
[    3.287773] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[    3.287813] mmc0: new high speed SDHC card at address aaaa
[    3.288149] mmcblk0: mmc0:aaaa SB16G 14.8 GiB 
[    3.289950] dwmmc_rockchip ff0d0000.mmc: Version ID is 270a
[    3.289984] dwmmc_rockchip ff0d0000.mmc: DW MMC controller at irq 71,32 bit host data width,256 deep fifo
[    3.290676]  mmcblk0: p1
[    3.302851] mmc_host mmc1: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
[    3.354551] mmc_host mmc1: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
[    3.421507] mmc_host mmc1: Bus speed (slot 0) = 187500Hz (slot req 187500Hz, actual 187500HZ div = 0)
[    4.615481] dwmmc_rockchip ff0d0000.mmc: IDMAC supports 32-bit address mode.
[    4.630936] dwmmc_rockchip ff0d0000.mmc: Using internal DMA controller.
[    4.638349] dwmmc_rockchip ff0d0000.mmc: Version ID is 270a
[    4.638365] dwmmc_rockchip ff0d0000.mmc: DW MMC controller at irq 71,32 bit host data width,256 deep fifo
[    4.642298] dwmmc_rockchip ff0d0000.mmc: IDMAC supports 32-bit address mode.
[    4.670795] dwmmc_rockchip ff0d0000.mmc: Using internal DMA controller.
[    4.678198] dwmmc_rockchip ff0d0000.mmc: Version ID is 270a
[    4.684428] dwmmc_rockchip ff0d0000.mmc: DW MMC controller at irq 71,32 bit host data width,256 deep fifo
[    4.707375] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Quota mode: disabled.
[    4.921339] EXT4-fs (mmcblk0p1): re-mounted. Quota mode: disabled.
[   15.199116] dwmmc_rockchip ff0d0000.mmc: IDMAC supports 32-bit address mode.
[   15.213170] dwmmc_rockchip ff0d0000.mmc: Using internal DMA controller.
[   15.220595] dwmmc_rockchip ff0d0000.mmc: Version ID is 270a
[   15.226864] dwmmc_rockchip ff0d0000.mmc: DW MMC controller at irq 71,32 bit host data width,256 deep fifo

So far, I managed to use change the device tree from ``rk3288-tinker.dtb`` to ```rk3288-tinker-s.dtb`` in uboot configuration, the difference is precisely the mmc, I strongly suspect about any missing drivers, but couldn't find any clues on what.
kernel u-boot buildroot
© www.soinside.com 2019 - 2024. All rights reserved.