linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PCMCIA in hotplug: Configuration
@ 2006-02-26 15:40 Jerry
  2006-02-26 16:22 ` Andrey Borzenkov
  0 siblings, 1 reply; 2+ messages in thread
From: Jerry @ 2006-02-26 15:40 UTC (permalink / raw)
  To: linux-hotplug

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&kid\x110944&bid$1720&dat\x121642
_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PCMCIA in hotplug: Configuration
  2006-02-26 15:40 PCMCIA in hotplug: Configuration Jerry
@ 2006-02-26 16:22 ` Andrey Borzenkov
  0 siblings, 0 replies; 2+ messages in thread
From: Andrey Borzenkov @ 2006-02-26 16:22 UTC (permalink / raw)
  To: linux-hotplug

-----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&kid\x110944&bid$1720&dat\x121642
_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-26 16:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-26 15:40 PCMCIA in hotplug: Configuration Jerry
2006-02-26 16:22 ` Andrey Borzenkov

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).