kernel compiliing - howto diminish the number of drivers and modules
hello
i have been reading on how to compile the Kernel (using debian) such as following this doc: http://www.howtoforge.com/kernel_com...on_debian_etch but i would like to find out if there is some technique to allow me to compile only those drivers required by my hardware. is this a possible scenario? is there a script/program that probes the hardware for requirements to facilitate the compiling? thanks, Nicolas |
Hi,
To get info about hardware you can use: - lspci possibly using -v, - lsusb the -v option is also available, - Have a look at the /var/log/dmesg file, - The manuals that came with your hardware, - If you are running Debian: Sysinfo (Applications -> System Tools). Do make sure you have a working kernel to fall back on! Hope this helps. |
Plug in all the hardware that you want to run on that machine and make sure that the drivers are loaded. Then make a new configuration with
Code:
make localmodconfig And I second druuna's recommendation to have a working backup kernel. |
You can also look at the output of lsmod to see which modules have been loaded.
Booting up one of those stand-alone CD-ROMs can also be informative since those are "designed to run on anything at all." The recommendation of always having a known-good kernel at your disposal is, of course, crucial. :eek: You can expect to have some false starts with getting it to work. But you'll be rewarded by a Linux system that can be up-and-running in six seconds flat. |
thanks TobiSGD
that is what i was looking for. since you gave that info - i was also able to find this other nugget from ArchLinux: https://wiki.archlinux.org/index.php...on_From_Source Quote:
many thanks, |
Quote:
|
Tobi
i am stuck (sorry) i have compiled the kernel but it is failing to find my network adapter Code:
04:00.0 Ethernet controller: Atheros Communications Device 1083 (rev c0) http://www.kernel.org/pub/linux/kern...6.39.4.tar.bz2 any suggestion on how i can fix this? thanks, |
After running make localmodconfig run start the menu with make menuconfig, search for your adapter in the network drivers section and enable the driver, then recompile.
I don't have experience with Atheros chips, so that is all I can give as help. |
apparently all the atheros drivers are set as modules in the kernel 2.6.39.4
Code:
~# cat /boot/config-2.6.39.4-brainpowered-20110825-amd64 | grep -i ather Code:
~# cat /boot/config-3.0.3-brainpowered-01 | grep -i ather thanks, |
All times are GMT -5. The time now is 06:38 AM. |