Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => iMX233 => Topic started by: sureshmca on January 20, 2014, 01:12:18 PM

Title: Nand Flash Partition file Corrupted after remount
Post by: sureshmca on January 20, 2014, 01:12:18 PM
Hi All,

I am  testing the NAND Flash memory in board through the following test scenario steps:
1.Mount flash partition   
#mount -t jffs2 -o sync /dev/mtdblock5 /mnt
2.Copy file to flash partition
#cp /test_file2 /mnt/
3.unmount Flash Partion
#umount -f /mnt
4.Remount
mount -t jffs2 -o sync /dev/mtdblock5 /mnt
5. Compare files
#diff /test_file2 /mnt/test_file2
I am running the above 5 steps as test script in a while loop. The test running fine nearly 100 iteration successfully.  But randomly sometimes in the  5th step is getting  failed since the files are differed.

It can be clearly identified that the file is getting corrupted after the remount and also i can see that  Zeros on 4K page size

Please let me know why the files is corrupted after remount of the flash partition

Regards,
Suresh.S
Title: Re: Nand Flash Partition file Corrupted after remount
Post by: AzHofi on November 11, 2014, 10:49:43 PM
Is there any progress in this topic? For me almost the same situation, but FFs instead of 00s.