LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-03-2012, 02:47 AM   #1
saman_artorious
Member
 
Registered: Sep 2008
Posts: 78

Rep: Reputation: 1
.config for a minimal kernel


I need to install minimal kernel. the machine cpu is intel, it should support usb and wireless. and.. nothing else. The system is set up to run qt programs.
Can anyone having the same experience send me the .config file please.
 
Old 03-03-2012, 03:00 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,498

Rep: Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570
Start with make help

There's something like
make allnoconfig

which answers no to everything. you then go back and put in exactly what you need. Watch yourself in the 'Processor type & features' menu (things like 'so-and-so namespaces') because some programs need these to run. It actually depends on your setup hugely.
 
Old 03-03-2012, 10:31 AM   #3
wpeckham
Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 781

Rep: Reputation: 174Reputation: 174
and ...

Unless I am totally misunderstanding, you might also need some support for some kind of hard drive controller and disk and a few other things beyond what you mentioned. I agree with the above technique for making your kernel minimal. Disable everything, then only add back in what you specifically require.

Some of what you specifically require will give you the option of including it in the kernel, or loading it as a module. Your choice should be detemined by which is best for your specific application or machine environment.
 
Old 03-08-2012, 06:17 AM   #4
saman_artorious
Member
 
Registered: Sep 2008
Posts: 78

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by wpeckham View Post
Some of what you specifically require will give you the option of including it in the kernel, or loading it as a module. Your choice should be detemined by which is best for your specific application or machine environment.
If I say it right setting an option to be part of the kernel, increases memory, bcoz when the kernel boots all these modules will be loaded into memory. Whereas setting an option as to be loaded as a module with insmod will reduce kernel space. if this is the case, you know, there are some disadvantages of loading a module like I need to know the name of all the modules and what each of them do to load the right one. So, if the kernel is supposed to get customized as minimum as possible to my needs, i think it's better to include all options in the kernel.
 
Old 03-09-2012, 02:40 AM   #5
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,498

Rep: Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570
You have some hardware in mind. What does that need to work? Make that list
You have some software in mind. What does that need to work? Include both lists. That's what people are saying. Tomsrtbt uses a 2.2 kernel (I think) and it goes on a floppy.
 
Old 03-09-2012, 10:44 AM   #6
wpeckham
Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 781

Rep: Reputation: 174Reputation: 174
Kernel modules

The advantage to modules is that you can include support for many more devices and options without the kernel size growing significantly. It will load ONLY what it needs to for the devices it detects. For most things you do not need to manually load modules, it is automatic.

The disadvantage to modules is that you DO need to include module support and the utilities to manage modules for the cases where automation does NOT work. While the kernel may be much smaller, the total size on disk of all kernel parts and modules may be much greater.

If you can page back the list to only what you need, which is not trivial but doable, you can make a monolithic module-free kernel that will still support your hardware. If your monolithic kernel grows TOO large, there may be a problem loading it on boot, so keep it trim. (See previous poster: I agree with that post.)

NOTE: I do NOT suggest going back to the 2.2 kernel sources unless you REALLY know what you are doing. And if you did, we would not be having this discussion.


I hope this helps.

Last edited by wpeckham; 03-09-2012 at 10:45 AM.
 
  


Reply

Tags
kernel config


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
Config 2.6.36.1 kernel (from kernel.org) using CentOS 5.4 x86_64 kernel .config whitewolf573 Linux - Kernel 2 12-11-2010 08:33 AM
Creating a minimal kernel MikeQ Linux - General 1 08-05-2009 03:59 PM
compiling apache 2.2.3 in minimal config keyF Linux - Software 2 09-29-2006 04:27 AM
minimal Kernel config file for HP nx9000 aviel Linux - Laptop and Netbook 0 08-11-2004 06:29 AM
Minimal samba config suggestion please. carboncopy Slackware 2 08-03-2004 09:18 PM


All times are GMT -5. The time now is 02:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration