Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-16-2009, 04:23 PM   #1
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Rep: Reputation: 17
Compile the kernel with direct support for network driver

hey guys,

can someone provide some insight on how to implement a network driver right into the kernel instead of being a loadable module?

how do i proceed after running make menuconfig?

Old 07-16-2009, 04:37 PM   #2
Senior Member
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
It's something you do *in* make menuconfig.

However, all those config utilities are just frontends. Just open the config file in vim. Suppose you're building the r8169 network code. Change from 'm' for module to 'y' on these lines:

Fidn this line, change from
However, I am of the opinion that there is no practical benefit (only drawbacks) to doing this.

On a desktop or anything fancier, modules are The Right Thing (tm). Static monolithic kernels are more suited for the embedded / appliance / gadget. (The hue and cry of the static kernel fanboi shalt not be heard upon this thread, if you please.)

Last edited by jhwilliams; 07-16-2009 at 04:44 PM.
Old 07-16-2009, 04:43 PM   #3
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
You need to go to Device Drivers > Network device support. Find your driver and build it into the kernel (highlight the entry and hit "y"). Anything built into the kernel has an asterisk (*) and a module has (M).


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
Driver Does not Support WPA after a Kernel Compile brokenflea Slackware 2 03-03-2007 03:15 PM
how to compile the linux driver to support SMP kernel? beast Programming 1 08-01-2005 10:28 PM
how to compile the linux driver to support SMP kernel beast Programming 1 08-01-2005 10:19 AM
No compiler, support dependencies to compile winmodem driver t3gah Linux - Hardware 1 05-04-2005 12:04 AM
no network support after kernel compile schbond Linux - Networking 6 07-18-2003 02:19 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:21 AM.

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