Mtd under kernel 2.6
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 ff800000cfi_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
Quoted 58 lines · Daniel Alomar
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 with0x0000
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 atff800000cfi_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 atff800000
CFI: Found no SERRA 5282 flash device device at location zero
NET: Registered protocol familyIt seems 2.6 can't detect my flash device, and uClinux creates the partition from the
uclinux.cinstead the one fromavnet5282.c. I can't understand why with 2.4 use theavnet5282.cpartitions but with 2.6 use theuclinux.cone.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
Quoted 4 lines
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Why is your kernel probing RAM? Is avnet5282.c being compiled?