LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-05-2010, 03:57 PM   #1
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Rep: Reputation: 35
Kernel module autoloading for configuration


I have been working on fine-tuning a kernel for a laptop I am using as a Gentoo server.

I am wondering if I could use the kernel's module autoloader to help me configure drivers.

Would it be possible to select a bunch of drivers to be loaded as modules (being careful with disk drivers and those needed to load modules) and inspect the loaded modules to find the drivers I need?

In other words, here is my plan:
1) Select every driver as a module, except what I know I need for disk access.
2) Install kernel (hardened-gentoo) and reboot.
3) Use lsmod to read off loaded modules.
4) Re-configure kernel to build in running modules, and turn off the rest.

Would this work?

Thank you for any help.
 
Old 07-14-2010, 10:50 PM   #2
lbrigman124
LQ Newbie
 
Registered: Jun 2006
Location: Oregon
Distribution: FC4-6,FC1,RH8-9, LFS,RHEL5, CENTOS5, Unbreakable5
Posts: 12

Rep: Reputation: 2
Yes it will work. Remember to keep a rescue kernel around when your latest
test kernel doesn't boot.

This is what most hardware companies do to optimize the Linux boot sequence.
 
Old 07-15-2010, 10:00 AM   #3
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Original Poster
Rep: Reputation: 35
Thank you, I'm glad to hear this. I already have a rescue kernel set up (plus a Knoppix disk as a second back-up, but that's a pain to use (10-minute boot time.))
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a kernel module call the function of another kernel module sceadu Programming 3 05-02-2011 02:22 AM
[Error] Kernel Module : No kernel module build environment saman007uk Debian 7 09-09-2006 06:34 PM
Autoloading module at boot artificialGekko Slackware 3 03-26-2005 05:05 AM
Autoloading a kernel module ernesto_cgf Linux - Software 2 09-01-2004 07:52 PM
kernel module ignorant newbie looking for any one with kernel module knowledge cpoet Slackware 4 11-24-2003 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration