LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Tulip and gcc (https://www.linuxquestions.org/questions/linux-newbie-8/tulip-and-gcc-46387/)

jshall98 02-20-2003 05:44 PM

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

Texicle 02-20-2003 07:38 PM

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. :)

acid_kewpie 02-21-2003 02:47 AM

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.

acid_kewpie 02-21-2003 02:47 AM

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

Texicle 02-21-2003 03:00 AM

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. :o I don't know what I was thinking. At any rate, at least I questioned the validity of the tulip driver. :p


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