您尚未登录。

楼主 # 2024-07-15 22:38:44

hech
会员
注册时间: 2024-02-09
已发帖子: 3
积分: 49

求助,全志h5,将emmc识别为mmcblk2该怎么解决

1.插上tf卡,tf卡启动系统时,tf为mmcblk0、emmc为mmcblk2
2.拔掉tf卡,emmc启动系统时,mmc为mmcblk2
我如何改,能将emmc启动的时候识别为mmcblk0呢?

dmesg

[    1.523279] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    1.524080] input: r-gpio-keys as /devices/platform/r-gpio-keys/input/input0
[    1.524903] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 6
[    1.524938] clk: Disabling unused clocks
[    1.525098] PM: genpd: Disabling unused power domains
[    1.525112] ALSA device list:
[    1.525119]   No soundcards found.
[    1.525539] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    1.526562] hub 1-0:1.0: USB hub found
[    1.526606] hub 1-0:1.0: 1 port detected
[    1.526798] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    1.528510] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    1.528880] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    1.530304] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    1.534348] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    1.538914] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    1.538921] ehci-platform 1c1d000.usb: irq 172, io mem 0x01c1d000
[    1.554901] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
[    1.559989] hub 2-0:1.0: USB hub found
[    1.684648] mmc2: new high speed MMC card at address 0001
[    1.687966] hub 2-0:1.0: 1 port detected
[    1.693004] mmcblk2: mmc2:0001 016GB0 14.7 GiB
[    1.700182] hub 6-0:1.0: USB hub found
[    1.701043] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    1.709229]  mmcblk2: p1 p2
[    1.714806] hub 6-0:1.0: 1 port detected
[    1.722810] mmcblk2boot0: mmc2:0001 016GB0 4.00 MiB
[    1.730122] hub 3-0:1.0: USB hub found
[    1.731278] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    1.737291] mmcblk2boot1: mmc2:0001 016GB0 4.00 MiB
[    1.740992] hub 3-0:1.0: 1 port detected
[    1.750749] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    1.752189] hub 4-0:1.0: USB hub found
[    1.758008] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    1.760207] hub 4-0:1.0: 1 port detected
[    1.786912] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    1.792166] hub 5-0:1.0: USB hub found
[    1.792644] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    1.845783] hub 5-0:1.0: 1 port detected
[    1.851809] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    1.955994] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    2.527035] ehci-platform 1c1a000.usb: EHCI Host Controller
[    2.527066] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    2.532650] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 7
[    2.539273] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 8
[    2.547124] ehci-platform 1c1a000.usb: irq 169, io mem 0x01c1a000
[    2.554813] ohci-platform 1c1a400.usb: irq 176, io mem 0x01c1a400
[    2.574900] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    2.581881] hub 7-0:1.0: USB hub found
[    2.585685] hub 7-0:1.0: 1 port detected
[    2.591663] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    2.631752] hub 8-0:1.0: USB hub found
[    2.635558] hub 8-0:1.0: 1 port detected
[    2.642041] Freeing unused kernel memory: 3072K
[    2.643016] sun4i-codec 1c22c00.codec: Failed to register against DMAEngine
[    2.646730] Run /init as init process

dts

&mmc0 {
    pinctrl-names = "default";
    pinctrl-0 = <&mmc0_pins>, <&mmc0_cd_pin>;
    cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
    vmmc-supply = <&reg_vcc3v3>;
    bus-width = <4>;
//    non-removable;
    boot_device = <0>;
    status = "okay";
};

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

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

离线

#1 2024-07-16 01:51:55

4610
会员
注册时间: 2022-10-09
已发帖子: 99
积分: 80

Re: 求助,全志h5,将emmc识别为mmcblk2该怎么解决

没毛病呀,就是不同mmc总线下的
mmc启动用的dts/dtsi里交换mmc2和mmc0的定义试试

离线

楼主 #2 2024-07-16 09:26:59

hech
会员
注册时间: 2024-02-09
已发帖子: 3
积分: 49

Re: 求助,全志h5,将emmc识别为mmcblk2该怎么解决

我就是想tf卡启动时tf为mmcblk0,拔掉tf卡,emmc启动时emmc为mmcblk0,但是现在emmc启动识别为mmcblk2

离线

#3 2024-07-16 10:05:22

skrlaoshiren
会员
注册时间: 2019-12-03
已发帖子: 42
积分: 102

Re: 求助,全志h5,将emmc识别为mmcblk2该怎么解决

离线

页脚

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

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