What is the fastest way to build and boot a kernel

Guru Das S gurooodas at gmail.com
Tue Apr 18 14:15:10 EDT 2017


On 18 April 2017 at 11:04, Code Soldier1 <codesoldier1 at gmail.com> wrote:
> Thanks a lot Greg and Peter.
Hello,

Top-posting is frowned upon in the Linux Kernel mailing lists. Please
use the interleaved style instead, as described in this Wikipedia
article: https://en.wikipedia.org/wiki/Posting_style#Placement_of_replies

> On Tue, Apr 18, 2017 at 10:44 AM, Greg KH <greg at kroah.com> wrote:
>> On Tue, Apr 18, 2017 at 10:38:52AM -0700, Code Soldier1 wrote:
>>> Hi Greg,
>>>
>>> No I did not know about 'make localmodconfig'. Can you kindly explain.
>>
>> Did you look at the help in the kernel makefile:
>>
>>         make help
>> will show you what the different options do.
>>
>> localmodconfig makes a kernel configuration based on your system and the
>> modules loaded, which is much smaller than the "full distribution"
>> kernel build, for all hardware in the world, which you don't usually
>> want for your own development.
>>
>> There's also a whole book, free online, Linux Kernel in a Nutshell, that
>> describes how to configure, build, and boot a custom kernel, that might
>> help you out.
>>
>>> As far as the change is concerned I am planning to change a few things
>>> and experiment, so there is nothing specific.
>>
>> Then experiment away and see how it goes!
>>
>> good luck,
>>
>> greg k-h
>

To add to what Greg said, disabling the staging drivers config option
in the .config file speeds up the entire process. To do this, just
comment out the CONFIG_STAGING line in that file.

>
>
> --
> CS1
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Guru Das Srinagesh.



More information about the Kernelnewbies mailing list