* NAND JFFS2 mount umount problems
@ 2005-09-01 9:28 Liao Kai
2008-08-13 16:42 ` Dave Kroetsch
0 siblings, 1 reply; 2+ messages in thread
From: Liao Kai @ 2005-09-01 9:28 UTC (permalink / raw)
To: linux-mtd
HI ALL,
I used the linux-2.6.11 kernel from MIPS-LINUX.ORG. I am not sure which
snapshot does it merged from. The drivers/mtd/mtdchar.c is:
$Id: mtdchar.c,v 1.66 2005/01/05 18:05:11 dwmw2 Exp $
I tried to test my NAND flash driver following the steps below:
(1) Format the NAND partition to JFFS2, mount it and read/write for
100 times. There are no error at all.
$ eraseall -j /dev/mtd/0
$ mount -t jffs2 /dev/mtdblock/0 /mnt
Then repeat the following step 100 times:
$ rm -f /mnt/test.rpm
$ cp -f /test/nand/test.rpm /mnt
$ cp -f /mnt/test.rpm /test/nand/dump${i}.rpm
where ${i} are [1..100]
After 100 read/write, then umount the NAND partition.
(2) If at each time, first mount /dev/mtdblock/0, copy the test.rpm file out,
then umount /dev/mtdblock/0, about 8 copied files will be corrupted.
$ eraseall -j /dev/mtd/0
$ mount -t jffs2 /dev/mtdblock/0 /mnt
$ cp -f /test/nand/test.rpm /mnt
$ umount /mnt
Then repeat the following step 100 times:
$ mount -t jffs2 /dev/mtdblock/0 /mnt
$ cp -f /mnt/test.rpm /test/nand/dump${i}.rpm
where ${i} are [1..100]
$ umount /mnt
Could you please give me some hints about this problem? Thanks!
Carl Liao
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-13 16:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-01 9:28 NAND JFFS2 mount umount problems Liao Kai
2008-08-13 16:42 ` Dave Kroetsch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox