Hi.
We are porting linux to our board.
We need to boot linux kernel from usdhc2. Because the pins of usdhc1 are used for other purpose.
The u-boot boots form usdhc2. but u-boot can not find the sdcard connecting usdhc2 pins to load kernel image, device tree image.
We also modified device tree of u-boot like following.
We would like to how to change u-boot source code or/and other files.
-----------a part of device tree start ---------------------------------------------
&usdhc1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usdhc1>, <&pinctrl_usdhc1_gpio>;
cd-gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>;
wp-gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
enable-sdio-wakeup;
keep-power-in-suspend;
status = "disabled"; <-------------------------- change to disabled from okay.
};
pinctrl_usdhc2_gpio: usdhc2_gpiogrp {
fsl,pins = <
MX7D_PAD_SD2_CD_B__GPIO5_IO9 0x59 /* CD */
MX7D_PAD_SD2_WP__GPIO5_IO10 0x59 /* WP */
>;
};
pinctrl_usdhc2: usdhc2grp {
fsl,pins = <
MX7D_PAD_SD2_CMD__SD2_CMD 0x53
MX7D_PAD_SD2_CLK__SD2_CLK 0x13
MX7D_PAD_SD2_DATA0__SD2_DATA0 0x53
MX7D_PAD_SD2_DATA1__SD2_DATA1 0x53
MX7D_PAD_SD2_DATA2__SD2_DATA2 0x53
MX7D_PAD_SD2_DATA3__SD2_DATA3 0x53
>;
};
&usdhc2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
cd-gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>;
wp-gpios = <&gpio5 10 GPIO_ACTIVE_LOW>;
enable-sdio-wakeup;
keep-power-in-suspend;
status = "okay";
};
-----------a part of device tree end ---------------------------------------------
-----------console output start--------------------------------------------
U-Boot 2017.03 (Apr 01 2020 - 13:16:22 +0900)
DRAM: 1 GiB
MMC: FSL_SDHC: 0
MMC Device 1 not found
*** Warning - No MMC card found, using default environment
Display: TFT43AB (480x272)
Video: 480x272x24
MMC Device 1 not found
no mmc device at slot 1
Net: No ethernet found.
Normal Boot
Autoboot in 3 seconds
-----------console output end ---------------------------------------------