multiple MTD partitions

David Woodhouse dwmw2 at infradead.org
Fri Dec 14 17:14:57 EST 2007


On Fri, 2007-12-14 at 09:54 +0200, Artem Bityutskiy wrote:
> UBI/UBIFS is too large and difficult to implement their support in XO 
> boot-loader. So I plan to use the following scheme:
> 
> 1. Have 2 MTD partitions - mtd0 and mtd1. mtd0 is small (say, 10MiB), and has 
> JFFS2 FS. It contains /boot, /boot-alt, and everything else which the 
> boot-loader would like to have. mtd1 is large, and it spans up to the end of 
> the flash chip.
> 
> 2. When booting, the bootloader reads kernel, initrd and the other stuff from 
> the JFFS2 FS on MTD 0. It has to be trivial as the boot-loader already can read 
> JFFS2 FS.

http://git.infradead.org/?p=openfirmware.git;a=commitdiff;h=a0b5a7b0c

OpenFirmware boots from the partition named 'boot' in the RedBoot
partition table. The rest are yours to play with as you see fit.

-- 
dwmw2




More information about the Devel mailing list