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
On Sun, Jul 31, 2016 at 01:24:58AM +0530, Jitendra wrote:
Hi Folks,
Hi!
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! -- François
On Sun, Jul 31, 2016 at 01:24:58AM +0530, Jitendra wrote:
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
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.
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-cr... Good luck - Aruna
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 On 07/30, Aruna Hewapathirane wrote:
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.
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-cr...
Good luck - Aruna
Thanks for descriptive reply. I tried the below steps, but still localmodconfig ask for lots of 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 :)
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.
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 )
participants (4)
-
Aruna Hewapathirane -
François -
Greg KH -
Jitendra