| Summary: | need to document new wic features wic cp, wic rm, and wic ls. | ||
|---|---|---|---|
| Product: | [Documentation] Development Manual | Reporter: | brian avery <brian.avery> |
| Component: | development | Assignee: | Scott Rifenbark <srifenbark> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | kristi, sgw, srifenbark |
| Version: | 2.4 | ||
| Target Milestone: | 2.5 M1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | 13 Oct 2017: RESOLVED | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Done (doc changes complete) | |
|
Description
brian avery
2017-10-05 01:54:39 UTC
Currently working this stuff. Had to do a lot of other stuff to the Wic-related documentation. 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 So, this worked fine for me:
off of
BB_VERSION = "1.35.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "2.4"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "master:96967261993f8b583b51cdeccbb1fd06042d2192"
+++++
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 '1' instead of 0
output: /usr/bin/mdir: File "::vmlinuz" 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.
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: +++++++ 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 "done" as well. thanks Scott 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 looks good to me |