LinuxQuestions.org
Help answer threads with 0 replies.
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 07-16-2009, 05:23 PM   #1
geek.ksa
Member
 
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?

regards
 
Old 07-16-2009, 05:37 PM   #2
jhwilliams
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
Code:
CONFIG_R8169=m
To:
Code:
CONFIG_R8169=y
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 05:44 PM.
 
Old 07-16-2009, 05:43 PM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
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).
 
  


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


All times are GMT -5. The time now is 10:59 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