Created attachment 3779 [details] log do_image_ubifs Ubi and Ubifs image compression failed on do_image_ubi and do_image_ubifs when compiling. Steps to reproduce 1. Add the following variables to "conf/local.conf" IMAGE_FSTYPES += "ubi ubifs" 2. Compile $ bitbake core-image-minimal Expected result: The compilation process should be performed successfully and the generated compressed image should be at: "~/tmp/deploy/images/machine/" Actual result: The compilation image process failed getting the following error message: ERROR: core-image-minimal-1.0-r0 do_image_ubifs: Function failed: do_image_ubifs (log file is located at /home/fjpedraz/Bugs/2.4/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_ubifs.33938) ERROR: Logfile of failure stored in: /home/fjpedraz/Bugs/2.4/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_ubifs.33938 Log data follows: | DEBUG: Executing python function set_image_size | DEBUG: Python function set_image_size finished | DEBUG: Executing shell function do_image_ubifs | Error: min. I/O unit was not specified (use -h for help) | WARNING: /home/fjpedraz/Bugs/2.4/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/run.do_image_ubifs.33938:1 exit 255 from 'mkfs.ubifs -r /home/fjpedraz/Bugs/2.4/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs -o /home/fjpedraz/Bugs/2.4/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/core-image-minimal-qemux86-20170529211127.rootfs.ubifs ${MKUBIFS_ARGS}' | ERROR: Function failed: do_image_ubifs (log file is located at /home/fjpedraz/Bugs/2.4/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_ubifs.33938) ERROR: Task (/home/fjpedraz/Bugs/2.4/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_ubifs) failed with exit code '1' NOTE: Tasks Summary: Attempted 2397 tasks of which 2391 didn't need to be rerun and 1 failed. Build Configuration: BB_VERSION = "1.34.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal-4.8" TARGET_SYS = "i586-poky-linux" MACHINE = "qemux86" DISTRO = "poky" DISTRO_VERSION = "2.3" TUNE_FEATURES = "m32 i586" TARGET_FPU = "" Attached you can find logs.
I has relation with another implementation I am working on: https://bugzilla.yoctoproject.org/show_bug.cgi?id=10745
Please add below configuration in conf/local.conf and the build will successful. MKUBIFS_ARGS = " -m 512 -e 15360 -c 3600 " UBINIZE_ARGS = " -p 16KiB -m 512 -s 512 " https://lists.yoctoproject.org/pipermail/yocto/2013-June/014757.html Enhancement on image_type.bbclass in order to pre-early bring out the error and example configuration for any ubi and ubifs image build.