LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-27-2014, 04:54 AM   #1
bvdyi
LQ Newbie
 
Registered: Feb 2012
Posts: 14

Rep: Reputation: Disabled
Smile how do I disable the net configurations in kernel menuconfig ???


hello:
I want to rebuild my kernel without any network functions.
my step is as below:
1. type "make menuconfig" to get in kernel configuration menu.
2. disable all net functions, like[*]network support ->[]network support.
3. save the kernel configuration and I did check Makefile to sure that this configuration is used in building progress~~~

After building, I checked kernel menuconfig to see all net items I disabled resumed to enable!!! then I run the new kernel... sure, the network are all available~~~ I have no idea~
I also modified "Kconfig" in net related folders, like :
"default y(or m) -> default n"...it doesn't work!!!
do I miss something??? does any one know how to build a kernel without network??? any advice will be very appreciate!!!
thank you very much~~~
 
Old 02-27-2014, 05:46 AM   #2
embLinux
Member
 
Registered: Dec 2013
Distribution: Mint
Posts: 54

Rep: Reputation: Disabled
when you have the setting of the kernel you want it to stay, be sure to make clean before a usual make. I often got that some settings stay in the image from before even if I've disabled them in the config
 
1 members found this post helpful.
Old 03-03-2014, 02:01 AM   #3
bvdyi
LQ Newbie
 
Registered: Feb 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by embLinux View Post
when you have the setting of the kernel you want it to stay, be sure to make clean before a usual make. I often got that some settings stay in the image from before even if I've disabled them in the config
hello:
thanks for reply, however I have done "make clean" before "make" kernel, ...it didn't work~~
do you have another ideas ?? thanks!
 
Old 03-03-2014, 02:12 AM   #4
embLinux
Member
 
Registered: Dec 2013
Distribution: Mint
Posts: 54

Rep: Reputation: Disabled
Actually that's the only thing I can think of why this error occurs.

Here are my steps when I create a different .config file. I usually use buildroot to generate the Image so it may differ a bit:

(1) make linux-menuconfig: save the new settings under "linux.config"
(2) make clean
(3) make menuconfig (that's buildroot): set the path to the custom linux config file (linux.config), in the kernel options.
(4) make

So I expect to get it working like this, if you don't use buildroot:

(1) in linux menuconfig save the new settings under e.g.: "linux.config"
(2) make clean
(3) in linux menuconfig load the linux.config
(4) make

If this still didn't help then maybe you have some kind of a hidden network package. (Like there is still another package about the network)

Kind regards

Last edited by embLinux; 03-03-2014 at 02:15 AM.
 
1 members found this post helpful.
  


Reply



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
kernel configurations for Network Mayurapriyan Linux - Embedded & Single-board computer 1 04-26-2012 12:48 PM
Disable /etc/issue.net vinaytp Linux - Newbie 3 12-16-2009 12:43 AM
about the configurations of fedora kernel wangjinyi Fedora 1 09-23-2005 07:56 AM
kernel configurations jcombs_31 Slackware 2 01-04-2005 08:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:51 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
Open Source Consulting | Domain Registration