PDA

View Full Version : Pcmcia & 2.6


gswoods
2004-02-15, 04:11 PM CST
Anybody succeeded in getting PCMCIA to work with the 2.6 kernel? I've tried configuring a vanilla kernel from scratch as well as the Fedora RPMs. Everything works, except PCMCIA. PCMCIA works on the same laptop under Red Hat 9, so I know it's some kind of configuration or software issue. Manually loading the correct modules works, but doesn't get the cards working.

mhelios
2004-02-15, 05:18 PM CST
Most likely, your /etc/init.d/pcmcia script is broken. It happens when you upgrade your kernel.

In the start) section where it loads the modules, remove the ".o" suffix from the end of the module name.

i.e. this is what you should change:

if [ -d $PC ] ; then
echo -n " modules"
/sbin/modprobe pcmcia_core.o $CORE_OPTS
/sbin/modprobe $PCIC.o $PCIC_OPTS
/sbin/modprobe ds.o
elif [ -d $KD ] ; then
/sbin/modprobe pcmcia_core
/sbin/modprobe $PCIC
/sbin/modprobe ds
else
echo $" module directory $PC not found."
break
fi


Remove the bolded .o's, reboot and hopefully things should work! :)

HTH

gswoods
2004-02-16, 10:58 AM CST
Thanks for the tip, I now have partial success. First time I tried this, I noted that the pcmcia_core and yenta_socket modules were loaded at boot time, but still no dice. With a bit of fiddling around, I discovered that if I restart PCMCIA ("service pcmcia restart") after logging in, and insert the Zoom modem card prior to the Orinoco 802.11b wireless card, everything works! Eventually I would like to figure out why this convoluted procedure is necessary, but at least things mostly work. Now I can move on to more fun stuff (like ACPI, which is what I really want 2.6 for). I also plan to try the recently-released 2.6.2

I also tried putting a "service pcmcia restart" at the end of the /etc/rc.local file, but that doesn't do it. If I don't restart PCMCIA after logging in, nothing works. The symptoms of "nothing works" now are that I can insert the card, but the lights don't come on, and running "cardctl ident" gets a "No product info available" response. On the other hand, if I restart PCMCIA, I can then insert the Orinoco card, and still nothing works. If, however, I insert the Zoom modem card, not only does it work, but if I then remove it and insert the Orinoco card, it works too from then on. Weird.