Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How do I know if PCMCIA is working?
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tofor
n00b
n00b


Joined: 22 Apr 2007
Posts: 35

PostPosted: Tue May 15, 2007 3:45 pm    Post subject: [SOLVED] How do I know if PCMCIA is working? Reply with quote

How do I know if PCMCIA is working? I have been having trouble with getting wireless networking to work, and I am beginning to suspect it is not a wireless driver issue at all, but a PCMCIA driver issue. If I run lspci, the following is one of the lines:
Code:

:00.0 Network controller: Texas Instruments ACX 111 54Mbps Wireless Interface


so it does detect the card at a basic level. Also, during boot I see several errors or warnings related to PCMCIA, but I'm new and can't figure out where to find those messages in order to paste them.

Finally, when I run dmesg|grep pcmcia I get the following:
Code:

pcmcia: parent PCI bridge I/O window: 0xc000 - 0xcfff
pcmcia: parent PCI bridge Memory window: 0xcff00000 - 0xcfffffff
pcmcia: parent PCI bridge Memory window: 0x28000000 - 0x29ffffff
pcmcia: Detected deprecated PCMCIA ioctl usage from process: cardmgr.
pcmcia: This interface will soon be removed from the kernel; please expect breakage unless you upgrade to new tools.
pcmcia: see http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html for details.


Not sure what that means. Thanks for your help. Basically I want to know if I need to focus on PCMCIA issues, or wireless networking issues.


Last edited by tofor on Wed Feb 06, 2008 9:44 am; edited 1 time in total
Back to top
View user's profile Send private message
ruivilela
Apprentice
Apprentice


Joined: 05 Oct 2004
Posts: 181
Location: Łódź

PostPosted: Wed May 16, 2007 8:23 am    Post subject: Reply with quote

Maybe it is Kernel configuration for PCMCIA, or you have the old pcmcia-cs tools.

Update for ebuild pcmciatools. Then try it with pccardctl command.
Back to top
View user's profile Send private message
tofor
n00b
n00b


Joined: 22 Apr 2007
Posts: 35

PostPosted: Wed May 16, 2007 12:30 pm    Post subject: Reply with quote

I have both pcmcia-cs and pcmciautils installed on my system, but there does not seem to be any package called pcmciatools. When you say update for that ebuild, what does that mean? Also, I know I enabled pcmcia support in the kernel config, but it is definitely possible that I missed some setting in there. I guess I'm going to need more info on this. Thanks for that though!
Back to top
View user's profile Send private message
ruivilela
Apprentice
Apprentice


Joined: 05 Oct 2004
Posts: 181
Location: Łódź

PostPosted: Thu May 17, 2007 7:17 am    Post subject: Reply with quote

Sorry it was pcmciautils, I think you should remove pcmcia-cs, and keep pcmciautils.

try the following command when you insert a card:
"pccardctl ident"

I have this options on my kernel 2.6.20 for PCMCIA, but you should choose the ones that best suits your hw.

Remove the obsolete option that appears on options

Code:

 <*> PCCard (PCMCIA/CardBus) support                              │ │ 
  │ │    [ ]   Enable PCCARD debugging                                    │ │ 
  │ │    <*>   16-bit PCMCIA support                                      │ │ 
  │ │    [*]     Load CIS updates from userspace (EXPERIMENTAL)           │ │ 
  │ │    [ ]     PCMCIA control ioctl (obsolete)                          │ │ 
  │ │    ---   32-bit CardBus support                                     │ │ 
  │ │    ---   PC-card bridges                                            │ │ 
  │ │    <*>   CardBus yenta-compatible bridge support                    │ │ 
  │ │    < >   Cirrus PD6729 compatible bridge support                    │ │ 
  │ │    < >   i82092 compatible bridge support         
Back to top
View user's profile Send private message
tofor
n00b
n00b


Joined: 22 Apr 2007
Posts: 35

PostPosted: Thu May 17, 2007 10:16 am    Post subject: Reply with quote

Ok, I suppose this is a rather embarrassing question, but I don't think I am compiling the kernel correctly. I follow the steps:

1. cd /usr/src/linux
2. make menuconfig
3. uncheck the │ │ [ ] PCMCIA control ioctl (obsolete) (which is checked on my system, along with everything else in that menu except the debugging option.)
4. exit the configuration, making sure to save changes
5. mount /boot
6. make install modules modules_install
7. reboot

Grub is already pointed to vmlinux, so it's not that. I have a feeling it is step 6. I know it is not working because when I run make menuconfig the option is selected again. So the question is, how do I recompile to uninstall an option, and is it bad to have too many options selected in the PCMCIA/Cardbus support menu?
Back to top
View user's profile Send private message
tofor
n00b
n00b


Joined: 22 Apr 2007
Posts: 35

PostPosted: Thu May 17, 2007 10:28 am    Post subject: Reply with quote

Never mind. I forgot to run make menuconfig as root.

When I run pccardctl ident I get

Socket 0:
no product info available

I suppose this is bad?
Back to top
View user's profile Send private message
ruivilela
Apprentice
Apprentice


Joined: 05 Oct 2004
Posts: 181
Location: Łódź

PostPosted: Thu May 17, 2007 11:01 am    Post subject: Reply with quote

Well, not exactly. I also have the same messages when I don't have any card on any slot. Looks normal, or this is with card inserted ?
Back to top
View user's profile Send private message
tofor
n00b
n00b


Joined: 22 Apr 2007
Posts: 35

PostPosted: Thu May 17, 2007 11:17 am    Post subject: Reply with quote

Yeah...card inserted :? :(
Back to top
View user's profile Send private message
tofor
n00b
n00b


Joined: 22 Apr 2007
Posts: 35

PostPosted: Thu May 17, 2007 11:30 am    Post subject: Reply with quote

Also, I should be able to start pcmcia, right? That is, /etc/init.d/pcmcia start? But such a file does not exist. I have emerged pcmcia, and pcmciautils. I have also enabled nearly all the pcmcia stuff in the kernel, as I mentioned.
Back to top
View user's profile Send private message
alex6z
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2005
Posts: 104

PostPosted: Thu May 17, 2007 7:05 pm    Post subject: Reply with quote

You need to do pcmcia<something> -l or whatever list is. That will show you what's insered in the sockets. If that doesn't work, it's a kernel issue or modules aren't loaded.
_________________
Check out the T-shirts at http://www.thinkgeek.com
Back to top
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Thu May 17, 2007 7:34 pm    Post subject: Reply with quote

tofor wrote:
When I run pccardctl ident I get
Code:
Socket 0:
  no product info available

I suppose this is bad?

Your wifi card is Cardbus, not PCMCIA, so it will appear in lspci instead. The "ident" stuff it for real 16-bit PCMCIA cards (which are getting uncommon these days).
Back to top
View user's profile Send private message
tofor
n00b
n00b


Joined: 22 Apr 2007
Posts: 35

PostPosted: Thu May 17, 2007 8:18 pm    Post subject: Reply with quote

Quote:
Your wifi card is Cardbus, not PCMCIA, so it will appear in lspci instead.


Well, that's good to know, I guess. It does show up in lspci

Code:
02:00.0 Network controller: Texas Instruments ACX 111 54Mbps Wireless Interface


but none of the lights come on. Shouldn't they come on even if the drivers aren't set up correctly? And why can't I start PCMCIA?
Back to top
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Fri May 18, 2007 6:11 am    Post subject: Reply with quote

tofor wrote:
but none of the lights come on. Shouldn't they come on even if the drivers aren't set up correctly?

Not necessarily, it depends on the card. Some cards stay with all LEDs off until the drivers are loaded.
Back to top
View user's profile Send private message
tofor
n00b
n00b


Joined: 22 Apr 2007
Posts: 35

PostPosted: Fri May 18, 2007 8:33 am    Post subject: Reply with quote

Okay, thanks. If my card is showing up in lspci does that necessarily mean that the PCMCIA is working properly? I have tried everything to get the drivers for the card working, including ndiswrapper, madwifi, and ACX111 drivers. I was driven to the conclusion that there might be a problem with my PCMCIA instead. This is the first PCMCIA card I have tried to get working with gentoo, so I am rather new to this and I don't know whether the slot is working (HW is alright, because it works in my dual-boot windows installation).
Back to top
View user's profile Send private message
tofor
n00b
n00b


Joined: 22 Apr 2007
Posts: 35

PostPosted: Wed Feb 06, 2008 9:44 am    Post subject: Reply with quote

Ok, I know it works because it works with a PCMCIA/Firewire adapter I have. Also, I have finally gotten the wireless working. Still not sure how I could have been sure before that this wasn't the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum