public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mkfs.jffs2 --cleanmarker=?
@ 2005-06-10  0:17 Phillip Kamp
  2005-06-10  1:20 ` Munira Ahmed
  2005-06-10  7:46 ` Thomas Gleixner
  0 siblings, 2 replies; 3+ messages in thread
From: Phillip Kamp @ 2005-06-10  0:17 UTC (permalink / raw)
  To: linux-mtd


I'm developing a proprietary nand flash driver based on the
drivers/mtd/nand/nand_base.c code.  I can successfully read
and write the nand device in char mode, but when I write a jffs2
file system on it I get these CLEANMARKER errors:
CLEANMARKER node found at 0x00000000 has totlen 0xc != normal 0x0
CLEANMARKER node found at 0x00004000 has totlen 0xc != normal 0x0
CLEANMARKER node found at 0x00008000 has totlen 0xc != normal 0x0
CLEANMARKER node found at 0x0000c000 has totlen 0xc != normal 0x0
...
for every single block.

The Samsung nand chip we use is has 512 byte pages, 16 byte OOB area and
16 Kbyte erase blocks:
dev:    size   erasesize  name
mtd0: 00800000 00004000 "Boot Image"
mtd1: 01800000 00004000 "Root FS (JFFS2)"

I can successfully boot from the mtd0 partiion.  But when I create my
jffs2 image I use
mkfs.jffs2 -s 0x200 -e 0x4000 -o jffs2.image

and copy it,
cp jffs2.image /dev/mtd1

but when I mount the partion using
mount -t jffs2 /dev/mtdblock1 /mnt/nf

I get the above errors.  The fs seems to function okay, but this slew
of errors seems ominous.  (Same results if I mount the partition as my
root fs).

What is the --cleanmarker option?  Is it related to the oob size?  I
tried -c 16 and the error changed to "totlen 0x10 != normal 0x0".
Perhaps -c 0 would mask these errors, but before I do that I wanted
to see what exactly the cleanmarker meant.

I'm using jffs2 sources from Linux 2.6.11.  I see you latest distribution
is more recent.  Is it worth it for me to port your distribution
to my linux version, or am I doing something fundamentally ignorant?

Thanks in advance.
Phil

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-10  7:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-10  0:17 mkfs.jffs2 --cleanmarker=? Phillip Kamp
2005-06-10  1:20 ` Munira Ahmed
2005-06-10  7:46 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox