[U-Boot-Users] [PATCH] Fix NAND erase progress error

Hugo Villeneuve hugo.villeneuve at lyrtech.com
Fri May 16 22:51:52 CEST 2008


Scott Wood wrote:
> Hugo Villeneuve wrote:
>> Scott Wood wrote:
>>> Hugo Villeneuve wrote:
>>>> I would be perfectly happy if the mtd driver reported a warning
>>>> when the requested erase size is not an exact multiple of the
>>>> block size, and allow the whole block erase to proceed. Then my
>>>> patch would make sense.
>>> That's what the mtd-2.6.22.1 branch in the NAND repository does.  I
>>> think it should reject such requests, though.
>> 
>> I don´t like that behavior. Let´s say that I want to program a new
>> binary application of 2.8MB. I want to be able to simply erase 2.8MB,
>> without having to do fancy math computations on my calculator based
>> on the block size :)
> 
> Hmm... maybe a flag to request round-up?

Yes, maybe some kind of "-f" force flag to continue even if the
requested size is less than a block...

>  Or at the very least, have
> "help nand" mention the rounding-up behavior.

I agree.

Either way, I think my patch, or a variation of it, should need to be
applied to get rid of that ugly 6400%.

Hugo V.


Hugo Villeneuve
Hardware developer | Concepteur matériel
Lyrtech
Phone/Tél. : (1) (418) 877-4644 #2395
Toll-free/Sans frais - Canada & USA : (1) (888) 922-4644 #2395
Fax/Téléc. : (1) (418) 877-7710
www.lyrtech.com
Infinite possibilities...TM

THIS MESSAGE AND ALL ATTACHED DOCUMENTS ARE EXCLUSIVELY INTENDED
TO THE INDICATED RECIPIENTS AND ITS CONTENTS MAY BE CONFIDENTIAL.
IT IS STRICTLY FORBIDDEN TO ANYONE TO TAKE COGNIZANCE, USE, OR
DIVULGE THE INFORMATION CONTAINED HEREIN. IF YOU MISTAKENLY
RECEIVE THIS MESSAGE, IMMEDIATELY INFORM LYRTECH AND DESTROY THE
MESSAGE AND ATTACHMENTS FORTHWITH.THANK YOU.

LE PRESENT MESSAGE ET LES DOCUMENTS QUI Y SONT JOINTS S'ADRESSENT
EXCLUSIVEMENT AU(X)DESTINATAIRE(S) INDIQUE(S) ET LEUR TENEUR PEUT
ETRE CONFIDENTIELLE. IL EST STRICTEMENT INTERDIT A QUICONQUE D'EN
PRENDRE CONNAISSANCE, DE LES UTILISER OU DE LES DIVULGUER. SI
VOUS RECEVEZ LE PRESENT MESSAGE PAR ERREUR, VEUILLEZ EN AVISER
LYRTECH IMMEDIATEMENT ET DETRUIRE LE MESSAGE SEANCE TENANTE,
AINSI QUE LES DOCUMENTS QUI Y SONT JOINTS.




More information about the U-Boot mailing list