partition 3 is created through OS installation, where we set in image.json.
image json per below.
{
"config_format": 2,
"autoinstall": true,
"name": "project",
"description": "Image without graphical interface",
"version": "5.7.2",
"release_date": "2024-01-23",
"u_boot_env": "uEnv.txt",
"prepare_script": "prepare.sh",
"wrapup_script": "wrapup.sh",
"marketing": "marketing.tar",
"icon": "toradexlinux.png",
"supported_product_ids": [
"0027",
"0028",
"0029",
"0035"
],
"blockdevs": [
{
"name": "mmcblk0",
"partitions": [
{
"partition_size_nominal": 16,
"want_maximised": false,
"content": {
"label": "BOOT",
"filesystem_type": "FAT",
"mkfs_options": "",
"filename": "project-Image-apalis-imx6.bootfs.tar.xz",
"uncompressed_size": 6.19140625
}
},
{
"partition_size_nominal": 1536,
"want_maximised": false,
"content": {
"label": "RFS",
"filesystem_type": "ext4",
"mkfs_options": "",
"filename": "project-Image-apalis-imx6.tar.xz",
"uncompressed_size": 314.04296875
}
},
{
"partition_size_nominal": 256,
"want_maximised": false,
"content": {
"label": "TEZI",
"filesystem_type": "ext4",
"mkfs_options": "",
"filename": "project-TEZI-5741-apalis-imx6.tar.xz",
"uncompressed_size": 106.494
}
},
{
"partition_size_nominal": 1536,
"want_maximised": false,
"content": {
"label": "DATA",
"filesystem_type": "ext4",
"mkfs_options": "",
"filename": "project-files-apalis-imx6.tar.xz",
"uncompressed_size": 1
}
}
]
},
{
"name": "mmcblk0boot0",
"erase": true,
"content": {
"filesystem_type": "raw",
"rawfiles": [
{
"filename": "SPL",
"dd_options": "seek=2"
},
{
"filename": "u-boot.img",
"dd_options": "seek=138"
}
]
}
}
]
}
we never use mkfs.ext4 command to create this particular partition in our OS.
The issue started when we want to replace the content of TEZI 1.8 that we put in partition 3, with TEZI 5.7. With that, we use the approach of installing it using opkg.
bundle tezi in .ipk format → extract tezi into sdcard → copy tezi to partition 3.
The reason why we have to temporarily placed tezi in sdcard is because we would like to track the version of tezi that has been installed through opkg.