Re: [yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-11 Thread Josef Holzmayr

On 11.04.2017 08:48, Maier, Chris wrote:
> Hi,
>  The usual question 
>
> Chris
>

*sigh*

I've tried to get in touch via non-list email (as for overly aggressive 
mail servers), and even called the company but you didn't pick up the 
phone. So Chris - if you ever read this: I really tried. Obviously 
there's no other choice than bluntly ignoring this topic.


Greetz,
--
Josef Holzmayr
Software Developer Embedded Systems

Tel: +49 8444 9204-48
Fax: +49 8444 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
———
Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548

_
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548

--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-11 Thread Maier, Chris
Hi, 

I want to create a deployable SD card image. My board (beaglebone based) boots 
from SD card and runs a script which copies the rootfs.tar.bz2 to the flash 
memory. 
So how can I deploy a copy of the whole rootfs to ${D}/home/root? 
A rootfs in the rootfs, does that make sense? 

Any help is appreciated. 

Chris
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-11 Thread Enrico Joerns

On 04/10/2017 09:53 PM, Khem Raj wrote:

On 4/10/17 4:28 AM, Maier, Chris wrote:

Hi,

I want to create a deployable SD card image. My board (beaglebone based) boots 
from SD card and runs a script which copies the rootfs.tar.bz2 to the flash 
memory.
So how can I deploy a copy of the whole rootfs to ${D}/home/root?
A rootfs in the rootfs, does that make sense?



you could write a image post processing function to do it.


Any help is appreciated.

Chris Maier


This is now the 4th! time you post this exact same question without 
reacting on any reply!


Stop that!!

--
Pengutronix e.K.   | Enrico Jörns|
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 |
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-10 Thread Andre McCurdy
On Mon, Apr 10, 2017 at 4:28 AM, Maier, Chris  wrote:
> Hi,
>
> I want to create a deployable SD card image. My board (beaglebone based) 
> boots from SD card and runs a script which copies the rootfs.tar.bz2 to the 
> flash memory.
> So how can I deploy a copy of the whole rootfs to ${D}/home/root?
> A rootfs in the rootfs, does that make sense?

Assuming you have two image recipes (inner-image.bb and
outer-image.bb), add something like the following to the
outer-image.bb recipe:

  do_rootfs[depends] += "inner-image:do_image_complete"
  ROOTFS_POSTPROCESS_COMMAND += "copy_inner_image; "
  copy_inner_image () {
install -d ${IMAGE_ROOTFS}/home/root
install -m644 ${DEPLOY_DIR_IMAGE}/inner-image-${MACHINE}.tar.bz2
${IMAGE_ROOTFS}/home/root/rootfs.tar.bz2
  }

Also ensure that either the machine config or inner-image.bb includes:

  IMAGE_FSTYPES += "tar.bz2"

> Any help is appreciated.
>
> Chris Maier
>
> Geschäftsführung: Brigitte Vöster-Alber (Vorsitzende), Andrea Alexandra 
> Alber, Marc Alber, Florian Birkenmayer
> Vorsitzender des Aufsichtsrates: Prof. Dr. Dr. Ulli Arnold, Amtsgericht 
> Stuttgart HRB 250329, Tel: +49 7152 203 0
> GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg, Germany
>
>
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-10 Thread Khem Raj


On 4/10/17 4:28 AM, Maier, Chris wrote:
> Hi, 
> 
> I want to create a deployable SD card image. My board (beaglebone based) 
> boots from SD card and runs a script which copies the rootfs.tar.bz2 to the 
> flash memory. 
> So how can I deploy a copy of the whole rootfs to ${D}/home/root? 
> A rootfs in the rootfs, does that make sense? 
> 

you could write a image post processing function to do it.

> Any help is appreciated. 
> 
> Chris Maier
> 
> 
> 
> Geschäftsführung: Brigitte Vöster-Alber (Vorsitzende), Andrea Alexandra 
> Alber, Marc Alber, Florian Birkenmayer
> Vorsitzender des Aufsichtsrates: Prof. Dr. Dr. Ulli Arnold, Amtsgericht 
> Stuttgart HRB 250329, Tel: +49 7152 203 0
> GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg, Germany
> 
> 
> 



signature.asc
Description: OpenPGP digital signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-10 Thread Maier, Chris
Hi, 

I want to create a deployable SD card image. My board (beaglebone based) boots 
from SD card and runs a script which copies the rootfs.tar.bz2 to the flash 
memory. 
So how can I deploy a copy of the whole rootfs to ${D}/home/root? 
A rootfs in the rootfs, does that make sense? 

Any help is appreciated. 

Chris Maier



Geschäftsführung: Brigitte Vöster-Alber (Vorsitzende), Andrea Alexandra Alber, 
Marc Alber, Florian Birkenmayer
Vorsitzender des Aufsichtsrates: Prof. Dr. Dr. Ulli Arnold, Amtsgericht 
Stuttgart HRB 250329, Tel: +49 7152 203 0
GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg, Germany



-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-06 Thread Enrico Joerns

On 04/06/2017 10:37 AM, Josef Holzmayr wrote:

On 06.04.2017 10:31, Maier, Chris wrote:

Hi,

I want to create a deployable SD card image. My board (beaglebone
based) boots from SD card and runs a script which copies the
rootfs.tar.bz2 to the flash memory.
So how can I deploy a copy of the whole rootfs to ${D}/home/root?
A rootfs in the rootfs, does that make sense?

Any help is appreciated.

Chris
*i.A. **Chris Maier *
*Software-Entwicklungsingenieur *

Phone: +49 7152 203 6741 | Fax: +49 7152 203 76741 | c.ma...@geze.com
GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg | www.geze.com

SAVE PAPER - THINK BEFORE YOU PRINT


SAVE MAILS - THINK BEFORE YOU SEND


YouTube  Facebook
 LinkedIn
 Twitter
 Xing
 Geschäftsführung:
Brigitte Vöster-Alber (Vorsitzende), Andrea Alexandra Alber, Marc
Alber, Florian Birkenmayer
Vorsitzender des Aufsichtsrates: Prof. Dr. Dr. Ulli Arnold,
Amtsgericht Stuttgart HRB 250329, Tel: +49 7152 203 0
GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg, Germany



Why are you asking the exact same question the third time now?


Maybe your IT allows only outgoing mail transport?.. haha

Or its a misconfiguration of some sort of nodupes settings and you 
assume you have not sent it, yet?.. Just look at the answers, you have!



Enrico

--
Pengutronix e.K.   | Enrico Jörns|
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 |
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-06 Thread Josef Holzmayr

On 06.04.2017 10:31, Maier, Chris wrote:

Hi,

I want to create a deployable SD card image. My board (beaglebone based) 
boots from SD card and runs a script which copies the rootfs.tar.bz2 to 
the flash memory.

So how can I deploy a copy of the whole rootfs to ${D}/home/root?
A rootfs in the rootfs, does that make sense?

Any help is appreciated.

Chris
*i.A. **Chris Maier *
*Software-Entwicklungsingenieur *

Phone: +49 7152 203 6741 | Fax: +49 7152 203 76741 | c.ma...@geze.com
GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg | www.geze.com

SAVE PAPER - THINK BEFORE YOU PRINT
YouTube  Facebook 
 LinkedIn 
 Twitter 
 Xing 
 	Geschäftsführung: Brigitte 
Vöster-Alber (Vorsitzende), Andrea Alexandra Alber, Marc Alber, Florian 
Birkenmayer
Vorsitzender des Aufsichtsrates: Prof. Dr. Dr. Ulli Arnold, Amtsgericht 
Stuttgart HRB 250329, Tel: +49 7152 203 0

GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg, Germany



Why are you asking the exact same question the third time now?

--
Josef Holzmayr
Software Developer Embedded Systems

Tel: +49 8444 9204-48
Fax: +49 8444 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
———
Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548

_
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548

--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-06 Thread Maier, Chris
Hi, 

I want to create a deployable SD card image. My board (beaglebone based) boots 
from SD card and runs a script which copies the rootfs.tar.bz2 to the flash 
memory. 
So how can I deploy a copy of the whole rootfs to ${D}/home/root? 
A rootfs in the rootfs, does that make sense? 

Any help is appreciated. 

Chris

 i.A. Chris Maier 
Software-Entwicklungsingenieur 

Phone: +49 7152 203 6741 | Fax: +49 7152 203 76741 | c.ma...@geze.com 
GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg | www.geze.com 
SAVE PAPER - THINK BEFORE YOU PRINT
   Geschäftsführung: Brigitte Vöster-Alber (Vorsitzende), Andrea 
Alexandra Alber, Marc Alber, Florian Birkenmayer 
Vorsitzender des Aufsichtsrates: Prof. Dr. Dr. Ulli Arnold, Amtsgericht 
Stuttgart HRB 250329, Tel: +49 7152 203 0 
GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg, Germany 
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-06 Thread Enrico Joerns

Hi Chris,

On 04/06/2017 08:50 AM, Josef Holzmayr wrote:

Hi,

On 06.04.2017 08:41, Maier, Chris wrote:

Hi,

I want to create a deployable SD card image. My board (beaglebone
based) boots from SD card and runs a script which copies the
rootfs.tar.bz2 to the flash memory.

So how can I deploy a copy of the whole rootfs to ${D}/home/root?

A rootfs in the rootfs, does that make sense?


Partially. Sounds like you want to invent your own update mechanism.
Have you had a look at the already existing ones, specifically swupdate?


if you intend to build an update system, Josef is right, choose an 
existing (image/archive-based) one. Here is a good overview and 
comparison of update frameworks currently supported by meta layers:


  https://wiki.yoctoproject.org/wiki/System_Update

If you intend to do this for factory bootstrapping your device instead, 
i.e. you also set up the flash partitioning etc. this is partly out of 
the scope of these tools. A typical setup we use for this is a rootfs 
partition on your disk that you start your factory system from, and a 
second data partition where you place your rootfs in.


We use the `genimage` [1] tool for creating such images that also allows 
packing build images into a data partition, but this should be possible 
with Yocto's `wic` [2], too.


Note that you can also do a two-step approach where you set-up the flash 
storage with a script first and then already use an update tool to 
deploy the initial content (from the data partition) to it. Note that 
not all tools will support this by their configuration, currently.



Best regards, Enrico


[1] https://git.pengutronix.de/cgit/meta-ptx/tree/classes/genimage.bbclass
[2] 
http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#creating-partitioned-images


--
Pengutronix e.K.   | Enrico Jörns|
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 |
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-06 Thread Josef Holzmayr

Hi,

On 06.04.2017 08:41, Maier, Chris wrote:

Hi,

I want to create a deployable SD card image. My board (beaglebone based) 
boots from SD card and runs a script which copies the rootfs.tar.bz2 to 
the flash memory.


So how can I deploy a copy of the whole rootfs to ${D}/home/root?

A rootfs in the rootfs, does that make sense?


Partially. Sounds like you want to invent your own update mechanism. 
Have you had a look at the already existing ones, specifically swupdate?


Greetz
--
Josef Holzmayr
Software Developer Embedded Systems

Tel: +49 8444 9204-48
Fax: +49 8444 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
———
Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548

_
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548

--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-06 Thread Maier, Chris
Hi,

I want to create a deployable SD card image. My board (beaglebone based) boots 
from SD card and runs a script which copies the rootfs.tar.bz2 to the flash 
memory.
So how can I deploy a copy of the whole rootfs to ${D}/home/root?
A rootfs in the rootfs, does that make sense?

Any help is appreciated.

Chris


 i.A. Chris Maier 
Software-Entwicklungsingenieur 

Phone: +49 7152 203 6741 | Fax: +49 7152 203 76741 | c.ma...@geze.com 
GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg | www.geze.com 
SAVE PAPER - THINK BEFORE YOU PRINT
   Geschäftsführung: Brigitte Vöster-Alber (Vorsitzende), Andrea 
Alexandra Alber, Marc Alber, Florian Birkenmayer 
Vorsitzender des Aufsichtsrates: Prof. Dr. Dr. Ulli Arnold, Amtsgericht 
Stuttgart HRB 250329, Tel: +49 7152 203 0 
GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg, Germany 
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-05 Thread Mike Looijmans

On 05-04-17 13:21, Maier, Chris wrote:

Hi,



I want to create a deployable SD card image. My board (beaglebone based) boots
from SD card and runs a script which copies the rootfs.tar.bz2 to the flash
memory.

So how can I deploy a copy of the whole rootfs to ${D}/home/root?

A rootfs in the rootfs, does that make sense?


I do it like this:

http://lists.openembedded.org/pipermail/openembedded-core/2017-April/135187.html


The idea is that you make a regular package that contains the tar.bz2 of the 
image you want in flash and put that into the image for the SD card.


You cannot have the same image, since that would recursively include itself, 
but you could make big-image.bb like this:


require small-image.bb
IMAGE_INSTALL += "big-project"




Kind regards,

Mike Looijmans
System Expert

TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijm...@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail





--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-05 Thread Fabien Lahoudere
On Wed, 2017-04-05 at 11:21 +, Maier, Chris wrote:
> Hi,
>  
> I want to create a deployable SD card image. My board (beaglebone based) 
> boots from SD card and
> runs a script which copies the rootfs.tar.bz2 to the flash memory.
> So how can I deploy a copy of the whole rootfs to ${D}/home/root?
> A rootfs in the rootfs, does that make sense?

I don't think it is good if both rootfs are based on the same image.

>  
> Any help is appreciated.
> 

My first idea will be to create an install image for sd card depending on your 
image rootfs tarball.

$ cat installer-image.bb
...
do_rootfs[depends] += "original-image"

ROOTFS_POSTPROCESS_COMMAND = my-copy-image-to-installer-rootfs

my-copy-image-to-installer-rootfs() {
  cp ??.tar.bz2 ${D}/home/root
}

But maybe it is not the best solution.

You can look at meta/classes/image-live.bbclass which provides a similar 
mechanism.

>  
> Chris
>   i.A. CHRIS MAIER 
> Software-Entwicklungsingenieur 
> 
> Phone: +49 7152 203 6741 | Fax: +49 7152 203 76741 | c.ma...@geze.com 
> GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg | www.geze.com 
> 
>    SAVE PAPER - THINK BEFORE YOU PRINT
>   Geschäftsführung: Brigitte Vöster-Alber (Vorsitzende), 
> Andrea Alexandra
> Alber, Marc Alber, Florian Birkenmayer 
> Vorsitzender des Aufsichtsrates: Prof. Dr. Dr. Ulli Arnold, Amtsgericht 
> Stuttgart HRB 250329, Tel:
> +49 7152 203 0 
> GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg, Germany
> 
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Install rootfs.tar.bz2 to ${D}/home/root/

2017-04-05 Thread Maier, Chris
Hi,

I want to create a deployable SD card image. My board (beaglebone based) boots 
from SD card and runs a script which copies the rootfs.tar.bz2 to the flash 
memory.
So how can I deploy a copy of the whole rootfs to ${D}/home/root?
A rootfs in the rootfs, does that make sense?

Any help is appreciated.

Chris

 i.A. Chris Maier 
Software-Entwicklungsingenieur 

Phone: +49 7152 203 6741 | Fax: +49 7152 203 76741 | c.ma...@geze.com 
GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg | www.geze.com 
SAVE PAPER - THINK BEFORE YOU PRINT
   Geschäftsführung: Brigitte Vöster-Alber (Vorsitzende), Andrea 
Alexandra Alber, Marc Alber, Florian Birkenmayer 
Vorsitzender des Aufsichtsrates: Prof. Dr. Dr. Ulli Arnold, Amtsgericht 
Stuttgart HRB 250329, Tel: +49 7152 203 0 
GEZE GmbH, Reinhold-Vöster-Straße 21-29, 71229 Leonberg, Germany 
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto