LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   PCMCIA doesn't work? (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/pcmcia-doesnt-work-304846/)

licht 03-22-2005 05:16 PM

PCMCIA doesn't work? FINALLY, it's WORKING!
 
(also see post #12 )

I have a hp pavilion zx 5000 laptop w/ RedHat 9.0. I tried to install a cisco AIR-PCM352 PCMCIA card.

I used drivers from cisco and installtion scripts ran well without complaining anything. But one configuration tool "acu" failed with "no radio found". I suspect that PCMCIA dosen't work. The following is what I got.

- NO pcmcia listed by "ps -A" even after running "/etc/rc.d/init.d/pcmcia start";

- After booting, run cardmgr, report "no pcmcia driver in /proc/device" and it's true pcmcia is not listed there. and "cardctl status" show empty slots.

- After running "/etc/rc.d/init.d/pcmcia start", use "/etc/rc.d/init.d/pcmcia status", it listed my card and so does "cardctl ident". But then run "/etc/rc.d/init.d/pcmcia restart" reports "...device busy..." and pcmcia doesn't show in "ps -A" list.

So, I think pcmcia doesn't work. Is this right? How to get it work? Thanks a lot.

Brian1 03-22-2005 05:30 PM

In the old Redhat days if I remember correctly, I needed to compile and install this file pcmcia-cs-3.2.8.tar.gz to pcmcia setup to get pcmcia back up and running. Can be found at http://pcmcia-cs.sourceforge.net/ftp/

If I remember I just needed to extract the archive somewhere, then run ' ./configure' then ' make ' and then ' make install '. Reboot. I would read the readme and install files in the source archive. Note this is only for 2.4 kernels.

Brian1
" Google the Linux way @ http://www.google.com/linux "

masonm 03-22-2005 07:17 PM

Try to re-install pcmcia-cs and see what happens. In all likelyhood the pcmcia slot works but just isn't being recognized by a trashed pcmcia-cs

licht 03-22-2005 10:30 PM

upgrade to pcmcia-cs-3.2.8 doesn't work
 
airo_cs is the module for the AIR-PCM352 card. I also tried and installed pcmcia-cs-3.2.8. But I still cannot get the card work. The following are diag info.

1. After boot.

- "status" and "activity" black on the card.

- There's no pcmcia or airo_cs error or sucess information in startup log shown in dmesg or boot.log or /var/log/messages.

- There's no pcmcia in /proc/devices. "cardmgr" and "cardctl ident" also complain "no pcmcia driver in /proc/devices".

- "/etc/rc.d/init.d/pcmcia status" complains "cardmgr is stopped".

- There's no "pcmcia" or "cardmgr" or "airo_cs" in "ps -A".

- No "pcmcia" or "airo_cs" in "lsmod".

- "lspci" shows ->>>>
02:04.0 CardBus bridge: Texas Instruments: Unknown device ac54 (rev 01)
02:04.1 CardBus bridge: Texas Instruments: Unknown device ac54 (rev 01)
<<<<

2. run "modprobe airo_cs" omits the following message->>>>

/lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o: init_module: Operation not permitted
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o: insmod /lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o failed
/lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o: init_module: Operation not permitted
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o: insmod /lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o failed
/lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o: insmod airo_cs failed

<<<<

And dmesg shows this->>>>

Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
ds: no socket drivers loaded!
unloading Kernel Card Services
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
ds: no socket drivers loaded!
unloading Kernel Card Services
<<<<

3. run "/etc/rc.d/init.d/pcmcia start" ->>>>
Starting PCMCIA services: cardmgr[4714]: watching 2 sockets
done.
<<<<

-And "Activity" always on. "Status" still off.
-And "cardctl ident" shows ->>>>
Socket 0:
product info: "Cisco Systems", "350 Series Wireless LAN Adapter"
manfid: 0x015f, 0x000a
function: 6 (network)
Socket 1:
no product info available
<<<<

-And "cardctl status" shows ->>>
Socket 0:
5V 16-bit PC Card
function 0: [ready]
Socket 1:
no card
<<<<

- "pcmcia" and "airo_cs" still missing from "ps -A"

- "lsmod" shows ->>>>
airo_cs 4580 0 (unused)
airo 99424 0 [airo_cs]
ds 8840 1 [airo_cs]
yenta_socket 13600 2
pcmcia_core 62304 0 [airo_cs ds yenta_socket]
<<<<

- "pcmcia stop" shows ->>>>
Shutting down PCMCIA services: /etc/rc.d/init.d/pcmcia: line 137: kill: (4715) - No such process
ds: Device or resource busy
pcmcia_core: Device or resource busy
done.
<<<<

- The "Activity" always on after 1st runing "pcmcia start"

From above info, seems resource not corretly set? or pcmcia doesn't work? Pls help me out. Thanks.

licht 03-22-2005 10:47 PM

my redhat has 2.4.20-8, forgot to mention this in previous message. Thanks.

licht 03-23-2005 11:53 AM

From cisco, they mentioned an always on amber "Activity" LED indicates improper driver installation. But there's no error message and it reports that kernel has pcmcia service suport.

And they mentioned that in BIOS, pc card should be set to PCIC. but, UNFORTUNATELY, there's no such setting in my machine. Dose this matter?

And from "cardctl status", it shows ->>>>
Socket 0:
5V 16-bit PC Card
function 0: [ready]
<<<<

Does this 16-bit count?

But there's no pcmcia running and no pcmcia driver listed in "/proc/devices". And after 1st running "pcmcia start", any action to that card reports "busy". So, wrong PCMCIA driver used? Currently, I used pcmcia-cs-3.2.8.

Thanks a lot!

masonm 03-23-2005 03:44 PM

Does lsmod show the driver is loaded?

Looking_Lost 03-23-2005 04:23 PM

I don't know if this will help but, I've got a pavilion ZV, cardbus show's up with the same ID's as yours 02:04.0 and 02:04.1, anyway, after trawling the net I found I had to run

/sbin/setpci -s 0:a.0 SUBORDINATE_BUS=0A

with every boot to get pcmcia to work properly and acknowledge my wireless card. Maybe it'll help you

licht 03-23-2005 06:44 PM

- I tried "/sbin/setpci -s 0:a.0 SUBORDINATE_BUS=0A". But it complains "no devices selected for SUBODINATE_BUS=0A". So I check the syntax of the command and I tried names in "lspci" and then it complains either "invalid device id" or "vendor id". Pls help me how to work it out. Thanks.

I think I have to make sure these work in turn

->pcmcia works->card driver works

so, I have the following to ask

<<<<my redhat has pcmcia service supported in kernel. how can I test if pcmcia works or not?
<<<<if pcmcia works, how to load driver for a card and test if that works?

thanks


- outputs of lsmod, pcmcia, cardctl ... from yesterday and today are again given below:

<SYMPTOM>

-------------------March 23----------------------
- Unplug the card and boot system
- I first removed all 352 drivers and utilities.
- Then I install pcmcia-cs-3.2.8
- Then I tested "cardctl status", "pcmcia status", reported "no pcmcia driver in /proc/devices"
- Then I run "pcmcia start"
- Then I insert the card. I hear the beep and the "activity" led on the card is on all the time. use "cardctl ident" it shows the card and "cardctl status" shows a 5v 16-bit pc card.
- Then I run "cardmgr" it shows->>>>
cardmgr[5422]: open_sock(socket 0) failed: Device or resource busy
cardmgr[5422]: another cardmgr is already running?
<<<<
- I run "ACU", which is utitlity to configure the card. It shows "no radio found"
- I run "pcmcia status", report "cardmgr is stopped".

for more things that I did please see the following:

-------------------March 22----------------------
airo and airo_cs is the module for the AIR-PCM352 card. I also installed pcmcia-cs-3.2.8.

0. driver installation succeeded->>>>
ldcmd ldconfig
Checking for libsigc++ ...
libsigc++ found.
Checking for gtkmm ...
libgtkmm found.

Continuing ...

Please wait , Compiling driver modules using sources in /usr/src/linux-2.4
mpi350.c: In function `init_venus_card':
mpi350.c:1714: warning: cast to pointer from integer of different size
Now attempting to determine how many Ethernet cards you have installed.
You already have a non-Aironet Ethernet adapter.
Your system is configured with kernel PCMCIA services
/opt/cisco/bin successfully created
Installing the utilities: acu bcard leapset leapscript leaplogin
Installing Help Files...
Help Files installed.

Drivers and utilities installed

<<<<
1. After boot.

- "status" and "activity" black on the card.

- There's no pcmcia or airo_cs error or sucess information in startup log shown in dmesg or boot.log or /var/log/messages.

- There's no pcmcia in /proc/devices. "cardmgr" and "cardctl ident" also complain "no pcmcia driver in /proc/devices".

- "/etc/rc.d/init.d/pcmcia status" complains "cardmgr is stopped".

- There's no "pcmcia" or "cardmgr" or "airo_cs" in "ps -A".

- No "pcmcia" or "airo_cs" in "lsmod".

- "lspci" shows ->>>>
02:04.0 CardBus bridge: Texas Instruments: Unknown device ac54 (rev 01)
02:04.1 CardBus bridge: Texas Instruments: Unknown device ac54 (rev 01)
<<<<

2. run "modprobe airo_cs" omits the following message->>>>

/lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o: init_module: Operation not permitted
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o: insmod /lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o failed
/lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o: init_module: Operation not permitted
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o: insmod /lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o failed
/lib/modules/2.4.20-8bigmem/kernel/drivers/pcmcia/ds.o: insmod airo_cs failed

<<<<

And dmesg shows this->>>>

Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
ds: no socket drivers loaded!
unloading Kernel Card Services
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
ds: no socket drivers loaded!
unloading Kernel Card Services
<<<<

3. run "/etc/rc.d/init.d/pcmcia start" ->>>>
Starting PCMCIA services: cardmgr[4714]: watching 2 sockets
done.
<<<<

-And "Activity" always on. "Status" still off.
-And "cardctl ident" shows ->>>>
Socket 0:
product info: "Cisco Systems", "350 Series Wireless LAN Adapter"
manfid: 0x015f, 0x000a
function: 6 (network)
Socket 1:
no product info available
<<<<

-And "cardctl status" shows ->>>
Socket 0:
5V 16-bit PC Card
function 0: [ready]
Socket 1:
no card
<<<<

- "pcmcia" and "airo_cs" still missing from "ps -A"

- "lsmod" shows ->>>>
airo_cs 4580 0 (unused)
airo 99424 0 [airo_cs]
ds 8840 1 [airo_cs]
yenta_socket 13600 2
pcmcia_core 62304 0 [airo_cs ds yenta_socket]
<<<<

- "pcmcia stop" shows ->>>>
Shutting down PCMCIA services: /etc/rc.d/init.d/pcmcia: line 137: kill: (4715) - No such process
ds: Device or resource busy
pcmcia_core: Device or resource busy
done.
<<<<

- The card is listed in "Hardware Browser" as "350 series Wireless LAN Adapter" w/ Unknown manufacturer and w/ airo_cs as driver

- I add a line in /etc/modules.conf as "alias wlan0 airo_cs". Then "ifup wlan0" reports ->>>>
airo_cs device wlan0 does not seem to be present, delaying initialization.
<<<<

- And "PCMCIA/PC-Card device" in "Hardware Browser" shows 2 "unknown device 104c:ac54" w/ "texas instrument" as manufacturer and w/ "yenta_socket" as driver

licht 03-23-2005 10:29 PM

March 23 - 2nd try:

+After boot with the air-pcm352 card inserted, and redhat 9 w/ 2.4.20-8 and pcmcia-cs-3.2.8:
--NO LED lit.
--"pcmcia" reports "cardmgr is stopped".
--"cardmgr" and "cardctl ident 0" and "cardctl status 0" report "no pcmcia driver found in /proc/devices".
--no driver module appears in "lsmod" list.

+Run "/etc/rc.d/init.d/pcmcia start", shows->>>>
Starting PCMCIA services: done.
cardmgr[4671]: watching 2 sockets.
<<<<
--amber LED lit.
--the following modules shown in "lsmod"->>>>
Module Size Used by Tainted: P
airo_cs 4580 0 (unused)
airo 99456 0 [airo_cs]
ds 8840 1 [airo_cs]
yenta_socket 13600 2
pcmcia_core 62304 0 [airo_cs ds yenta_socket]
<<<<( "airo" and "airo_cs" are air-pcm352 card driver and loader)
-Run "cardctl status 0" shows ->>>>
5V 16-bit PC Card
function 0: [ready]
<<<<
-Run "cardctl ident 0" shows ->>>>
product info: "Cisco Systems", "350 Series Wireless LAN Adapter"
manfid: 0x015f, 0x000a
function: 6 (network)
<<<<
-Run "/etc/rc.d/init.d/pcmcia status" shows "cardmgr is stopped"

BUT

-Run "cardmgr" shows ->>>>
cardmgr[4731]: open_sock(socket 0) failed: Device or resource busy
cardmgr[4731]: another cardmgr is already running?
<<<< (BUT cardmgr not shown in "ps -A" nor "lsmod".)

-Run "/etc/rc.d/init.d/pcmcia stop" shows ->>>>
Shutting down PCMCIA services: /etc/rc.d/init.d/pcmcia: line 137: kill: (4672) - No such process
ds: Device or resource busy
pcmcia_core: Device or resource busy
done.
<<<<

-Run cisco card configuration tool "acu" gives "no radio found".

Does this mean pcmcia has to be loaded manually? And pcmcia seems to work and card driver not?

Any suggestion are welcome. Thanks.

licht 03-24-2005 10:06 AM

This is the 3rd day on this. Got frustrated:(

From above test, could this be caused by any resource settings, like irq, mem ? Should I load driver airo or airo_cs by puting resource settins in module.conf or by some other tricks?


Thanks a lot! BTW, my liinux is old but I don't have time to consider a upgrade and it seems to me 352 card should work well with this kernel and pcmcia card service although I don't figure out how.

licht 03-24-2005 11:38 PM

Gosh, it works!
 
Finally, I got the card works although w/out encrption settings since my access point won't ask for that - it's not up to me:(

The main reason is that ACU 2.1 cannot recognize the card and the lastest driver don't work at all. This is how I did. Mine is redhat 9.0 w/ 2.4.20-8. And firmware is v4.23. (Other version may work as well. I haven't tested yet just heard from the web that v4.25.30 should work.)

1st. remove kernel-pcmcia-cs-3.1.31-13 installed w/ redhat from kernel by using rpm. (originally installed from scratch of the current system). remove 352 drivers and utilties by "sh install -R".

2nd. reinstall pcmcia-cs-3.2.8. that's downloading the tar.gz and do make config, make all and make install and DON"T use 32-bit card port!!!!(I'm not sure if this is the trick but I did this since I see 352 uses 16-bit.)

3rd. reboot and check "lsmod" if we see pcmcia_core, ds, airo, airo_cs, and if "ps -A |grep cardmgr". if it's there, great, eveything is ready.

4th, insert the card. check the 2 LED's status and use "cardctl ident", or "cardctl status" to check if the card is there. then, configure network script. my access point doesn't use encryption and use dhcp. so it's easy to me.

BUT, ACU 2.1 still complains "no radio found", let it be:) will consider it when there's no important work and if someone knows how to work out this, pls notify me. Anyway, it's a good tool for configuration.

And thanks for all guys here for great help and enthusiasm.


All times are GMT -5. The time now is 03:20 PM.