* kernel customization
@ 2011-06-12 5:29 Venkateswarlu P
2011-06-12 8:38 ` Ali Bahar
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Venkateswarlu P @ 2011-06-12 5:29 UTC (permalink / raw)
To: kernelnewbies
For kernel customization , i.e for
make menuconfig
what is the easy way to know only required device drivers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110612/7bc0734f/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread* kernel customization 2011-06-12 5:29 kernel customization Venkateswarlu P @ 2011-06-12 8:38 ` Ali Bahar 2011-06-12 15:45 ` Greg KH 2011-06-13 11:41 ` Christopher Harvey 2 siblings, 0 replies; 4+ messages in thread From: Ali Bahar @ 2011-06-12 8:38 UTC (permalink / raw) To: kernelnewbies On Sun, Jun 12, 2011 at 10:59:56AM +0530, Venkateswarlu P wrote: > For kernel customization , i.e for > > make menuconfig > > what is the easy way to know only required device drivers I wish there were one! :-) The laziest approach may be to build everything -- eg with a "make allmodconfig" -- and then boot into the new kernel. Then lsmod will show you which drivers are actually in-use. The down side of this is the long compilation time, the disk usage, and the slower boot for this kernel. Also, the output of lsmod is not as obvious as you may expect: it may not be easy to dereference the loaded-modules' names to their CONFIG options. Other than that, you'd need to know which devices you have in your system, and how those translate into kernel CONFIG options. ... Come to think of it, the frequent case is a plain desktop, and that is easier: if you have not added new devices to your box, then just run lsmod within your running kernel (ie whatever your distro has provided), and see which devices it shows. Of course, lsmod doesn't show whatever has been _statically_ built into the kernel. You can run grep =y /boot/config*`uname -r` to find the statics, but this won't be much different from running "make menuconfig". In summary, 1. If you don't have any new devices in your system, and you have a running kernel provided by your distro: a. run 'lsmod' to see which modules are in use. b. run "make oldconfig". c. start pruning out all the things you don't want. This will take time, depending on how lean you want it. 2. If you have new devices, do as in (1), but add the new device. later, ali ^ permalink raw reply [flat|nested] 4+ messages in thread
* kernel customization 2011-06-12 5:29 kernel customization Venkateswarlu P 2011-06-12 8:38 ` Ali Bahar @ 2011-06-12 15:45 ` Greg KH 2011-06-13 11:41 ` Christopher Harvey 2 siblings, 0 replies; 4+ messages in thread From: Greg KH @ 2011-06-12 15:45 UTC (permalink / raw) To: kernelnewbies On Sun, Jun 12, 2011 at 10:59:56AM +0530, Venkateswarlu P wrote: > > For kernel customization? ,? i.e? for > > make menuconfig > > what is the easy way to know only required? device drivers make localmodconfig ^ permalink raw reply [flat|nested] 4+ messages in thread
* kernel customization 2011-06-12 5:29 kernel customization Venkateswarlu P 2011-06-12 8:38 ` Ali Bahar 2011-06-12 15:45 ` Greg KH @ 2011-06-13 11:41 ` Christopher Harvey 2 siblings, 0 replies; 4+ messages in thread From: Christopher Harvey @ 2011-06-13 11:41 UTC (permalink / raw) To: kernelnewbies On Sun, 12 Jun 2011 10:59:56 +0530, Venkateswarlu P <p.venkatesh551@gmail.com> wrote: > For kernel customization? ,? i.e? for > > make menuconfig > > what is the easy way to know only required? device drivers http://kmuto.jp/debian/hcl/ is a good site. run `lspci -n` and paste the output into the box on the page, then hit check. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-06-13 11:41 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-06-12 5:29 kernel customization Venkateswarlu P 2011-06-12 8:38 ` Ali Bahar 2011-06-12 15:45 ` Greg KH 2011-06-13 11:41 ` Christopher Harvey
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).