cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a new partition to Stm32mp257 Yocto

bugman
Associate III

I need a partition as a backup partition for the root file system.

How can I add a new partition in stm32mp2?

4 REPLIES 4
Christophe Guibout
ST Employee

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

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.

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。

bugman_0-1750398597255.png

Hello @bugman,

 

These recipes are there to cook the content of the partitions, not to add a new partition.

BR,

Christophe

 

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.

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?