public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Shawn Jin <shawnxtech@yahoo.com>
To: Florian Schirmer <jolt@tuxbox.org>, linux-mtd@lists.infradead.org
Cc: Shawn Jin <shawnxtech@yahoo.com>
Subject: Re: Help: Error on mounting JFFS2
Date: Wed, 18 Feb 2004 17:02:17 -0800 (PST)	[thread overview]
Message-ID: <20040219010217.54066.qmail@web20730.mail.yahoo.com> (raw)
In-Reply-To: <200402130841.46087.jolt@tuxbox.org>

> > cfi_cmdset_0002: Disabling fast programming due to
> > code brokenness.
> 
> What MTD version you are using? I recommend to get the latest code from
> CVS, 
> since there was another bug in the cmdset2. You should in fact get two 
> "Disabled X due to bugs" messages.
 
When the latest code from CVS (i.e. with David Vrabel's patches) was used,
the root filesystem finally got mounted with type JFFS2.

However I observed some strange behaviors. What I tried is to create some
new files in the device. Here is the screenshot.

# ls
bin   dev   etc   lib   proc  sbin  tmp   usr   var
--> original root filesystem

# cd tmp
# ls
# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/mtdblock1            8192      2096      6096  26% /
--> show the device's usage

# cp /bin/busybox busybox
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
Node CRC ffffffff != calculated CRC f09e7845 for node at 000f69dc
# ls -l
-rwxr-xr-x    1 0        0          785136 Jan  1 00:03 busybox
# ls -l /bin/busybox
-rwxr-xr-x    1 0        0          785136 Feb 18  2004 /bin/busybox
# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/mtdblock1            8192      2528      5664  31% /
--> copy a file 'busybox' to 'tmp' directory. Here come some error
messages.

# cp busybox bb1
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
Node totlen on flash (0xffffffff) != totlen from node ref (0x0000000c)
Node CRC ffffffff != calculated CRC f09e7845 for node at 000f704c
Node CRC ffffffff != calculated CRC f09e7845 for node at 000f704c
cp: Read error: Input/output error
--> Again error messages. And also the size of 'bb1' is less than the size
of 'busybox'.

# cp bb1 bb2
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
Node totlen on flash (0xffffffff) != totlen from node ref (0x0000000c)
# cp bb2 bb3
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
Node totlen on flash (0xffffffff) != totlen from node ref (0x0000000c)
# df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/mtdblock1            8192      3820      4372  47% /
# ls -l
-rwxr-xr-x    1 0        0          782336 Jan  1 00:04 bb1
-rwxr-xr-x    1 0        0          782336 Jan  1 00:04 bb2
-rwxr-xr-x    1 0        0          782336 Jan  1 00:04 bb3
-rwxr-xr-x    1 0        0          785136 Jan  1 00:03 busybox
--> The sizes of 'bb1', 'bb2', and 'bb3' are the same but all are less than
the size of 'busybox'.

--> After the sytem is rebooted, all created files are gone. Why cannot
they be written to flash?

Question: Is this problem related to JFFS2? Or just simply to mkfs.jffs2? I
used the latest util from CVS to make a JFFS2 filesystem image with '-e
0x80000' specified, no padding.

Regards,
-Shawn.

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

  parent reply	other threads:[~2004-02-19  1:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-11 23:26 Help: Error on mounting JFFS2 Shawn Jin
2004-02-13  7:41 ` Florian Schirmer
2004-02-18 23:03   ` Shawn Jin
2004-02-19 10:30     ` David Vrabel
2004-02-19  1:02   ` Shawn Jin [this message]
     [not found] <40348A59.1000401@arcom.com>
2004-02-19 23:28 ` Shawn Jin

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=20040219010217.54066.qmail@web20730.mail.yahoo.com \
    --to=shawnxtech@yahoo.com \
    --cc=jolt@tuxbox.org \
    --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