kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Minimul Config file for Dev Environment
@ 2016-07-30 19:54 Jitendra
  2016-07-30 20:25 ` François
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jitendra @ 2016-07-30 19:54 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Minimul Config file for Dev Environment
  2016-07-30 19:54 Minimul Config file for Dev Environment Jitendra
@ 2016-07-30 20:25 ` François
  2016-07-30 23:16 ` Greg KH
  2016-07-31  3:06 ` Aruna Hewapathirane
  2 siblings, 0 replies; 6+ messages in thread
From: François @ 2016-07-30 20:25 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Minimul Config file for Dev Environment
  2016-07-30 19:54 Minimul Config file for Dev Environment Jitendra
  2016-07-30 20:25 ` François
@ 2016-07-30 23:16 ` Greg KH
  2016-07-31  3:06 ` Aruna Hewapathirane
  2 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2016-07-30 23:16 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Minimul Config file for Dev Environment
  2016-07-30 19:54 Minimul Config file for Dev Environment Jitendra
  2016-07-30 20:25 ` François
  2016-07-30 23:16 ` Greg KH
@ 2016-07-31  3:06 ` Aruna Hewapathirane
  2016-07-31 10:24   ` Jitendra
  2 siblings, 1 reply; 6+ messages in thread
From: Aruna Hewapathirane @ 2016-07-31  3:06 UTC (permalink / raw)
  To: kernelnewbies

> 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-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 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Minimul Config file for Dev Environment
  2016-07-31  3:06 ` Aruna Hewapathirane
@ 2016-07-31 10:24   ` Jitendra
  2016-07-31 17:52     ` Aruna Hewapathirane
  0 siblings, 1 reply; 6+ messages in thread
From: Jitendra @ 2016-07-31 10:24 UTC (permalink / raw)
  To: kernelnewbies

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-creation-1403046.html
>
>Good luck - Aruna

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Minimul Config file for Dev Environment
  2016-07-31 10:24   ` Jitendra
@ 2016-07-31 17:52     ` Aruna Hewapathirane
  0 siblings, 0 replies; 6+ messages in thread
From: Aruna Hewapathirane @ 2016-07-31 17:52 UTC (permalink / raw)
  To: kernelnewbies

> 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 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160731/c421aa71/attachment.html 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-07-31 17:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-30 19:54 Minimul Config file for Dev Environment Jitendra
2016-07-30 20:25 ` François
2016-07-30 23:16 ` Greg KH
2016-07-31  3:06 ` Aruna Hewapathirane
2016-07-31 10:24   ` Jitendra
2016-07-31 17:52     ` Aruna Hewapathirane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).