[PATCH v2 0/4] nanddump: synchronise with mdt-utils new options

Denys Vlasenko vda.linux at googlemail.com
Wed Jun 25 15:39:33 UTC 2014


On Tue, Jun 24, 2014 at 12:12 PM, Richard Genoud
<richard.genoud at gmail.com> wrote:
> The 1st patch corrects a bug where nanddump was stuck in an infinite loop
> when dumping a bad block.
>
> The 3 others synchronise nanddump with the mtd-utils behaviour.
>
> nanddump in mtd-utils are using now the options:
>  bb=[skipbad|padbad|dumpbad]
> instead of omitbad.
> And the new default behaviour is the skipbad method, which is generaly
> what we are expecting:
>
> nandwrite /dev/mtd0 padded_file
> nanddump -f read_file -l $(wc -c < padded_file) /dev/mtd0
> With mtd-utils, padded_file and read_file will be the same.
> (and with the omitbad method, they won't)
>
> Change since v1:
>  * two ifs are combined into one in patch 4/4 to add more lisibility.
>
> Richard Genoud (4):
>   nanddump: correct rounding to next page (lead to infinite loop)
>   nanddump: add options --bb=skipbad and padbad
>   nanddump: nanddump: change default to --bb=skipbad
>   nanddump: kill -b Omit bad block

Applied, thanks!


More information about the busybox mailing list