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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-10-2003, 08:43 AM
|
#1
|
LQ Newbie
Registered: Feb 2003
Posts: 7
Rep:
|
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 ?

|
|
|
02-10-2003, 02:22 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Where did you get your 2.4.18 kernel?
The card is supported in mine :)
drivers/net/sundance.c
Cheers,
Tink
|
|
|
02-10-2003, 08:35 PM
|
#3
|
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:
|
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?
|
|
|
02-11-2003, 02:16 AM
|
#4
|
LQ Newbie
Registered: Feb 2003
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
02-11-2003, 02:45 AM
|
#5
|
LQ Newbie
Registered: Feb 2003
Posts: 7
Original Poster
Rep:
|
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 ?
|
|
|
02-11-2003, 04:04 AM
|
#6
|
LQ Newbie
Registered: Feb 2003
Posts: 7
Original Poster
Rep:
|
I have downloaded the last kernel 2.4.20 and now everything is ok!
|
|
|
All times are GMT -5. The time now is 12:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|