CFI Extended (Intel P30) problems on an ARM PXA255

David Vrabel dvrabel at arcom.com
Fri May 5 04:29:37 EDT 2006


Dan Merillat wrote:
> I originally sent this to the linux-arm list, but it's looking more
> and more like either a MTD issue, or a hardware issue with our board.
> 
> We have a custom PXA255 board, based on the generic Intel reference
> design.  Nothing very
> complex at all.   RAM, Strataflash (P30), JTAG and a serial port is
> all I have active at this point.
> 
> Everything works correctly, until I try to write to the filesystem. As
> soon as I do, I start getting JFFS corruption notices.  It's fairly
> obvious what's wrong: All reads are returning 0x0080, the 'Ok' status
> bit.   I can break in the jtag, write a reset to the flash, and
> continue, and new reads work properly, until I write again (or the
> original write retries).

Perhaps the cache invalidating operation in the MTD map driver you're
using is wrong?

> I thought it might be a memory timing issue, but I pulled the timing
> register (MSC0) and applied the faster timings to u-boot, and it can
> still read and write the flash properly.    System speed and memory
> speed are also the same (200mhz/100mhz) for both u-boot and linux.

If you suspect memory timings may be an issue I would advise slowing the
timings under Linux to the lowest possible.  The experiment you describe
here changes two variables (the software and the timings) which is not
good practice.

David Vrabel
-- 
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/




More information about the linux-mtd mailing list