[U-Boot-Users] [U-Boot-Users][Patch] Nand writing problem when size to program is superior to a nand block size

Lacressonniere Nicolas nicolas.lacressonniere at rfo.atmel.com
Tue Jan 31 17:34:07 CET 2006

This patch fixes a problem when writing an amount of data superior to a
block size. Writing part seems to be correct. But when re-booting the board,
bad block scan is performed and blocks following the first one you wrote are
marked bad...

The problem seems to be in nand_write_ecc function in
drivers/nand/nand_base.c source file where oob variable is not reset after
reaching a block boundary, so that wrong values are written in next block

Hope it's clear enough...

This patch is applied against testing-NAND git branch.

Patch by Nicolas Lacressonniere 31 January 2006
* Fix bad block scan problem when writing an amount of data superior to nand
block size
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-bug-nand
Type: application/octet-stream
Size: 353 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20060131/7441a639/attachment.obj 

More information about the U-Boot mailing list