EMMC not being detected in DFU mode
Hi,
We have a custom carrier board based on STM32MP157DAC. We have built a custom yocto image.
- Yocto Version: Mickledore
- Machine: stm32mp15-disco
- SoM: STM32MP157DAC
- Distro: openstlinux-weston
- Linux Kernel: 6.1.82-stm32mp-r2-r0
I was able to get a EMMC binaries by adding below line in my local.conf
STM32MP_DT_FILES_EMMC += "stm32mp157f-dk2"
I have also attached the modified flashlayout for EMMC.
I came across a post here saying if default pins are changes we will have to do otp for emmc to be detected.
below are the pins we are using:-
| PB14 | SDMMC2_D0 |
| PB15 | SDMMC2_D1 |
| PB3 | SDMMC2_D2 |
| PB4 | SDMMC2_D3 |
| PA8 | SDMMC2_D4 |
| PA15 | SDMMC2_D5 |
| PC6 | SDMMC2_D6 |
| PC7 | SDMMC2_D7 |
| PE3 | SDMMC2_CLK |
| PG6 | SDMMC2_CMD |
Do we need to do otp for these pins or what can be done for EMMC to be detected during dfu(0,0,0) mode for flashing to emmc.
below is my flash layout file for emmc:-
| #Opt | Id | Name | Type | IP | Offset | Binary |
| - | 0x01 | fsbl-boot | Binary | none | 0x0 | arm-trusted-firmware/tf-a-stm32mp157f-dk2-usb.stm32 |
| - | 0x03 | fip-boot | FIP | none | 0x0 | fip/fip-stm32mp157f-dk2-optee-emmc.bin |
| P | 0x04 | fsbl1 | Binary | mmc1 | boot1 | arm-trusted-firmware/tf-a-stm32mp157f-dk2-optee-emmc.stm32 |
| P | 0x05 | fsbl2 | Binary | mmc1 | boot2 | arm-trusted-firmware/tf-a-stm32mp157f-dk2-optee-emmc.stm32 |
| P | 0x06 | metadata1 | FWU_MDATA | mmc1 | 0x00084000 | arm-trusted-firmware/metadata.bin |
| P | 0x07 | metadata2 | FWU_MDATA | mmc1 | 0x00100000 | arm-trusted-firmware/metadata.bin |
| P | 0x08 | fip-a | FIP | mmc1 | 0x00180000 | fip/fip-stm32mp157f-dk2-optee-emmc.bin |
| PED | 0x09 | fip-b | FIP | mmc1 | 0x00580000 | none |
| PED | 0x0A | u-boot-env | ENV | mmc1 | 0x00980000 | none |
| P | 0x10 | bootfs | System | mmc1 | 0x00A00000 | st-image-bootfs-openstlinux-weston-stm32mp15-disco.ext4 |
| P | 0x11 | vendorfs | FileSystem | mmc1 | 0x04A00000 | st-image-vendorfs-openstlinux-weston-stm32mp15-disco.ext4 |
| P | 0x12 | rootfs | FileSystem | mmc1 | 0x05A00000 | st-image-qt-openstlinux-weston-stm32mp15-disco.ext4 |
Thanks.
