Skip to contentSkip to conversation

PCMCIA in hotplug: Configuration

DISCUSSION Jerry 2 participants 2 messages Feb 26, 2006

lore
Share & tools
lore

Jerry

author
#0 lore raw

Hello!

With the recent move of pcmcia to hotplug (kernel 2.6.13 ->), a person has to re-learn everything to use it... In pcmcia there was a file (/etc/pcmcia/config) that had the card database that told pcmcia which driver to use... My question is basically, WHERE is the equivalent file in hotplug with this information?

More directly, SuSE 10, 2.6.15 kernel (custom), when I insert a 2511 200Mw pcmcia card, it loads the orinoco driver... not uncommon, quick fix was comment out any entry in /etc/pcmcia/config for orinoco that indicates the card, in particular, any entries that had the same manfid as the 2511. This would leave the correct entries of prism2_cs and/or hostap_cs (which is what I want) I usually commented out the prism2_cs entries too. Which file, or what command, or whatever, do I edit to make the hostap driver I custom compile load correctly?

I had initially posted to the pcmcia list and got 1 response that said to remove the orinoco driver or use the blacklist thing in hotplug, this succeeded in makeing nothing load at all when the card is inserted. It registers the pcmcia device, but doesnt load any drivers. The post also indicated I should ask here... ;)

Thanks for any help...

Jerryf

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines · Jerry

Hello!

With the recent move of pcmcia to hotplug (kernel 2.6.13 ->), a person has to re-learn everything to use it... In pcmcia there was a file (/etc/pcmcia/config) that had the card database that told pcmcia which driver to use... My question is basically, WHERE is the equivalent file in hotplug with this information?

I can't help with hotplug because I do not use it anymore, but with udev you simply do 'modprobe $modalias'. Now the problem is, there may well be several modules that match $modalias; and if you let modprobe decide it simply picks up the first in module.alias order (which is somewhat random); if this fails it takes another etc. It may hit the right one but may as well not.

One proposed solution was to explicitly bind driver to a card. While I find it quite useful for "build everything in kernel" case, I find it silly to load a bunch of modules that I know I won't use anyway.

So I ended up adding explicit alias to modprobe.conf (alternatively you can of course set up explicit udev rule). You should get pcmciautils that adds all needed udev rules too. It contains several utilities that are used to set up and configure cards and udev rules that call them as appropriate.

The only thing not from pcmciautils on my system is said modprobe.conf alias:

alias pcmcia:m0156c0002f06fn00pfn00paB4585A1Apb0B537C13pcD27DEB1Apd00000000 wlags49_h1_cs

You get alias from sysfs, /sys/bus/pcmcia/devices/0.0/modalias (replace 0.0 with bus/slot for your card)

Quoted 9 lines

More directly, SuSE 10, 2.6.15 kernel (custom), when I insert a 2511 200Mw pcmcia card, it loads the orinoco driver... not uncommon, quick fix was comment out any entry in /etc/pcmcia/config for orinoco that indicates the card, in particular, any entries that had the same manfid as the 2511. This would leave the correct entries of prism2_cs and/or hostap_cs (which is what I want) I usually commented out the prism2_cs entries too. Which file, or what command, or whatever, do I edit to make the hostap driver I custom compile load correctly?

If you have compiled *only* hostap driver, it will be automatically loaded by "modprobe $modalias", no editing is needed.

Quoted 6 lines

I had initially posted to the pcmcia list and got 1 response that said to remove the orinoco driver or use the blacklist thing in hotplug, this succeeded in makeing nothing load at all when the card is inserted. It registers the pcmcia device, but doesnt load any drivers. The post also indicated I should ask here... ;)

Does SuSE use hotplug or udev to load modules?

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)

iD8DBQFEAdXaR6LMutpd94wRAlucAJkBnmdmQf947MQLRmE+2/wBOdOECACgpv77 iKZSVtggA9J1TRWiAuZIcFk=xbIM
-----END PGP SIGNATURE-----

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel