Skip to main content
Graduate
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?

    This topic has been closed for replies.

    1 reply

    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

    bugmanAuthor
    Graduate
    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

    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