From: Jonas Holmberg <jonas.holmberg@axis.com>
To: Pham Huy Vu <vuph@mail.cable.net.tw>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Copy files to jffs2 partition have problem
Date: Wed, 4 Feb 2004 20:53:34 +0100 [thread overview]
Message-ID: <20040204195334.GC1256@axis.com> (raw)
In-Reply-To: <00e301c3eb42$8dfbbc80$030910ac@linuxer>
On Thu, Feb 05, 2004 at 01:15:52AM +0800, Pham Huy Vu wrote:
[snip]
> In amd_flash.c:
> static const struct amd_flash_info table[] = {
> ....
> //This my flash setup
> mfr_id: MANUFACTURER_MX,
> dev_id: MX29LV320T,
> name: "MXIC MX29LV320T",
> size: 0x00400000,
> numeraseregions: 3,
> regions: {
> { offset: 0x000000, erasesize: 0x10000, numblocks: 48 },
> { offset: 0x300000, erasesize: 0x10000, numblocks: 15 },
> { offset: 0x3f0000, erasesize: 0x02000, numblocks: 8 },
Hmm, I wonder why this isn't
{ offset: 0x000000, erasesize: 0x10000, numblocks: 63 },
{ offset: 0x3f0000, erasesize: 0x02000, numblocks: 8 },
Because of two banks? Make sure this layout is correct (check the
datasheet). I have seen commits to the table in amd_flash.c that were
wrong before. If your flash chip supports CFI, try using the
CFI-driver. Otherwise try jedec_probe.c instead. amd_flash is
obsolete.
Another piece of probably useless information:
I resently tested another, 64Mbit, MX-flash that didn't work with the
CFI-driver because thay had gotten the number of eraseregions wrong in
the CFI-table (in flash). A new, corrected version of the chip was
released, but with exactly the same device ID, grrr. (Got any
unused baseball bats left, David?)
[snap]
> MX FLASH: write to 0x3a59c0 failed. datum = 14000010, verify = 10
With buswidth 2 you can only write 16-bits. That's probably why verify
is 0x0010. I don't know why jffs2 tries to write 0x14000010, though.
/Jonas
next prev parent reply other threads:[~2004-02-04 19:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-04 17:15 Copy files to jffs2 partition have problem Pham Huy Vu
2004-02-04 19:53 ` Jonas Holmberg [this message]
2004-02-06 4:34 ` Pham Huy Vu
2004-02-06 7:51 ` David Woodhouse
2004-02-07 5:18 ` Pham Huy Vu
2004-02-11 4:22 ` Pham Huy Vu
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=20040204195334.GC1256@axis.com \
--to=jonas.holmberg@axis.com \
--cc=linux-mtd@lists.infradead.org \
--cc=vuph@mail.cable.net.tw \
/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.