LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing a network card (https://www.linuxquestions.org/questions/linux-newbie-8/installing-a-network-card-946263/)

aldergrange 05-22-2012 04:33 AM

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,

uhelp 05-22-2012 04:40 AM

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

Which distro you are using?

aldergrange 05-22-2012 04:45 AM

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,

michaelk 05-22-2012 07:14 AM

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.

aldergrange 05-22-2012 08:35 AM

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,

michaelk 05-22-2012 08:45 AM

Do you know what version of Redhat?
Any error messages?

aldergrange 05-22-2012 09:12 AM

1 Attachment(s)
The Distro is:

"Redhat 4.4.5-2"

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

Thanks,

Edit: found distro

michaelk 05-22-2012 09:34 AM

I can not tell from the picture if the command completed successfully.

aldergrange 05-22-2012 09:37 AM

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.

michaelk 05-22-2012 09:52 AM

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


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