From: Oliver Korpilla <okorpil@fh-landshut.de>
To: David Vrabel <dvrabel@arcom.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: MVME2100 flash mapping patch - please review
Date: Fri, 23 Apr 2004 11:03:37 +0200 [thread overview]
Message-ID: <4088DBE9.2010702@fh-landshut.de> (raw)
In-Reply-To: <4088D9F4.3010002@arcom.com>
David Vrabel wrote:
> > cfi_cmdset_0002.c is version 1.93
>
> If your flash chips support suspending erases then this version is
> broken. You'll need either 1.94 or 1.98.
>
Thanks, I've tried now with both, 1.93 and 1.98, too:
When trying with my patch against the old revision, I get this:
/ # cat tmp/rootfs.jffs2.img > /dev/mtd2
MTD do_write_oneword(): FLASH internal timeout: 0x00200020 0x7aa6fe27
0x851901e0
cat: Write Error: Input/output error
/ # eraseall /dev/mtd2
Erasing 256 Kibyte @ 2c0000 -- 91 % complete.
/ # cat tmp/rootfs.jffs2.img > /dev/mtd2
MTD do_write_oneword(): FLASH internal timeout: 0x00200000 0xd4a70000
0x2b000000
/ # mount -t jffs2 -o ro /dev/mtdblock2 tmp
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000:
0x0100 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004:
0x0100 instead
Cowardly refusing to erase blocks on filesystem with no valid JFFS2
nodes
empty_blocks 11, bad_blocks 0, c->nr_blocks 12
mount: Mounting /dev/mtdblock2 on /tmp failed: Invalid argument
When trying with the newest revision from CVS, I get this:
On boot:
Motorola MVME2100 flash device: 0x400000 at 0xff000000
Found: AMD AM29LV800BT
MVME2100 flash: Found 4 x16 devices at 0x0 in 32-bit mode
number of JEDEC chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 2 MTD partitions on "MVME2100 flash":
0x00000000-0x00100000 : "MVME2100 flash BOOT partition"
0x00100000-0x00400000 : "MVME2100 flash rootfs partition"
When I try to use it:
/ # eraseall /dev/mtd2
Erasing 256 Kibyte @ 2c0000 -- 91 % complete.
/ # cat tmp/rootfs.jffs2.img > /dev/mtd2
MTD do_write_oneword(): software timeout
cat: Write Error: Input/output error
/ # mount -t jffs2 /dev/mtdblock2 /tmp
mountjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at
0x00000000: 0x0100 instead
: /dev/mtdblock2jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x00000004: 0x0100 instead
is write-protected, mounting reCowardly refusing to erase blocks on
filesystem with no valid JFFS2 nodes
ad-only
empty_blocks 11, bad_blocks 0, c->nr_blocks 12
mount: Mounting /dev/mtdblock2 on /tmp failed: Invalid argument
The write error in cat is described as follows in /var/log/messages:
Apr 24 09:59:42 mvme2100 kern.warn klogd: MTD do_write_oneword():
software timeout
What am I doing wrong?
Thanks in advance,
Oliver Korpilla
prev parent reply other threads:[~2004-04-23 9:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-23 8:23 MVME2100 flash mapping patch - please review Oliver Korpilla
2004-04-23 8:55 ` David Vrabel
2004-04-23 9:03 ` Oliver Korpilla [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=4088DBE9.2010702@fh-landshut.de \
--to=okorpil@fh-landshut.de \
--cc=dvrabel@arcom.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.