public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Liao Kai" <carlliao@21cn.com>
To: "linux-mtd" <linux-mtd@lists.infradead.org>
Subject: NAND  JFFS2 mount umount problems
Date: Thu, 1 Sep 2005 17:28:19 +0800	[thread overview]
Message-ID: <zT949098826967.01695@send5.inner-21cn.com> (raw)

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

             reply	other threads:[~2005-09-01  9:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-01  9:28 Liao Kai [this message]
2008-08-13 16:42 ` NAND JFFS2 mount umount problems Dave Kroetsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=zT949098826967.01695@send5.inner-21cn.com \
    --to=carlliao@21cn.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox