<?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>13826</bug_id>
          
          <creation_ts>2020-03-10 21:46:12 +0000</creation_ts>
          <short_desc>Default EXTRA_IMAGECMD_jffs2 drops JFFS2_ENDIANNESS</short_desc>
          <delta_ts>2020-03-10 21:56:05 +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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Dröscher">yocto</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>86692</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Dröscher">yocto</who>
    <bug_when>2020-03-10 21:46:12 +0000</bug_when>
    <thetext>I think ${JFFS2_ENDIANNESS} has no effect (jffs2 will always be generated as big endian, the default of mkfs.jffs2).

meta/classes/image_types.bbclass defines default arguments for mkfs.jffs2:

EXTRA_IMAGECMD_jffs2 ?= &quot;--pad ${JFFS2_ENDIANNESS} --eraseblock=${JFFS2_ERASEBLOCK} --no-cleanmarkers&quot;

Those are inserted into 
IMAGE_CMD_jffs2 = &quot;mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 ${EXTRA_IMAGECMD}&quot; 

According to &quot;man mkfs.jffs2&quot;:

-p, --pad[=SIZE]
 Pad output to SIZE bytes with 0xFF.  If SIZE is not specified, the output is padded to the end of the final erase block.

pad expects a size argument.

mkfs.jffs2 now silently accepts -b or -l and converts it to 0. Hence the argument is already consumed and will not have the intended effect.

Workaround: Overwrite EXTRA_IMAGECMD_jffs2 in image-recipe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86693</commentid>
    <comment_count>1</comment_count>
    <who name="Andreas Dröscher">yocto</who>
    <bug_when>2020-03-10 21:56:05 +0000</bug_when>
    <thetext>Sorry for opening the ticket. I just noticed size should be optional. Therefore my issue must have different source.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>