diff options
author | Ben Gardiner <bengardiner@nanometrics.ca> | 2010-08-31 17:48:03 -0400 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2010-10-11 15:11:01 -0500 |
commit | ca75b20ebbfd40189a0157c7a2ef4360b0885cc4 (patch) | |
tree | e27f15c2e525edfee236810fca93e917c029f4ad /MAKEALL | |
parent | 04ac380288ea8c334efdf938766e2748056a2821 (diff) | |
download | u-boot-imx-ca75b20ebbfd40189a0157c7a2ef4360b0885cc4.zip u-boot-imx-ca75b20ebbfd40189a0157c7a2ef4360b0885cc4.tar.gz u-boot-imx-ca75b20ebbfd40189a0157c7a2ef4360b0885cc4.tar.bz2 |
mtdparts: add new sub-command "spread"
This patch introduces the 'spread' sub-command of the mtdparts command.
This command will modify the existing mtdparts variable by increasing
the size of the partitions such that 1) each partition's net size is at
least as large as the size specified in the mtdparts variable and 2)
each partition starts on a good block.
The new subcommand is implemented by iterating over the mtd device
partitions and collecting a bad blocks count in each -- including any
trailing bad blocks -- and then modifying that partitions's part_info
structure and checking if the modification affects the next partition.
This patch is based on a port of the 'dynnamic partitions' feature by
Harald Welte <laforge@gnumonks.org>; ported from commit
e05835df019027391f58f9d8ce5e1257d6924798 of
git://git.openmoko.org/u-boot.git. Whereas Harald's feature used a
compile-time array to specify partitions, the feature introduced by
this patch uses the mtdparts environment variable.
Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Harald Welte <laforge@gnumonks.org>
CC: Wolfgang Denk <wd@denx.de>
CC: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'MAKEALL')
0 files changed, 0 insertions, 0 deletions