Michele De Candia (VT) wrote: >> I'm a little uneasy about changing the normal erase command from size >> to end >> -- it would break existing uses. Though, it would make it consistent >> with >> the NOR erase command. Perhaps a period where it warns but accepts >> anyway a >> size, if the second parameter is less than the first. >> > > This doesn't work always: for example, when you erase at the NAND begin, > second parameter could be greater than first one.
Hmm... perhaps check the alignment? If "end" is supposed to be the last to-be-erased byte, not the first not-to-be-erased byte, then if the low bits are 0 it's a size (and gets a warning) and if they're 1 it's an end? Or just always use the new syntax, announce it loudly, and grep the board config files for scripts to update. Or leave it alone and only change the plus variant. :-) > It can always warn user when he uses the first erase way. Then what would be the correct, non-warning-producing way to erase a region of flash regardless of its bad block content? -Scott _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

