[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 8-Mbyte flash problems



On Thu, 2002-03-07 at 16:41, David Kilp wrote:
> 0xC0004000
> 0x00000000
> 0x00800000
> Probing flash...
> CFI dev 0x80000000
> 0x80000000: Erasing 0x00800000 bytes...done, verifying...OK
> 0x80000000: Writing 0x00800000 bytes...
> Verify error at 0x80400000
> Verify error at 0x80400002
> Verify error at 0x80400004
> Verify error at 0x80400004
>    .
>    .
>    .
> 
> So it apears that it was able to erase/read all 8M but only able to program
> the first 4M.
> 
> Any clues? I am at a loss to explain this.

I think that your chip doesn't allow all sectors to be erased
simultaneously. I have changed the behaviour of the bootloader recently
so that it erases them one at a time instead so now it supports more
chips (and I couldn't notice any perfermance loss on chips that allow
simultaneous block erases either :-).

Here's a patch for tools/e100boot/cbl/flash.c. Apply it and run "make
install" in tools/e100boot.

/Jonas

flash.c.diff.gz