sync command to write filesystem buffers on OneNand flash
I am having some problem with my JFFS2 filesystem.
I am using linux kernel 2.6.19-1 and ported on PXA270 arm xscale platform with OneNand flash.
I can see warning messages 'Empty flash', 'bad crc' etc. I can use 'sync' command to write filesystem buffers on flash. I observed these messages appear when I do unclean reboot. Currently, there is no way I can stop unclean reboot. How to use 'sync' command while mouting filesystem? I would like to avoid onenand flash getting corrupted because of this.