* MTD Driver (denx Linux 2.4.4)
@ 2002-10-31 14:37 Flavio Pereira
2002-10-31 16:25 ` Hollis Blanchard
0 siblings, 1 reply; 2+ messages in thread
From: Flavio Pereira @ 2002-10-31 14:37 UTC (permalink / raw)
To: linuxppc embedded
Hi All
I'm having difficulty in getting the MTD driver working. I'm using a
non-CFI complaint Sharp chip so I have defined CONFIG_MTD_SHARP. However
I cannot locate anywhere in the code where the kernel will call
sharp_probe_init. In any case I forced init_mtd (mtdcore.c) to call
sharp_probe_init and it seems to load the driver okay as I see the
following on my serial console
JFFS version 1.0, (C) 1999, 2000 Axis Communications AB
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis
Communications AB.
MTD Sharp chip driver <ds@lineo.com>
MTD Sharp chip driver <ds@lineo.com>
Now my question is, do I need to force this driver to load or am I
missing some compile flag? How do I go about partitioning the flash, ie
how does this driver link to a flash map?
Any help would be appreciated
Thanks in advance
Flavio Pereira
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: MTD Driver (denx Linux 2.4.4)
2002-10-31 14:37 MTD Driver (denx Linux 2.4.4) Flavio Pereira
@ 2002-10-31 16:25 ` Hollis Blanchard
0 siblings, 0 replies; 2+ messages in thread
From: Hollis Blanchard @ 2002-10-31 16:25 UTC (permalink / raw)
To: Flavio Pereira; +Cc: linuxppc embedded
On Thu, 2002-10-31 at 08:37, Flavio Pereira wrote:
>
> I'm having difficulty in getting the MTD driver working. I'm using a
> non-CFI complaint Sharp chip so I have defined CONFIG_MTD_SHARP. However
> I cannot locate anywhere in the code where the kernel will call
> sharp_probe_init. In any case I forced init_mtd (mtdcore.c) to call
> sharp_probe_init and it seems to load the driver okay as I see the
> following on my serial console
>
> JFFS version 1.0, (C) 1999, 2000 Axis Communications AB
> JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis
> Communications AB.
> MTD Sharp chip driver <ds@lineo.com>
> MTD Sharp chip driver <ds@lineo.com>
>
> Now my question is, do I need to force this driver to load or am I
> missing some compile flag? How do I go about partitioning the flash, ie
> how does this driver link to a flash map?
Those "MTD" lines above, does that mean your driver is being initialized
twice?
Linux uses ELF tricks for initialization: addresses of all the functions
marked __init are put into their own ELF section, and common code
somewhere (I forget where) just loops over this section, calling each
init function in turn. So you should *not* add an explicit call to your
init routine.
-Hollis
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-31 16:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-31 14:37 MTD Driver (denx Linux 2.4.4) Flavio Pereira
2002-10-31 16:25 ` Hollis Blanchard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).