LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-20-2006, 12:35 AM   #1
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Rep: Reputation: 15
Need Help installing a Network card on Red Hat 9.0


Hey everyone,

I have a floppy disk that has the driver for a Netgear NP1100 network card, which I have copy the linux folder onto my home directory.

Would someone please be kind enough showing me the steps I need to do install the drivers to allow my network card to work.

The following files which contain in the linux folder I copy over from the floppy disk are:
copying.txt
kern_compat.h
makefile
np11004.c

Any help would be much appreciated.
 
Old 07-20-2006, 12:59 AM   #2
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Perhaps your linux might be able to see that network card on its own and you might not need to use the drivers on that floppy disk at all. That was the case with my Mandrake 9.0 linux (a cousin of your Red Hat 9.0). Have you installed the network card in your computer? If you haven't, try installing the network card and see if your linux finds it. You might have to go to Red Hat Control Center (or whatever program you use to change system configuration settings, etc.) and tell your linux to look for that network card.

If you do need the drivers on that floppy disk, the floppy disk, and the linux directory that you copied its contents to, contains the source code for that network card driver. You will need to use gcc (a compiler) to take that source code and produce a computer program called a kernel module, which you will then load into your linux kernel to allow your linux to see and use the network card.
 
Old 07-20-2006, 01:01 AM   #3
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
doesn't kudzu automatically detect and configure your network card?
if it doesn't recognizes your card or doesn't has a driver for it (yet), you can install the driver yourself. you just need to do a make on the driver files supplied. There must be a README or INSTALL file inside your floppy disk, read it, contains instructions on how you can build and use the driver supplied.
 
Old 07-20-2006, 05:46 AM   #4
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
Its really weird, I can see the light at the back but for some reason when I look at hardware browser my network card is not listed on the hardware browser page.

it keeps saying eth0 is currently not present

Why is that?

Last edited by tuannie; 07-20-2006 at 06:02 AM.
 
Old 07-20-2006, 06:10 AM   #5
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
did you load the module you built?
 
Old 07-20-2006, 06:23 AM   #6
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
I try following the intruction and compiling it by following intruction but the compile command doesn't seem to be working.

Would you be kind enough to help me over msn?
my msn is tuannie@hotmail.com

Here is what it say

Code:
  Linux driver for kernel 2.2.X
  
  The procedure to activate NP1100_R 10/100M WOL Fast Ethernet card 
  on linux is as follows:
  
  step 01: Copy the driver source files to a convenient directory.
  
  step 02: Compile
           The instruction for compiling the driver is include at the 
           end of the driver file.If a compile-command is not there use 
           the following compile command:
           (Run this instruction at /usr/src/linux) 
           
           *compile-command: 
           " gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c np11004.c "
            
           Or you can use the Makefile included in the driver disk \LINUX.
  
  step 03: Copy the module "np11004.o" to 
           "/lib/modules/{kernel-version}/net"
   
           *The directory "{kernel-version}" stands for the Linux kernel 
            version you use.
  
  step 04: Insert the driver as module:
           insmod np11004.o
           (Run 'lsmod' to see if the module is inserted)
  
  step 05: Bind your card to an IP address
  
           /sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} 
           netmask ${NETMASK}
           (Run 'netstat -i' to see if there is a interface 'eth0')
  
  step 06: Add your card to IP routing table, then add gateway also 
           your card:
           /sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0
           (Should be able to ping local network now)
           
           gateway:
           /sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1
  
  step 07: Start inet daemon.
           /usr/sbin/inetd
           (You are on the network now)
  
  *make sure that your kernel is built with network, fast_ethernet and 
   module support. Otherwise, you have to rebuild your kernel.
   ( 01:Go to /usr/src/linux directory
     02:Run "make menuconfig" or "make config"
     03:Mark the options list above.
     04:Exit and rebuild your kernel.
        make dep;make clean;make zImage
        the file "zImage" will be at
        /usr/src/linux/arch/i386/boot/zImage
     05:Modify /etc/lilo.conf.(this file specify where kernel image is)
     06:Run "lilo" )
  
  You can run "netconfig" which will do step 05,06,07 for you.
  
  Then just add a line at the beginning of "/etc/rc.d/init.d/network".
  
        " insmod /lib/modules/{kernel-version}/net/np11004.o "
        
        *The directory "{kernel-version}" stands for the Linux kernel 
         version you use.
  then your driver will work every time you boot.
 
Old 07-20-2006, 06:31 AM   #7
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
did you build the module "np11004.o" and copied it to "/lib/modules/{kernel-version}/net"? Assuming you did it, now add this to your /etc/modules.conf or /etc/modprobe.conf (whichever one is present) "alias eth0 np11004" then do "modprobe np11004.o" and check if it got correctly loaded or not by doing "lsmod". the "np11004.o" should show up somewhere in the lsmod output. if it is there then do a "mii-tool" to see you have a link. next configure your network settings by doing "netconfig" and you are ready to go.
if you encounter any errors in the way post it along here.
 
Old 07-20-2006, 06:41 AM   #8
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
I havent compile it np11004.o yet I dont know how to, I try typing this this command in

gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c np11004.c to compile i get
bash: gc: command not found

In the instruction, it say that I can do the following:

"Or you can use the Makefile included in the driver disk \LINUX."

How would I go about int doing it?
 
Old 07-20-2006, 06:44 AM   #9
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
you will need to install 'gcc' package. go find your distribution cd and install gcc.
 
Old 07-20-2006, 06:51 AM   #10
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
okay thanks, I will give it a go now, Can I ask why my card isn't working? shouldn't it work since there is LED light at the back?

I mean, there is a driver that was on this distrubution that has Rtl8039 each time I select it and try to activate it it keep saying:

8139cp device eth0 does not seems to be present, delaying initialization.
 
Old 07-20-2006, 06:56 AM   #11
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
Okay, I have just done what u have ask me to do, and try that gcc command again and there was alot of output.

np11004.c1492: dereferencing pointer to incomplete type
 
Old 07-20-2006, 07:04 AM   #12
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
type 'make' ,hit enter, see what happens.
 
Old 07-20-2006, 07:11 AM   #13
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
it say confused with earlier errors, bailing out
 
Old 07-20-2006, 07:16 AM   #14
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
ok do a
make clean
make dist-clean

then again try
make
 
Old 07-20-2006, 07:16 AM   #15
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
Could it be my network card that is causing the problem? Because I have try lots of linux distrubution. But every distrubution the network card never work.

Shouldn't it automatically detect my network card with out me having to compile or make it?
 
  


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
Red Hat Network Card Issue shanu_technical Linux - Networking 2 03-10-2006 06:05 PM
network card in Red Hat 9 jdoherty Linux - Networking 3 02-14-2005 01:54 PM
Problem installing Red Hat 9 over a network czarherr Linux - Hardware 4 01-18-2004 02:07 AM
installing red hat 8 over network incideagent Linux - Networking 1 09-15-2003 02:16 PM
Red Hat 8.0 Network Card Issues jzerden Linux - Networking 2 03-14-2003 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:27 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
Open Source Consulting | Domain Registration