Mtd under kernel 2.6

Daniel Alomar dalomar at serrasold.com
Tue Nov 15 07:12:12 EST 2005


Hi,

My name is Daniel Alomar, and I'm working in to an embedded linux (Coldfire
5282) with mtd drivers. I have a problem, and I wonder if this list could
help me.... (I hope).

I'm trying to port a board from kernel 2.4 to 2.6. I'm using uClinux and
with the 2.4 Kernel I have no problem to use the flash. (I have 8 Mb flash.
An Intel strata flash 28F640J3). I put my own device driver, but when I
boot, my system doesn't detect the flash chip.

This is my 2.4 output:
======================
.....
fec.c: Probe number 1 with 0x0000
eth0: FEC ENET Version 0.2, 00:50:dd:00:4e:61
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
uclinux[mtd]: RAM probe address=0x11d4c8 size=0x208000
uclinux[mtd]: root filesystem index=0
avnet5282 flash device: 200000 at ff800000
cfi_cmdset_0001: Erase suspend on write enabled
Using buffer write method
Creating 3 MTD partitions on "AVNET5282 flash device":
0x00000000-0x00040000 : "uboot (256 KB)"
0x00040000-0x00340000 : "kernel (3 MB)"
0x00340000-0x00800000 : "rootfs (4,75 MB)"
...

And this my 2.6 output:
=======================
...
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth%d: FEC ENET Version 0.2, 00:50:dd:00:2a:35
PPP generic driver version 2.4.2
FEC: No PHY device found.
Using cfq io scheduler
uclinux[mtd]: RAM probe address=0x14a180 size=0x218000
Creating 1 MTD partitions on "RAM":
0x00000000-0x00218000 : "ROMfs"
uclinux[mtd]: set ROMfs to be root filesystem
MCF5282 flash device: 200000 at ff800000
CFI: Found no SERRA 5282 flash device device at location zero
NET: Registered protocol family 

It seems 2.6 can't detect my flash device, and uClinux creates the
partition from the uclinux.c instead the one from avnet5282.c. I can't 
understand why with 2.4 use the avnet5282.c partitions but with 2.6 use 
the uclinux.c one.

Somebody have 2cents??

Daniel Alomar i Claramonte
Research & Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.com 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avnet5282.c
Type: application/octet-stream
Size: 3068 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20051115/799802c4/attachment.obj 


More information about the linux-mtd mailing list