I upgraded the image for our custom board to 5.0 last week.
Metadata1/metadata2 (metadata.bin) are on the partition as concerned in the following issue.
As supplementary information, in my custom image, I changed the partition storage location of metadata1/2 as follows. This is for investigation whether the position of the partition can be changed, and whether it can be changed as follows.
|#Opt Id Name Type IP Offset Binary
- 0x01 fsbl-boot Binary none 0x0 arm-trusted-firmware/tf-a-stm32mp157a-ev1-usb.stm32
- 0x03 fip-boot FIP none 0x0 fip/fip-stm32mp157a-ev1-optee.bin
P 0x04 fsbl1 Binary mmc0 0x00004400 arm-trusted-firmware/tf-a-stm32mp157a-ev1-sdcard.stm32
P 0x05 fsbl2 Binary mmc0 0x00044400 arm-trusted-firmware/tf-a-stm32mp157a-ev1-sdcard.stm32
P 0x06 fip-a FIP mmc0 0x00084400 fip/fip-stm32mp157a-ev1-optee.bin
P 0x10 bootfs System mmc0 0x00484400 st-image-bootfs-openstlinux-eglfs-stm32mp1.ext4
P 0x11 vendorfs FileSystem mmc0 0x04484400 st-image-vendorfs-openstlinux-eglfs-stm32mp1.ext4
P 0x12 rootfs FileSystem mmc0 0x05484400 st-image-core-openstlinux-eglfs-stm32mp1.ext4
P 0x13 userfs FileSystem mmc0 0x105484400 st-image-userfs-openstlinux-eglfs-stm32mp1.ext4
P 0x20 metadata1 FWU_MDATA mmc0 0x115484400 arm-trusted-firmware/metadata.bin
P 0x21 metadata2 FWU_MDATA mmc0 0x1154C4400 arm-trusted-firmware/metadata.bin
PED 0x22 fip-b FIP mmc0 0x115504400 none
PED 0x23 u-boot-env ENV mmc0 0x115904400 none
This is to reuse the partition configuration used by dunfell.
I am testing whether the partition area newly added in Mickledore is added in the second half of the partition area at the time of dunfell and it works or not.
Result was failed.
With this coniguration the boot fails with these messages:
NOTICE: CPU: STM32MP157AAA Rev.B
Exception mode=0x00000016 at: 0x2ffea1fb
・Does anyone has an idea what I can do?
・Could someone advise what information in TF-A needs to be changed if the partition storage location of metadata1/2 is changed?
I did such a migration from Dunfell to Kirkstone (boot on a SDcard) and if I remember correctly, the fsbl1/fsbl2 and metadata1/metadata2 partitions must be listed in the first 6 or 7 positions of the partitions table so they can be found.
I am not so far a specialist on this topic so perhaps one of my colleagues may be better help or confirm my explanations.
Dear Jean-Marc B,
Thank you for your comments.
>metadata1/metadata2 partitions must be listed in the first 6 or 7 positions of the partitions table so they can be found.
I understand that the above restrictions apply. I would be grateful if you could let me know if there is an option to change the location of the partition in the future.