STM32MP153a failed to boot from eMMC.
Hi there, I am working with a customized STM32MP153A board and trying to boot from eMMC.
I had prepared my eMMC following the steps that I found in <u-boot-stm32mp-2018.11-r0 source code directory>/board/st/stm32mp1/README file:
8. Prepare eMMC
===============
You can use U-Boot to copy binary in eMMC.
In the next example, you need to boot from SDCARD and the images (u-boot-spl.stm32, u-boot.img)
are presents on SDCARD (mmc 0) in ext4 partition 4 (bootfs).
To boot from SDCard, select BootPinMode = 1 0 1 and reset.
Then you update the eMMC with the next U-Boot command :
a) prepare GPT on eMMC,
example with 2 partitions, bootfs and roots:
# setenv emmc_part "name=ssbl,size=2MiB;name=bootfs,type=linux,bootable,size=64MiB;name=rootfs,type=linux,size=512"
# gpt write mmc 1 ${emmc_part}
b) copy SPL on eMMC on firts boot partition
(SPL max size is 256kB, with LBA 512, 0x200)
# ext4load mmc 0:4 0xC0000000 u-boot-spl.stm32
# mmc dev 1
# mmc partconf 1 1 1 1
# mmc write ${fileaddr} 0 200
# mmc partconf 1 1 1 0
b) copy U-Boot in first GPT partition of eMMC
# ext4load mmc 0:4 0xC0000000 u-boot.img
# mmc dev 1
# part start mmc 1 1 partstart
# part size mmc 1 1 partsize
# mmc write ${fileaddr} ${partstart} ${partsize}
To boot from eMMC, select BootPinMode = 0 1 0 and reset.
Unfortunately, it didn't work. After powering on, the LED controlled by PA13 blinking and nothing was printed on UART port. It seems that FSBL code not running.
The u-boot-spl.stm32 and u-boot.img work well when booting from SD card. eMMC is correctly connected to SDMMC2 and can be read/write with u-boot and linux OS. For some reason, this board can't be programed with STM32CubeProgrammer.
I think maybe there is something wrong with my steps of eMMC preparing/partition but don't know how to fix it. Could someone help me?
Thanks in advance.
