linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar@mail.ru>
To: linux-hotplug@vger.kernel.org
Subject: Re: PCMCIA in hotplug: Configuration
Date: Sun, 26 Feb 2006 16:22:49 +0000	[thread overview]
Message-ID: <200602261922.50788.arvidjaar@mail.ru> (raw)
In-Reply-To: <000c01c63aeb$0a8260c0$600d000a@gabriel>

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

      reply	other threads:[~2006-02-26 16:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-26 15:40 PCMCIA in hotplug: Configuration Jerry
2006-02-26 16:22 ` Andrey Borzenkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200602261922.50788.arvidjaar@mail.ru \
    --to=arvidjaar@mail.ru \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).