From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dirk Behme Date: Mon, 14 Jan 2008 21:58:11 +0100 Subject: [U-Boot-Users] [PATCH] Correct NAND erase percentage output Message-ID: <478BCCE3.6090501@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de For NAND erase sizes smaller than one NAND erase block, erase percentage output becomes grater than 100% e.g. -- cut -- > nand info Device 0: NAND 64MiB 1,8V 8-bit, sector size 16 KiB > nand erase 0x100000 0x2000 NAND erase: device 0 offset 0x100000, size 0x2000 Erasing at 0x100000 -- 200% complete. OK > -- cut -- Correct this and give user a warning that more is erased than specified: -- cut -- > nand erase 0x100000 0x2000 NAND erase: device 0 offset 0x100000, size 0x2000 Warning: Erase size 0x00002000 smaller than one erase block 0x00004000 Erasing 0x00004000 instead Erasing at 0x100000 -- 100% complete. OK > -- cut -- This patch is against u-boot-nand-flash.git. Signed-off-by: Dirk Behme -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: nand_utils_correct_erase_percentage.txt Url: http://lists.denx.de/pipermail/u-boot/attachments/20080114/15841997/attachment.txt