This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: Booting from SDCARD2 using MMC2

Part Number: AM625

Tool/software:

Hi,

 we are trying to boot from SD card using the MMC2 port.we have done the changes in the device tree as below,


    };

	/* On-module Wi-Fi on WB SKUs, module-specific SDIO otherwise */
	pinctrl_sdhci2: main-mmc2-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x120, PIN_INPUT, 0) /* (C24) MMC2_CMD   */ /* WiFi_SDIO_CMD   */
			AM62X_IOPAD(0x118, PIN_INPUT, 0) /* (D25) MMC2_CLK   */ /* WiFi_SDIO_CLK   */
			AM62X_IOPAD(0x114, PIN_INPUT, 0) /* (B24) MMC2_DAT0  */ /* WiFi_SDIO_DATA0 */
			AM62X_IOPAD(0x110, PIN_INPUT, 0) /* (C25) MMC2_DAT1  */ /* WiFi_SDIO_DATA1 */
			AM62X_IOPAD(0x10c, PIN_INPUT, 0) /* (E23) MMC2_DAT2  */ /* WiFi_SDIO_DATA2 */
			AM62X_IOPAD(0x108, PIN_INPUT, 0) /* (D24) MMC2_DAT3  */ /* WiFi_SDIO_DATA3 */
			AM62X_IOPAD(0x11c, PIN_INPUT, 0) /* (#N/A) MMC2_CLKB */
		>;
	};
	
	    /* Verdin SD_2_CD# as GPIO */
    pinctrl_sd2_cd_gpio: main-gpio0-71-pins-default {
        pinctrl-single,pins = <
            AM62X_IOPAD(0x0124, PIN_INPUT_PULLUP, 7) /* (A23) MMC2_SDCD.GPIO0_71 */ /* SODIMM 157 */
        >;
    };
    
    &sdhci2 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_sdhci2>, <&pinctrl_sd2_cd_gpio>;
	cd-gpios = <&main_gpio1 71 GPIO_ACTIVE_LOW>;
	disable-wp;
	ti,fails-without-test-cd;
	ti,driver-strength-ohm = <33>;
	status = "okay";
};


        
        

we bitbake .wic image and write it into external Sd card using Sudo DD commad.

the issue is that when i try to boot from Sd card using mmc2.

in u-boot when i use the commad mmc dev 2, it returns an error stating No MMC 2 device found.

is there anything wrong in the above config or suggest me a way to boot from MMC2!

Thanks in advance.