LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-25-2009, 05:54 AM   #1
mbvo
Member
 
Registered: May 2006
Location: the land of confusion
Distribution: slackware-current
Posts: 220

Rep: Reputation: 31
stripping down the kernel


yesterday i downloaded 2.6.31.6 kernel and compiled it off my slackware huge-smp-2.6.29.6-smp config, then i decided to lighten and tweak my new kernel into a 2.6.31.6-lite file. i've already removed all the drivers that i dont use as far as sound a network goes, and al the sata, raid and lvm drivers, and changed the cpu from the default pentium pro to pentium m, and the kernel file is already 15 mb smaller and seems to be running slightly(almost only benchmark speeds) faster but now my question is how do i find out what drivers i need that dont show up in lsmod? such as ata drivers(i know its pata but thats all i know) how do i know if there is even a isa bus on this mobo? basicaly how do i know what drivers are being loaded at startup?
 
Old 11-25-2009, 05:58 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
http://www.linuxquestions.org/questi...ssible-752872/
 
Old 11-25-2009, 07:16 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by kaz2100 View Post
Thanks

alan_ri's link in that thread looks great but do you know which command option rob.rice was referring to?
 
Old 11-25-2009, 12:57 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
See here (chapter 7):
http://www.kroah.com/lkn/

To save time, I start with the generic kernel and leave things as modules that I probably won't need, or turn them off if I know I won't need them. Modules that are needed for accessing the HDD (ahci or sata and filesystem) should be built-in or you will need to use an initrd.

Some tips from me:

1) search the output of 'dmesg' for the following:
not
found
no
error

take action accordingly (disabling modules that might slow things down because they probe for things that don't exist and may actually cause instability)

2) Check 'lsmod' on a working system to see what modules you will likely need. You can also use the script found in the above reference.

3) Check 'lspci -vv' for PCI hardware that you have, and what modules they are using.

Last edited by H_TeXMeX_H; 11-25-2009 at 01:01 PM.
 
  


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
Kernel Stripping to provide OpenVZ support only shilpdixit Linux - Virtualization and Cloud 1 10-28-2009 12:32 PM
Stripping lines versus stripping bytes in a bash subshell. poorman_installer Programming 9 10-21-2009 08:36 AM
Kernel-stripping Dinithion Linux - General 2 05-29-2009 09:58 AM
Stripping down the kernel Oxagast Linux - Kernel 5 06-22-2006 04:23 PM
Chapter 5.33 Stripping LQ496873 Linux From Scratch 2 02-05-2006 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:34 AM.

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