You are not logged in.

#1 2010-05-02 22:15:16

crocowhile
Member
Registered: 2009-10-18
Posts: 56

generate automatic Kernel config from lsmod

Do you know if there is a tool that would generate a config file to recompile my kernel using an lsmod output to detect what modules are needed by the system? What I'd like to do is to recompile setting all the modules directly in the kernel so to achieve faster boot times.

Offline

#2 2010-05-02 22:18:18

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: generate automatic Kernel config from lsmod

is supported in kernel. localmodconfig or something like that. is described here:  http://wiki.archlinux.org/index.php/Ker … rom_Source

Last edited by wonder (2010-05-02 22:20:07)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-05-02 22:51:03

crocowhile
Member
Registered: 2009-10-18
Posts: 56

Re: generate automatic Kernel config from lsmod

wow that is as easy as "make localmodconfig"
gotta love that! thanks.

Offline

#4 2010-05-03 01:05:39

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: generate automatic Kernel config from lsmod

If you want to compile everything in the kernel, localyesconfig may also be interesting for you:

localyesconfig  - Update current config converting local mods to core

http://git.kernel.org/?p=linux/kernel/g … g/Makefile (see the help target)

Offline

#5 2010-05-03 02:58:48

crocowhile
Member
Registered: 2009-10-18
Posts: 56

Re: generate automatic Kernel config from lsmod

xduugu wrote:

localyesconfig  - Update current config converting local mods to core

And that is exactly what I needed. Thanks.

Offline

#6 2010-05-03 18:12:16

crocowhile
Member
Registered: 2009-10-18
Posts: 56

Re: generate automatic Kernel config from lsmod

update: localyesconfig doesn't really seem to work out of the box on my desktop. I get a very annoying kernel panic at boot. I'll try to troubleshoot it.

Offline

#7 2010-08-22 12:55:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: generate automatic Kernel config from lsmod

Edited out and posted a new thread

Last edited by graysky (2010-08-23 08:41:50)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB