Hi STM-Team,
We have the custom board based on the STM32MP157DAC board.
In that, we are not able to access the eMMC from u-boot command prompt. Currently, we are booting from SD card.
We are able to see the 1 mmc device which is SD-card but not able to see any eMMC on device. Please see below logs:
but emmc is being detected after kernel boot as seen from the dmesg logs and i was able to read and write to the emmc device
u-boot log:-
STM32MP> mmc list
STM32 SD/MMC: 0 (SD)
STM32MP>
dmesg log emmc being detected:-
mmc1: new DDR MMC card at address 0001
[ 2.864763] mmcblk1: mmc1:0001 MT3204 3.56 GiB
[ 2.876500] mmcblk1boot0: mmc1:0001 MT3204 2.00 MiB
[ 2.884632] mmcblk1boot1: mmc1:0001 MT3204 2.00 MiB
[ 2.890880] mmcblk1rpmb: mmc1:0001 MT3204 512 KiB, chardev (244:0)
below is my device tree configuration for sdmmc2
in kernel-source/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi,
in uboot-source/arch/arm/dts/stm32mp15xx-dkx.dtsi,
in tfa-source/fdts/stm32mp15xx-dkx.dtsi, and
in uboot-source/arch/arm/dts/stm32mp157f-dk2-u-boot.dtsi
&sdmmc2 {
pinctrl-names = "default", "opendrain", "sleep";
/*pinctrl-0 = <&sdmmc3_b4_pins_a>;
pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;*/
pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_c>;
pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_c>;
pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_c>;
non-removable;
no-sd;
no-sdio;
st,neg-edge;
bus-width = <8>;
vmmc-supply = <&v3v3>;
vqmmc-supply = <&vdd>;
mmc-ddr-3_3v;
status = "okay";
};
i have also enabled below line in my stm32mp15-disco.conf
# Define the boot device supported
BOOTDEVICE_LABELS += "emmc"
Do I need to configure anything else or am i missing something your input would be helpful in resolving this issue.
Thanks