[PATCH] mtd: Introduce CONFIG_MTD_RESERVE_END
Jonas Gorski
jogo at openwrt.org
Fri May 1 04:57:13 PDT 2015
On Thu, Apr 30, 2015 at 7:36 PM, Ben Shelton <ben.shelton at ni.com> wrote:
> The reason for doing this as a Kconfig option rather than with an additional
> partition is that we use the same .itb boot image (and kernel arguments) for
> a series of embedded controllers that have different NAND flash sizes, and we
> use the '-' command line parameter to give the root partition all the available
> space after the other partitions.
Wouldn't it make more sense to make cmdlineparts to recognize if it is
run on a nand flash that has on-flash BBT enabled, and then reduce the
SIZE_REMAINING partition's size by the amount of nand_bbt_descr's
maxblocks * erase block size?
Currently your proposed solution would break if boards have differing
erase block sizes, or if some have NOR flash, which makes it an option
for a rather narrow use case IMHO.
Regards
Jonas
More information about the linux-mtd
mailing list