public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Artem B. Bityutskiy" <dedekind@yandex.ru>
To: Catherine Smith <catherine@arrows.demon.co.uk>
Cc: John <john@arrows.demon.co.uk>, linux-mtd@lists.infradead.org
Subject: Re: OneNAND - Cannot mount jffs2 partition
Date: Mon, 14 Aug 2006 19:03:36 +0400	[thread overview]
Message-ID: <44E090C8.9040400@yandex.ru> (raw)
In-Reply-To: <000e01c6bf00$3acdd130$c9fea8c0@Catherine>

Hi Catherine,

Catherine Smith wrote:
> If I don't use the -j, it seems to work, though with a few warnings.
> For example:
>   $ flash_eraseall /dev/mtd5
>   Eraseing 64 Kibyte @ 7f0000 -- 99 % complete
>   $ mount -t jffs2 /dev/mtdblock5 /mnt/onenand
>   Eep. no valid nodes for ino #1
That's harmless.

-j option means to put so-called clean marker at each etaseblock. The 
cleanmarker just means that the eraseblock is clean ant it is safe to 
write data at it. This is needed to guaranty data consistency - it is 
not enough to just check that the eraseblock contains only 0xFF bytes. 
For example, due to unclean reboots which may interrupt an erase 
operation, some bits may become unstable and be read sometimes as 1, and 
sometimes as 0.

If you don't use -j option, JFFS2 will re-erase empty eraseblocks 
itself, and put the clean marker. It may also complain about absence of 
the root inode (which isn't a brilliant idea), but it creates the root 
node automatically.

> Then I can create files in /mnt/onenand, and copy them around or calculate a 
> few signatures. All is well.
> Once, when I tried to mount after a power cycle, it said:
>   jffs2_get_inode_nodes(): CRC failed on node at 0x002dd7c8: Read 
> 0xffffffff, calculated 0x20f0e445
Did you unmount it cleanly? Or just pushed reset? If you didn't unmount 
- it may be harmless.

> Are these warnings, the Eep and the CRC failure, typical and harmless,
> or should I take a keen interest?

If you didn't cleanly unmount, you could have been interrupted a delayed 
wbuf flush and just lost some last-written data. This could cause CRC 
failure. And as JFFS2 cannot distinguish between real corruption and 
corruptions due to unclean reboots - it issued a warning.

-- 
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.

      reply	other threads:[~2006-08-14 15:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-13 10:24 OneNAND - Cannot mount jffs2 partition John
2006-08-13 12:10 ` Artem B. Bityutskiy
2006-08-13 17:45   ` Catherine Smith
2006-08-14 15:03     ` Artem B. Bityutskiy [this message]

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=44E090C8.9040400@yandex.ru \
    --to=dedekind@yandex.ru \
    --cc=catherine@arrows.demon.co.uk \
    --cc=john@arrows.demon.co.uk \
    --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