From: "Kevin Liao" <kevinliao@iei.com.tw>
To: <linux-mtd@lists.infradead.org>
Subject: Garbage collection problem for nand flash
Date: Mon, 17 Nov 2003 18:21:22 +0800 [thread overview]
Message-ID: <013301c3acf4$8d3033d0$f80a10ac@rdkevinliaonb> (raw)
Dear all,
I have a nand flash system with one Jffs2 partition on it. The kernel
version is 2.4.18 and the mtd snapshot I use to patch is 20031112. I write
that Jffs2 partition on the nand flash by the following methods:
1. Build a Jffs2 image based on the directory "config" using the command:
mkfs.jffs2 -p -r config -e 16384 -o config.jffs2 -l -n
2. Erase the partition on the nand flash using the command: eraseall -j
/dev/mtd2
3. Write the image to that partition using the command: nandwrite -j
/dev/mtd2 config.jffs2
4. Mount the partition using the command: mount -t jffs2 /dev/mtdblock2
/mnt/config
After that, each time I try to touch or modify some file in /mnt/config. The
kernel complains about the following messaes:
jffs2: No clean, dirty _or_ erasable blocks to GC from! Where are they all?
jffs2: Couldn't find erase block to garbage collect!
It seems that the file content is still correct. Does anyone know what's
wrong with it? Thanks a lot.
Regards,
Kevin
next reply other threads:[~2003-11-17 10:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-17 10:21 Kevin Liao [this message]
2003-11-17 10:32 ` Garbage collection problem for nand flash David Woodhouse
2003-11-17 14:06 ` Kevin Liao
2003-11-17 14:12 ` David Woodhouse
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='013301c3acf4$8d3033d0$f80a10ac@rdkevinliaonb' \
--to=kevinliao@iei.com.tw \
--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