2025-06-18 7:22 PM
I need a partition as a backup partition for the root file system.
How can I add a new partition in stm32mp2?
2025-06-19 7:24 AM
Hello @bugman,
You need to add a partition into the flashlayout : feel free to look into this wiki page.
In Yocto, if you use a static flashlayout, I would recommand the add this in your machine:
ENABLE_FLASHLAYOUT_DEFAULT = "1"
FLASHLAYOUT_DEFAULT_src="<path of your flashlayout>.tsv"
Your flashlayout will be automatically deployed on build.
BR,
Christophe
2025-06-19 10:50 PM
Is this method the same as modifying on the generated tsv? I am wondering if there is a quick way to define new partitions in Yocto, such as rootfs, userfs, etc。
2025-06-19 11:49 PM
Hello @bugman,
These recipes are there to cook the content of the partitions, not to add a new partition.
BR,
Christophe
2025-06-22 5:55 PM
Thank you very much for your patient reply.
Perhaps my initial statement was not correct.
My goal is to create a new partition with my own custom content, so I tried to create recipes but encountered many problems. I wonder if my direction is incorrect?