The question about PCMCIA

The question about PCMCIA

Post by Ming-Chuan Huan » Wed, 16 Oct 2002 10:39:44



 Dear all,

      We are developing the Wireless lan card driver in linux.
 Ther is something Wrong about our driver when we remove the card from laptop.
 The type of the card is  cardbus. I read the Linux PCMCIA How-To
 to solove my problem but fail.  I use RH 7.3 with kernel 2.4.18-3.

 Firt I put the driver we developd  called 8211.0
 to the /lib/modules/2.4.18-3/kernel/net/
PS: the 8211.0 is ok, and we develop it in miniPCI.

 Second
 In /etc/pcmcia/config
 I add the following entry......
--------------------------------------------------------------
device "8211"
  class "network" module "net/8211"

 card "Wireless Lan Adapter"
  manfid 0x02d2, 0x0002
  bind "8211"
--------------------------------------------------------------

Something looks like ok.
But when I insert the card
Something wrong.
The following is the message.

Oct 14 20:33:46 localhost kernel: cs: cb_alloc(bus 2): vendor 0x1317, device 0x8
201
Oct 14 20:33:46 localhost kernel: PCI: Enabling device 02:00.0 (0000 -> 0003)
Oct 14 20:33:46 localhost cardmgr[597]: initializing socket 0
Oct 14 20:33:46 localhost cardmgr[597]: socket 0: Wireless Lan Adapter
Oct 14 20:33:46 localhost cardmgr[597]: executing: 'modprobe 8211'
Oct 14 20:33:46 localhost cardmgr[597]: + Warning: loading /lib/modules/2.4.18-3
/kernel/drivers/net/pci-scan.o will taint the kernel: no license
Oct 14 20:33:46 localhost /etc/hotplug/pci.agent: ... no modules for PCI slot 02
:00.0
Oct 14 20:33:46 localhost cardmgr[597]: + Warning: loading /lib/modules/2.4.18-3
/kernel/drivers/net/8211.o will taint the kernel: no license
...
Oct 14 20:33:47 localhost kernel: PCI: Setting latency timer of device 02:00.0 t
o 64
Oct 14 20:33:47 localhost /etc/hotplug/net.agent: invoke ifup eth0
cardmgr[597]: get dev info on socket 0 failed: Resource temporarily unavailable

I use Lucent orinoco to see what the difference is.
I get the following message.

Oct 14 20:39:13 localhost cardmgr[597]: initializing socket 0
Oct 14 20:39:13 localhost cardmgr[597]: socket 0: Lucent Technologies WaveLAN/IE
EE Adapter
Oct 14 20:39:13 localhost kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
Oct 14 20:39:13 localhost cardmgr[597]: executing: 'modprobe orinoco_cs'
Oct 14 20:39:14 localhost cardmgr[597]: executing: './network start eth0'
Oct 14 20:39:14 localhost /etc/hotplug/net.agent: invoke ifup eth0

Our driver do not execute './network start eth0'
But our driver can works well.

Wehen we remove the card from laptop.
Our driver shows the following message.

Oct 14 20:34:45 localhost cardmgr[597]: shutting down socket 0
Oct 14 20:34:45 localhost cardmgr[597]: executing: 'modprobe -r 8211'
Oct 14 20:34:45 localhost /etc/hotplug/pci.agent: PCI remove event not supported
Oct 14 20:34:45 localhost cardmgr[597]: + 8211: Device or resource busy
Oct 14 20:34:45 localhost cardmgr[597]: modprobe exited with status 1

The Lucent orinoco shows the following message.

Oct 14 20:40:52 localhost cardmgr[597]: shutting down socket 0
Oct 14 20:40:52 localhost cardmgr[597]: executing: './network stop eth0'
Oct 14 20:40:52 localhost dhcpcd[1535]: terminating on signal 15
Oct 14 20:40:52 localhost dhcpcd[1535]: dhcpStop: ioctl SIOCSIFADDR: Inappropriate ioctl for device
Oct 14 20:40:52 localhost dhcpcd[1535]: dhcpStop: ioctl SIOCSIFFLAGS: Inappropriate ioctl for device
Oct 14 20:40:52 localhost cardmgr[597]: executing: 'modprobe -r airo_cs'
Oct 14 20:40:52 localhost /etc/hotplug/net.agent: NET unregister event not supported

Our driver does not execute './network stop eth0'
before unload itselt and it unloads fails.

What haeepns and which file I do not set up correctly?
We do not run the script network done.

Best Regards

--

 
 
 

1. A Question on PCMCIA

I only use PCMCIA slots for modem/ethernet usage, so I'll restrict my
followup to one answer:

ftp to cb-iris.stanford.edu, look in pub/pcmcia, and pick up David
Hinds' fine PCMCIA package, pcmcia-cs-2.6.2.tgz.  Installation is a
snap.  I'm very pleased with the results of its use on my laptop.

There is a SUPPORTED.CARDS file which lists all the cards known to
work with the package.

You will also need recent module support; see README.modules under
/usr/src/linux, and get version 1.2.8 from one of the sunsite mirrors.
Install that before installing PCMCIA stuff.

2. How to save a running process to a file

3. newbie question: use PCMCIA NIC

4. How can I return to default appearance/desktop settings?

5. Question on PCMCIA

6. vpn, (Virtual Private Network)?

7. Question on pcmcia network setup

8. NeoMagic video chipset supported on linux??

9. Newbie question: Psion PCMCIA ethernet V34 card

10. simple question: configuring PCMCIA

11. Question re: PCMCIA in SuSE 8.1

12. Socket Enet PCMCIA and Socket/Trimble GPS PCMCIA on SCO

13. Hawking Wireless PCMCIA card / pcmcia-cs