public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] pcmcia-cs Instructions
@ 2002-03-19  5:25 Chad M. Huneycutt
  2002-03-19 12:55 ` Craig M. Reece
  0 siblings, 1 reply; 5+ messages in thread
From: Chad M. Huneycutt @ 2002-03-19  5:25 UTC (permalink / raw
  To: gentoo-user, gentoo-dev

I have done  a bit of work with Gentoo's pcmcia lately, so if you haven't 
updated lately you should.  The latest version of pcmcia-cs currently is 
3.1.33-r1.  There is also 3.1.31-r6, if you need 3.1.31 for some reason.

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 PCMCIA network card, you have to edit /etc/pcmcia/network.opts 
to configure your network settings.  *Do not* use Gentoo's 
/etc/init.d/net.eth0 startup script to start interfaces that you want 
cardmgr to manage.

I hope this clears up any issues that people are still having with pcmcia.

Chad Huneycutt (chadh@gentoo.org)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] pcmcia-cs Instructions
  2002-03-19  5:25 [gentoo-dev] pcmcia-cs Instructions Chad M. Huneycutt
@ 2002-03-19 12:55 ` Craig M. Reece
  2002-03-19 13:07   ` Vitaly Kushneriuk
  0 siblings, 1 reply; 5+ messages in thread
From: Craig M. Reece @ 2002-03-19 12:55 UTC (permalink / raw
  To: gentoo-dev

On Tue, Mar 19, 2002 at 12:25:41AM -0500, Chad M. Huneycutt spoke thusly:
snippage...
> 
> To configure PCMCIA network card, you have to edit /etc/pcmcia/network.opts 
> to configure your network settings.  *Do not* use Gentoo's 
> /etc/init.d/net.eth0 startup script to start interfaces that you want 
> cardmgr to manage.
> 
snippage...

Does this mean that we should leave net.eth0 out of the rc-update process
and just use pcmcia? Do things that depend on net still work then? Do you
know if this will work with wireless cards as well?

-- 
Linux Registered User: 258849


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] pcmcia-cs Instructions
  2002-03-19 12:55 ` Craig M. Reece
@ 2002-03-19 13:07   ` Vitaly Kushneriuk
  2002-03-19 15:39     ` Chad Huneycutt
  0 siblings, 1 reply; 5+ messages in thread
From: Vitaly Kushneriuk @ 2002-03-19 13:07 UTC (permalink / raw
  To: Gentoo-dev

On Tue, 2002-03-19 at 14:55, Craig M. Reece wrote:
> On Tue, Mar 19, 2002 at 12:25:41AM -0500, Chad M. Huneycutt spoke thusly:
> snippage...
> > 
> > To configure PCMCIA network card, you have to edit /etc/pcmcia/network.opts 
> > to configure your network settings.  *Do not* use Gentoo's 
> > /etc/init.d/net.eth0 startup script to start interfaces that you want 
> > cardmgr to manage.
> > 
> snippage...
> 
> Does this mean that we should leave net.eth0 out of the rc-update process
> and just use pcmcia? Do things that depend on net still work then? Do you
> know if this will work with wireless cards as well?
That might not be cleanest/best way to do it, but that's what I use:
1) in net.eth0 I renamed "start" to "up", and "Stop" to "down" and added
new start() that just calls up and stop() that just calls down, and
opts="start stop restart up down".
2)I replaced content of the /etc/pcmcia/network with the following:
-----------------------------------
#! /bin/sh
#

action=$1
device=$2

case "${action:?}" in
"start" | "resume" )
	/etc/init.d/net.$2 up
	;;
"stop")
	/sbin/ifconfig $2 down
	;;
esac
-----------------------------------

Home this helps.
	/Vitaly



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] pcmcia-cs Instructions
  2002-03-19 13:07   ` Vitaly Kushneriuk
@ 2002-03-19 15:39     ` Chad Huneycutt
  2002-03-19 17:10       ` Chad M. Huneycutt
  0 siblings, 1 reply; 5+ messages in thread
From: Chad Huneycutt @ 2002-03-19 15:39 UTC (permalink / raw
  To: gentoo-dev

Vitaly Kushneriuk wrote:
> On Tue, 2002-03-19 at 14:55, Craig M. Reece wrote:
>>Does this mean that we should leave net.eth0 out of the rc-update process
>>and just use pcmcia? Do things that depend on net still work then? Do you
>>know if this will work with wireless cards as well?
> 
> That might not be cleanest/best way to do it, but that's what I use:
> 1) in net.eth0 I renamed "start" to "up", and "Stop" to "down" and added
> new start() that just calls up and stop() that just calls down, and
> opts="start stop restart up down".
> 2)I replaced content of the /etc/pcmcia/network with the following:
> -----------------------------------
> #! /bin/sh
> #
> 
> action=$1
> device=$2
> 
> case "${action:?}" in
> "start" | "resume" )
> 	/etc/init.d/net.$2 up
> 	;;
> "stop")
> 	/sbin/ifconfig $2 down
> 	;;
> esac
> -----------------------------------


Say... That's pretty good.  Until I can get the powers that be to 
provide --quiet init scripts, I think I will use that.

Thanks, Vitaly.

-- 
Chad Huneycutt
Ph.D. Student
Georgia Tech College of Computing
http://www.cc.gatech.edu/~chadh



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] pcmcia-cs Instructions
  2002-03-19 15:39     ` Chad Huneycutt
@ 2002-03-19 17:10       ` Chad M. Huneycutt
  0 siblings, 0 replies; 5+ messages in thread
From: Chad M. Huneycutt @ 2002-03-19 17:10 UTC (permalink / raw
  To: gentoo-dev

Chad Huneycutt wrote:
> Vitaly Kushneriuk wrote:
> 
>> On Tue, 2002-03-19 at 14:55, Craig M. Reece wrote:
>>
>>> Does this mean that we should leave net.eth0 out of the rc-update 
>>> process
>>> and just use pcmcia? Do things that depend on net still work then? Do 
>>> you
>>> know if this will work with wireless cards as well?
>>
>>
>> That might not be cleanest/best way to do it, but that's what I use:
>> 1) in net.eth0 I renamed "start" to "up", and "Stop" to "down" and added
>> new start() that just calls up and stop() that just calls down, and
>> opts="start stop restart up down".
>> 2)I replaced content of the /etc/pcmcia/network with the following:
>> -----------------------------------
>> #! /bin/sh
>> #
>>
>> action=$1
>> device=$2
>>
>> case "${action:?}" in
>> "start" | "resume" )
>>     /etc/init.d/net.$2 up
>>     ;;
>> "stop")
>>     /sbin/ifconfig $2 down
>>     ;;
>> esac
>> -----------------------------------
> 
> 
> 
> Say... That's pretty good.  Until I can get the powers that be to 
> provide --quiet init scripts, I think I will use that.

Well, it wasn't really necessary to do the up and down stuff. I just 
directly call /etc/init.d/net.eth? start.  I thought I tried that and it 
failed, but I must have had a typo somewhere.  I am providing this new 
/etc/pcmcia/network in pcmcia-cs-3.1.33-r2


-- 
Chad Huneycutt                                try { Windows }
Ph.D. Student                                 catch ( Exception BSOD )
Georgia Tech College of Computing               { linux };
http://www.cc.gatech.edu/~chadh



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-03-19 17:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-19  5:25 [gentoo-dev] pcmcia-cs Instructions Chad M. Huneycutt
2002-03-19 12:55 ` Craig M. Reece
2002-03-19 13:07   ` Vitaly Kushneriuk
2002-03-19 15:39     ` Chad Huneycutt
2002-03-19 17:10       ` Chad M. Huneycutt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox