On Thursday 21 May 2009, Nicolas Pitre wrote:
> On Thu, 21 May 2009, David Brownell wrote:
> 
> > I also noticed that two commands (erase, check_bad) are
> > unusual in that they require *block* numbers as parameters,
> > rather than the offsets used everywhere else in OpenOCD
> > (and in U-Boot, and the Linux-MTD utilities).
> > 
> > Comments on changing that to become more consistent, and
> > holding off on documenting/committing-to the current
> > interface until this issue is resolved?
> 
> Uniformity is good.  If you do this change, please don't forget to 
> update existing scripts using those commands too.

The only existing in-tree script using this is
for SheevaPlug, which has "nand erase 0 0 4".

That should become "nand erase 0 0 $X" (*) where X
is [expr $nand_block_size * 4] ... would you know
the value of $nand_block_size?  I'd guess that having
a 4Gbit NAND means it's 2KB/page, 128KB/block.

- Dave

(*) Or "nand erase $_TARGETNAME 0 $X", to avoid
numeric target designators, though it won't much
matter on this board for now.
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to