LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2003, 06:44 PM   #1
jshall98
LQ Newbie
 
Registered: Feb 2003
Posts: 1

Rep: Reputation: 0
Tulip and gcc


I have been a UNIX user for many years now, but have just entered the world of LINUX and system administration. I apologize in advance if some of this is mickey-mouse, but I have spent 3 days now searching for the answers and have given up trying to find them online & need some direction.

1. I have a Linksys Ethernet LAN PCI card on my HP Pavilion. I installed RedHat 8.0 and cannot configure the card properly. From what I can tell I need to use the Tulip driver (There's no Tulip on the list of Network Adapters, but I *think* that I am supposed to be using "DEC 21*40 and clones" for the Tulip driver). Even after selecting the "DEC 21*40" (I also tried "NE1000, NE2000, and compatible"), I was unable to activate the card.

When I run "modprobe tulip", the insmod returns an error along the lines of "init_module: No such device". I'm not really sure what this means.

If I run dmesg, I can tell that it is trying to load the Tulip driver because I see about 30 lines of:

Linux Tulip driver version 0.9.15-pre11 (May 11, 2002)

It doesn't really say anything else that I can definitely associate with Tulip though, so I can't tell if it is detecting my card.

When I run "cat /proc/pci" I can see:

Bus 0, device 10, function 0:
Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller (rev 0).
Master Capable. Latency=90. Min Gnt=11.Max Lat=52
I/O at 0x1400 [0x14ff]
Non-prefetchable 32 bit memory at 0xf4000000 [0xf40000fff].

Which (I think) tells me that the card IS being detected, but somehow the driver isn't associating with the card.

If you have ANY suggestions on what I should try (no matter how insultingly simple), PLEASE let me know. I am quite simply lost.

As a last-ditch effort (I REALLY wanted to assume that the 8.0 release would have a Tulip driver that works with a LAN card from 2001), I went to the Linksys site and downloaded the latest Tulip.c file, which brings me to my next question...

2. According to RedHat 8.0 release notes, gcc 3.2 is part of the installation. Needless to say, gcc isn't in any bin directory that I can find. When I do "ls -R | grep gcc", all I find are library files - but no gcc executable. I can't compile the new Tulip driver without gcc. What should I do?

Thanks in advance for any help!

jshall98
 
Old 02-20-2003, 08:38 PM   #2
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
I would check your RedHat CDs for the gcc package and try to reinstall it. I don't know how the commands for package management in RedHat so I can't help you with that. However, if you've got the development packages on CD-ROM you could probably reinstall it. Additionally, are you sure that your Linksys NIC is to use the Tulip driver? Another thing to try is

insmod tulip.c

to install the module that you've downloaded--if you're able to. Then do your modprobe. I don't know how well this helps, but hopefully it has.

Additionally, if you can't get gcc or gcc++ off of your CD (or it's a corrupt file) you can probably ftp the "rpm" for it from somewhere. I had to do that for my Slackware 8.1 gcc and gcc++ packages. I had them, but they were corrupt due to a bad burn on the CD. I downloaded them and I'm now able to compile from source all my downloads. Also, you might want to look into getting Slackware 8.1 since you're a long time UNIX user (or maybe try one of the BSDs). Supposedly, Slackware is the most "unix-like" of all the Linux distributions. I know it's got the BSD inits as opposed to the Sys-V inits like RH and others. Something to think about anyway. Hope this helps.
 
Old 02-21-2003, 03:47 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you're trying to use the wrong driver, hence the device not counf message (there are no compatible devices found) you want the natsemi driver instead.

modprobe natsemi

[Texicle: "tupli.c" is a source file... not a driver. this would fail totally.]

if that comes up ok then a line in /etc/modules.conf along the lines of "alias natsemi eth0" will auotmatically load it for you forever more.

as for gcc, you probaly chose a dekstop install and so it assumed you never wanted to do anything clever, so just install the gcc rpm's from the distro cd's.
 
Old 02-21-2003, 03:47 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you're trying to use the wrong driver, hence the device not counf message (there are no compatible devices found) you want the natsemi driver instead.

modprobe natsemi

[Texicle: "tupli.c" is a source file... not a driver. this would fail totally.]

if that comes up ok then a line in /etc/modules.conf along the lines of "alias natsemi eth0" will auotmatically load it for you forever more.

as for gcc, you probaly chose a dekstop install and so it assumed you never wanted to do anything clever, so just install the gcc rpm's from the distro cd's.

FYI, i found this page... http://www.redhat.com/docs/manuals/l...-ethernet.html
 
Old 02-21-2003, 04:00 AM   #5
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
<snip>

[Texicle: "tupli.c" is a source file... not a driver. this would fail totally.]

<snip>
Whoops! I think I meant tulip.o. I don't know what I was thinking. At any rate, at least I questioned the validity of the tulip driver.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Compile tulip.c to tulip.o? WKoepp Linux - General 10 11-06-2003 10:15 AM
using gcc to compile tulip.c Zeke Linux - Networking 3 03-22-2003 07:27 PM
tulip.c installation c0c0deuz Linux - Software 21 03-26-2002 04:26 PM
tulip.o location iihay Linux - Networking 5 02-27-2002 04:06 PM
cannot compile tulip.c atari303 Linux - Newbie 6 10-21-2001 06:29 AM


All times are GMT -5. The time now is 08:06 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration