Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
From whence comes a sane, minimal kernel config?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2549

PostPosted: Fri Jun 27, 2014 3:13 am    Post subject: From whence comes a sane, minimal kernel config? Reply with quote

Hi,

Lacking guidance from Pappy's kernel-seeds, I'm looking for a new way. Or maybe an old one.

If I go to /usr/src/linux and type make help you get this and more:

Code:

Configuration targets:
  config          - Update current config utilising a line-oriented program
  nconfig         - Update current config utilising a ncurses menu based program
  menuconfig      - Update current config utilising a menu based program
  xconfig         - Update current config utilising a QT based front-end
  gconfig         - Update current config utilising a GTK based front-end
  oldconfig       - Update current config utilising a provided .config as base
  localmodconfig  - Update current config disabling modules not loaded
  localyesconfig  - Update current config converting local mods to core
  silentoldconfig - Same as oldconfig, but quietly, additionally update deps
  defconfig       - New config with default from ARCH supplied defconfig
  savedefconfig   - Save current config as ./defconfig (minimal config)
  allnoconfig     - New config where all options are answered with no
  allyesconfig    - New config where all options are accepted with yes
  allmodconfig    - New config selecting modules when possible
  alldefconfig    - New config with all symbols set to default
  randconfig      - New config with random answer to all options
  listnewconfig   - List new options
  olddefconfig    - Same as silentoldconfig but sets new symbols to their default value


So what I want to know is this: If I make defconfig has that been altered to fit the architecture or does it undo things that the Gentoo team has done, or am I reading too much into this and nothing was done?

Also, has anyone tried this out? http://defconfigman.sourceforge.net

What I'm after is this:

  1. Minimal configuration that supports my actual hardware.
  2. Minimal "normal" support for networking, etc, meaning that a typical non-special server or workstation (as appropriate) would expect this feature.
  3. Make any special additions or omissions as I feel fit after that.


This all comes from my desire to start from something rational.

Thanks.
Back to top
View user's profile Send private message
mackal
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2011
Posts: 87

PostPosted: Fri Jun 27, 2014 4:00 am    Post subject: Reply with quote

You can always take the latest Pappy's and run make oldconfig
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2549

PostPosted: Fri Jun 27, 2014 5:07 am    Post subject: Reply with quote

That's only going to be good for so long, right?

I'm looking for a rational way forward that doesn't take a half a day to read through the docs each time.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Fri Jun 27, 2014 8:47 am    Post subject: Reply with quote

To get a minimal booting kernel, run "make defconfig" and then enable in menuconfig support for your SATA chipset and root filesystem (built-in, not modules).

"make localyesconfig" will in addition compile in all currently loaded modules (useful if you are booted from live media with a generic kernel).
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2549

PostPosted: Fri Jun 27, 2014 3:42 pm    Post subject: Reply with quote

OK so defconfig gives me the minimum of what's considered bootable, without support for hardware. That's what I was hoping for.

Thanks.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2549

PostPosted: Fri Jun 27, 2014 3:49 pm    Post subject: Reply with quote

It seems that when I do defconfig and then localmodconfig it modifies the existing .config (which is defconfig) rather than replacing the existing config altogether.
Back to top
View user's profile Send private message
mackal
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2011
Posts: 87

PostPosted: Fri Jun 27, 2014 5:32 pm    Post subject: Reply with quote

1clue wrote:
That's only going to be good for so long, right?

I'm looking for a rational way forward that doesn't take a half a day to read through the docs each time.


Most of what he did AFAIK was just run make oldconfig and make sure the choices he made were intelligent, but as the base seed gets older, this will be harder on you. (I'm sure you can just keep a base seed around for each version if you want to)
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2549

PostPosted: Fri Jun 27, 2014 7:01 pm    Post subject: Reply with quote

If defconfig truly gives a minimal kernel, I'd much rather just keep a list of things I want to turn on in ~/kernelprefs or something, and then do it manually.

I was just looking for a minimum sane configuration from which to work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum