nand-dynamic_partitions.patch
This patch adds support for 'dynamic partitions'. This basically
works as follows:
* The nand code generates a bad-block-table at the first scan of the chip
* The dynamic partition code calculates the raw partition sizes based on
the bad block table. E.g. if you have a partition of size 0x30000, and there are
two bad blocks (0x4000 each) in it, the raw size will increase to 0x38000, and the
following partitions get shifted towards the end of flash.
Please note that currently the desired partition sizes are stored at compile-time
in an array in drivers/nand/nand_bbt.c, so this definitely needs to change before
submitting/merging upstream.
In order to calculate the partiton map (and set mtdparts accordingly), you can use
the 'dynpart' command at the prompt. Use 'saveenv' to make the setting permanent.
Signed-off-by: Harald Welte <laforge@openmoko.org>