]> git.ipfire.org Git - people/ms/u-boot.git/commit
cmd: mtdparts: support runtime generated mtdparts
authorLadislav Michl <ladis@linux-mips.org>
Tue, 12 Jul 2016 18:28:26 +0000 (20:28 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 22 Jul 2016 18:46:15 +0000 (14:46 -0400)
commitaf32443656b64a9cbe5a2cdd9389225773b8e4d9
tree231325b8a33453b8bff9a82c8858b0dc7a764959
parentf8f744a3e8515cae50adefd861e34dab59f9ae6f
cmd: mtdparts: support runtime generated mtdparts

Some CPUs contains boot ROM code capable reading first few blocks
(where SPL resides) of NAND flash and executing it. It is wise to
create separate partition here for SPL. As block size depends on
NAND chip used, we could either use worst case (biggest) partition
size or base its size on actual block size. This patch adds support
for the latter option.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
cmd/mtdparts.c