Skip to main content
Associate III
June 19, 2025
Question

How to add a new partition to Stm32mp257 Yocto

  • June 19, 2025
  • 1 reply
  • 474 views

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

How can I add a new partition in stm32mp2?

1 reply

Christophe Guibout
ST Employee
June 19, 2025

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.
bugmanAuthor
Associate III
June 20, 2025

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

Christophe Guibout
ST Employee
June 20, 2025

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.