[SOLVED] kernel compiliing - howto diminish the number of drivers and modules
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
- 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!
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
, edit it to your needs and compile. After that try if the kernel works with your hardware.
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.
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.
Note: for more information about the new build target "localmodconfig" refer to the 2.6.32 release notes.
Note: There is a companion to localmodconfig called localyesconfig. Running it as a make target will convert all modules in the .config into[*] enabled with the net effect being all modules getting hard-coded into the kernel.
there is a lot of good info on ArchLinux wiki - maybe i should run that distro instead of Ubuntu
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.