files getting corrupted ?

alfred hitch alfred.hitch at gmail.com
Mon Nov 21 02:01:43 EST 2005


Hi,

Need suggestions on a problem we are facing after a lot of usage and reboots.

( Very basic questions )

On the jffs2 (rw) partition, with MTD layer used to acceess it.
We are observing executable file corruptions.
If we jtag again, things are ok:
 -> Meaning flash isn't corrupted (?)

 -> It's an executable, so will adding sync anyways make a difference
to reboot we have (not normal reboot command), but will it make any
difference as it's to clear file i/o buffer s ?

 Read on an article on net that in basics of embedded design:
( http://www.linuxdevices.com/articles/AT2055943458.html )

 -> Wear levelling should always been considered, wont MTD serve purpose here ?

 -> What will be a good strategy for read / write of
/var/log/messages, if writting in delayed / buffer forms isnt
acceptable ?

-> jffs rw partition can affect due to frequent  write's
executables(read only) in partition also
 Executable in question happened to be sh(shell) !  a diff shows
certain from middle of file were lost !

 From net:
 Imagine a swap-partition on flash or the system logfiles with syslogs
parameters not adopted; such a flash device could run into problems
within as little as three months!

 What syslogs parameters could be in question are ??

 Regards,
 Alfred




More information about the linux-mtd mailing list