LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-22-2001, 03:03 AM   #1
gogo
Member
 
Registered: Apr 2001
Posts: 117

Rep: Reputation: 15
Question


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
 
Old 04-29-2001, 03:45 AM   #2
mhommads
LQ Newbie
 
Registered: Apr 2001
Posts: 3

Rep: Reputation: 0
Smile

i think this one will work

1st, command #lsmod to see if your network card is detected, then, command #insmod dfme.o , i think this is the driver your looking for, after that do ifconfig if card your is detected nd configured properly.

:-)

 
Old 07-24-2003, 12:51 PM   #3
louisbyrne
LQ Newbie
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian, Slackware, RedHat
Posts: 7

Rep: Reputation: 0
Do you have gcc installed?

You should check if you have installed the C/C++ compiler gcc and egcs and also make. You should also be loged as root to perform any compilation
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scull Device Driver (problems to compile) manuzinhac Linux - Hardware 0 05-19-2005 09:00 AM
need help to compile r300 open source driver from http://r300.sourceforge.net/ e88z4 Linux - Software 1 03-03-2005 11:29 AM
Installing a device driver as a Module lehumphr Linux - Newbie 1 04-27-2004 11:31 PM
Trouble running make to compile example scull device driver taillefer Programming 3 03-23-2004 12:53 AM
Installing driver for Net Gear WG511 (wireless) tigoluxa Linux - Wireless Networking 2 01-25-2004 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration