I need to add a new partition in UBIFS or an mtd before the /dev/mtd of UBI, but any change of image.json or customizing image_type_tezi.bbclass doesn’t finish the installation via Tezi.
Log Tezi:
Finished with exit code: 0
Running Command: "/usr/sbin/ubiattach" ("-p", "/dev/mtd5")
Finished with exit code: 0
Running Command: "/usr/sbin/ubimkvol" ("/dev/ubi0", "-N", "kernel", "-n", "0", "-s", "12288KiB", "-t", "static")
Finished with exit code: 0
Raw flash file "zImage"
Running Write Command: sh ("-o", "pipefail", "-c", "cat 'zImage' | pv -b -n 2>/var/volatile/pvpipe | ubiupdatevol /dev/ubi0_0 --size=6704016 -")
Progress: "Limage Embedded Linux Reference Image: Writing raw files"
Write pipe stderr output: ""
Finished writing after 8.024 seconds, 8117136 bytes total so far.
Running Command: "/usr/sbin/ubimkvol" ("/dev/ubi0", "-N", "dtb", "-n", "1", "-s", "128KiB", "-t", "static")
Finished with exit code: 0
Progress: "Limage Embedded Linux Reference Image: Writing raw files"
Raw flash file "imx6ull-colibri-eval-v3.dtb"
Running Write Command: sh ("-o", "pipefail", "-c", "cat 'imx6ull-colibri-eval-v3.dtb' | pv -b -n 2>/var/volatile/pvpipe | ubiupdatevol /dev/ubi0_1 --size=53610 -")
[ 118.687359] UBIFS error (ubi0:3 pid 292): ubifs_mount: can't format empty UBI volume: read-only UBI volume
[ 118.702885] UBIFS error (ubi0:3 pid 292): ubifs_mount: can't format empty UBI volume: read-only UBI volume
Write pipe stderr output: ""
Finished writing after 0.143 seconds, 8170746 bytes total so far.
Running Command: "/usr/sbin/ubimkvol" ("/dev/ubi0", "-N", "m4firmware", "-n", "2", "-s", "896KiB", "-t", "static")
Finished with exit code: 0
Running Command: "/usr/sbin/ubimkvol" ("/dev/ubi0", "-N", "rootfs", "-n", "3", "-s", "358400KiB", "-t", "static")
Finished with exit code: 0
Progress: "Limage Embedded Linux Reference Image: Creating filesystem (ubifs)"
Running Command: "/usr/sbin/mkfs.ubifs" ("/dev/ubi0_3")
Output: "Error: ubi_leb_change_start failed\n Read-only file system (error 30)\n"
Finished with exit code: 255
Running Command: "mount" ("-t", "ubifs", "/dev/ubi0_3", "/run/media/tmp")
Output: "mount: mounting /dev/ubi0_3 on /run/media/tmp failed: Read-only file system\n"
Finished with exit code: 255
Running Command: "/usr/sbin/ubidetach" ("-p", "/dev/mtd5")
Error: "Error mounting file system\nmount: mounting /dev/ubi0_3 on /run/media/tmp failed: Read-only file system\n"
No error script found
Finished with exit code: 0
Error: Timeout reached, aborting...
Partial image.json UBI Block:
{
"name": "ubi",
"ubivolumes": [
{
"name": "kernel",
"size_kib": 12288,
"type": "static",
"content": {
"rawfile": {
"filename": "zImage",
"size": 5
}
}
},
{
"name": "dtb",
"content": {
"rawfiles": [
{
"filename": "imx6ull-colibri-eval-v3.dtb",
"product_ids": "0036"
},
{
"filename": "imx6ull-colibri-wifi-eval-v3.dtb",
"product_ids": "0040"
},
{
"filename": "imx6ull-colibri-eval-v3.dtb",
"product_ids": "0044"
},
{
"filename": "imx6ull-colibri-wifi-eval-v3.dtb",
"product_ids": "0045"
}
]
},
"size_kib": 128,
"type": "static"
},
{
"name": "m4firmware",
"size_kib": 896,
"type": "static"
},
{
"name": "rootfs",
"size_kib": 358400,
"type": "static",
"content": {
"filesystem_type": "ubifs",
"filename": "limage-colibri-imx6ull.tar.xz",
"uncompressed_size": 199.77734375
}
},
{
"name": "data",
"size_kib": 50120,
"type": "static",
"content": { }
}
]
Colibri iMX6ULL 256MB V1.1A
IRIS Carrier Board V1.1A
Linux BSP 5.7.1