Re: data loss on jffs2 filesystem on dataflash

Peter Menzebach
2005-09-21T15:44:59Z

Artem B. Bityutskiy wrote:
> On Wed, 2005-09-21 at 12:27 +0200, Peter Menzebach wrote:
>
>>My assumptions now:
>>
>>We have to set the jffs2->sector_size to 8 * dataflash pagesize
>>We have to set the jffs2->wbuf_size to dataflash pagesize (528/1056)
>
> Yes, IMO.
>
Ok, sector_size now 8*1056, wbuf_size = 1056 erase_size=8*1056
-> kernel oops
-> ok, found SECTOR_ADDR was defined wrong
-> after fixing stable and not working correctly as before ;)
...
>>And still I didn't get the point, why it isn't working today....
>
> Me too so far :-) If you send me a DataFlash-ed board - I'll dig
> this :-)

Ok, Ok, now I am digging a bit....
with some more printfs, I now looked a bit clearer, and have another
question:
when jffs2_flush_wbuf is called, how is this area now markes as written.
Sometimes later jffs2_do_reserve_space is called an returns the same
address, which was written to flash....

Any hints?

Best regards
Peter

--
Peter Menzebach
Menzebach und Wolff IT-Consulting GbR
Phone +49 751 355 387 1