2024-06-21 05:11 PM - edited 2024-06-21 05:16 PM
Hello everyone,
I made a yocto based build using stm32mp1. After compiling, I followed these steps:
Later, when I connect to the DK1 board, I get the following error.
When I examine the Flash layout files, I think it does this because it cannot find the FWU_MDATA files. But I don't know the size of the partitions I allocated for FWU_DATA and what type they will be (Linux file system or microsoft basic data). Can you help me with this? Which partitions are missing and what should their file type/size be?
Sinceley
Solved! Go to Solution.
2024-06-25 02:02 AM
Hi @FarukSozuer,
Feel free to look into the wiki : see STM32CubeProgrammer flashlayout page : the size of metadata partition is 256kiB.
The STM32CubeProgrammer page could help you as well.
BR,
Christophe
2024-06-24 12:15 AM
Hi @FarukSozuer,
I think it does this because it cannot find the FWU_MDATA files.
You almost answered to your question : if tf-a can't find both metadata partitions, it generates a panic.
The MPU Ecosystem supports A/B mechanism by default, so it means that PSA_FWU_SUPPORT switch is enabled in TF-A, so metadata partitions must be there like in tsv files delivered by default:
P 0x06 metadata1 FWU_MDATA mmc0 0x00084400 arm-trusted-firmware/metadata.bin
P 0x07 metadata2 FWU_MDATA mmc0 0x000C4400 arm-trusted-firmware/metadata.bin
If you don't need A/B mechanism feature and you want to keep your memory mapping, disabling PSA_FWU_SUPPORT switch in tf-a can be an option.
BR,
Christophe
2024-06-24 01:05 PM - edited 2024-06-24 01:05 PM
Hello @Christophe Guibout,
Thanks for reply. Is there an easy way to load image files with STM32CubeProgrammer? Of course there is, but I couldn't find the document explaining this. There are many files and doing this one by one from the terminal can sometimes cause confusion. I am using STM32MP157-DK1 as Eval board.
Even though I know what the problem is, I haven't found the solution yet :)
I cannot yet correctly set how large the memory space I allocated for FWU_MDATA on the SD card will be (for example, 256KB) and what its Type-ID will be (for example, Linux file system).
Sincelery
2024-06-25 02:02 AM
Hi @FarukSozuer,
Feel free to look into the wiki : see STM32CubeProgrammer flashlayout page : the size of metadata partition is 256kiB.
The STM32CubeProgrammer page could help you as well.
BR,
Christophe