Kernel and rootfs in ONE image?
Stelios Koroneos
skoroneos at digital-opsis.com
Mon Jun 4 09:42:00 EST 2007
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 at ozlabs.org
[mailto:linuxppc-embedded-bounces+stelios=stelioscellar.com at ozlabs.org]On
Behalf Of Frank Prepelica
Sent: Friday, June 01, 2007 2:15 PM
To: linuxppc-embedded at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070604/5e8dc4cd/attachment.htm
More information about the Linuxppc-embedded
mailing list