D-Link DGE-560SX User Guide
39
Source RPM (tg3-
version
.src.rpm)
Supplemental (tg3_sup-
version
.tar.gz)
Compressed tar (tg3-
version
.tar.gz)
Identical source files to build the driver are included in both RPM and TAR source packages.
The tar file contains additional utilities such as patches and driver disk images for network
installation.
3.5.3 Installing TG3 Driver Software
Installing the Source RPM Package
1.
Install the source RPM package.
rpm -ivh tg3-
version
.src.rpm
2.
Change the directory to the RPM path and build the binary driver for your kernel (the
RPM path is different for different Linux distributions).
cd /usr/src/redhat,OpenLinux,turbo,packages,rpm ...
rpm -bb SPECS/tg3.spec or rpmbuild -bb SPECS/tg3.spec
rpmbuild -bb SPECS/tg3.spec (for RPM version 4.x.x)
NOTE: During your attempt to install a source RPM package, the following
message may be displayed:
error: cannot create %sourcedir /usr/src/redhat/SOURCE
The most likely cause of the error is that the rpm-build package has not been
installed. Locate the rpm-build package on the Linux installation media and
install it using the following command:
rpm -ivh rpm-build-version.i386.rpm
Complete the installation of the source RPM.
3.
Install the newly-built package (driver and man page).
rpm -ivh RPMS/i386/tg3-
version
.i386.rpm
Depending on the kernel, the driver is installed to one of the following paths: