From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from slsa667.piensasolutions.com ([217.76.150.252]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SbWIc-0003QN-P3 for barebox@lists.infradead.org; Mon, 04 Jun 2012 12:22:20 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-02.piensasolutions.com (Postfix) with ESMTP id 1212D2A0C85 for ; Mon, 4 Jun 2012 14:22:14 +0200 (CEST) Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by smtp-02.piensasolutions.com (Postfix) with ESMTPSA id DB2DA2A0C64 for ; Mon, 4 Jun 2012 14:22:13 +0200 (CEST) Received: by eekd17 with SMTP id d17so2120385eek.36 for ; Mon, 04 Jun 2012 05:22:13 -0700 (PDT) MIME-Version: 1.0 From: Benoit RAT Date: Mon, 4 Jun 2012 14:21:53 +0200 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5394868273213771763==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Loading Cpio (gz) image as rootfs To: barebox@lists.infradead.org --===============5394868273213771763== Content-Type: multipart/alternative; boundary=90e6ba5bb91176a80804c1a495f0 --90e6ba5bb91176a80804c1a495f0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hy everybody, I was wondering if it was possible to load a cpio.gz image as rootfs! (I think it is the kernel that load it so it should not be a problem) however I don't know how to pass the arguments. Here you can find the commands, that i am using: addpart /dev/mem 8M@0x71000000(kernel); tftp zImage /dev/mem.kernel addpart /dev/mem 32M@0x72000000(fs) tftp image.cpio.gz /dev/mem.fs bootargs=3D"$bootargs root=3D/dev/ram0 initrd=3D0x72000000" bootz /dev/mem.kernel Regards, -- *Benoit RAT LAMY* Engineer (Sw) \ Ingeniero (Sw) fix. *(+34) 958 285 024* cel. *(+34) 617 989 123* e-mail: benoit@sevensols.com *www.sevensols.com / **www.sevensecurity.es* _________________________________ *C/ Baza, parcela 19 Nave 3 \ Pol=EDgono Ind. Juncaril \* *18210 - PELIGROS - GRANADA =96SPAIN* --90e6ba5bb91176a80804c1a495f0 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hy everybody,

I was wondering if it was possible to load= a cpio.gz image as rootfs! (I think it is the kernel that load it so it sh= ould not be a problem)
however I don't know how to pass the a= rguments.

Here you can find the commands, that i am using:
<= div>
addpart /dev/mem =A08M@0x71000000(kernel);
tft= p zImage /dev/mem.kernel
addpart /dev/mem =A032M@0x72000000(fs)
tftp image.cpio.gz /dev/mem.fs=A0
bootargs=3D"$boo= targs root=3D/dev/ram0 initrd=3D0x72000000"
bootz /dev/mem.k= ernel

Regards,

--
=A0

Benoit RAT LAMY

Engineer (Sw) \ Ingeniero (= Sw)

fix.=A0(+34) 958 285 024<= /span>

c= el.=A0(+34) 617 989 123

e-mail:=A0benoit@sevensol= s.com

www.se= vensols.com=A0/=A0www.sevensecurity.es

______________________________= ___

C/ Baza, parcela 19 Nave 3= =A0 \ Pol=EDgono Ind. Juncaril \

18210 - PELIGROS - GRANADA =96SPAIN


--90e6ba5bb91176a80804c1a495f0-- --===============5394868273213771763== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============5394868273213771763==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from slsa667.piensasolutions.com ([217.76.150.252]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SbX0n-0004EF-E3 for barebox@lists.infradead.org; Mon, 04 Jun 2012 13:07:58 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-02.piensasolutions.com (Postfix) with ESMTP id BEB572A0C7D for ; Mon, 4 Jun 2012 15:07:55 +0200 (CEST) Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by smtp-02.piensasolutions.com (Postfix) with ESMTPSA id 876B72A0732 for ; Mon, 4 Jun 2012 15:07:55 +0200 (CEST) Received: by eekd17 with SMTP id d17so2140462eek.36 for ; Mon, 04 Jun 2012 06:07:55 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Benoit RAT Date: Mon, 4 Jun 2012 15:07:34 +0200 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1886067312897799352==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Loading Cpio (gz) image as rootfs To: barebox@lists.infradead.org --===============1886067312897799352== Content-Type: multipart/alternative; boundary=90e6ba615438e39e6c04c1a538f5 --90e6ba615438e39e6c04c1a538f5 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Sorry to bother again but I found the solution. maybe it can help someone: initrd need start and size parameters. As, size can be bigger then real size of image.cpio.gz, I set it to 32M like the addpart command. bootargs=3D"$bootargs initrd=3D0x72000000,33554432" -- *Benoit RAT LAMY* Engineer (Sw) \ Ingeniero (Sw) fix. *(+34) 958 285 024* cel. *(+34) 617 989 123* e-mail: benoit@sevensols.com *www.sevensols.com / **www.sevensecurity.es* _________________________________ *C/ Baza, parcela 19 Nave 3 \ Pol=EDgono Ind. Juncaril \* *18210 - PELIGROS - GRANADA =96SPAIN* On Mon, Jun 4, 2012 at 2:21 PM, Benoit RAT wrote: > Hy everybody, > > I was wondering if it was possible to load a cpio.gz image as rootfs! (I > think it is the kernel that load it so it should not be a problem) > however I don't know how to pass the arguments. > > Here you can find the commands, that i am using: > > addpart /dev/mem 8M@0x71000000(kernel); > tftp zImage /dev/mem.kernel > addpart /dev/mem 32M@0x72000000(fs) > tftp image.cpio.gz /dev/mem.fs > bootargs=3D"$bootargs root=3D/dev/ram0 initrd=3D0x72000000" > bootz /dev/mem.kernel > > Regards, > > -- > > > *Benoit RAT LAMY* > > Engineer (Sw) \ Ingeniero (Sw) > > fix. *(+34) 958 285 024* > > cel. *(+34) 617 989 123* > > e-mail: benoit@sevensols.com > > *www.sevensols.com / **www.sevensecurity.es* > > _________________________________ > > *C/ Baza, parcela 19 Nave 3 \ Pol=EDgono Ind. Juncaril \* > > *18210 - PELIGROS - GRANADA =96SPAIN* > > --90e6ba615438e39e6c04c1a538f5 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Sorry to bother again but I found the solution. maybe it can help someone:<= div>
initrd need start and size parameters.=A0
As, = size can be bigger then real size of image.cpio.gz,=A0I set it to 32M like = the addpart command.

bootargs=3D"$bootargs initrd=3D0x72000000,33554432= "

--
=A0

Benoit RAT LAMY

Engineer (Sw) \ Ingeniero (= Sw)

fix.=A0(+34) 958 285 024<= /span>

c= el.=A0(+34) 617 989 123

e-mail:=A0benoit@sevensol= s.com

www.se= vensols.com=A0/=A0www.sevensecurity.es

______________________________= ___

C/ Baza, parcela 19 Nave 3= =A0 \ Pol=EDgono Ind. Juncaril \

18210 - PELIGROS - GRANADA =96SPAIN




On Mon, Jun 4, 2012 at 2:21 PM, Benoit R= AT <benoit@sevensols.com> wrote:
Hy everybody,

I was wondering if it was possible to load= a cpio.gz image as rootfs! (I think it is the kernel that load it so it sh= ould not be a problem)
however I don't know how to pass the a= rguments.

Here you can find the commands, that i am using:
<= div>
addpart /dev/mem =A08M@0x71000000(kernel);
tft= p zImage /dev/mem.kernel
addpart /dev/mem =A032M@0x72000000(fs)
tftp image.cpio.gz /dev/mem.fs=A0
bootargs=3D"$boo= targs root=3D/dev/ram0 initrd=3D0x72000000"
bootz /dev/mem.k= ernel

Regards,

--
=A0

Benoit RAT LAMY

Engineer (Sw) \ Ingeniero (= Sw)

fix.=A0(+34) 958 = 285 024

c= el.=A0(+34) 617 989 123

e-mail:=A0benoit@sevensol= s.com

www.se= vensols.com=A0/=A0www.sevensecurity.es

______________________________= ___

C/ Baza, parcela 19 Nave 3= =A0 \ Pol=EDgono Ind. Juncaril \

18210 - PELIGROS - GRANADA =96SPAIN



--90e6ba615438e39e6c04c1a538f5-- --===============1886067312897799352== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============1886067312897799352==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 11.mo3.mail-out.ovh.net ([87.98.184.158] helo=mo3.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sbjzf-0004dL-9v for barebox@lists.infradead.org; Tue, 05 Jun 2012 02:59:40 +0000 Received: from mail91.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo3.mail-out.ovh.net (Postfix) with SMTP id C6279FF87E6 for ; Tue, 5 Jun 2012 05:03:05 +0200 (CEST) Date: Tue, 5 Jun 2012 04:59:49 +0200 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20120605025949.GY3377@game.jcrosoft.org> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Loading Cpio (gz) image as rootfs To: Benoit RAT Cc: barebox@lists.infradead.org On 14:21 Mon 04 Jun , Benoit RAT wrote: > Hy everybody, > I was wondering if it was possible to load a cpio.gz image as rootfs! (I > think it is the kernel that load it so it should not be a problem) > however I don't know how to pass the arguments. > Here you can find the commands, that i am using: > addpart /dev/mem 8M@0x71000000(kernel); > tftp zImage /dev/mem.kernel > addpart /dev/mem 32M@0x72000000(fs) > tftp image.cpio.gz /dev/mem.fs > bootargs="$bootargs root=/dev/ram0 initrd=0x72000000" > bootz /dev/mem.kernel btw do not use bootz but bootm if you want to use a zimage and cpio.gz directly you needt to use -r option Best Regards, J. > Regards, > -- > [IMG] [IMG] > Benoit RAT LAMY > > Engineer (Sw) \ Ingeniero (Sw) > > fix. (+34) 958 285 024 > > cel. (+34) 617 989 123 > > e-mail: benoit@sevensols.com > > www.sevensols.com / www.sevensecurity.es > > _________________________________ > > C/ Baza, parcela 19 Nave 3 \ Poligono Ind. Juncaril \ > > 18210 - PELIGROS - GRANADA *SPAIN > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox