* RE: MTD,JFFS on JEDEC devices with uClinux-2.0.38.1pre7
[not found] <000201c0b0eb$e5a9fda0$a34c57d8@rbtech.org>
@ 2001-03-20 7:38 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-03-20 7:38 UTC (permalink / raw)
To: Raymond Danks; +Cc: mtd, 'Stephen Brasher', Brian Otteman (E-mail)
On Mon, 19 Mar 2001, Raymond Danks wrote:
> I checked the spec for the part I am using and there is no mention of this
> being a CFI device. I was unable to determine for sure, however that this
> device is not a CFI device or if it is NOT a CFI device, then can I still
> use MTD and JFFS on the device?
I don't think it is. Change the do_cfi_probe to do_jedec_probe in
physmap.c and enable CONFIG_MTD_JEDEC.
I've Cc'd the MTD mailing list because people there are likely to correct
me if I'm wrong.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: MTD,JFFS on JEDEC devices with uClinux-2.0.38.1pre7
[not found] <000001c0b107$4a8fcf40$a34c57d8@rbtech.org>
@ 2001-03-23 0:16 ` Raymond Danks
0 siblings, 0 replies; 2+ messages in thread
From: Raymond Danks @ 2001-03-23 0:16 UTC (permalink / raw)
To: Raymond Danks, Sanjay Gajendra; +Cc: Brian Otteman, mtd
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-03-23 0:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <000001c0b107$4a8fcf40$a34c57d8@rbtech.org>
2001-03-23 0:16 ` MTD,JFFS on JEDEC devices with uClinux-2.0.38.1pre7 Raymond Danks
[not found] <000201c0b0eb$e5a9fda0$a34c57d8@rbtech.org>
2001-03-20 7:38 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox