Cannot generate FlashLayout_board_stm32mp157f-dk2-deleteall.tsv file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-07 12:59 AM
I built an st-image-weston by using yocto recipes. The layers is in oe-manifest branch scagraph (https://github.com/STMicroelectronics/oe-manifest)
I got those warning, please help to fix it.
WARNING: st-image-weston-1.0-r0 do_create_flashlayout_config: >>> Cannot generate FlashLayout_board_stm32mp157f-dk2-deleteall.tsv file: the arm-trusted-firmware/tf-a-stm32mp157f-dk2-optee-programmer-usb.stm32 binary for fsbl-boot partition is missing in deploy folder
WARNING: st-image-weston-1.0-r0 do_st_write_license_create_summary: IMG LIC SUM: File does not exist with open file /mnt/DATA0/LEAPS/YOCTO_BSP/build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/licenses/stm32mp15-disco/st-image-weston-openstlinux-weston-stm32mp15-disco.rootfs-20250207084859/image_license.manifest
WARNING: st-image-weston-1.0-r0 do_st_write_license_create_summary: IMG LIC SUM: File does not exist with open file /mnt/DATA0/LEAPS/YOCTO_BSP/build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/licenses/stm32mp15-disco/st-image-bootfs-openstlinux-weston-stm32mp15-disco.bootfs-20250207084859/package.manifest
WARNING: st-image-weston-1.0-r0 do_st_write_license_create_summary: IMG LIC SUM: File does not exist with open file /mnt/DATA0/LEAPS/YOCTO_BSP/build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/licenses/stm32mp15-disco/st-image-vendorfs-openstlinux-weston-stm32mp15-disco.vendorfs-20250207063333/package.manifest
WARNING: st-image-weston-1.0-r0 do_st_write_license_create_summary: IMG LIC SUM: File does not exist with open file /mnt/DATA0/LEAPS/YOCTO_BSP/build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/licenses/stm32mp15-disco/st-image-weston-openstlinux-weston-stm32mp15-disco.rootfs-20250207084859/package.manifest
WARNING: st-image-weston-1.0-r0 do_st_write_license_create_summary: IMG LIC SUM: File does not exist with open file /mnt/DATA0/LEAPS/YOCTO_BSP/build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/licenses/stm32mp15-disco/st-image-userfs-openstlinux-weston-stm32mp15-disco.userfs-20250207084859/package.manifest
WARNING: st-image-weston-1.0-r0 do_st_write_license_create_summary: IMG LIC SUM: File does not exist with open file /mnt/DATA0/LEAPS/YOCTO_BSP/build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/licenses/stm32mp15-disco/st-image-resize-initrd-openstlinux-weston-stm32mp15-disco.rootfs-20250207084859/package.manifest
- Labels:
-
STM32MP15 Lines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-27 3:56 AM
I do not have the solution myself, but I get the same warnings and want to add a comment that might help in finding a solution:
On this warning:
FlashLayout_board_stm32mp157f-dk2-deleteall.tsv file: the arm-trusted-firmware/tf-a-stm32mp157f-dk2-optee-programmer-usb.stm32 binary for fsbl-boot partition is missing in deploy folder
do_create_flashlayout_config expects tf-a-stm32mp157f-dk2-optee-programmer-usb.stm32
The default setting for scarthgap is to use opteemin, and thus the files generated are called tf-a-stm32mp157f-dk2-opteemin-programmer-usb.stm32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 1:49 AM
Hello
I have found a solution. I have no idea if the generated file actually works in the end, but the file is now generated and the warning is gone.
tl;dr:
In your machine file, add this in the end:
FLASHLAYOUT_PARTITION_REPLACE_PATTERNS:${STM32MP_FSBL_PROGRAMMER_NAME}:remove = " deleteall;optee"
FLASHLAYOUT_PARTITION_REPLACE_PATTERNS:${STM32MP_SSBL1_PROGRAMMER_NAME}:remove = " deleteall;optee"
FLASHLAYOUT_PARTITION_REPLACE_PATTERNS:${STM32MP_SSBL2_PROGRAMMER_NAME}:remove = " deleteall;optee"
FLASHLAYOUT_PARTITION_REPLACE_PATTERNS:${STM32MP_FSBL_PROGRAMMER_NAME}:append = " deleteall;opteemin"
FLASHLAYOUT_PARTITION_REPLACE_PATTERNS:${STM32MP_SSBL1_PROGRAMMER_NAME}:append = " deleteall;opteemin"
FLASHLAYOUT_PARTITION_REPLACE_PATTERNS:${STM32MP_SSBL2_PROGRAMMER_NAME}:append = " deleteall;opteemin"
Here is what happens:
In file
meta-st\meta-st-stm32mp\conf\machine\include\st-machine-flashlayout-deleteall-stm32mp.inc
In the very end ,there are these lines
# -----------------------------------------------------------------------------
# The 'deleteall' bootscheme is a trick to generate flashlayout files to clean
# all memory devices on board. There are no specific 'deleteall' bootloaders
# so we need to manage specific override for FLASHLAYOUT_PROGRAMMER_SECTIONS binaries
FLASHLAYOUT_PARTITION_REPLACE_PATTERNS:${STM32MP_FSBL_PROGRAMMER_NAME}:append = " deleteall;optee"
FLASHLAYOUT_PARTITION_REPLACE_PATTERNS:${STM32MP_SSBL1_PROGRAMMER_NAME}:append = " deleteall;optee"
FLASHLAYOUT_PARTITION_REPLACE_PATTERNS:${STM32MP_SSBL2_PROGRAMMER_NAME}:append = " deleteall;optee"
These are used by meta-st\meta-st-stm32mp\classes\flashlayout-stm32mp.bbclass, line 424 def get_binaryname
When building the "bootscheme" deleteall ST make a little hack and replace the "deleteall" with "optee". We need to change so that they replace it to "opteemin" instead.
