Add custom applications
IMAGE_INSTALL:append = " lokbest-project"
IMAGE_INSTALL:append = " display-qr-launch"
IMAGE_INSTALL:append = " chromium-ozone-wayland"
Default Mask the systemctl remount recovery file system (// Optional do not use for Normal Rootfs )
IMAGE_INSTALL:append = " systemd-remount-fs-mask"
Remove default Wayland demos
APP_LAUNCH_WAYLAND = “”
IMAGE_INSTALL:remove = " wayland-qtdemo-launch-cinematicexperience"
IMAGE_INSTALL:remove = " wayland-qtdemo-launch-analogclock"
IMAGE_INSTALL:remove = " wayland-qtdemo-launch-qtsmarthome"
IMAGE_INSTALL:remove = " wayland-terminal-launch"
Enable TEZI image format
IMAGE_FSTYPES += “teziimg”
Use absolute path to ensure correct file is found
TEZI_IMAGE_JSON = “${THISDIR}/files/lokbest-tezi-image.json”
Keep default bootfs and rootfs
TEZI_DEFAULT_BOOTFS = “Reference-Multimedia-Image-${MACHINE}.rootfs.bootfs.tar.xz”
TEZI_DEFAULT_ROOTFS = “Reference-Multimedia- Image-${MACHINE}.rootfs.tar.xz”
Add file dependency to ensure JSON is found
FILESEXTRAPATHS:prepend := “${THISDIR}/files:”
this is my multimedia bbappend file
{
“config_format”: “4”,
“autoinstall”: false,
“name”: “Lokbest Custom Partition Layout”,
“description”: “Custom multimedia image with A/B boot partitions”,
“version”: “1.0.0”,
“supported_product_ids”: [
“0070”
],
“blockdevs”: [
{
“name”: “emmc”,
“partitions”: [
{
“partition_size_nominal”: 64,
“want_maximised”: false,
“content”: {
“label”: “boot_A”,
“filesystem_type”: “fat”,
“mkfs_options”: “”,
“filename”: “Reference-Multimedia-Image-verdin-imx8mp.rootfs.bootfs.tar.xz”,
“uncompressed_size”: 8.671875
}
},
{
“partition_size_nominal”: 64,
“want_maximised”: false,
“content”: {
“label”: “boot_B”,
“filesystem_type”: “fat”,
“mkfs_options”: “”
}
},
{
“partition_size_nominal”: 2048,
“want_maximised”: false,
“content”: {
“label”: “rootfs_A”,
“filesystem_type”: “ext4”,
“mkfs_options”: “-E nodiscard”,
“filename”: “Reference-Multimedia-Image-verdin-imx8mp.rootfs.tar.xz”,
“uncompressed_size”: 1272.7109375
}
},
{
“partition_size_nominal”: 2048,
“want_maximised”: false,
“content”: {
“label”: “rootfs_B”,
“filesystem_type”: “ext4”,
“mkfs_options”: “-E nodiscard”
}
},
{
“partition_size_nominal”: 2048,
“want_maximised”: false,
“content”: {
“label”: “factory”,
“filesystem_type”: “ext4”,
“mkfs_options”: “-E nodiscard”
}
},
{
“partition_size_nominal”: 512,
“want_maximised”: false,
“content”: {
“label”: “recovery”,
“filesystem_type”: “ext4”,
“mkfs_options”: “-E nodiscard”
}
},
{
“want_maximised”: true,
“content”: {
“label”: “data”,
“filesystem_type”: “ext4”,
“mkfs_options”: “-E nodiscard”
}
}
]
},
{
“name”: “emmc-boot0”,
“erase”: true,
“content”: {
“filesystem_type”: “raw”,
“rawfiles”: [
{
“filename”: “imx-boot”,
“dd_options”: “seek=0”
}
]
}
}
// this is my lokbest tezi image.json file
{
“config_format”: “4”,
“autoinstall”: false,
“name”: “Toradex Embedded Linux Reference Multimedia Image”,
“description”: “Image for BSP verification with QT and multimedia features”,
“version”: “7.5.0-devel-20260710085056+build.0”,
“release_date”: “2026-07-10”,
“u_boot_env”: “u-boot-initial-env-sd”,
“prepare_script”: “prepare.sh”,
“wrapup_script”: “wrapup.sh”,
“marketing”: “marketing.tar”,
“icon”: “toradexlinux.png”,
“license”: “LA_OPT_NXP_SW.html”,
“supported_product_ids”: [
“0058”,
“0061”,
“0063”,
“0064”,
“0065”,
“0066”,
“0070”
],
“blockdevs”: [
{
“name”: “emmc”,
“partitions”: [
{
“partition_size_nominal”: 48,
“want_maximised”: false,
“content”: {
“label”: “BOOT”,
“filesystem_type”: “FAT”,
“mkfs_options”: “”,
“filename”: “Reference-Multimedia-Image-verdin-imx8mp.rootfs.bootfs.tar.xz”,
“uncompressed_size”: 8.29296875
}
},
{
“partition_size_nominal”: “512”,
“want_maximised”: true,
“content”: {
“label”: “RFS”,
“filesystem_type”: “ext4”,
“mkfs_options”: “-E nodiscard”,
“filename”: “Reference-Multimedia-Image-verdin-imx8mp.rootfs.tar.xz”,
“uncompressed_size”: 1005.98046875
}
}
]
},
{
“name”: “emmc-boot0”,
“erase”: true,
“content”: {
“filesystem_type”: “raw”,
“rawfiles”: [
{
“filename”: “imx-boot”,
“dd_options”: “seek=0”
}
]
}
}
]
} // this is my final image .json
there my problem is I’m not getting the custom partitions after the final build I’m getting the default toradex
Hi Toradex Team,
I’m working on a custom Yocto image for the Verdin iMX8MP (BSP 7.5.x).
My goal is to implement an A/B partition layout (boot_A , boot_B , rootfs_A , rootfs_B , factory , recovery , data ) for OTA, Secure Boot, dm-verity, and dm-crypt.
I created a custom lokbest-tezi-image.json with my desired partition layout. However, after building the image, the generated deploy/images/verdin-imx8mp/image.json still contains the default partition layout (BOOT and RFS only).
After reviewing image_type_tezi.bbclass , I noticed that it generates image.json by calling rootfs_tezi_emmc() and rootfs_tezi_json() , rather than reading an external JSON file.
My questions are:
- What is the recommended and supported way to customize the TEZI partition layout?
- Is it possible to provide a custom
image.json, or is the expected approach to extend/overriderootfs_tezi_emmc()? - If overriding is the recommended approach, what is the best way to do it without modifying
image_type_tezi.bbclassdirectly, so that BSP updates remain easy?
Any guidance or examples for implementing a custom A/B partition layout would be greatly appreciated.
Thank you.