mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Loading Cpio (gz) image as rootfs
@ 2012-06-04 12:21 Benoit RAT
  2012-06-04 13:07 ` Benoit RAT
  2012-06-05  2:59 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 2 replies; 3+ messages in thread
From: Benoit RAT @ 2012-06-04 12:21 UTC (permalink / raw)
  To: barebox


[-- Attachment #1.1: Type: text/plain, Size: 887 bytes --]

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

Regards,

--
 <http://www.sevensols.com/>  <http://www.sevensecurity.es>

*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ígono Ind. Juncaril \*

*18210 - PELIGROS - GRANADA –SPAIN*

[-- Attachment #1.2: Type: text/html, Size: 4519 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Loading Cpio (gz) image as rootfs
  2012-06-04 12:21 Loading Cpio (gz) image as rootfs Benoit RAT
@ 2012-06-04 13:07 ` Benoit RAT
  2012-06-05  2:59 ` Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 0 replies; 3+ messages in thread
From: Benoit RAT @ 2012-06-04 13:07 UTC (permalink / raw)
  To: barebox


[-- Attachment #1.1: Type: text/plain, Size: 1698 bytes --]

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="$bootargs initrd=0x72000000,33554432"

--
 <http://www.sevensols.com/>  <http://www.sevensecurity.es>

*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ígono Ind. Juncaril \*

*18210 - PELIGROS - GRANADA –SPAIN*



On Mon, Jun 4, 2012 at 2:21 PM, Benoit RAT <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 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
>
> Regards,
>
> --
>  <http://www.sevensols.com/>  <http://www.sevensecurity.es>
>
> *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ígono Ind. Juncaril \*
>
> *18210 - PELIGROS - GRANADA –SPAIN*
>
>

[-- Attachment #1.2: Type: text/html, Size: 9299 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Loading Cpio (gz) image as rootfs
  2012-06-04 12:21 Loading Cpio (gz) image as rootfs Benoit RAT
  2012-06-04 13:07 ` Benoit RAT
@ 2012-06-05  2:59 ` Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 0 replies; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-06-05  2:59 UTC (permalink / raw)
  To: Benoit RAT; +Cc: barebox

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-05  2:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-04 12:21 Loading Cpio (gz) image as rootfs Benoit RAT
2012-06-04 13:07 ` Benoit RAT
2012-06-05  2:59 ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox