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==--