public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] Correct NAND erase percentage output
@ 2008-01-14 20:58 Dirk Behme
  2008-01-14 21:27 ` ksi at koi8.net
  2008-01-16 13:29 ` Stefan Roese
  0 siblings, 2 replies; 3+ messages in thread
From: Dirk Behme @ 2008-01-14 20:58 UTC (permalink / raw)
  To: u-boot


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 <dirk.behme@gmail.com>

-------------- 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 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] [PATCH] Correct NAND erase percentage output
  2008-01-14 20:58 [U-Boot-Users] [PATCH] Correct NAND erase percentage output Dirk Behme
@ 2008-01-14 21:27 ` ksi at koi8.net
  2008-01-16 13:29 ` Stefan Roese
  1 sibling, 0 replies; 3+ messages in thread
From: ksi at koi8.net @ 2008-01-14 21:27 UTC (permalink / raw)
  To: u-boot

On Mon, 14 Jan 2008, Dirk Behme wrote:

Aha! Here it is... :)

>
> 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 <dirk.behme@gmail.com>
>
>

---
******************************************************************
*  KSI at home    KOI8 Net  < >  The impossible we do immediately.  *
*  Las Vegas   NV, USA   < >  Miracles require 24-hour notice.   *
******************************************************************

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] [PATCH] Correct NAND erase percentage output
  2008-01-14 20:58 [U-Boot-Users] [PATCH] Correct NAND erase percentage output Dirk Behme
  2008-01-14 21:27 ` ksi at koi8.net
@ 2008-01-16 13:29 ` Stefan Roese
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2008-01-16 13:29 UTC (permalink / raw)
  To: u-boot

Hi Dirk,

On Monday 14 January 2008, Dirk Behme wrote:
> For NAND erase sizes smaller than one NAND erase block, erase
> percentage output becomes grater than 100% e.g.

Applied to new "mtd-2.6.22.1" branch. Will push to git server in a short 
while.

Thanks.

Dirk, better would be if you could post your patches inlined instead of 
attached. I suggest to use "git-send-email" which makes life easy for you and 
me. :)

Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-16 13:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-14 20:58 [U-Boot-Users] [PATCH] Correct NAND erase percentage output Dirk Behme
2008-01-14 21:27 ` ksi at koi8.net
2008-01-16 13:29 ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox