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 = <®_vcc3v3>;
bus-width = <4>;
// non-removable;
boot_device = <0>;
status = "okay";
};
&mmc2 {
pinctrl-names = "default";
pinctrl-0 = <&mmc2_8bit_pins>;
vmmc-supply = <®_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;
};
离线
我就是想tf卡启动时tf为mmcblk0,拔掉tf卡,emmc启动时emmc为mmcblk0,但是现在emmc启动识别为mmcblk2
离线