[yocto] <EXT> Re: wic utility
Srinivasan, Raja
rsrinivasan at abiomed.com
Thu Feb 21 14:35:11 PST 2019
Sorry for the delay.
Yes. Simple things worked fine. I wanted to copy a dir to a partition inside the sdcard image and that was not successful.
I ended up writing a utility to perform the function I needed. It is somewhat customized to our image but if anyone needs, I will be happy to share my findings. srini
From: Kevin Hao <kexin.hao at windriver.com>
Sent: Thursday, January 24, 2019 1:46 AM
To: Srinivasan, Raja <rsrinivasan at abiomed.com>
Cc: yocto at yoctoproject.org
Subject: <EXT> Re: [yocto] wic utility
On Wed, Jan 23, 2019 at 04:39:07PM +0000, Srinivasan, Raja wrote:
> I am using wic 0.2.0 from the rocko build.
>
>
>
> wic cp file wifile:part/path
>
>
>
> appears to succeed (no errors reported).
>
>
>
> But when I perform wic ls I don’t find the file in the target.
>
>
>
> Are there any switches the I should be using?
It seems that it works fine on the master branch.
$ wic ls tmp/deploy/images/beaglebone-yocto/core-image-sato-beaglebone-yocto.wic:2
debugfs 1.43.5 (04-Aug-2017)
2 40755 (2) 0 0 4096 23-Jan-2019 14:04 .
2 40755 (2) 0 0 4096 23-Jan-2019 14:04 ..
11 40700 (2) 0 0 16384 23-Jan-2019 14:04 lost+found
12 40755 (2) 0 0 4096 23-Jan-2019 13:56 lib
456 40755 (2) 0 0 4096 23-Jan-2019 13:43 dev
457 40555 (2) 0 0 4096 23-Jan-2019 13:43 proc
458 40755 (2) 0 0 4096 23-Jan-2019 13:43 media
459 40755 (2) 0 0 4096 23-Jan-2019 14:04 boot
465 40755 (2) 0 0 4096 23-Jan-2019 14:03 mnt
467 40755 (2) 0 0 4096 23-Jan-2019 13:57 usr
9582 40755 (2) 0 0 4096 23-Jan-2019 13:56 var
9639 40555 (2) 0 0 4096 23-Jan-2019 13:43 sys
9640 40755 (2) 0 0 4096 23-Jan-2019 14:04 etc
10373 40755 (2) 0 0 4096 23-Jan-2019 14:03 sbin
10437 40755 (2) 0 0 4096 23-Jan-2019 13:43 run
10438 41777 (2) 0 0 4096 23-Jan-2019 13:43 tmp
10439 40755 (2) 0 0 4096 23-Jan-2019 14:03 home
10441 40755 (2) 0 0 4096 23-Jan-2019 14:03 bin
$ wic cp a.txt tmp/deploy/images/beaglebone-yocto/core-image-sato-beaglebone-yocto.wic:2
$ wic ls tmp/deploy/images/beaglebone-yocto/core-image-sato-beaglebone-yocto.wic:2
debugfs 1.43.5 (04-Aug-2017)
2 40755 (2) 0 0 4096 23-Jan-2019 14:04 .
2 40755 (2) 0 0 4096 23-Jan-2019 14:04 ..
11 40700 (2) 0 0 16384 23-Jan-2019 14:04 lost+found
12 40755 (2) 0 0 4096 23-Jan-2019 13:56 lib
456 40755 (2) 0 0 4096 23-Jan-2019 13:43 dev
457 40555 (2) 0 0 4096 23-Jan-2019 13:43 proc
458 40755 (2) 0 0 4096 23-Jan-2019 13:43 media
459 40755 (2) 0 0 4096 23-Jan-2019 14:04 boot
465 40755 (2) 0 0 4096 23-Jan-2019 14:03 mnt
467 40755 (2) 0 0 4096 23-Jan-2019 13:57 usr
9582 40755 (2) 0 0 4096 23-Jan-2019 13:56 var
9639 40555 (2) 0 0 4096 23-Jan-2019 13:43 sys
9640 40755 (2) 0 0 4096 23-Jan-2019 14:04 etc
10373 40755 (2) 0 0 4096 23-Jan-2019 14:03 sbin
10437 40755 (2) 0 0 4096 23-Jan-2019 13:43 run
10438 41777 (2) 0 0 4096 23-Jan-2019 13:43 tmp
10439 40755 (2) 0 0 4096 23-Jan-2019 14:03 home
10441 40755 (2) 0 0 4096 23-Jan-2019 14:03 bin
10514 100644 (1) 0 0 4 24-Jan-2019 14:23 a.txt
There should be no change for the Disk.copy() function between rocko and master
branch. Anyway could you have a try on the latest master branch?
Thanks,
Kevin
>
>
>
> Thanks for any pointers, srini
>
>
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
>
> CONFIDENTIALITY NOTICE: This email message and any attachments are confidential
> and may be privileged and are meant to be read by the intended recipient only.
> If you are not the intended recipient, please notify sender immediately and
> destroy all copies of this message and any attachments without reading or
> disclosing their contents. Thank you
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org <mailto:yocto at yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/yocto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190221/974234ca/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190221/974234ca/attachment.pgp>
More information about the yocto
mailing list