Levi

Levi

0个粉丝

8

问答

0

专栏

0

资料

Levi  发布于  2025-01-02 17:37:44
采纳率 50%
8个问答
99

Hi3519DV500 没有TF卡的设备/dev/mmcblk1px

求大佬帮忙看下,为啥我没有SD卡的设备/dev/mmcblk1px

arch/arm64/boot/dts/vendor/hi3519dv500.dtsi
            mmc0: eMMC@0x10020000 {
                compatible = "nebula,sdhci";
                reg = <0x10020000 0x1000>;
                interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&clock HI3519DV500_MMC0_CLK>, <&clock HI3519DV500_MMC0_HCLK>;
                clock-names = "mmc_clk", "mmc_hclk";
                resets = <&clock 0x34c0 16>, <&clock 0x34c0 17>, <&clock 0x34c0 18>, <&clock 0x34c4 1>;
                reset-names = "crg_reset", "crg_tx", "crg_rx", "dll_reset";
                max-frequency = <150000000>;
                crg_regmap = <&clock>;
                non-removable;
                iocfg_regmap = <&ioconfig0>;
                bus-width = <8>;
                cap-mmc-highspeed;
                mmc-hs200-1_8v;
                mmc-hs400-1_8v;
                mmc-hs400-enhanced-strobe;
                cap-mmc-hw-reset;
                no-sdio;
                no-sd;
                devid = <0>;
                status = "okay";
        };

        mmc1: SDIO@0x10030000 {
                compatible = "nebula,sdhci";
                reg = <0x10030000 0x1000>;
                interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&clock HI3519DV500_MMC1_CLK>, <&clock HI3519DV500_MMC1_HCLK>;
                clock-names = "mmc_clk", "mmc_hclk";
                resets = <&clock 0x35c0 16>, <&clock 0x35c0 17>, <&clock 0x35c0 18>, <&clock 0x35c4 1>;
                reset-names = "crg_reset", "crg_tx", "crg_rx", "dll_reset";
                max-frequency = <150000000>;
                crg_regmap = <&clock>;
                iocfg_regmap = <&ioconfig1>;
                bus-width = <4>;
                cap-sd-highspeed;
                sd-uhs-sdr12;
                sd-uhs-sdr25;
                sd-uhs-sdr50;
                sd-uhs-sdr104;
                full-pwr-cycle;
                devid = <1>;
                status = "okay";
        };
        mmc2: SDIO1@0x10040000 {
                compatible = "nebula,sdhci";
                reg = <0x10040000 0x1000>;
                interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&clock HI3519DV500_MMC2_CLK>, <&clock HI3519DV500_MMC2_HCLK>;
                clock-names = "mmc_clk", "mmc_hclk";
                resets = <&clock 0x36c0 16>, <&clock 0x36c0 17>, <&clock 0x36c0 18>, <&clock 0x36c4 1>;
                reset-names = "crg_reset", "crg_tx", "crg_rx", "dll_reset";
                max-frequency = <150000000>;
                crg_regmap = <&clock>;
                iocfg_regmap = <&ioconfig1>;
                bus-width = <4>;
                cap-sd-highspeed;
                devid = <2>;
                status = "okay";
        };

arch/arm64/boot/dts/vendor/hi3519dv500-demb.dts
&mmc1 {
        status = "okay";
};

&mmc2 {
        status = "disabled";
};

mmc0是应该是接emmc用的,mmc1应该是接SD卡用的
但是这样配置后,只有emmc的设备和分区,没有sd卡的设备和分区
引脚复用也配置了

  # TF Card mux
  bspmm 0x0102600CC 0x0131 # SDIO0_CCLK_OUT N21
  bspmm 0x0102600BC 0x0331 # SDIO0_CDATA0 P22
  bspmm 0x0102600C0 0x0331 # SDIO0_CDATA1 P23
  bspmm 0x0102600C4 0x0331 # SDIO0_CDATA2 M21
  bspmm 0x0102600C8 0x0331 # SDIO0_CDATA3 N22
  bspmm 0x0102600D4 0x0131 # SDIO0_CARD_POWER_EN_N R21
  bspmm 0x0102600D0 0x0131 # SDIO0_CARD_DETECT R23
  bspmm 0x0102600B8 0x0331 # SDIO0_CCMD P21
~ # ls /dev/mmc*
/dev/mmcblk0       /dev/mmcblk0boot1  /dev/mmcblk0p2     /dev/mmcblk0p4     /dev/mmcblk0p6     /dev/mmcblk0p8     /dev/mmcblk0rpmb
/dev/mmcblk0boot0  /dev/mmcblk0p1     /dev/mmcblk0p3     /dev/mmcblk0p5     /dev/mmcblk0p7     /dev/mmcblk0p9
~ #
~ # dmesg | grep mmc
Kernel command line: mem=132928K console=ttyAMA0,115200 clk_ignore_unused root=/dev/mmcblk0p5 rootfstype=ext4 ro rootwait blkdevparts=mmcblk0:512K(boot),512K(env),512K(bl31),13M(kernel),256M(rootfs),128M(app),128M(data),32M(setting),32M(syslog)
mmc0: SDHCI controller on 10020000.eMMC [10020000.eMMC] using ADMA 64-bit
mmc1: SDHCI controller on 10030000.SDIO [10030000.SDIO] using ADMA 64-bit
mmc0: tuning done! valid phase shift [12, 6] Final Phase:25
mmc0: new HS200 MMC card at address 0001
mmcblk0: mmc0:0001 8GTF4R 7.28 GiB
mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB, chardev (251:0)
 mmcblk0: p1(boot) p2(env) p3(bl31) p4(kernel) p5(rootfs) p6(app) p7(data) p8(setting) p9(syslog)
EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (mmcblk0p5): re-mounted. Opts: (null)
EXT4-fs (mmcblk0p5): re-mounted. Opts: (null)
EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (mmcblk0p9): recovery complete
EXT4-fs (mmcblk0p9): mounted filesystem with ordered data mode. Opts: (null)
~ #
~ # dmesg | grep sd
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
~ #
~ # dmesg | grep SD
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on 10020000.eMMC [10020000.eMMC] using ADMA 64-bit
mmc1: SDHCI controller on 10030000.SDIO [10030000.SDIO] using ADMA 64-bit
~ #
~ # ls /sys/bus/mmc/devices/
mmc0:0001
~ # ls /sys/bus/sdio/devices/
~ #
我来回答
回答5个
时间排序
认可量排序

Stranger

13个粉丝

0

问答

5

专栏

8

资料

Stranger 2025-01-03 09:11:13
认可1
易百纳技术社区该回答已被题主采纳为最佳答案

原理图贴出来,sdio都没探测到?

Levi
Levi   回复   Stranger  2025-01-03 09:14:58
0



Levi
Levi   回复   Stranger  2025-01-03 11:22:57
0

这个问题解决了,因为硬件的原因

技术

0个粉丝

0

问答

0

专栏

0

资料

技术 2025-01-05 20:59:59
认可0

需要把hi3519-demo.dts文件打开。mmc0其实默认应该是打开了的,很可能是硬件没有通,检查下硬件。

Levi

0个粉丝

8

问答

0

专栏

0

资料

Levi 2025-01-08 09:30:19
认可0

该问题已解决,是硬件的问题

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区