1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 08:29:41 +02:00

Don't increase blk_end in case of an bad page.

This commit is contained in:
Lars-Peter Clausen 2010-02-19 20:37:57 +01:00
parent 4868294851
commit 8201951775

View File

@ -342,11 +342,10 @@ u32 nand_erase_4740(int blk_num, int sblk, int force)
__nand_cmd(CMD_READ_STATUS);
if (__nand_data8() & 0x01) {
serial_puts("Erase fail at ");
serial_puts("\nErase fail at: \t");
serial_put_hex(cur / ppb);
nand_mark_bad_4740(cur/ppb);
cur += ppb;
blk_num += Hand.nand_plane;
continue;
}
cur += ppb;