2 red hat, Enterprise ver. 3.0, Installing source rpm package – Asus RS120-E4/PA2 User Manual

Page 153: Building the driver from the tar file

Advertising
background image

ASUS RS120-E4/PA2

7-13

7.2.2

Red Hat

®

Enterprise ver. 3.0

Follow these instructions when installing the Broadcom

®

Gigabit LAN controller

base driver for the Red Hat

®

Enterprise ver. 3.0 operating system.

Installing source RPM package

1. Install the source RPM package:

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

2. CD to 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)

The RPM path is different for different Linux distributions.

3. Install the newly built packages (driver and main page):

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

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

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

• Force option may be needed on some Linux distributions if conflicts are

reported.

The driver will be install in the following path:

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

(on 2.4.x kernels)

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

(on 2.6.x kernels)

4. Load the driver:

insmod tg3.o

insmod tg3.ko

(on 2.6.x kernels)

modprobe tg3

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

documentations.

Building the driver from the TAR file

Install first the source RPM package before building the driver from the TAR file.

To build the driver from the TAR file:

1. Create a directory and extract the TAR files:

tar xvzf tg3-<version>.tar.gz

Advertising