* Kernel and rootfs in ONE image?
@ 2007-06-01 11:14 Frank Prepelica
2007-06-02 8:54 ` David H. Lynch Jr.
2007-06-03 23:42 ` Stelios Koroneos
0 siblings, 2 replies; 3+ messages in thread
From: Frank Prepelica @ 2007-06-01 11:14 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
Hi all,
in normal case you have got a kernel image and a rootfs image. Place
that images into flash memory, set correct bootargs and it should work.
But, is it possible to generate one image which includes the linux
kernel
and a rootfs, place that single image into flash memory and it should
also work?
Thanks in advance!
Beste regrads
Frank
[-- Attachment #2: Type: text/html, Size: 3235 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Kernel and rootfs in ONE image?
2007-06-01 11:14 Kernel and rootfs in ONE image? Frank Prepelica
@ 2007-06-02 8:54 ` David H. Lynch Jr.
2007-06-03 23:42 ` Stelios Koroneos
1 sibling, 0 replies; 3+ messages in thread
From: David H. Lynch Jr. @ 2007-06-02 8:54 UTC (permalink / raw)
To: Frank Prepelica; +Cc: linuxppc-embedded
If you are using 2.6 and you use initramfs, then typically you will
get a single image that contains both the kernel,
and the initial ramdisk. When you load and execute that image
everything will get sorted out "automagically".
Frank Prepelica wrote:
> Hi all,
>
>
>
> in normal case you have got a kernel image and a rootfs image. Place
>
> that images into flash memory, set correct bootargs and it should work.
>
>
>
> But, is it possible to generate one image which includes the linux
> kernel
>
> and a rootfs, place that single image into flash memory and it should
> also work?
>
>
>
> Thanks in advance!
>
>
>
> Beste regrads
>
> Frank
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
--
Dave Lynch DLA Systems
Software Development: Embedded Linux
717.627.3770 dhlii@dlasys.net http://www.dlasys.net
fax: 1.253.369.9244 Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too numerous to list.
"Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction."
Albert Einstein
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Kernel and rootfs in ONE image?
2007-06-01 11:14 Kernel and rootfs in ONE image? Frank Prepelica
2007-06-02 8:54 ` David H. Lynch Jr.
@ 2007-06-03 23:42 ` Stelios Koroneos
1 sibling, 0 replies; 3+ messages in thread
From: Stelios Koroneos @ 2007-06-03 23:42 UTC (permalink / raw)
To: Frank Prepelica, linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1320 bytes --]
Yes it is.
There are basically two ways in doing it
One is to create a binary "blob" where each part (kernel and fs) is placed
at a certain location and the space between them is padded
These location should match exactly the kernel mtd partition settings in
terms of size.
The other method i have used, uses some "magic bytes" at the end of a jffs2
filesystem to mark it
Then kernel and the fs are joint and a kernel patch is used to find where
the filesystem starts/ends
This is the method used by Openwrt (in the kamikaze version)
Stelios S. Koroneos
Digital OPSiS - Embedded Intelligence
http://www.digital-opsis.com
-----Original Message-----
From: linuxppc-embedded-bounces+stelios=stelioscellar.com@ozlabs.org
[mailto:linuxppc-embedded-bounces+stelios=stelioscellar.com@ozlabs.org]On
Behalf Of Frank Prepelica
Sent: Friday, June 01, 2007 2:15 PM
To: linuxppc-embedded@ozlabs.org
Subject: Kernel and rootfs in ONE image?
Hi all,
in normal case you have got a kernel image and a rootfs image. Place
that images into flash memory, set correct bootargs and it should work.
But, is it possible to generate one image which includes the linux kernel
and a rootfs, place that single image into flash memory and it should also
work?
Thanks in advance!
Beste regrads
Frank
[-- Attachment #2: Type: text/html, Size: 5706 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-06-03 23:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-01 11:14 Kernel and rootfs in ONE image? Frank Prepelica
2007-06-02 8:54 ` David H. Lynch Jr.
2007-06-03 23:42 ` Stelios Koroneos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).