LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compile the kernel with direct support for network driver (https://www.linuxquestions.org/questions/linux-newbie-8/compile-the-kernel-with-direct-support-for-network-driver-740624/)

geek.ksa 07-16-2009 04:23 PM

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

jhwilliams 07-16-2009 04:37 PM

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.)

tuxrules 07-16-2009 04:43 PM

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).


All times are GMT -5. The time now is 03:14 PM.