Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pcmcia-cs instructions for Gentoo users.
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  

Was this announcement helpful?
Yes, Thanks!
85%
 85%  [ 29 ]
Kinda sketchy...
8%
 8%  [ 3 ]
I got better tips from my hamster!
5%
 5%  [ 2 ]
Total Votes : 34

Author Message
chadh
Moderator
Moderator


Joined: 21 Apr 2002
Posts: 137
Location: Atlanta, GA

PostPosted: Wed Apr 24, 2002 2:01 am    Post subject: pcmcia-cs instructions for Gentoo users. Reply with quote

The pcmcia-cs package provides utilities (cardmgr, cardctl, etc.) and
drivers. You probably want the tools if you use PCMCIA devices, as they
let you automatically bring up interfaces when you insert cards (cardmgr)
and change your network settings scheme (cardctl), etc. You may or may not
want the drivers. For instance, the orinoco_cs driver in the kernel is
supposedly better than the wvlan_cs driver provided with pcmcia-cs.
Whether you want the drivers or not, it is important that you configure
your kernel *before* installing pcmcia-cs. The pcmcia-cs ebuild uses your
kernel settings (found /usr/src/linux) to determine whether or not to
install the modules. If you want the pcmcia-cs modules, then make sure
that you configure "PCMCIA/Cardbus support" *off* Then compile and install
your kernel and modules. If you do not want the pcmcia-cs modules, then
configure "PCMCIA/Cardbus support" as either a module or built-in and
select any modules that you want to use. Finally emerge pcmcia-cs to
install the utilities and possibly drivers.

If you choose to use the pcmcia-cs kernel modules, then you need to remerge
pcmcia-cs *each time* you rebuild your kernel. And even if you don't use
the pcmcia-cs modules, it wouldn't be a bad idea to be in the habit of
remerging pcmcia-cs.

To configure networking, edit /etc/conf.d/net as described in other Gentoo docs. You *do not* need to rc-update add net.eth*, though. cardmgr will bring the interface up and down appropriately when you insert and eject the cards.

Finally, run the following command to bring up pcmcia services on each boot.
Code:
rc-update add pcmcia default


Last edited by chadh on Wed May 01, 2002 2:00 pm; edited 2 times in total
Back to top
View user's profile Send private message
cedric
n00b
n00b


Joined: 10 Apr 2002
Posts: 27
Location: Belgium

PostPosted: Wed Apr 24, 2002 8:15 am    Post subject: Reply with quote

I think you have forgotten to do the following

rc-update add pcmcia default
Back to top
View user's profile Send private message
chadh
Moderator
Moderator


Joined: 21 Apr 2002
Posts: 137
Location: Atlanta, GA

PostPosted: Wed Apr 24, 2002 8:25 am    Post subject: Reply with quote

added. Thanks!
_________________
Chad
Back to top
View user's profile Send private message
clattuc
n00b
n00b


Joined: 19 Apr 2002
Posts: 57

PostPosted: Wed Apr 24, 2002 10:08 am    Post subject: Kernel version <-> pcmcia-cs version (mis)match Reply with quote

One thing: I 'downgraded' my kernel to 2.4.18 (the network interface built into my laptop doesn't work properly with the Gentoo-'2.4.19' kernels).
I also downgraded to pcmcia-cs-3.1.22, because that's the version matching the pcmcia in the kernel.
If I emerge the current version, pcmcia-cs-3.1.33, cardmgr starts up with a warning that there is a mismatch between kernel pcmcia-headers & pcmcia-cs headers, and says it will exit (but doesn't...).
Don't know if it will work anyway, I just got sick of the errormessage 8-)

Cu,
Edwin
Back to top
View user's profile Send private message
LabRat
n00b
n00b


Joined: 24 Apr 2002
Posts: 6

PostPosted: Sun Apr 28, 2002 12:17 am    Post subject: Reply with quote

Ok so I did everything you said and rebooted.
The pcmcia_core, i82365, ds and 3c574_cs modules loaded.
then i got
Quote:
Starting pcmcia...
cardmgr[1442]: Watching 2 sockets

and it froze. :evil: :( :!: :?:

I did a hard reset and now all of the modules fail to load and I get
Quote:
Starting pcmcia...
cardmgr[1434]: no pcmcia drivers in /proc/devices
cardmgr failed to start. Make sure that you have PCMCIA
loaded, either as a module or built into the kernel


so what happened?

I looked at /proc/devices and there is no listing for pcmcia.

any help is appreciated
Thanks
Doug
Back to top
View user's profile Send private message
LabRat
n00b
n00b


Joined: 24 Apr 2002
Posts: 6

PostPosted: Sun Apr 28, 2002 12:50 am    Post subject: Reply with quote

I for got you gave a few methodes in your post.
I complied my kernel without pcmcia suport then
Code:
emerge pcmcia-cs


I also forgot to mention that before my computer froze my card reved to life and made a few beeps.

again thanks
Back to top
View user's profile Send private message
JamieC
Guest





PostPosted: Wed May 01, 2002 1:35 pm    Post subject: Re: pcmcia-cs instructions for Gentoo users. Reply with quote

chadh wrote:
The pcmcia-cs package provides utilities (cardmgr, cardctl, etc.) and
...

Code:
rc-update add pcmcia-cs default


It really is just "rc-update add pcmcia default". If you add the "-cs", you get an error message about not finding /etc/init.d/pcmcia-cs.

Other than that, thanks for this explanation! My PCMCIA ethernet card wasn't recognised properly until I followed these directions.
Back to top
chadh
Moderator
Moderator


Joined: 21 Apr 2002
Posts: 137
Location: Atlanta, GA

PostPosted: Wed May 01, 2002 2:00 pm    Post subject: Reply with quote

Thanks! Fixed.
_________________
Chad
Back to top
View user's profile Send private message
JL
n00b
n00b


Joined: 30 Apr 2002
Posts: 26

PostPosted: Sat May 04, 2002 8:22 pm    Post subject: Reply with quote

OK, I figured out how to get my wireless lucent card to work.
I have a built in rtl8139 nic too that work s great. wireless nic is eth1.
MAnually modprobe'ing everything listed in this thread and the correct driver. rc-update add wvlan_cs default was done. dhcpcd eth1 brings it up and I was surfing! Great I think. Now I edit /etc/modules.autoload and add pcmcia_core, i82365, ds and wvlan_cs (the ones it did manually before). rebooted. cardmgr was launced during boot. Now the light comes on on the card but no joy. ifconfig shows the card configured. cardctl ident shows the card. cardmgr error because it's running already.

How do I make this card work automatically? I must be editing the wrong file or have something out of order during boot. Can someone shed some light on this one?
_________________
Aircraft Mechanics Motto:
If we can't fix it, it aint broke
Back to top
View user's profile Send private message
JL
n00b
n00b


Joined: 30 Apr 2002
Posts: 26

PostPosted: Sat May 04, 2002 8:52 pm    Post subject: Reply with quote

why is it that whenever you make a post to any forum for help, you always get that 1 great idea to try and solve your problem?

Well mine was a dns issue. i added a nameserver entry for my wireless gateway to /etc/resolv.conf and all is happy happy

imagine THAT!

thanks for the great posts on getting wireless going. you may want to add the parts about editing /etc/resolv.conf if needed for nameserver entry.

JL
_________________
Aircraft Mechanics Motto:
If we can't fix it, it aint broke
Back to top
View user's profile Send private message
al
Guest





PostPosted: Sun May 05, 2002 1:19 am    Post subject: netmount Reply with quote

Hi,
I have netmount started at boot and had to update the depend on

/etc/init.d/netmount

to add PCMCIA so netmount gets started after pcmcia

my depend for netmount now looks like

depend () {
need net
user potmap pcmcia
}

Al
Back to top
antrod
Guest





PostPosted: Wed May 08, 2002 2:27 am    Post subject: pcmcia-cs and apm Reply with quote

I have the oddest problem when I put my Sony Z505RX Vaio to sleep. The computer suspends/resumes correctly, but my lucent Wavelan card stays on after the computer is suspended until I manually yank the card out of the socket. I wouldnt mind except for the fact that this is likely to drain the battery while the computer is suspended.

I used to have Debian on this laptop and this worked well. Does this have to do with apmd (which I don't have installed due to the emerge error) or is it some setting in the pcmcia confs?

Thanks,

Antonio
Back to top
Guest






PostPosted: Sat May 18, 2002 6:23 pm    Post subject: What are the specific kernel options to use and not use? Reply with quote

I followed the instructions, but when done nothing worked.

Modprobe pcmcia_core worked, but modprobe ds would not work. After a lot of searching - thanks google :-) I found that I should modprobe i82365 first, then ds. But there was no i82365. The emerge pcmcia-cs did not create this module. So where does it come from?

The instructions provided say set "PCMCIA/Cardbus off" But there is no mention of i82365. Searching manually thru the .config file I found "CONFIG_I82365 is not set". I'm now guessing that this must be set "on".

There really should be a list with this set of PCMCIA-CS instructions of the exact kernel config settings required to make this work.

Oh well. It's only another 2 hours to compile my kernel and modules.

I'll let you know if I am sucessful
Back to top
Guest






PostPosted: Sun May 19, 2002 11:47 am    Post subject: yenta_socket Reply with quote

Unfortunately I have a Dynalink L100CLV. I can't install gentoo (not with the 16mb iso) because that iso doesn't provide yenta_socket iso the i82365... 8139too module fails without yenta_socket.
Would it be wise to use the stage 3 install and get it to work after that?
Now I can't install at all :-)
Back to top
chadh
Moderator
Moderator


Joined: 21 Apr 2002
Posts: 137
Location: Atlanta, GA

PostPosted: Sun May 19, 2002 3:24 pm    Post subject: Re: yenta_socket Reply with quote

Anonymous wrote:
Unfortunately I have a Dynalink L100CLV. I can't install gentoo (not with the 16mb iso) because that iso doesn't provide yenta_socket iso the i82365... 8139too module fails without yenta_socket.
Would it be wise to use the stage 3 install and get it to work after that?
Now I can't install at all :-)


I think you are confused. i82365 and yenta_socket are mutually exclusive. If you are using pcmcia-cs modules, then you load i82365, and if you are using kernel modules, then you use yenta_socket. And please note that the i82365 module for pcmcia-cs is different than the option you see if the Linux kernel config. If you have to use yenta_socket to get your card to work, then you will have to come up with another boot CD to get the install going.
_________________
Chad
Back to top
View user's profile Send private message
nickperry
n00b
n00b


Joined: 18 May 2002
Posts: 2
Location: Munich, Germany

PostPosted: Sun May 19, 2002 4:07 pm    Post subject: Reply with quote

LabRat wrote:
I for got you gave a few methodes in your post.
I complied my kernel without pcmcia suport then
Code:
emerge pcmcia-cs


I also forgot to mention that before my computer froze my card reved to life and made a few beeps.

again thanks


Try lettting cardmgr load the 3c574_cs module, rather than autoloading / modprobing it first. I have a 3c575_cb and I just autoload i82365 and ds and let cardmgr look after the rest.
Back to top
View user's profile Send private message
WildBill
n00b
n00b


Joined: 03 May 2002
Posts: 20

PostPosted: Tue May 21, 2002 5:45 pm    Post subject: Reply with quote

I'm having a strange PCMCIA problem:

Machine: Sony Picturebook C1VPK
PCMCIA-CS works great (I am using the pcmcia-cs drivers, not the kernel drivers) with all my network cards, including the Orinoco wireless card I have. However, I run into problems when ejecting any NIC card.

Symptom:
1) Running "cardctl eject" results in this message; "ioctl():Device or resource busy"
2) Ejecting the PCMCIA card without running cardctl eject works. The machine beeps on card removal, but eth0 stays up, and the modules remain loaded. Inserting a different NIC (say, going from wired to wireless) doesn't do anything, that is, the NIC isn't recognized. If I do an "ifconfig eth0 down" , "killall dhcpcd" ,and then manually rmmod the modules for the removed NIC, I can swap NIC cards, but I have to manually run dhcpcd to get an IP address again.

It's my understanding that I should be able to swap cards on the fly without having to do this - I have Mandrake in another partition on this machine, and I use pcmcia-cs and kernel 2.4.18 both compiled from source over there, and this works. I'm stuck. I think I'm missing something, but I don't know what. Any help is greatly appreciated, as once I get this figured out I feel comfortable enough with Gentoo to wipe out the Mandrake partition and use it for data storage.
Back to top
View user's profile Send private message
WildBill
n00b
n00b


Joined: 03 May 2002
Posts: 20

PostPosted: Tue May 21, 2002 10:48 pm    Post subject: Reply with quote

I think I'm getting closer. My buddy's machine also exhibits the same behavior with ejecting a PCMCIA card.

I notice upon a PCMCIA eject that the /etc/pcmcia/network script fails when checking... it can't find the /var/run/stab file.

Anyone else have issues with /var/run/stab? Is there any easy fix? I'm still digging... as I find more info or come up with a fix I'll let everyone know.
Back to top
View user's profile Send private message
JoePenguin
Guest





PostPosted: Tue May 28, 2002 6:34 pm    Post subject: Missing /var/run/stab Reply with quote

I am missing /var/run/stab just like Wildbill. My understanding is that this is something that cardmgr is supposed to create but instead it complains that the file is not there. I created the file by doing
Code:
touch /var/run/stab
but it looks like the file disappeared after I rebooted. This is not preventing me from using my PCMCIA card, so I only consider it a minor annoyance right now.
Back to top
Ludwig
n00b
n00b


Joined: 30 May 2002
Posts: 13

PostPosted: Mon Jun 03, 2002 9:36 am    Post subject: Reply with quote

A big thx for this instructions.

It was very helpful to make my 3COMCCE575BT card working !
Back to top
View user's profile Send private message
elijahchancey
n00b
n00b


Joined: 08 Jun 2002
Posts: 4

PostPosted: Sat Jun 08, 2002 4:06 pm    Post subject: installation document revision Reply with quote

It would be incredibly useful to have the install docs tell you to "emerge pcmcia-cs" in the install.

LabRat wrote:
I for got you gave a few methodes in your post.
I complied my kernel without pcmcia suport then
Code:
emerge pcmcia-cs


I also forgot to mention that before my computer froze my card reved to life and made a few beeps.

again thanks
Back to top
View user's profile Send private message
oregonshoegazer
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2002
Posts: 84

PostPosted: Sun Jun 23, 2002 6:16 am    Post subject: missing ALL modules??? Reply with quote

** warning - linux newbie questions ahead **

hi guys,

i am having difficulty installing the PCMCIA modules on my machine. in fact, i may have made the *least* progress of anyone in this thread. :wink:

my problem is that i can't get the base PCMCIA kernel modules to load. i read the PCMCIA-HOWTO after trying
Code:
emerge pcmcia-cs
and i couldn't find any solution there. no matter which approach i take, i can't seem to get any of the base modules (pcmcia_core, ds, i82365) built.

i've pulled all the PCMCIA modules out of the kernel. i've rebuilt the kernel before
1. using emerge
2. unpacking pcmcia-cs myself

any ideas? i can't find any documentation with regards to my problem. i'm sure it's something simple that i've forgotten...

Thanks!
Back to top
View user's profile Send private message
irony
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2002
Posts: 129
Location: CT

PostPosted: Wed Jul 10, 2002 1:32 pm    Post subject: Reply with quote

Just to make sure I'm getting this correctly:

If you configure the kernel to support pcmcia and compile in the particular drivers for a card, pcmcia-cs isn't needed. Further, the init.d entries don't need to be modified to need(pcmcia). The kernel will load the pcmcia support automatically (assuming it works), as well as the card drivers, and networking should proceed apace.

If you want to use pcmcia-cs, pcmica support should not be compiled into the kernel, and consequently, neither should the drivers for a particular card. In this case, the init.d entries do need to be modified, and emerge pcmcia-cs should be done after any changes to the kernel.

So pcmcia-cs generates the correct kernel modules automatically?
_________________
"and if rain brings winds of change, let it rain on us forever..."
Back to top
View user's profile Send private message
cbrese
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2002
Posts: 126
Location: San Diego, CA

PostPosted: Mon Jul 15, 2002 12:36 am    Post subject: Still canlt get my 3Com 575 to work Reply with quote

So far the best I can get it 2 beeps and a hung system or an error message saying "Make sure you have PCMCIA loaded..."

I get the 2 beep error if I put pcmcia_core, i82365, and ds in modules.autoload.

I get the error message if I remove ds from modules.autoload.

I fixed the bug in /etc/pcmcia/network by removing the wireless stuff

I have my kernel compiled WITHOUT PCMCIA/CardBus support and WITH i82365

After compiling the kernel and the rest of the makes I emerged pcmcia-cs

I can't think of anything else to try, please help my head hurts from banging it against the wall for 2 days. :(
Back to top
View user's profile Send private message
cbrese
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2002
Posts: 126
Location: San Diego, CA

PostPosted: Mon Jul 15, 2002 12:50 am    Post subject: Fixed Reply with quote

I knew all I had to do was make a post and I'd figure it out right after.

It looks like the problem wasn't just the wireless stuff in /etc/pcmcia/network

I followed the instructions of a previous post for blowing away the /etc/pcmcia/network file and creating an empty one.

I now have pcmcia_core, i82365, and ds in my modules.autoload and it dosen't hang.

The only problem left is dhcpcd eth0 isn't getting run, and I have to do it manualy.

I have iface_eth0="dhcp" set in my /etc/conf.d/net. Is there something else I need to do? Should I do rc-update add net.eth0 default?
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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