public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Kernel questions
@ 2010-08-18 19:30 Elmar Hinz
  2010-08-18 20:00 ` Nganon
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Elmar Hinz @ 2010-08-18 19:30 UTC (permalink / raw
  To: gentoo-user

1.) Is there a Map: modules to configration parameters?

"lspci -k" lists me all modules of the running genkernel.
Unfortunately the configuration parameters of the kernel have
different names.


2.) Which approach would you recommend?

To customize the kernel I can either strip down the configuration of
the genkernel or start with an empty .config file.


3.) Is there a concept behind the default settings of make menuconfig
if you start with an empty .config?

I don't see it.


4.)  Is there a concept behind the default settings of make if .config is empty?

Similar question. Running make with an empty .config file starts a
questionary on the shell, with given default settings.

Accepting all defaults doesn't even contain ext2 or ext3 on the one
hand, but a few comparingly rare selections on the other.


5.) Where are my platform specific drivers?

 X86 Platform Specific Device Drivers  --->

I get them if I strip down genkernel.

Now I started with the shell questionary and than I edit the result
with menuconfig. The submenu doesn't open or is empty.

Al



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

* Re: [gentoo-user] Kernel questions
  2010-08-18 19:30 [gentoo-user] Kernel questions Elmar Hinz
@ 2010-08-18 20:00 ` Nganon
  2010-08-18 20:03 ` Andrea Conti
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 16+ messages in thread
From: Nganon @ 2010-08-18 20:00 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 732 bytes --]

On 18 August 2010 22:30, Elmar Hinz <oss.elmar@googlemail.com> wrote:

> 1.) Is there a Map: modules to configration parameters?
>
> "lspci -k" lists me all modules of the running genkernel.
> Unfortunately the configuration parameters of the kernel have
> different names.
>
>
Submit your lspci -n output here and get amused by the magic
http://kmuto.jp/debian/hcl/
You can then search the modules in menuconfig using / and shift+insert

For the rest of your questions, in short, all I can say is I followed the
instructions in the gentoo handbook:
cd /usre/srx/linux
make menuconfig
and spend hours for customizing my kernel using menuconfig and its help.

I am sure more experienced users will show you a better way in a minute.

[-- Attachment #2: Type: text/html, Size: 1241 bytes --]

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

* Re: [gentoo-user] Kernel questions
  2010-08-18 19:30 [gentoo-user] Kernel questions Elmar Hinz
  2010-08-18 20:00 ` Nganon
@ 2010-08-18 20:03 ` Andrea Conti
  2010-08-18 20:28   ` Paul Hartman
  2010-08-19 12:00 ` [gentoo-user] " Elmar Hinz
  2010-08-19 15:44 ` [gentoo-user] " Florian Philipp
  3 siblings, 1 reply; 16+ messages in thread
From: Andrea Conti @ 2010-08-18 20:03 UTC (permalink / raw
  To: gentoo-user

Hello,

> 1.) Is there a Map: modules to configration parameters?

I don't think so.
The help text for most modules has a reference to the actual module name
(something like "the module will be called xxxx"). If you're looking for
something specific you could try grepping for that in the
/usr/src/linux/**/Kconfig files and see what setting it belongs to.

> To customize the kernel I can either strip down the configuration of
> the genkernel or start with an empty .config file.

I generally start with a .config from a similar machine :)
Failing that, I prefer the "empty config" route.

> 3.) Is there a concept behind the default settings of make menuconfig
> if you start with an empty .config?

AFAIK every time you have no .config you get the default settings for
the current arch, which are created by running "make defconfig". I guess
they're what Linux is using... (just kidding -- I have no clue)

> 5.) Where are my platform specific drivers?
> 
>  X86 Platform Specific Device Drivers  --->

Most settings in that submenu depend on specifig things being enabled
elsewhere (e.g. an ACPI driver). If you have actually selected
X86_PLATFORM_DEVICES=Y, and you get an empty submenu, chances are the
rest of your configuration is such that nothing in there can be selected.

For more information check the contents of
/usr/src/linux/drivers/platform/x86/Kconfig

HTH,
andrea



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

* Re: [gentoo-user] Kernel questions
  2010-08-18 20:03 ` Andrea Conti
@ 2010-08-18 20:28   ` Paul Hartman
  0 siblings, 0 replies; 16+ messages in thread
From: Paul Hartman @ 2010-08-18 20:28 UTC (permalink / raw
  To: gentoo-user

On Wed, Aug 18, 2010 at 3:03 PM, Andrea Conti <alyf@alyf.net> wrote:
> Most settings in that submenu depend on specifig things being enabled
> elsewhere (e.g. an ACPI driver). If you have actually selected
> X86_PLATFORM_DEVICES=Y, and you get an empty submenu, chances are the
> rest of your configuration is such that nothing in there can be selected.

Also, in menuconfig you can type / which will allow you to search. The
search results will tell you which other options the items depend on
and which menu they are located in, so you can find them and enable as
needed.



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

* [gentoo-user] Re: Kernel questions
  2010-08-18 19:30 [gentoo-user] Kernel questions Elmar Hinz
  2010-08-18 20:00 ` Nganon
  2010-08-18 20:03 ` Andrea Conti
@ 2010-08-19 12:00 ` Elmar Hinz
  2010-08-19 15:44 ` [gentoo-user] " Florian Philipp
  3 siblings, 0 replies; 16+ messages in thread
From: Elmar Hinz @ 2010-08-19 12:00 UTC (permalink / raw
  To: gentoo-user

Thank you all.



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

* Re: [gentoo-user] Kernel questions
  2010-08-18 19:30 [gentoo-user] Kernel questions Elmar Hinz
                   ` (2 preceding siblings ...)
  2010-08-19 12:00 ` [gentoo-user] " Elmar Hinz
@ 2010-08-19 15:44 ` Florian Philipp
  2010-08-19 20:52   ` Elmar Hinz
  2010-08-20 14:43   ` Bill Longman
  3 siblings, 2 replies; 16+ messages in thread
From: Florian Philipp @ 2010-08-19 15:44 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

Am 18.08.2010 21:30, schrieb Elmar Hinz:
> 1.) Is there a Map: modules to configration parameters?
> 
> "lspci -k" lists me all modules of the running genkernel.
> Unfortunately the configuration parameters of the kernel have
> different names.
> 
> 
> 2.) Which approach would you recommend?
> 

With new enough kernel sources (gentoo-sources in stable are good
enough), there is `make localmodconfig` which removes all mods from your
current .config which are not loaded.
There is also `make localyesconfig` which does the same but doesn't
create modules.

Hope this helps,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

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

* Re: [gentoo-user] Kernel questions
  2010-08-19 15:44 ` [gentoo-user] " Florian Philipp
@ 2010-08-19 20:52   ` Elmar Hinz
  2010-08-20 14:43   ` Bill Longman
  1 sibling, 0 replies; 16+ messages in thread
From: Elmar Hinz @ 2010-08-19 20:52 UTC (permalink / raw
  To: gentoo-user

>
> With new enough kernel sources (gentoo-sources in stable are good
> enough), there is `make localmodconfig` which removes all mods from your
> current .config which are not loaded.
> There is also `make localyesconfig` which does the same but doesn't
> create modules.
>
> Hope this helps,

Yes. Sounds good. I will do some experiments with it and maybe fresh
up some wiki pages.

Can you combine it with genkernel?

genkernel --localmodconfig all ?

Al



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

* Re: [gentoo-user] Kernel questions
  2010-08-19 15:44 ` [gentoo-user] " Florian Philipp
  2010-08-19 20:52   ` Elmar Hinz
@ 2010-08-20 14:43   ` Bill Longman
  2010-08-20 18:44     ` Marc Joliet
  1 sibling, 1 reply; 16+ messages in thread
From: Bill Longman @ 2010-08-20 14:43 UTC (permalink / raw
  To: gentoo-user

On 08/19/2010 08:44 AM, Florian Philipp wrote:
> Am 18.08.2010 21:30, schrieb Elmar Hinz:
>> 1.) Is there a Map: modules to configration parameters?
>>
>> "lspci -k" lists me all modules of the running genkernel.
>> Unfortunately the configuration parameters of the kernel have
>> different names.
>>
>>
>> 2.) Which approach would you recommend?
>>
> 
> With new enough kernel sources (gentoo-sources in stable are good
> enough), there is `make localmodconfig` which removes all mods from your
> current .config which are not loaded.
> There is also `make localyesconfig` which does the same but doesn't
> create modules.

Al, if you look in the README file in the top of the kernel tree,
there's a very good section with explanations about the various kernel
configuration options available for make.

I find it amazing, though, that even if I copy my old .config, it still
takes me so much time to make sure all the settings are correct for a
given machine. Hasn't anyone come up with a handy
look-through-my-lspci-output-and-create-a-skeleton-kernel-config tool?
Or does it already exist and we just call him "Pappy"?



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

* Re: [gentoo-user] Kernel questions
  2010-08-20 14:43   ` Bill Longman
@ 2010-08-20 18:44     ` Marc Joliet
  2010-08-20 19:28       ` Bill Longman
  0 siblings, 1 reply; 16+ messages in thread
From: Marc Joliet @ 2010-08-20 18:44 UTC (permalink / raw
  To: Gentoo-User ML

[-- Attachment #1: Type: text/plain, Size: 820 bytes --]

Am Fri, 20 Aug 2010 07:43:40 -0700
schrieb Bill Longman <bill.longman@gmail.com>:

[...]
> I find it amazing, though, that even if I copy my old .config, it still
> takes me so much time to make sure all the settings are correct for a
> given machine. Hasn't anyone come up with a handy
> look-through-my-lspci-output-and-create-a-skeleton-kernel-config tool?
> Or does it already exist and we just call him "Pappy"?

Not really what you want, but somebody thought of something similar. Since
Linux 2.6.32 you can do:
	
	make localmodconfig [1].

That will take the output of lsmod (so you need an already running kernel,
e.g., from a live CD) and remove all unnecessary modules from the existing
kernel .config.

[1]: see http://kernelnewbies.org/Linux_2_6_32, section 1.8.

HTH
-- 
Marc Joliet

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-user] Kernel questions
  2010-08-20 18:44     ` Marc Joliet
@ 2010-08-20 19:28       ` Bill Longman
  2010-08-20 19:35         ` Paul Hartman
  0 siblings, 1 reply; 16+ messages in thread
From: Bill Longman @ 2010-08-20 19:28 UTC (permalink / raw
  To: gentoo-user

On 08/20/2010 11:44 AM, Marc Joliet wrote:
> Am Fri, 20 Aug 2010 07:43:40 -0700
> schrieb Bill Longman <bill.longman@gmail.com>:
> 
> [...]
>> I find it amazing, though, that even if I copy my old .config, it still
>> takes me so much time to make sure all the settings are correct for a
>> given machine. Hasn't anyone come up with a handy
>> look-through-my-lspci-output-and-create-a-skeleton-kernel-config tool?
>> Or does it already exist and we just call him "Pappy"?
> 
> Not really what you want, but somebody thought of something similar. Since
> Linux 2.6.32 you can do:
> 	
> 	make localmodconfig [1].
> 
> That will take the output of lsmod (so you need an already running kernel,
> e.g., from a live CD) and remove all unnecessary modules from the existing
> kernel .config.
> 
> [1]: see http://kernelnewbies.org/Linux_2_6_32, section 1.8.

Thanks, Marc.

So, if I boot off the livecd and I have eighty-five sata_ modules and
forty-two RAID modules and 2.5 handsful of various scsi/iscsi modules, I
should probably "modprobe -r" first, all those that aren't applicable to
my given system then run the make? I'll take a look. Thanks again.



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

* Re: [gentoo-user] Kernel questions
  2010-08-20 19:28       ` Bill Longman
@ 2010-08-20 19:35         ` Paul Hartman
  0 siblings, 0 replies; 16+ messages in thread
From: Paul Hartman @ 2010-08-20 19:35 UTC (permalink / raw
  To: gentoo-user

On Fri, Aug 20, 2010 at 2:28 PM, Bill Longman <bill.longman@gmail.com> wrote:
> On 08/20/2010 11:44 AM, Marc Joliet wrote:
>> Am Fri, 20 Aug 2010 07:43:40 -0700
>> schrieb Bill Longman <bill.longman@gmail.com>:
>>
>> [...]
>>> I find it amazing, though, that even if I copy my old .config, it still
>>> takes me so much time to make sure all the settings are correct for a
>>> given machine. Hasn't anyone come up with a handy
>>> look-through-my-lspci-output-and-create-a-skeleton-kernel-config tool?
>>> Or does it already exist and we just call him "Pappy"?
>>
>> Not really what you want, but somebody thought of something similar. Since
>> Linux 2.6.32 you can do:
>>
>>       make localmodconfig [1].
>>
>> That will take the output of lsmod (so you need an already running kernel,
>> e.g., from a live CD) and remove all unnecessary modules from the existing
>> kernel .config.
>>
>> [1]: see http://kernelnewbies.org/Linux_2_6_32, section 1.8.
>
> Thanks, Marc.
>
> So, if I boot off the livecd and I have eighty-five sata_ modules and
> forty-two RAID modules and 2.5 handsful of various scsi/iscsi modules, I
> should probably "modprobe -r" first, all those that aren't applicable to
> my given system then run the make? I'll take a look. Thanks again.

And I suppose you'd also have to beware of any removable devices that
you may not have plugged in at the time which require kernel drivers.



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

* [gentoo-user] Re: Kernel Questions
  2013-01-23 17:53 [gentoo-user] Kernel Questions Silvio Siefke
@ 2013-01-23  8:30 ` Nicolas Sebrecht
  2013-01-24 13:21   ` Silvio Siefke
  0 siblings, 1 reply; 16+ messages in thread
From: Nicolas Sebrecht @ 2013-01-23  8:30 UTC (permalink / raw
  To: gentoo-user; +Cc: Nicolas Sebrecht

The 23/01/13, Silvio Siefke wrote:

> I use the good old Pentium 4 on the desktop and an atom on the laptop.
> But I have often the problem when the computer has much to do, that the 
> system freeze. That's on the atom often so. The opera is my favorite 
> Browser, but often the call on a website and the result end in freeze.
> What is really strange, when i run emerge --sync ; emerge -avuDN @world,
> the Pentium 4 is faster as the Atom. Is that normal?

Did you check if the system is swapping when that happen?

-- 
Nicolas Sebrecht


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

* Re: [gentoo-user] Re: Kernel Questions
  2013-01-24 13:21   ` Silvio Siefke
@ 2013-01-23 13:53     ` William Kenworthy
  2013-01-23 15:09       ` Silvio Siefke
  2013-01-24 16:12     ` Nicolas Sebrecht
  1 sibling, 1 reply; 16+ messages in thread
From: William Kenworthy @ 2013-01-23 13:53 UTC (permalink / raw
  To: gentoo-user

On 24/01/13 21:21, Silvio Siefke wrote:
> Hello,
> 
> On Wed, 23 Jan 2013 09:30:02 +0100
> Nicolas Sebrecht <nsebrecht@piing.fr> wrote:
> 
>> Did you check if the system is swapping when that happen?
> 
> Im sorry, you mean Swap? How can check them best?
> 
> 
> Thank you & Greetings
> Silvio
> 

Hi Silvio, can you check the date on your systems ... your emails are
future dated which kinda stuffs things up ...

BillK




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

* Re: [gentoo-user] Re: Kernel Questions
  2013-01-23 13:53     ` William Kenworthy
@ 2013-01-23 15:09       ` Silvio Siefke
  0 siblings, 0 replies; 16+ messages in thread
From: Silvio Siefke @ 2013-01-23 15:09 UTC (permalink / raw
  To: gentoo-user

Hello,

On Wed, 23 Jan 2013 21:53:58 +0800
William Kenworthy <billk@iinet.net.au> wrote:

> Hi Silvio, can you check the date on your systems ... your emails are
> future dated which kinda stuffs things up ...

Yes thank you i have change it. 


Thank you & Greetings
Silvio


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

* Re: [gentoo-user] Re: Kernel Questions
  2013-01-23  8:30 ` [gentoo-user] " Nicolas Sebrecht
@ 2013-01-24 13:21   ` Silvio Siefke
  2013-01-23 13:53     ` William Kenworthy
  2013-01-24 16:12     ` Nicolas Sebrecht
  0 siblings, 2 replies; 16+ messages in thread
From: Silvio Siefke @ 2013-01-24 13:21 UTC (permalink / raw
  To: gentoo-user

Hello,

On Wed, 23 Jan 2013 09:30:02 +0100
Nicolas Sebrecht <nsebrecht@piing.fr> wrote:

> Did you check if the system is swapping when that happen?

Im sorry, you mean Swap? How can check them best?


Thank you & Greetings
Silvio


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

* [gentoo-user] Re: Kernel Questions
  2013-01-24 13:21   ` Silvio Siefke
  2013-01-23 13:53     ` William Kenworthy
@ 2013-01-24 16:12     ` Nicolas Sebrecht
  1 sibling, 0 replies; 16+ messages in thread
From: Nicolas Sebrecht @ 2013-01-24 16:12 UTC (permalink / raw
  To: gentoo-user; +Cc: Nicolas Sebrecht

On Thu, Jan 24, 2013 at 02:21:22PM +0100, Silvio Siefke wrote:
> Hello,
> 
> On Wed, 23 Jan 2013 09:30:02 +0100
> Nicolas Sebrecht <nsebrecht@piing.fr> wrote:
> 
> > Did you check if the system is swapping when that happen?
> 
> Im sorry, you mean Swap? How can check them best?

  % free -m

The htop tool is good, too.

-- 
Nicolas Sebrecht


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

end of thread, other threads:[~2013-01-24 16:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-18 19:30 [gentoo-user] Kernel questions Elmar Hinz
2010-08-18 20:00 ` Nganon
2010-08-18 20:03 ` Andrea Conti
2010-08-18 20:28   ` Paul Hartman
2010-08-19 12:00 ` [gentoo-user] " Elmar Hinz
2010-08-19 15:44 ` [gentoo-user] " Florian Philipp
2010-08-19 20:52   ` Elmar Hinz
2010-08-20 14:43   ` Bill Longman
2010-08-20 18:44     ` Marc Joliet
2010-08-20 19:28       ` Bill Longman
2010-08-20 19:35         ` Paul Hartman
  -- strict thread matches above, loose matches on Subject: below --
2013-01-23 17:53 [gentoo-user] Kernel Questions Silvio Siefke
2013-01-23  8:30 ` [gentoo-user] " Nicolas Sebrecht
2013-01-24 13:21   ` Silvio Siefke
2013-01-23 13:53     ` William Kenworthy
2013-01-23 15:09       ` Silvio Siefke
2013-01-24 16:12     ` Nicolas Sebrecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox