Minimul Config file for Dev Environment
Hi Folks,
I usually compile the linux kernel by copying current system .config file. But the problem it compile bunch things that I don't which is required. My aim is setup filesystem environmrnt setup on my laptop.
Could somebody point the minimal .config file that will save from me reading all the options and compile the kernel quickly and test it.
PS: I google it out, but most .config files are very old. I am hoping somebody helping me for current mainline kernel.
---
Jitendra
Quoted 1 line · Jitendra
Hi Folks,
Hi!
Quoted 6 lines
I usually compile the linux kernel by copying current system .config file. But the problem it compile bunch things that I don't which is required. My aim is setup filesystem environmrnt setup on my laptop.
Could somebody point the minimal .config file that will save from me reading all the options and compile the kernel quickly and test it.
I use make default which creates a working .config and then edit it. You can use qemu (until some point) to make sure the kernel boots.
Good luck!
Signature · 1 line
Fran?ois
Quoted 8 lines · Jitendra
Hi Folks,
I usually compile the linux kernel by copying current system .config file. But the problem it compile bunch things that I don't which is required. My aim is setup filesystem environmrnt setup on my laptop.
Could somebody point the minimal .config file that will save from me reading all the options and compile the kernel quickly and test it.
'make localmodconfig'
Read the help file for it first, for how to use it properly (i.e. plug in all devices you want to use on the machine first.)
And a simple 'make help' provides a lot of information, I suggest reading it as it contains lots of options like this to help you out.
hope this helps,
greg k-h
Quoted 3 lines
Hi Folks,
I usually compile the linux kernel by copying current system .config
file. But the
Quoted 5 lines
problem it compile bunch things that I don't which is required. My aim is setup filesystem environmrnt setup on my laptop.
Could somebody point the minimal .config file that will save from me reading all the options and compile the kernel quickly and test it.
1 - Plug in and turn on *all* your external devices, this step is to ensure that
the laptop kernel loads all the required modules for your devices.
2 - On the laptop run:
lsmod > /tmp/jitendra-laptop
This will store the currently loaded modules in the laptop to the file:
/tmp/jitendra-laptop
3 - Pass it in as a LSMOD parameter to make:
make LSMOD=/tmp/jitendra-laptop localmodconfig
4 - Done !
5 - Install ccache. It will improve your build time dramatically. It caches objects. So it will reduce subsequent builds.
Some interesting history about localmodconfig is here:
http://www.h-online.com/open/features/Good-and-quick-kernel-configuration-creation-1403046.html
Good luck - Aruna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160730/716dcb3f/attachment.html
Hi Aruna,
Thanks for descriptive reply. I tried the below steps, but still localmodconfig ask for lots of configurations, which probably I don't want.
Could you please give some suggestion, that make <config> commands could be execute without giving any input along with minimual property.
PS: I am using Ubuntu Server 16.04.
---
Jitendra
Quoted 32 lines · Aruna Hewapathirane
Quoted 3 lines
Hi Folks,
I usually compile the linux kernel by copying current system .config
file. But the
Quoted 5 lines
problem it compile bunch things that I don't which is required. My aim is setup filesystem environmrnt setup on my laptop.
Could somebody point the minimal .config file that will save from me reading all the options and compile the kernel quickly and test it.
1 - Plug in and turn on *all* your external devices, this step is to ensure that
the laptop kernel loads all the required modules for your devices.2 - On the laptop run:
lsmod >/tmp/jitendra-laptopThis will store the currently loaded modules in the laptop to the file:
/tmp/jitendra-laptop3 - Pass it in as a LSMOD parameter to make:
make LSMOD=/tmp/jitendra-laptop localmodconfig4 - Done !
5 - Install ccache. It will improve your build time dramatically. It caches objects. So it will reduce subsequent builds.
Some interesting history about localmodconfig is here:
http://www.h-online.com/open/features/Good-and-quick-kernel-configuration-creation-1403046.htmlGood luck - Aruna
Quoted 1 line
Thanks for descriptive reply. I tried the below steps, but still
localmodconfig ask for lots of
Quoted 1 line
configurations, which probably I don't want.
If you run:
cat /boot/config-uname -r | wc -l
That will show you how may kernel configuration options are available on your active running kernel.
I am runing 4.3.0-rc5-next-20151012 and I have 4225 configuration options. And the number will keep
increasing with each release as more drivers keep getting added. The kernel is a moving target :)
Quoted 2 lines
Could you please give some suggestion, that make <config> commands could be execute without giving any input along with minimual property.
Sadly there is no quick-fix, you will have to use make menuconfig and go through and carefully
review what you need and then do the needful. It is a painful and lengthy process the first time.
But after you have done this then localmodconfig will help.
Quoted 1 line
PS: I am using Ubuntu Server 16.04.
If there is no specific reason you are using Ubuntu Server 16.04. I would suggest you try and install Arch Linux.
Arch is definitely not for newbies but their documentation is thorough and if you have the patience and determination
once all is done you will have gained far more valuable knowledge about the entire process. There are lot's
of youtube videos on how to install Arch Linux.
Arch Linux defines simplicity as *without unnecessary additions or modifications*.
Hope this helps - Aruna ( and Jitendra please try not to top post it is
considered impolite by the community )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160731/c421aa71/attachment.html