RedHat 6 directory structure to compile rtl8139.c

Lee Leavenworth lleavenworth@cfl.rr.com
Sun Sep 19 01:04:05 1999


I have RedHat 6 and the directory structure isn't the same as in the
directions from (http://cesdis.gsfc.nasa.gov/linux/misc/modules.html)
---------------------------
Verify that the source code for your current kernel version is installed.
If you don't have a /usr/include/linux/version.h file, do
cd /usr/src/linux; make include/linux/version.h
Copy the driver source code to a source directory. I usually use
/usr/src/modules/driver.c.
Compile the file using the compile-command at the bottom of the driver
source file. If a compile-command is not there use the following compile
command:
gcc -DMODVERSIONS -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -O6 -c
driver.c

If the previous command fails with the error "linux/modversions.h not
found", delete the
-DMODVERSIONS
from the compile command and try again.
As 'root', test the module by doing "insmod driver.o".
Install the driver module in the proper location for your distribution. This
is usually /lib/modules/kernel-version/net/driver.o. The command to do this
is
    install -m 644 driver.o /lib/modules/`uname -r`/net/
-------------------------------

Are there updated instructions for redhat 6? Or is there a compiled version
located someplace?

Any information you can provide me will be most appreciated.

Thanks,
Lee Leavenworth




 | To unsubscribe, send mail to Majordomo@cesdis.gsfc.nasa.gov, and within the
 |  body of the mail, include only the text:
 |   unsubscribe this-list-name youraddress@wherever.org
 | You will be unsubscribed as speedily as possible.