Boot kernel right from JFFS2

Allen Curtis acurtis at onz.com
Thu Jul 11 11:58:06 EDT 2002


> Is it possible to boot a compressed kernel(Version 2.4.17) with ppcboot
> 1.1.5 right from jffs2 as root filessystem residing on the first MTD
> partition? Do you have a description or a HOWTO for that?

We are not using ppcboot but this is what I did that seemed to make sense.
1. Create a minimum of 2 MTD partitions
2. Use the first MTD partition to store the compressed image. This is really
just a place holder and you never mount it.
3. You can either jump to the compressed image location if you are using the
embedded boot or copy it from flash into RAM, I assume this is something
that ppcboot can handle just fine.
4. Your default boot line will contain something like: root=/dev/mtdblock1.
Depending on your kernel, you may have to apply a patch so it recognizes
JFFS2 as a valid root file-system type. (I had this problem with HHL 2.0)

Using this approach eliminates the need for the BIOS to understand the
file-system structure. Of course there is also the initrd, mount jffs2 from
the ramdisk approach. Pick your poison.

Hope this helps...





More information about the linux-mtd mailing list