LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-28-2003, 03:16 PM   #1
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Rep: Reputation: 15
How to run linux driver?


The linux driver for my Network card comes in 3 files:
README.TXT
FEALNX.O
FEALNX.C

And it says in the readme file to do this:



Installation:

1. copy the source code fealnx.c to Linux,

2. compile the source code, the instruction for compiling the driver is
as follows:

#gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall
-Wstrict-prototypes -O6 -c fealnx.c

3. insert the driver as module,

#insmod fealnx.o

4. bind your card to an IP address

#ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}

5. add your card to IP routing table,

#route add -net ${NETWORK} netmask ${NETMADK} eth0

6. now, you should be able to ping local network.





How on earth do i go about doin this? help would be great! nice one all...
 
Old 10-28-2003, 04:07 PM   #2
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Unhappy

please?
 
Old 10-28-2003, 04:20 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Firstly, you haven't even waited an hour yet ;)

Secondly, the instructions are ALMOST good :)

They assume that you have the kernel sources
installed. If you don't, install them NOW ;)

I'm not quite sure what they mean in step 1,
when they say "copy it to Linux" ... my suggestion
would be to copy the *.c file into the directory
/usr/src/linux/drivers/net and then follow
the instructions...


Cheers,
Tink
 
Old 10-28-2003, 04:23 PM   #4
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
thanks for your reply
hehe, i cant count



basicly, im stupid! as in propa stupid when it comes to linux, i dont even know how to install things yet or how to run, i downloaded al's msn and got stuck installing coz i didnt know how, can u run it step by step at all? thanks!!! 1 million times if u do

EpicLinux
 
Old 10-28-2003, 04:23 PM   #5
misophist
Member
 
Registered: Aug 2003
Location: here
Distribution: suse 8.2
Posts: 169

Rep: Reputation: 30
I can't answer the question myself but a google search of 'fealnx.o' had a number of hits, some of which were here. It might be faster if you did the search and looked for yourself. This is the best place I've found for answers. But... the harder questions take longer.

I see you got an answer while I was writing this. Congrtatulations.

Last edited by misophist; 10-28-2003 at 04:25 PM.
 
Old 10-28-2003, 04:30 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by EpicLinux
thanks for your reply
hehe, i cant count :)



basicly, im stupid! as in propa stupid when it comes to linux, i dont even know how to install things yet or how to run, i downloaded al's msn and got stuck installing coz i didnt know how, can u run it step by step at all? thanks!!! 1 million times if u do

EpicLinux
Well, in this case :}

Here's one link that will help you with
info retrieval:
http://www.catb.org/~esr/faqs/smart-questions.html

To help you more efficiently:
What distro are you using? Many things are
distribution-specific.

Cheers,
Tink
 
Old 10-28-2003, 04:33 PM   #7
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
lol, thanks for the link, ill take a read at bed time
i duno what distro, its Redhat 9, FULLY installed, everythings on there, and only installed bout 12hours ago, what other info would help you?
 
Old 10-28-2003, 05:10 PM   #8
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
how do i compile the source code? thanks eva so much!
 
Old 10-28-2003, 07:57 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
from the original post
2. compile the source code, the instruction for compiling the driver is
as follows:
Code:
gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall
-Wstrict-prototypes -O6 -c fealnx.c
Open a terminal window.
Change to the directory that you
copied the file to.
Then type what's in the "code"
section above in the terminal window.

Cheers,
Tink
 
Old 10-29-2003, 05:07 AM   #10
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
alrite ill give it ago and let you know, thanks mate
 
Old 10-29-2003, 05:36 AM   #11
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Right, that didnt go so well!

where it says:
Code:
/usr/src/linux/net/inet
i put where my "fealnx.c" file is, witch in this case is
Code:
/usr/src/linux-2.4.20-8/drivers/net
so it should look like this?
Code:
gcc -DMODULE -D__KERNEL__ -I/usr/src/linux-2.4.20-8/drivers/net -Wall -Wstrict-prototypes -O6 -c fealnx.c
am i getting this right so far?
 
Old 10-29-2003, 11:03 AM   #12
EpicLinux
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
anyone?
 
Old 10-29-2003, 12:33 PM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by EpicLinux
anyone?
You'd usually have a softlink from
/usr/src/linux-<kernel-version-mumble> to /usr/src/linux
Code:
ln -s /usr/src/linux-2.4.20-8 /usr/src/linux
and then you could follow the instructions
to the letter, but yes, what you typed should
work, too.

Cheers,
Tink
 
  


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
UT2004 won't run with the latest (8.16.20) fglrx driver DaneM Linux - Games 4 08-26-2005 08:26 PM
How to run the Orinoco-usb driver relpats_eht Linux - Wireless Networking 4 04-30-2005 12:21 PM
Cannot get NVIDIA-Linux-x86_64-1.0-6629-pkg2.run to run properly doctorwebbox Linux - Hardware 0 02-06-2005 07:18 AM
how to use ndiswrapper to run windows driver? asphyxia Linux - Wireless Networking 19 07-09-2004 11:17 AM
How do I run a driver from a CD? Betti1214 Linux - Newbie 3 02-11-2004 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration