LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-10-2003, 08:43 AM   #1
Kermeat
LQ Newbie
 
Registered: Feb 2003
Posts: 7

Rep: Reputation: 0
How to compile a driver with the kernel?


Hi,

I would like to build a linux box functionning as a firewall. For security reasons, I can't allow the use of modules. The problem is that I have the DLink ethernet card DFE-580TX and it is not supported by the kernel 2.4.18.

However, I have found the sources of the driver on internet. Now I would like to put this driver in the kernel.

Someone knows how to do ?

 
Old 02-10-2003, 02:22 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Where did you get your 2.4.18 kernel?
The card is supported in mine :)

drivers/net/sundance.c

Cheers,
Tink
 
Old 02-10-2003, 08:35 PM   #3
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Re: How to compile a driver with the kernel?

Quote:
Originally posted by Kermeat
Hi,

I would like to build a linux box functionning as a firewall. For security reasons, I can't allow the use of modules. The problem is that I have the DLink ethernet card DFE-580TX and it is not supported by the kernel 2.4.18.

However, I have found the sources of the driver on internet. Now I would like to put this driver in the kernel.

Someone knows how to do ?

Welcome to LQ, Kermeat.

I've been in debates where people argue that using loadable kernel modules somehow violates your security. I would say, the malicious user who can replace your kernel module can just as easily replace your compressed kernel image, so not using modules doesnt offer you much additional security unless you dont reboot your server at all, in which case the cracker's kernel will never be used. Just my opinion.

If you want to use a driver that is not part of the standard kernel, you'll have to hack it to put it in. Does the sundance driver work for you?
 
Old 02-11-2003, 02:16 AM   #4
Kermeat
LQ Newbie
 
Registered: Feb 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Question

The server will never reboot as it will be used to distribuate an internet connection to clients of us.

I have the sundance.c and I know how to turn it into a module but when I am telling that my card is not supported by the kernel I mean that I can't choose it in the make menuconfig.

My aim would be to compile the sundance.c within the kernel with the usual command make dep clean bzImage.
 
Old 02-11-2003, 02:45 AM   #5
Kermeat
LQ Newbie
 
Registered: Feb 2003
Posts: 7

Original Poster
Rep: Reputation: 0
I have found how to do. Thank you.
I had my kernel on debian.org and sundance.c was not in drivers/net. The solution was to compile sundance.c and pci-scan.c and then to copy everything in drivers/net and now I can compile it within the kernel.
Else where did u have ur kernel ?
 
Old 02-11-2003, 04:04 AM   #6
Kermeat
LQ Newbie
 
Registered: Feb 2003
Posts: 7

Original Poster
Rep: Reputation: 0
I have downloaded the last kernel 2.4.20 and now everything is ok!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel-source, alsa-driver and kernel compile jasone Linux - General 13 05-26-2005 12:15 AM
How to compile new ALSA driver into old kernel? sandin Slackware 4 05-14-2005 05:06 AM
Driver won't compile on Kernel 2.6 - works fine on Kernel 2.4 c@sey Linux - Software 4 01-08-2005 01:01 PM
Is it possible to compile kernel with nvidia driver? subaruwrx Linux - Newbie 2 10-04-2004 06:18 AM
NVIDIA Driver Error after Kernel Compile lasindi Linux - General 2 04-26-2004 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:43 PM.

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