<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I'm working on ARM9 with Linux 2.4.20
and jffs2.</font>
<br>
<br><font size=2 face="sans-serif">I try to use new flash Mirrorbit from
SPANSION (S29WS256N).</font>
<br><font size=2 face="sans-serif">This flash allows two programation mode
: OneWord or WriteBuffer.</font>
<br>
<br><font size=2 face="sans-serif">-> I already integrated and tested
"OneWord" code in cfi_cmdset_0002.c.</font>
<br><font size=2 face="sans-serif">And it works perfectly. The only issue,
is that the writting is too long.</font>
<br><font size=2 face="sans-serif">It's why, I have to use the "WriteBuffer"
mode to improve that.</font>
<br>
<br><font size=2 face="sans-serif">-> When I'm using "WriteBuffer
mode", I have some errors messages : </font>
<br><font size=2 face="Courier New">Data CRC 00d0ce03 != calculated CRC
73e51396 for node at 00ee8ea4</font>
<br>
<br><font size=2 face="sans-serif">If I optimise the code in cfi_cmdset_0002.c,
by reducing the buffer size from 32 words to 16 words, I have less errors
messages.</font>
<br><font size=2 face="sans-serif"> If I remove
the code below in procedure do_write_buffer(), it works better, but I still
have sometimes CRC error when I update some files in file system.:</font>
<br><font size=2 face="sans-serif">/*cfi_spin_unlock(chip->mutex);*/</font>
<br><font size=2 face="sans-serif">/*cfi_udelay(chip->buffer_write_time);*/</font>
<br><font size=2 face="sans-serif">/*cfi_spin_lock(chip->mutex);*/</font>
<br>
<br><font size=2 face="sans-serif">It look like a timing issue, as if the
buffer writting was interrupted before the programmation was ended.</font>
<br>
<br><font size=2 face="sans-serif">Is there any timer in Jffs2 or in linux,
that could be disturb the programtion in WriteBuffer mode.</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
================================================<br>
Sebastien Merceron
Software<br>
<br>
Philips Consumer Electronics <br>
BG Home Entertainment Networks
<br>
BL Home Communication <br>
Route d'Angers <br>
72081 LE MANS CEDEX 9 - FRANCE<br>
<br>
TEL : +33 2 43 41 10 80
<br>
Email :sebastien.merceron@philips.com<br>
================================================</font>