Skip to contentSkip to conversation

hotplug + pcmcia-cs: how?

DISCUSSION Erik Mouw 2 participants 5 messages Mar 22, 2001

lore
Share & tools
lore

Erik Mouw

author
#0 lore raw

Hi all,

I'm running linux-hotplug on a 2.4 system. So far I'm impressed, every USB device I plug in just works. Unfortunately hotplug and pcmcia-cs hang my system when I insert a network card (3Com Megahertz 574B).

The hotplug README says:

On Kernel 2.4 based systems, you may want to avoid installing the separate "pcmcia_cs" package. It's not integrated with kernel hotplugging, and appears not to handle Cardbus as well as needed. On the other hand, if you need to use PCMCIA (16 bit) cards, you'll likely need it.

Well the 3Com is a 16 bit card, so I need pcmcia-cs (it doesn't get detected without it). If I stop hotplug before I insert the card, pcmcia-cs detects the card and sets it up properly. After that I can safely enable hotplug and plug any USB device I want.

Hardware:
- Asus M8300 laptop Celeron(Coppermine) 500, 128MB, Intel 440MX chipset
- 3Com Megahertz 574B
- Logitech M-BA47 USB mouse
- Wacom Graphire USB
- no name USB audio device (with Philips UDA 1321)

Software:
- linux-2.4.2
- debian 2.2 (potato) with critical packages updated
- hotplug-20010228
- pcmcia-cs-3.1.24

Any idea how to get this working at all?

Erik

Signature · 10 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: [email protected]
WWW: http://www-ict.its.tudelft.nl/~erik/

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw
Quoted 2 lines · Erik Mouw

Well the 3Com is a 16 bit card, so I need pcmcia-cs (it doesn't get detected without it).

That sounds like a kernel configuration problem. Double-check that the following kernel configuration items are set in your kernel's .config:

CONFIG_PCMCIA=y
CONFIG_CARDBUS=y
# CONFIG_I82365 is not set -- important!
CONFIG_NET_PCMCIA=y
CONFIG_PCMCIA_3C574=m # or =y, your choice

Signature · 8 lines
Jeff Garzik       | May you have warm words on a cold evening,
Building 1024     | a full mooon on a dark night,
MandrakeSoft      | and a smooth road all the way to your door.

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
author
#2 lore raw
In reply to Erik Mouw
Quoted 4 lines · Jeff Garzik
Quoted 2 lines · Erik Mouw

Well the 3Com is a 16 bit card, so I need pcmcia-cs (it doesn't get detected without it).

Quoted 8 lines

That sounds like a kernel configuration problem. Double-check that the following kernel configuration items are set in your kernel's .config:

CONFIG_PCMCIA=y
CONFIG_CARDBUS=y
# CONFIG_I82365 is not set -- important!
CONFIG_NET_PCMCIA=y
CONFIG_PCMCIA_3C574=m # or =y, your choice

Bingo, CONFIG_I82365=y. So how to proceed? Sure, recompile kernel with CONFIG_I82365 not set, but should I also remove pcmcia-cs?

Erik

Signature · 10 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: [email protected]
WWW: http://www-ict.its.tudelft.nl/~erik/

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#3 lore raw
In reply to Erik Mouw
Quoted 2 lines · Erik Mouw

Bingo, CONFIG_I82365=y. So how to proceed? Sure, recompile kernel with CONFIG_I82365 not set, but should I also remove pcmcia-cs?

No need, pcmcia-cs should take it in stride...

Signature · 8 lines
Jeff Garzik       | May you have warm words on a cold evening,
Building 1024     | a full mooon on a dark night,
MandrakeSoft      | and a smooth road all the way to your door.

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
author
#4 lore raw
In reply to Erik Mouw
Quoted 5 lines · Jeff Garzik
Quoted 2 lines · Erik Mouw

Bingo, CONFIG_I82365=y. So how to proceed? Sure, recompile kernel with CONFIG_I82365 not set, but should I also remove pcmcia-cs?

No need, pcmcia-cs should take it in stride...

OK thanks, that did the trick. I had to load yenta_socket instead of i82365 and now I can hotplug both PCMCIA and USB devices.

Erik

Signature · 10 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: [email protected]
WWW: http://www-ict.its.tudelft.nl/~erik/

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel