LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-01-2016, 03:42 AM   #1
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Rep: Reputation: 17
Making a small kernel configuration using i.e. Meld


I am trying to minimize my kernel/modules by using "make localmodconfig". But, since I am not totally sure about that I "just" want to use the modules that are loaded in the system when issuing "make localmodconfig", I am thinking of using i.e. Meld or similar to pick something in between a large configuration and the smaller one. But, since some of the configuration options are dependent on and/or selected by other options, just melding the configuration files might not work I think. Will there be configuration warnings if I run i.e. "make silentoldconfig" on a "manually" changed configuration file that is in someway inconsistent?
 
Old 12-01-2016, 10:29 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Will there be configuration warnings if I run i.e. "make silentoldconfig" on a "manually" changed configuration file that is in someway inconsistent?
I suspect that you could very well get errors or warnings.

Are you just trying to reconfigure your kernel?

If so just install what you need during the "make modules" during the install or rebuild of your kernel.

Quote:
make silentoldconfig works exactly the same way as oldconfig does, but it does not print anything to the screen, unless it needs to ask a question about a new configuration option.
http://www.linuxtopia.org/online_boo...n/ch07s03.html

I'm not sure if make localmodconfig is the right tool and I've never used it.
-::-Best to wait on members with this experience.-::-
 
Old 12-01-2016, 11:21 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I don't understand.
You want a minimal kernel - but you want to add other stuff ????.
Then you want to screw it all up by manually editting the .config ????.

Hmmm - the make is pretty accommodating; it will just stop. It's easy enough to run the localmod then adjust the config options as you want (from within the menuconfig) - I normally turn on kernel debugging, but not much more.
 
Old 12-02-2016, 01:12 AM   #4
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by syg00 View Post
I don't understand.
You want a minimal kernel - but you want to add other stuff ????.
Then you want to screw it all up by manually editting the .config ????.

Hmmm - the make is pretty accommodating; it will just stop. It's easy enough to run the localmod then adjust the config options as you want (from within the menuconfig) - I normally turn on kernel debugging, but not much more.
I don't really WANT to screw it up, but I guess that might be the result. The meld step was to speed up the menuconfig/xconfig step so that I don't have to manually go through every sub menu, should I want to configure something in between the original configuration and localmod.
 
Old 12-02-2016, 11:17 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I suggest that, in the best of times, "the kernel is never particularly large."

Therefore, if you want to, you can go through the list of modules, making sure that you actually need them, or that any which you might not need are, in fact, "modules" and not compiled directly into the kernel.

You will very rapidly reach a point of diminishing returns here. Exactly how many kilobytes is " .. .. " worth to you?
 
Old 12-03-2016, 06:12 AM   #6
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,833

Rep: Reputation: 108Reputation: 108
http://www.linuxquestions.org/questi...ssible-752872/
 
Old 12-06-2016, 09:02 AM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I booted up a Knoppix disk and noticed which modules it loaded for my computer. I then built a custom (Gentoo ...) kernel configuration that embedded the necessary drivers for my hardware directly into the kernel. I was enable to completely eliminate the "initrd" pre-boot step.

Because Gentoo is a purely source-based distribution, I compiled everything specifically for my processor type, for single-processor since my (old ...) CPU didn't have cores, and so on.

Drivers for removable devices were compiled as loadable modules, which would be loaded when the device was inserted and removed when I pulled it out.

I wound up with a system that could boot in six seconds flat, and which breathed new life into a machine that had originally been sold with Windows 95 on it. The hardware finally failed, but I still have the disk drive. (Maybe someday, "Old Dobbin" will get a new and virtual after-life ...)
 
  


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
LXer: Fuduntu: A small distribution making it big LXer Syndicated Linux News 0 11-29-2011 02:30 AM
LXer: Linux: making small businesses possible LXer Syndicated Linux News 1 06-04-2007 07:42 AM
making a small script spx2 Programming 6 08-25-2006 04:53 AM
many warnings new programmer probably making small errors mshinska Programming 3 10-04-2005 11:40 AM
making small linux from SuSE 9.0 with fluxbox ajagodnik Linux From Scratch 0 12-26-2003 11:35 AM

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

All times are GMT -5. The time now is 01:36 PM.

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