LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-22-2012, 04:33 AM   #1
aldergrange
LQ Newbie
 
Registered: May 2012
Posts: 5

Rep: Reputation: Disabled
Installing a network card


Hi Guys,

This is the first time i have dealt with anything linux related and im having trouble installing a network card.

It is a Broadcom 5751 PCI-Express LAN Controller and I have got the from here

http://www.broadcom.com/support/ethe...oaddrivers.php .

It took my long enough to get the USB drive mounted but im really struggling to get this driver installed. Have checked through the readme contained in the .zip file and have ran the first step fine

(rpm -ivh tg3-<version>.src.rpm)

A little progress bar went through to 100% then i tried the next steps but still couldnt get it working.

If someone could point me in the right direction on how to get this thing working it would be very much appreciated.

Thanks,
 
Old 05-22-2012, 04:40 AM   #2
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
As a newbie you should never ever install any rpm's directly.
Use your paket manager.

Which distro you are using?
 
Old 05-22-2012, 04:45 AM   #3
aldergrange
LQ Newbie
 
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi uhelp,

I dont think i can access paket manager.
Basically ihave a digital signage box i bought and has ran out of warranty and failed. We moved the hardrive into a similar PC and it is booting but wont fully boot as it needs to pickup the network card to proceed.

Once it has booted it manages itself and i manage it through a web interface.

I'm not sure what you mean by distro.

Sorry for being so vague,
 
Old 05-22-2012, 07:14 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Distro is short for distribution e.g Debian, Redhat, SuSE etc.

Explain what you meant by moved the hardware into a similar PC. Did you just move the hard drive?
Post the make and model of the box. It may not matter much but might provide some clues about the original hardware.

Post the output of the command:
uname -a.
 
Old 05-22-2012, 08:35 AM   #5
aldergrange
LQ Newbie
 
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi michaelk,

Sorry, I meant to type replaced hard drive. We took the hard drive from the failed signage and moved it to a hp DX5150 and the network driver is the one i posted above.

The distro is Redhat.

The instructions ive been trying to follow are these:

Code:
Installing Source RPM Package
=============================

The following are general guidelines for installing the driver.

1. Install the source RPM package:

   rpm -ivh tg3-<version>.src.rpm

2. CD to the RPM path and build the binary driver for your kernel:

   cd /usr/src/{redhat,OpenLinux,turbo,packages,rpm ..}

   rpm -bb SPECS/tg3.spec

or

   rpmbuild -bb SPECS/tg3.spec (for RPM version 4.x.x)

Note that the RPM path is different for different Linux distributions.

The driver will be compiled for the running kernel by default. To build
the driver for a kernel different than the running one, specify the
kernel by defining it in KVER:

   rpmbuild -bb SPECS/tg3.spec --define "KVER <kernel version>"

where <kernel version> in the form of 2.x.y-z is the version of another
kernel that is installed on the system.

3. Install the newly built package (driver and man page):

   rpm -ivh RPMS/<arch>/tg3-<version>.<arch>.rpm

<arch> is the architecture of the machine, e.g. i386:

   rpm -ivh RPMS/i386/tg3-<version>.i386.rpm

Note that the --force option may be needed on some Linux distributions
if conflicts are reported.

The driver will be installed in the following path:

2.4.x kernels:

    /lib/modules/<kernel_version>/kernel/drivers/net/tg3.o

2.6.x kernels:

    /lib/modules/<kernel_version>/kernel/drivers/net/tg3.ko

4. Load the driver:

   insmod tg3.o
or
   insmod tg3.ko (on 2.6.x kernels)
or
   modprobe tg3

5. To configure network protocol and address, refer to various Linux
documentations.


Building Driver From TAR File
=============================

The following are general guidelines for installing the driver.

1. Create a directory and extract the files:

   tar xvzf tg3-<version>.tar.gz

2. Build the driver tg3.o (or tg3.ko) as a loadable module for the
running kernel:

   cd src
   make

The driver will be compiled for the running kernel by default. To build
the driver for a kernel different than the running one, specify the
kernel by defining it in KVER:

  make KVER=<kernel version>

where <kernel version> in the form of 2.x.y-z is the version of another
kernel that is installed on the system.

3. Test the driver by loading it: 

   insmod tg3.o
or
   insmod tg3.ko (on 2.6.x kernels)
or
   insmod tg3

4. Install the driver:

   make install

See RPM instructions above for the location of the installed driver.

5. To configure network protocol and address, refer to various Linux
documentations.
Thanks,
 
Old 05-22-2012, 08:45 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Do you know what version of Redhat?
Any error messages?
 
Old 05-22-2012, 09:12 AM   #7
aldergrange
LQ Newbie
 
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
The Distro is:

"Redhat 4.4.5-2"

See image for how far i get with regards to instructions please.

Thanks,

Edit: found distro
Attached Thumbnails
Click image for larger version

Name:	linux.jpg
Views:	14
Size:	214.7 KB
ID:	9715  

Last edited by aldergrange; 05-22-2012 at 09:18 AM.
 
Old 05-22-2012, 09:34 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I can not tell from the picture if the command completed successfully.
 
Old 05-22-2012, 09:37 AM   #9
aldergrange
LQ Newbie
 
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Nothing happened after that command it said 100% and then it was just back to how it was before i ran it; waiting for me to enter a command.
 
Old 05-22-2012, 09:52 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Ok. that command just loaded the source code. Did you follow the rest of the instructions to build and install?
 
  


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
help installing a second network card virtualpaul Linux - Hardware 7 01-19-2011 01:46 PM
Can any one tell me how i might go about installing network card? Kingsize Linux - Networking 3 04-10-2007 05:36 PM
Installing Network Card eliteskills Linux - Networking 1 07-29-2004 01:47 AM
installing network card caesarkim Linux - Networking 1 04-14-2004 05:57 PM
Installing My Network Card cspray Slackware 5 03-25-2003 12:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:57 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