Skip to main content
Visitor II
July 21, 2025
Solved

Yocto : Cannot generate FlashLayout_sdcard_stm32mp257f-dk-optee.tsv file

  • July 21, 2025
  • 1 reply
  • 378 views

Hello everyone ! I use the stm32mp257f-dk with yocto for a project. To benchmark my programs, I need kinda heavy packages. To solve my IMAGE_ROOTFS_MAX issue, I followed the following topic : https://community.st.com/t5/stm32-mpus-embedded-software-and/increasing-the-rootfs-size-on-a-stm32mp157f-dk2/m-p/205665

Unfortunatly, even if the distro compile, I have the following warning at the end of my compilation (see screenshot below).

error_screen.png

My configuration is the following :

- local.conf

ROOTFS_PARTITION_SIZE = "12582912"
IMAGE_ROOTFS_MAXSIZE = "12582912"

I tried to add the in /meta-st/meta-st-stm32mp/conf/machine/include/st-machine-common-stm32mp.inc too, but i don't have more results.

I don't have any more idea to solve the issue. All the help is welcome !

    This topic has been closed for replies.
    Best answer by llotte

    For those who come after. I have found a solution to the issue. after digging through the files, I discovered the st-machine-flashlayout-stm32mp.inc file.

    By modifying :

    # 4GiB for sdcard
    FLASHLAYOUT_PARTITION_SIZE:nor-sdcard:${STM32MP_ROOTFS_LABEL} = "4194304"
    FLASHLAYOUT_PARTITION_SIZE:nor-nor-sdcard:${STM32MP_ROOTFS_LABEL} = "4194304"
    FLASHLAYOUT_PARTITION_SIZE:nor-emmc:${STM32MP_ROOTFS_LABEL} = "3145728"
    FLASHLAYOUT_PARTITION_SIZE:nor-nor-emmc:${STM32MP_ROOTFS_LABEL} = "3145728"
    FLASHLAYOUT_PARTITION_SIZE:sdcard:${STM32MP_ROOTFS_LABEL}     = "4194304"
    FLASHLAYOUT_PARTITION_SIZE:sdcard-EFI:${STM32MP_ROOTFS_LABEL} = "4194304"
    FLASHLAYOUT_PARTITION_SIZE:nand-4-256-1024-sdcard:${STM32MP_ROOTFS_LABEL} = "4194304"
    FLASHLAYOUT_PARTITION_SIZE:nand-2-128-256-sdcard:${STM32MP_ROOTFS_LABEL} = "4194304"
    FLASHLAYOUT_PARTITION_SIZE:nand-4-256-512-sdcard:${STM32MP_ROOTFS_LABEL} = "4194304"

    Into :

    # 4GiB for sdcard
    FLASHLAYOUT_PARTITION_SIZE:nor-sdcard:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:nor-nor-sdcard:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:nor-emmc:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:nor-nor-emmc:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:sdcard:${STM32MP_ROOTFS_LABEL}     = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:sdcard-EFI:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:nand-4-256-1024-sdcard:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:nand-2-128-256-sdcard:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:nand-4-256-512-sdcard:${STM32MP_ROOTFS_LABEL} = "12582912"

    It solved all my issues. It would be nice to write it in the documentation because it took me a lot of time to find it. I now search a way to changes theses settings without changing them directly in the ST-layer but with an extern layer.

    1 reply

    llotteAuthorAnswer
    Visitor II
    July 22, 2025

    For those who come after. I have found a solution to the issue. after digging through the files, I discovered the st-machine-flashlayout-stm32mp.inc file.

    By modifying :

    # 4GiB for sdcard
    FLASHLAYOUT_PARTITION_SIZE:nor-sdcard:${STM32MP_ROOTFS_LABEL} = "4194304"
    FLASHLAYOUT_PARTITION_SIZE:nor-nor-sdcard:${STM32MP_ROOTFS_LABEL} = "4194304"
    FLASHLAYOUT_PARTITION_SIZE:nor-emmc:${STM32MP_ROOTFS_LABEL} = "3145728"
    FLASHLAYOUT_PARTITION_SIZE:nor-nor-emmc:${STM32MP_ROOTFS_LABEL} = "3145728"
    FLASHLAYOUT_PARTITION_SIZE:sdcard:${STM32MP_ROOTFS_LABEL}     = "4194304"
    FLASHLAYOUT_PARTITION_SIZE:sdcard-EFI:${STM32MP_ROOTFS_LABEL} = "4194304"
    FLASHLAYOUT_PARTITION_SIZE:nand-4-256-1024-sdcard:${STM32MP_ROOTFS_LABEL} = "4194304"
    FLASHLAYOUT_PARTITION_SIZE:nand-2-128-256-sdcard:${STM32MP_ROOTFS_LABEL} = "4194304"
    FLASHLAYOUT_PARTITION_SIZE:nand-4-256-512-sdcard:${STM32MP_ROOTFS_LABEL} = "4194304"

    Into :

    # 4GiB for sdcard
    FLASHLAYOUT_PARTITION_SIZE:nor-sdcard:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:nor-nor-sdcard:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:nor-emmc:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:nor-nor-emmc:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:sdcard:${STM32MP_ROOTFS_LABEL}     = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:sdcard-EFI:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:nand-4-256-1024-sdcard:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:nand-2-128-256-sdcard:${STM32MP_ROOTFS_LABEL} = "12582912"
    FLASHLAYOUT_PARTITION_SIZE:nand-4-256-512-sdcard:${STM32MP_ROOTFS_LABEL} = "12582912"

    It solved all my issues. It would be nice to write it in the documentation because it took me a lot of time to find it. I now search a way to changes theses settings without changing them directly in the ST-layer but with an extern layer.