LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-30-2002, 04:39 PM   #1
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Rep: Reputation: 30
Slackware and PCMCIA: what's up?


Hi,

I've been using Slackware for a while now, but when it comes to PCMCIA and network cards it acts kinda weird to me. For the sake of my sanity, I decided to install Slackware 8.1 at work. I'm dual booting with Win2K on a Gateway Profile 3Se computer. Anyways, this computer came equiped with a PCMCIA slot in which we're using an IBM Token Ring card. The Profile has an integrated 100Mbit Ethernet card, but is not in used. We're mainly Token Ring, for now. During setup, Slackware found the integrated NIC, but failed to mention the PCMCIA TR card. During bootup, I watched closely and the kernel is recognizing the PCMCIA slots. So I decided to /sbin/modprobe ibmtr_cs which worked fine. So I added that command to /etc/rc.d/rc.netdevice. But I think something else needs to be done, here to make sure Slackware uses the TR card instead of the Ethernet card. I don't want to disable what's already in place for the Ethernet card. I would like to add the TR card as a secondary NIC. Basically, Slackware should probe both of them at boottime, should do nothing for the Ethernet card, but should grab an IP address for the TR card. Does this make sense?

I Want My Slack PC! At Work!
 
Old 12-30-2002, 04:54 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
try adding this to /etc/modules.conf


alias eth1 ibmtr_cs
 
Old 12-30-2002, 06:44 PM   #3
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Original Poster
Rep: Reputation: 30
Where is Slackware creating eth0 at? If I do an:

ifconfig eth0 up

then the Ethernet card shows up when I do ifconfig by itself.

So, I figured the command:

ifconfig eth1 up

would get my token ring card up and running.

By your post, I can tell it was not going to work anyways because I needed that alias in modules.conf. Well, I was searching thru every single network related configuration file I could think of. I knew about the alias command, just didn't know where it's supposed to go. I take it eth0 does not need an alias as Slackware will use the first available NIC and assign it eth0. For any subsequent NICs, then an alias line has to be written to modules.conf. Correct?

Thanks for your reply. I'm gonna boot back into Slackware right now.

Hector
 
Old 12-30-2002, 07:01 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
/etc/rc.d/rc.inet1

should be setting up the nic

it is done by ifconfig, you need to enter in the info for the device manually or with dhcp

this will prompt you for some info and configure it for you
Code:
netconfig
however if this has failed I would go ahead and set it up by using modules.config and ifconfig


normally slack does not even have the alias in the modules.conf file. At least on mine it's not there. Instead it just uses rc.netdevice to load the module.

so there is no need for the alias

the alias in modules.conf tells the system what module to load for eth?

Last edited by DavidPhillips; 12-30-2002 at 07:06 PM.
 
Old 12-30-2002, 07:04 PM   #5
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Original Poster
Rep: Reputation: 30
Ok,

This is what I did:

# pico /etc/modules.conf

added:

alias eth1 ibmtr_cs

saved the file, rebooted, nothing happened.

Another thing I had done before I decided to start this thread was:

# cp /etc/dhcpc/dhcpcdeth0.exe /etc/dhcpc/dhcpcdeth1.exe

I figured that will take care of running dhcpc on eth1, but I get this message during the boot process:

Attempting to configure eth1 by contacting a DHCP server...
modprobe: modprobe: Can't locate module eth1
dhcpcd[58]: dhcpStart: ioctl SIOCGIFHWADDR: No such device

I went thru the Slackware site and couldnt find anything about enabling a second NIC.

Thanks for your help on this,
Hector
 
Old 12-30-2002, 07:07 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
have you ran netconfig


I forgot to mention that you would need to run depmod -ae after editing modules.conf


Last edited by DavidPhillips; 12-30-2002 at 07:14 PM.
 
Old 12-30-2002, 09:50 PM   #7
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Original Poster
Rep: Reputation: 30
Ok, disregard the post I made just before this one. I had put the line inside /etc/modules not /etc/modules.conf.

Here's what I got after I added the line to the correct file:

Attempting to configure eth1 by contacting a DHCP server...
insmod: Warning: loading /lib/modules/2.4.18/pcmcia/ibmtr_cs.o.gz will
taint the kernel: no license
insmod: See http://www.tux.org/lkml/#s1-18 for information about tainted
modules
insmod: Module ibmtr_cs loaded, with warnings
dhcpcd[57]: dhcpStart: ioctl SIOCGIFHWADDR: No such device

This last message looks a little more promising, dont you think?
 
Old 12-30-2002, 10:36 PM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
yes did you run depmod -ae

also you might just try to set an ip and see if it works

ifconfig eth1 192.168.0.1

see if it give the same error
 
Old 12-31-2002, 12:28 PM   #9
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Original Poster
Rep: Reputation: 30
depmod -ae did not return any erros messages.

ifconfig eth1 192.168.1.1 says that the device does not exist with some SCIOADDR error.

Heh, heh! This is fun!
 
Old 12-31-2002, 01:52 PM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
when netconfig does the probe it should have said it found the card. Did it?
 
Old 12-31-2002, 02:16 PM   #11
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Original Poster
Rep: Reputation: 30
netconfig's probe found the Ethernet card but failed to find the PCMCIA NIC card. This machine is a desktop all-in-one PC with laptop technology like the PCMCIA slot where my IBM TR card is plugged into.
 
Old 12-31-2002, 02:19 PM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
maybe you will need to install the latest pcmcia package, it has some new drivers, unless of course you already have it.

you can get it here

http://www.go.dlr.de/fresh/linux/src...s-3.2.3.tar.gz
 
Old 01-02-2003, 06:01 PM   #13
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Original Poster
Rep: Reputation: 30
Operation: Slackware on Gateway Profile 3SE terminated!

Thanks for your help on this, tho. I'm going to wait until we implement Ethernet on our network and install Slackware back into office computer.

Anyhow, I went ahead and downloaded/installed the PCMCIA package, but it still could not identify my token ring card. Oh well! It was quite the learning experience tinkering with Linux and trying to get that card to work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PCMCIA Drivers in Slackware MadnessASAP Linux - Software 0 07-21-2005 09:25 PM
slackware + old compaq + pcmcia = help turbodeathcat Linux - Laptop and Netbook 4 12-08-2004 09:55 AM
Slackware 3.6 PCMCIA Problem ebenh Slackware 2 08-08-2004 12:36 AM
PCMCIA Wireless - Slackware 10.0 KuriosD Linux - Laptop and Netbook 10 07-24-2004 08:44 PM
Pcmcia errors in Slackware 9 Dsteve768 Slackware 9 09-22-2003 06:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration