setting /etc/pcmcia/config to ensure automatic loading of PCMCIA
client driver
kaustav.majumdar at wipro.com
kaustav.majumdar at wipro.com
Sat Jan 28 02:34:00 EST 2006
Hi all,
We have written a PCMCIA client driver for an unsupported PCMCIA card.
We are facing issue with automatic loading and binding of our driver
when the card is inserted.
For our card
a) When we insert our card, without any entry for the card in
/etc/pcmcia/config, we don't get any 'unrecognized card' kind of
messages in /var/log/messages or in dmesg. No driver gets associated
with the device (we had checked it from /sys/bus/pcmcia/drivers).
b) If we insert entry in /etc/pcmcia/config restart the cardmgr and then
insert the card , our driver is not loaded. I want to know how to
correctly edit the /etc/pcmcia/config file so that the cardmgr
automatically loads the correct client driver associated with my PCMCIA
card.
Below are the steps we followed. Are we missing something? Is there any
way to specify the associated driver for the card (specifying class, etc
in config file) .How do I create such an entry.
Cardctl ident shows -
socket 0:
product info: 'CF Card" , "GENERIC" , "", ""
manfid: 0xXXXX , 0xYYYY
function : 6 (network)
Entry we added in /etc/pcmcia/config
card "CF card"
manfid 0xXXXX, 0xYYYY
bind "ourCard_cs"
(Note that ourCard_cs.ko is compiled as Module during kernel compilation
and the driver also exists in /lib/modules/`uname
-r`/kernel/drivers/net/pcmcia)
c) If we insmod the client driver before inserting the card, then on
insertion of the PCMCIA card, it is observed that ourCard_cs.ko claims
the card as expected.
Thank you,
With Regards,
Kaustav Majumdar
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
More information about the linux-pcmcia
mailing list