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 <[email protected]> 
Sent: Thursday, January 24, 2019 1:46 AM
To: Srinivasan, Raja <[email protected]>
Cc: [email protected]
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 
> [email protected] <mailto:[email protected]>  
> https://lists.yoctoproject.org/listinfo/yocto 

 

Attachment: pgpUmC5h4GCPl.pgp
Description: PGP signature

-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to