<?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>12191</bug_id>
          
          <creation_ts>2017-10-05 01:54:39 +0000</creation_ts>
          <short_desc>need to document new wic features wic cp, wic rm, and wic ls.</short_desc>
          <delta_ts>2017-10-14 16:57:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Development Manual</product>
          <component>development</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>13 Oct 2017: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>kristi</cc>
    
    <cc>sgw</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77371</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-10-05 01:54:39 +0000</bug_when>
    <thetext>There is alot of information in the help for the command. Also, I briefly show how these can be used in 
https://wiki.yoctoproject.org/wiki/TipsAndTricks/KernelDevelopmentWithEsdk</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77526</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2017-10-11 22:46:56 +0000</bug_when>
    <thetext>Currently working this stuff.  Had to do a lot of other stuff to the Wic-related documentation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77569</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2017-10-13 15:54:50 +0000</bug_when>
    <thetext>Setting this to NEEDINFO since the example I put in to document Wic ls, rm, and cp does not work.  Need Brian or someone to figure out what is wrong and then I can update the doc.

See http://www.yoctoproject.org/docs/2.4/dev-manual/dev-manual.html#using-wic-to-manipulate-an-image for the example in the dev-manual.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77577</commentid>
    <comment_count>3</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-10-13 19:40:14 +0000</bug_when>
    <thetext>So, this worked fine for me:
off of 
BB_VERSION        = &quot;1.35.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;qemux86-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.4&quot;
TUNE_FEATURES     = &quot;m64 core2&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-poky         
meta-yocto-bsp    = &quot;master:96967261993f8b583b51cdeccbb1fd06042d2192&quot;
+++++
Command sequence:
bitbake core-image-base
$ wic ls tmp/deploy/images/qemux86-64/core-image-base-qemux86-64.wic:1
$ wic rm tmp/deploy/images/qemux86-64/core-image-base-qemux86-64.wic:1/vmlinuz
$ wic ls tmp/deploy/images/qemux86-64/core-image-base-qemux86-64.wic:1/vmlinuz
ERROR: _exec_cmd: /usr/bin/mdir -i /tmp/wic-partorr5t734 ::vmlinuz returned &apos;1&apos; instead of 0
output: /usr/bin/mdir: File &quot;::vmlinuz&quot; not found
$ devtool modify linux-yocto
$emacs -nw workspace/sources/linux-yocto/init/calibrate.c
 -- added printk to calibrate_delay
$ devtool build linux-yocto
$ wic cp tmp/work/qemux86_64-poky-linux/linux-yocto/4.12.12+git999-r0/linux-yocto-4.12.12+git999/arch/x86/boot/bzImage tmp/deploy/images/qemux86-64/core-image-base-qemux86-64.wic:1/vmlinuz
$ wic ls tmp/deploy/images/qemux86-64/core-image-base-qemux86-64.wic:1/vmlinuz     
Volume in drive : is boot       
 Volume Serial Number is 7539-E70E
Directory for ::/

vmlinuz        7397936 2017-10-13  12:35 
        1 file            7 397 936 bytes
                         16 582 656 bytes free
$  runqemu wic kvm nographic
dmesg | grep BAV
[    0.002003] BAVERY INIT FU
So, my new kernel + changes did get included in the wic image.

Assiging it back to scott. ping me if more info needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77578</commentid>
    <comment_count>4</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-10-13 19:46:25 +0000</bug_when>
    <thetext>also, additional comment:
CURRENT:
If you see the following error, you need to update or create a ~/.mtoolsrc with the suggested statement and then run the Wic command again:
SUGGEST:
If you see the following error, you need to update or create a ~/.mtoolsrc containing the line “mtools_skip_check=1“  and then run the Wic command again:
+++++++</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77579</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2017-10-13 19:52:12 +0000</bug_when>
    <thetext>I am setting this bug to RESOLVED as Brian proved the critical wic commands worked.  We therefore have documented their use.  Putting the doc flag to &quot;done&quot; as well. 

thanks 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77581</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2017-10-13 19:57:03 +0000</bug_when>
    <thetext>Brian, 

See step 2 of http://www.yoctoproject.org/docs/2.4/dev-manual/dev-manual.html#using-wic-to-manipulate-an-image for that last minute change in the note.  

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77594</commentid>
    <comment_count>7</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-10-14 16:57:40 +0000</bug_when>
    <thetext>looks good to me</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>