MTD,JFFS on JEDEC devices with uClinux-2.0.38.1pre7
Stephen,
Hi. Thanks for the advice. I also checked out the [email protected] 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
Quoted 33 lines · Raymond Danks
-----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.1pre7Quoted 5 lines · Raymond Danks
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 inmtd/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 calljedec_probeto find the flash chips.
Also had to modifyphysmap.cto 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.
Quoted 5 lines
If you have any questions, email me direct.
Good luck,
Steve
To unsubscribe, send "unsubscribe mtd" to [email protected]