* Re: Re: PCMCIA support for 860
@ 2000-04-04 9:49 Ruedi Hofer
2000-04-04 11:54 ` Marcus Sundberg
0 siblings, 1 reply; 4+ messages in thread
From: Ruedi Hofer @ 2000-04-04 9:49 UTC (permalink / raw)
To: linuxppc-embedded; +Cc: erammsu, kernel
Hi
Thanx for the answers...
I patched the files mpc8xx.h and init.c as you wrote. Then I recompiled the
kernel (2.2.13, including fpu, damm, bossek patches) and restarted it.
Then I used the rc.pcmcia to set the modules up. It fails because of...
sh-2.03# ./rc.pcmcia start
Starting PCMCIA services: modules/lib/modules/2.2.13/pcmcia/pcmcia_core.o:
unresolved symbol request_8xxirq
/lib/modules/2.2.13/pcmcia/i82365.o: /lib/modules/2.2.13/pcmcia/i82365.o: No
such file or directory
/lib/modules/2.2.13/pcmcia/ds.o: unresolved symbol proc_pccard
/lib/modules/2.2.13/pcmcia/ds.o: unresolved symbol CardServices
cardmgr.
sh-2.03# cardmgr[67]: starting, version is 3.1.10
cardmgr[67]: no pcmcia driver in /proc/devices
cardmgr[67]: exiting
I suppose that I should find the missing request in /proc/ksyms. But there
ain't nothing like this:
sh-2.03# cat /proc/ksyms | grep request
c0019478 request_module
c00e8f50 wait_for_request
c00ac2d0 make_request
c0008d6c request_irq
c000eb04 request_dma
c0016ac0 request_region
c00e5898 io_request_lock
c00acd30 end_that_request_first
c00ace3c end_that_request_last
sh-2.03# cat /proc/ksyms | grep 8xx
sh-2.03#
Does someone have a clue on that? Is request_irq and request_8xxirq related??
--
Best regards
Ruedi Hofer
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PCMCIA support for 860
2000-04-04 9:49 Re: PCMCIA support for 860 Ruedi Hofer
@ 2000-04-04 11:54 ` Marcus Sundberg
2000-04-04 23:33 ` Dan Malek
0 siblings, 1 reply; 4+ messages in thread
From: Marcus Sundberg @ 2000-04-04 11:54 UTC (permalink / raw)
To: Ruedi Hofer; +Cc: linuxppc-embedded
Ruedi Hofer <ruedi.hofer@ascom.ch> writes:
Hi,
> I patched the files mpc8xx.h and init.c as you wrote. Then I recompiled the
> kernel (2.2.13, including fpu, damm, bossek patches) and restarted it.
> Then I used the rc.pcmcia to set the modules up. It fails because of...
>
> sh-2.03# ./rc.pcmcia start
> Starting PCMCIA services: modules/lib/modules/2.2.13/pcmcia/pcmcia_core.o:
> unresolved symbol request_8xxirq
[snip]
> Does someone have a clue on that? Is request_irq and request_8xxirq related??
Just stuff an:
EXPORT_SYMBOL(request_8xxirq);
into arch/ppc/kernel/ppc_ksyms.c and it should work.
//Marcus
--
Signature under construction, please come back later.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PCMCIA support for 860
2000-04-04 11:54 ` Marcus Sundberg
@ 2000-04-04 23:33 ` Dan Malek
0 siblings, 0 replies; 4+ messages in thread
From: Dan Malek @ 2000-04-04 23:33 UTC (permalink / raw)
To: Marcus Sundberg; +Cc: Ruedi Hofer, linuxppc-embedded
Marcus Sundberg wrote:
>
> Ruedi Hofer <ruedi.hofer@ascom.ch> writes:
> > Does someone have a clue on that? Is request_irq and request_8xxirq related??
Sort of. The MPC8xx has an internal interrupt controller. The
Linux community seems to think the world is 8259s and PCI/ISA bus.
Mapping request_irq into the 8xx interrupt controller was attempted,
but didn't provide the proper results. The request_8xxirq function
is used by all integrated device drivers (serial, Ethernet, TDM/audio,
USB, SPI, I2C, PCMCIA, general purpose I/O pins, etc.), as they know
they are using the internal interrupt controller.
In the case of boards with PCI/ISA bridges, the request_irq is also
enabled because there is a downstream 8259 controller. Not defining
this when there is no 8259 causes drivers that would attempt to use
this to fail. It is nice to know this at build time, rather than
wondering why things are crashing or not working once the system is
booted.
This also presents a challenge for PCMCIA devices. All of these drivers
(or supporting functions) want to install interrupt handlers using
request_irq, which doesn't make sense on the 8xx. I have the ATA/IDE
patch to install the interrupt handler, but other devices may also need
interrupt handler patches.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: PCMCIA support for 860
@ 2000-04-04 11:52 Ruedi Hofer
0 siblings, 0 replies; 4+ messages in thread
From: Ruedi Hofer @ 2000-04-04 11:52 UTC (permalink / raw)
To: linuxppc-embedded; +Cc: erammsu, kernel
Hi
Well, I found out that I have to add in kernel/ksyms.c the line
EXPORT_SYMBOL(request_irq);
Now I'm able to load the different kernel modules, but
sh-2.03#
sh-2.03# insmod pcmcia_core
Linux PCMCIA Card Services 3.1.10
kernel build: 2.2.13 #85 Tue Apr 4 10:26:49 CEST 2000
options: none
sh-2.03# insmod m8xx_pcmcia
m8xx_pcmcia: Version 0.03, 14-Feb-2000, Magnus Damm
m8xx_pcmcia: ADS using SLOT_A with IRQ 13.
sh-2.03# insmod ds
sh-2.03# insmod ide_cs
/lib/modules/2.2.13/pcmcia/ide_cs.o: unresolved symbol ide_unregister
/lib/modules/2.2.13/pcmcia/ide_cs.o: unresolved symbol ide_register
sh-2.03#
... I can't add the module ide_cs. For that reason, do I have to
enable 'Enhanced IDE support' in the kernel options??
If I do so, I get the following compile errors:
m8xx_setup.c: In function `m8xx_init_IRQ':
m8xx_setup.c:286: warning: implicit declaration of function `cpm_interrupt_init'
m8xx_setup.c: In function `m8xx_ide_init_hwif_ports':
m8xx_setup.c:390: warning: unused variable `port'
m8xx_setup.c: In function `m8xx_init':
m8xx_setup.c:522: structure has no member named `ide_request_irq'
make[1]: *** [m8xx_setup.o] Error 1
make[1]: Leaving directory
`/usr/src/linux-mpc8xx-2.2.13-damm-bossek-fpu-pcmcia/arch/ppc/kernel'
make: *** [_dir_arch/ppc/kernel] Error 2
Why that?
--
Best regards
Ruedi Hofer
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-04-04 23:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-04 9:49 Re: PCMCIA support for 860 Ruedi Hofer
2000-04-04 11:54 ` Marcus Sundberg
2000-04-04 23:33 ` Dan Malek
-- strict thread matches above, loose matches on Subject: below --
2000-04-04 11:52 Ruedi Hofer
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).