From: "Raymond Danks" <Raymond.Danks@nsc.com>
To: "Raymond Danks" <ray@rbtech.org>,
"Sanjay Gajendra" <Sanjay.Gajendra@nsc.com>
Cc: "Brian Otteman" <brian.otteman@ia.nsc.com>, mtd@infradead.org
Subject: Re: MTD,JFFS on JEDEC devices with uClinux-2.0.38.1pre7
Date: Thu, 22 Mar 2001 17:16:28 -0700 [thread overview]
Message-ID: <3ABA95DC.C72761AC@nsc.com> (raw)
In-Reply-To: 000001c0b107$4a8fcf40$a34c57d8@rbtech.org
Stephen,
Hi. Thanks for the advice. I also checked out the mtd@infradead.org list.
I went and got the latest snapshot that I think David Woodhouse is
maintaining. He has edited the jedec.c a little from what is in the 2.4
kernel to resolve the compilation issues with bank_size and bus_width. I
also changed the do_cfi_probe to do_jedec_probe in physmap.c and enabled
CONFIG_MTD_JEDEC.
Everything compiles correctly, however, I still cannot get to the flash.
I am getting:
physmap flash device: 2000000 at ffe00000
Failed to ioremap
physmap.o: init_module: Input/output error
This is the same as what I was getting when running do_cfi_probe. I looked
at physmap.c and it looks like the ioremap is being run before
do_jedec_probe, so it seems that my problem lies elsewhere. I know that I
have the correct addressing and bus width, so I am wondering whether I have
to tweak the ioremap. Do you know anything about this or about how the
2.4.0 kernel remaps io addresses.
The other possibility I guess is that I am loading these modules
incorrectly. The way I configured it, I have 10 modules:
cfi_cmdset_002.o
cfi_probe.o
cfi_jedec.o
cstm_cfi_jedec.o
jedec.o
map_rom.o
mtdblock.o
mtdchar.o
mtdpart.o
physmap.o
I went into cstm_cfi_jedec.c because the failure output was a little more
informative. After putting my flash addressing into this file I managed to
come up with the same error that I am getting with physmap.o, so I'm back to
square one.
Do you have any recommendations?? I may go back and build this stuff into
the 2.2.18 kernel in the meantime.
Thanks for any help,
Ray
Raymond Danks wrote:
> -----Original Message-----
> From: root [mailto:root]On Behalf Of Stephen Brasher
> Sent: Monday, March 19, 2001 4:23 PM
> To: Raymond Danks
> Subject: Re: MTD,JFFS on JEDEC devices with uClinux-2.0.38.1pre7
>
> Raymond Danks wrote:
> >
> > Stephen or whoever else can help,
> >
> > This thread caught my attention because I am attempting to set up an
> > AM29F016D Flash device under the 2.4.0 kernel.
>
> These chips are jedec, not cfi. You need to configure the kernel for
> jedec
> chips and fix the jedec code in mtd/kernel/jedec.c. Also, in version
> 2.0.38,
> there is no way to specify the starting address of the jedec chips. I
> had
> to use physmap and modify it to call jedec_probe to find the flash
> chips.
> Also had to modify physmap.c to do the reads and writes from the flash.
> Don't
> know what you will have to do on 2.4 to get jedec support.
>
> Also, the sector size of you flash chips is 64K. JFFS does not work
> well
> with large sectors. In my environment, I have 4 chips interleaved with
> 256k sectors and am in the process of modifying jffs to handle this
> large
> size. JFFS looks like it works well with flash cards and cfi chips, but
> doesn't work well with jedec.
>
> If you have any questions, email me direct.
>
> Good luck,
>
> Steve
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next parent reply other threads:[~2001-03-23 0:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <000001c0b107$4a8fcf40$a34c57d8@rbtech.org>
2001-03-23 0:16 ` Raymond Danks [this message]
[not found] <000201c0b0eb$e5a9fda0$a34c57d8@rbtech.org>
2001-03-20 7:38 ` MTD,JFFS on JEDEC devices with uClinux-2.0.38.1pre7 David Woodhouse
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=3ABA95DC.C72761AC@nsc.com \
--to=raymond.danks@nsc.com \
--cc=Sanjay.Gajendra@nsc.com \
--cc=brian.otteman@ia.nsc.com \
--cc=mtd@infradead.org \
--cc=ray@rbtech.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.