From 82019517756a4a2cde8ed1647a8252705789d0d9 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Fri, 19 Feb 2010 20:37:57 +0100 Subject: [PATCH] Don't increase blk_end in case of an bad page. --- usbboot/xburst_stage2/nandflash_4740.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usbboot/xburst_stage2/nandflash_4740.c b/usbboot/xburst_stage2/nandflash_4740.c index a2c8d77..573ff9f 100644 --- a/usbboot/xburst_stage2/nandflash_4740.c +++ b/usbboot/xburst_stage2/nandflash_4740.c @@ -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;