cancel
Showing results for 
Search instead for 
Did you mean: 

Boot image from the eMMC user data area partitions

zakariazh
Associate II

Hi,

I want to boot my image from the user data area partition in the eMMC of my stm32mp257f-ev1 board by disabling the eMMC hardware partitions (the mmcblk1boot0/1) in U-Boot like this: 

 

mmc partconf 1 0 0 0

 

 

Unfortunately, the ROM code can't load my image (even TF-A). Here's my WIC file:

part --part-name fsbla1 --fixed-size 256K --source rawcopy --sourceparams="file=${DEPLOY_DIR_IMAGE}/arm-trusted-firmware/tf-a-${STM32MP_DT_FILES_EMMC}-optee-emmc.stm32" --align 4096
part --part-name fsbla2 --fixed-size 256K --source rawcopy --sourceparams="file=${DEPLOY_DIR_IMAGE}/arm-trusted-firmware/tf-a-${STM32MP_DT_FILES_EMMC}-optee-emmc.stm32" --align 4096

# metadata for fsbla update
part --part-name metadata1 --fixed-size 256K --source rawcopy --sourceparams="file=${DEPLOY_DIR_IMAGE}/arm-trusted-firmware/metadata.bin" --part-type 8DA63339-0007-60C0-C436-083AC8230908
part --part-name metadata2 --fixed-size 256K --source rawcopy --sourceparams="file=${DEPLOY_DIR_IMAGE}/arm-trusted-firmware/metadata.bin" --part-type 8DA63339-0007-60C0-C436-083AC8230908

part --part-name fip-a  --source rawcopy --sourceparams="file=${DEPLOY_DIR_IMAGE}/fip/fip-${STM32MP_DT_FILES_EMMC}-optee-emmc.bin" --part-type 19d5df83-11b0-457b-be2c-7559c13142a5 --uuid 4fd84c93-54ef-463f-a7ef-ae25ff887087
part --part-name fip-b  --source rawcopy --sourceparams="file=${DEPLOY_DIR_IMAGE}/fip/fip-${STM32MP_DT_FILES_EMMC}-optee-emmc.bin" --part-type 19d5df83-11b0-457b-be2c-7559c13142a5 --uuid 09c54952-d5bf-45af-acee-335303766fb3

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

Hi @zakariazh 

BootROM can only boot from the active boot partition of the eMMC. That's cannot be changed.

Regards,

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
PatrickF
ST Employee

Hi @zakariazh 

BootROM can only boot from the active boot partition of the eMMC. That's cannot be changed.

Regards,

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.