Bug 11589 - ubi and ubifs image compression failed on do_image_ubi and do_image_ubifs
Summary: ubi and ubifs image compression failed on do_image_ubi and do_image_ubifs
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.4
Hardware: x86 x86
: Medium normal
Target Milestone: 2.4 M2
Assignee: Choong Yin Thong
QA Contact: Francisco Pedraza
URL: http://www.yoctoproject.org/docs/2.2/...
Whiteboard:
Depends on:
Blocks: 10745
  Show dependency tree
 
Reported: 2017-05-29 21:17 UTC by Francisco Pedraza
Modified: 2017-07-05 20:39 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Found by QA test)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
log do_image_ubifs (842 bytes, application/octet-stream)
2017-05-29 21:17 UTC, Francisco Pedraza
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco Pedraza 2017-05-29 21:17:30 UTC
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.
Comment 1 Francisco Pedraza 2017-05-29 21:19:50 UTC
I has relation with another implementation I am working on: https://bugzilla.yoctoproject.org/show_bug.cgi?id=10745
Comment 2 Choong Yin Thong 2017-06-09 09:53:33 UTC
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.