Hi,
I installed redhat 7.0 on my Book PC which has 100/10 onboard network card. But, this card driver did not support linux. So, I downloaded the driver for Linux from
http://www.davicom.com.tw/download/download_driver.htm.
In its readme file, it requires me to comile the dmfe file in the following ways:
A. Compiler command:
A-1: For normal single processor kernel
"gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall
-Wstrict-prototypes -O6 -c dmfe.c"
A-2: For single processor and enable kernel module version function
"gcc -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O6 -c dmfe.c"
A-3: For multiple processors(SMP) and enable the module version function "gcc -D__SMP__ -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux /net/inet -Wall -Wstrict-prototypes -O6 -c dmfe.c"
I choose A-2 and type the following:
Shell> gcc -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O6 -c dmfe.c
But, it returns:
bash: gcc: command not found.
B. How to compile driver
B-1: Login by supervisor
B-2: Copy dmfe.c and Makefile into your HD. You can make a new directoty to put.
B-3: Keep driver source file name as "dmfe.c" and makefile name as "Makefile"
B-4: You can type the following command to compile driver. Please according to your system to pick one.
make org ;;Without SMP & Set version info on module
;;Redhat6.0
make mod ;;Set version info on all module symbol
;;Redhat6.1/6.2, Mandrake6.1/7.1, Caldera2.3
make smp ;;symmetric multi-processing(SMP) support
;;make smp_mod;;SMP & Set version info on module
;;Mandrake7.0
Or you can type above compiler command to compile driver.
Note: Please check you must have the right kernel source on "/usr/src/linux".
Actually, I don't know how to do B-4 above.
I just typed in
shell> make smp_mod
It returns
make: command not found
So, how can I compile the dmfe.c on redhat 7?
Thanks a lot
sogogo