From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Borzenkov Date: Sun, 26 Feb 2006 16:22:49 +0000 Subject: Re: PCMCIA in hotplug: Configuration Message-Id: <200602261922.50788.arvidjaar@mail.ru> List-Id: References: <000c01c63aeb$0a8260c0$600d000a@gabriel> In-Reply-To: <000c01c63aeb$0a8260c0$600d000a@gabriel> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 26 February 2006 18:40, Jerry wrote: > 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) > 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. > 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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel