From: Yann Rapaport <yann.rapaport@6wind.com>
To: linux-mtd@lists.infradead.org
Subject: mkfs.jffs2 and NAND smartmedia card
Date: Wed, 11 Aug 2004 10:24:16 +0200 [thread overview]
Message-ID: <4119D7B0.8080105@6wind.com> (raw)
Hi!
I am currently working on installing a JFFS2 filesystem on an ARM
system, using a Samsung NAND Smartmedia device and 2.4.20 kernel from
montavista 3.1.
I succeed in mouting the partition and installing my filesystem in it
using the following commands:
root:/# mount -t jffs2 /dev/mtdblock1 /mnt
root:/# cp -r /usr/admin/* /mnt
My aim is now to create my filesystem using mkfs.jffs2. When mounting
the partition, I get ECC, CRC and magic bitmask errors.
root:/# mkfs.jffs2 -r /usr/admin -s 512 -e 16384 -b -o /dev/mtd1
root:/# mount -t jffs2 /dev/mtdblock1 /mnt
mtd->read(0x400 bytes from 0x0) returned ECC error
jffs2_scan_eraseblock(): Node at 0x00000000 {0x1985, 0xe001, 0x0000002c)
has invalid CRC 0xa026b584 (calculated 0xa026b184)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008:
0xa026 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018:
0x4119 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c:
0x0404 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020:
0xe158 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024:
0x5121 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000200:
0x0801 instead
etc.
It seems that the OOB data is damaged...
Do you have any idea of what happens?
Thanks in advance!
--
Yann
next reply other threads:[~2004-08-11 8:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-11 8:24 Yann Rapaport [this message]
2004-08-11 9:14 ` mkfs.jffs2 and NAND smartmedia card Thomas Gleixner
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=4119D7B0.8080105@6wind.com \
--to=yann.rapaport@6wind.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