[U-Boot] nand: adjust erase/read/write partition/chip size for bad blocks
Scott Wood
scottwood at freescale.com
Wed May 22 23:36:42 CEST 2013
On Tue, Feb 26, 2013 at 05:21:27PM -0000, Harvey Chapman wrote:
> Adjust the sizes calculated for whole partition/chip operations by
> removing the size of bad blocks so we don't try to erase/read/write
> past a partition/chip boundary.
>
> Signed-off-by: Harvey Chapman <hchapman at 3gfp.com>
>
> ---
> common/cmd_nand.c | 35 +++++++++++++++++++++++++++++++++++
> 1 file changed, 35 insertions(+)
Applied to u-boot-nand-flash...
> + /* size is unspecified */
> + if (argc < 5)
> + adjust_size_for_badblocks(&rwsize, off, dev);
...after fixing this to be &size rather than &rwsize.
-Scott
More information about the U-Boot
mailing list