data loss on jffs2 filesystem on dataflash
Peter Menzebach
pm-mtd at mw-itcon.de
Wed Sep 21 11:44:54 EDT 2005
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
More information about the linux-mtd
mailing list