From: Will Wagner <will_wagner@carallon.com>
To: linux-mtd@lists.infradead.org
Subject: NAND and JFFS2 newbie question
Date: Tue, 27 Jan 2009 16:56:31 +0000 [thread overview]
Message-ID: <497F3CBF.4000309@carallon.com> (raw)
Hi All,
I have an arm iMx31 board with 128M of NAND flash. It all appears to be working however I
get a lot of error/warning messages and I'd just like to check I am doing things right.
The NAND chip is a ST NAND01G-B2B used in 8-bit mode which has 2048+64 byte pages and 128k
block size. Linux is 2.6.24.7 with Freescale patches for MTD support on the iMx31 chip.
I am wanting to create a JFFS2 partition on the device. The partition is created using:
mkfs.jffs2 -s 2 -e 128 -c 12 -o fs.jffs2 -r jffs2_fs
Are these the correct arguments for the flash device I am using?
On the target I then do:
> flash_eraseall /dev/mtd4
Erasing 128 Kibyte @ 5f60000 -- 99 % complete.
Skipping bad block at 0x05f80000
Skipping bad block at 0x05fa0000
Skipping bad block at 0x05fc0000
Skipping bad block at 0x05fe0000
> nandwrite -p /dev/mtdblock4 fs.jffs2
Writing data to block 0
> mount -t jffs2 /dev/mtdblock4 /flashfs
JFFS2 doesn't use OOB.
CLEANMARKER node found at 0x00000000 has totlen 0xc != normal 0x0
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x05fc0010: 0xffff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x05fe0010: 0xffff instead
# nand_erase: attempt to erase a bad block at page 0x0000ff80
Erase at 0x05fc0000 failed immediately: errno -5
nand_erase: attempt to erase a bad block at page 0x0000ffc0
Erase at 0x05fe0000 failed immediately: errno -5
Does this seem right? Why doesn't it use OOB and why is the cleanmarker wrong?
It all seems to be working but any advice on whether I am doing things write and if the
output is all acceptable warnings would be much appreciated.
Thanks,
Will
--
------------------------------------------------------------------------
Will Wagner will_wagner@carallon.com
Development Manager Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------
next reply other threads:[~2009-01-27 16:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-27 16:56 Will Wagner [this message]
2009-01-28 12:29 ` NAND and JFFS2 newbie question Nils Faerber
2009-01-28 13:19 ` Will Wagner
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=497F3CBF.4000309@carallon.com \
--to=will_wagner@carallon.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