<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11589</bug_id>
          
          <creation_ts>2017-05-29 21:17:30 +0000</creation_ts>
          <short_desc>ubi and ubifs image compression failed on do_image_ubi and do_image_ubifs</short_desc>
          <delta_ts>2017-07-05 20:39:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.yoctoproject.org/docs/2.2/mega-manual/mega-manual.html#var-IMAGE_TYPES</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4 M2</target_milestone>
          
          <blocked>10745</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Francisco Pedraza">francisco.j.pedraza.gonzalez</reporter>
          <assigned_to name="Choong Yin Thong">yin.thong.choong</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Francisco Pedraza">francisco.j.pedraza.gonzalez</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Found by QA test)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73553</commentid>
    <comment_count>0</comment_count>
      <attachid>3779</attachid>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2017-05-29 21:17:30 +0000</bug_when>
    <thetext>Created attachment 3779
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 &quot;conf/local.conf&quot;
IMAGE_FSTYPES += &quot;ubi ubifs&quot;
2. Compile
$ bitbake core-image-minimal

Expected result:
The compilation process should be performed successfully and the generated compressed image should be at: &quot;~/tmp/deploy/images/machine/&quot;

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 &apos;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}&apos;
| 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 &apos;1&apos;
NOTE: Tasks Summary: Attempted 2397 tasks of which 2391 didn&apos;t need to be rerun and 1 failed.


Build Configuration:
BB_VERSION        = &quot;1.34.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal-4.8&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.3&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;


Attached you can find logs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73554</commentid>
    <comment_count>1</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2017-05-29 21:19:50 +0000</bug_when>
    <thetext>I has relation with another implementation I am working on: https://bugzilla.yoctoproject.org/show_bug.cgi?id=10745</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73934</commentid>
    <comment_count>2</comment_count>
    <who name="Choong Yin Thong">yin.thong.choong</who>
    <bug_when>2017-06-09 09:53:33 +0000</bug_when>
    <thetext>Please add below configuration in conf/local.conf and the build will successful.
MKUBIFS_ARGS = &quot; -m 512 -e 15360 -c 3600 &quot;
UBINIZE_ARGS = &quot; -p 16KiB -m 512 -s 512 &quot;


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.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3779</attachid>
            <date>2017-05-29 21:17:30 +0000</date>
            <delta_ts>2017-05-29 21:17:30 +0000</delta_ts>
            <desc>log do_image_ubifs</desc>
            <filename>log.do_image_ubifs.33938</filename>
            <type>application/octet-stream</type>
            <size>842</size>
            <attacher name="Francisco Pedraza">francisco.j.pedraza.gonzalez</attacher>
            
              <data encoding="base64">REVCVUc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