cancel
Showing results for 
Search instead for 
Did you mean: 

How to make 2 root partitions for STM32MP1 using yocto project ?

FHami.1
Associate

Hello everyone, i want to onfigure my stm machine on yocto using the meta-st layer:

i want to make two root partitions on the sd card (since i'm using the stm32mp157c-dk2)

the root partitions i need to integrate rauc updater in my machine.

since i installed rauc the generated st-image-weston won't boot anymore. And i think it's because of the root partitions. (rauc uses two partitions to installl an update on the first one and boot from the second one).

Please help me. Thank you

1 REPLY 1
Yves C
ST Employee

Hi @FHami.1​ 

You can use the STM32CubeProgrammer to create a new partition, for example in .tsv file add " P 0x14 rootfs2 FileSystem mmc0 0xA5484400 st-image-weston-openstlinux-weston-stm32mp1.ext4.

Then you need to update in /boot/mmc0_linux/stm32mp157f-dk2_extlinux.conf the root PARTUUID with the second one.

To have the PARTUUID of the new rootfs partition you can reboot your board and enter the UBOOT during the boot process.

Use the command mmc part (STM32MP> mmc part), you will have such info display on your new partition :

 8   0x006aa422   0x01dacbdc   "rootfs2"

    attrs: 0x0000000000000000

    type:  0fc63daf-8483-4772-8e79-3d69d8477de4

    type:  linux

    guid:  d928d2a6-9d5e-469a-a716-8f778e35243f

The PARTUUID is the guid