All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phillip Kamp <pkamp@equator.com>
To: linux-mtd@lists.infradead.org
Subject: mkfs.jffs2 --cleanmarker=?
Date: Thu, 09 Jun 2005 17:17:06 -0700	[thread overview]
Message-ID: <42A8DC02.90708@equator.com> (raw)


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

             reply	other threads:[~2005-06-10  0:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-10  0:17 Phillip Kamp [this message]
2005-06-10  1:20 ` mkfs.jffs2 --cleanmarker=? Munira Ahmed
2005-06-10  7:46 ` 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=42A8DC02.90708@equator.com \
    --to=pkamp@equator.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.