02-17-2010
Cut out all the modules/drivers you don't need and you'll have a pretty close to minimal 2.6.x kernel.
The smallest kernel you can get is two megs and change, so there's no point obsessing; you won't make it significantly smaller or measurably faster. Besides, some "fluff" you can get rid of are things you actually want. Trust me, you'll be kicking yourself if you leave out /proc/config.gz support.
Last edited by Corona688; 02-17-2010 at 05:08 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all,
I need some help in compiling a new kernel. I am using RHEL 5 with kernel version 2.6.18.
I have downloaded a kernel from link http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.6.tar.bz2
1. cd /usr/src
2. wget -c http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2
3.... (1 Reply)
Discussion started by: vikas027
1 Replies
2. UNIX for Dummies Questions & Answers
Hello,
Please let me know how to compile a linux kernel on redhat. I am relatively new in this area so please be a little patient with me. Here is the file I was consulting with the following details:
Compiling the Linux Kernel on Redhat 7.1
This page describes how to install... (2 Replies)
Discussion started by: bhattbonny
2 Replies
3. Linux
Hi All,
I try to compile new kernel in FC5.
New kernel version - 2.6.20.21
Operating System - Fedora 5
I have followed these steps,
make menuconfig
make
make modules
make modules_install
make install
Then i have changed the grub.cong and reboot the system with new kernel.
The... (0 Replies)
Discussion started by: viveksnv
0 Replies
4. Debian
Hello Friends,
I know how to compile the kernel .
But I don't know how to compile the kernel with OFED.
Can any one assist me on that.
Or can anyone send me the link.
Thank you. (0 Replies)
Discussion started by: pradeepreddy
0 Replies
5. Linux
Dear experts,
How can compile the kernel as application mode?
Thanks in advance. (2 Replies)
Discussion started by: Zaxon
2 Replies
6. UNIX for Dummies Questions & Answers
Debian lenny uses the 2.6.26 kernel by default. Can I compile the most recent kernel from kernel.org and use it instead ? Will the new kernel be incompatible with other installed softwares ? (1 Reply)
Discussion started by: cyler
1 Replies
7. Linux
Hi there,
I'm currently writing a program/module which makes use of the Linux Security Modules (LSM), which provide hooks for some security .
The bad thing about it is: The function to set the hook to the LSM is not exported. That means, I can't just write a loadable kernel module, but have to... (3 Replies)
Discussion started by: disaster
3 Replies
8. Ubuntu
Hi
I'm compiling a real-time kernel in linux, but after I type make bzImage things end with this:
(Things going well doing CC and things)....
CC arch/x86/kernel/kgdb.o
CC arch/x86/kernel/vm86_32.o
CC arch/x86/kernel/early_printk.o
CC arch/x86/kernel/ipipe.o... (2 Replies)
Discussion started by: mdop
2 Replies
9. UNIX for Dummies Questions & Answers
I am not a newbie to Linux, i have been using Linux as my desktop for 4 years, but i am just an end user to Linux, no advanced knowledge to it.
I knew that, i can download generic linux kernel and compile it by myself, but how about Unix? how can i get an Unix kernel and compile it ? or no this... (5 Replies)
Discussion started by: wong.sie.ung
5 Replies
10. Slackware
Hi,
first of all I'm 110% newbie, sorry for any mistake if I made it.
In my country there are no normal or active linux forums, so i found this forum.
Ok, that's for begining, but not for may real problem.
---------------------------------------------------
I am system administrator... (4 Replies)
Discussion started by: ElvijsL
4 Replies
LEARN ABOUT REDHAT
usbmodules
usbmodules(8) Linux USB Utilities usbmodules(8)
NAME
usbmodules - List kernel driver modules available for a plugged in USB device
SYNOPSIS
usbmodules [--device /proc/bus/bus/NNN/NNN] [--check modulename] [--help] [--mapfile pathname] [--version pathname]
DESCRIPTION
usbmodules lists driver modules that may be able to manage interfaces on currently plugged in USB devices. usbmodules may be used by
/sbin/hotplug or one of its agents (normally /etc/hotplug/usb.agent) when USB devices are "hot plugged" into the system. This can be done
by the following Bourne shell syntax:
for module in $(usbmodules --device $DEVICE) ; do
modprobe -s -k "$module"
done
The DEVICE environment variable is passed from the kernel to /sbin/hotplug during USB hotplugging if the kernel was configured using usbde-
vfs. usbmodules currently requires usbdevfs to operate.
When a USB device is removed from the system, the Linux kernel will decrement a usage count on USB driver module. If this count drops to
zero (i.e., there are no clients for the USB device driver), then the modprobe -r process that is normally configured to run from cron
every few minutes will eventually remove the unneeded module.
OPTIONS
--check modulename
Instead of listing the relevant modules, just exit with code 0 (success) if the given module's exported USB ID patterns matches.
Otherwise, return failure. usbmodules emits no output either way.
--device /proc/bus/usb/MMM/NNN
Selects which device usbmodules will examine. The argument is currently mandatory.
--help, -h
Print a help message
--mapfile /etc/hotplug/usb.handmap
Use the specified file instead of the /lib/modules/.../modules.usbmap file corresponding to the running kernel.
--version
Identifies the version of usbutils this tool was built with.
FILES
/lib/modules/<kernel-version>/modules.usbmap
This file is automatically generated by depmod, versions 2.4.2 and later, and is used by usbmodules to determine which modules cor-
respond to which USB ID's.
/proc/bus/usb
An optional interface to USB devices provided by Linux kernels with versions of the 2.4 USB support. Contains per-bus subdirectories
with per-device files (offering a usermode driver API as well as access to device and configuration descriptors), a devices file
containing a list of all USB devices, and a drivers file listing USB device drivers known to the USB subsystem.
SEE ALSO
lsusb(8), http://linux-hotplug.sourceforge.net
AUTHOR
usbmodules was written by Adam J. Richter <adam@yggdrasil.com>, and is based partly on lsusb, which was written by Thomas Sailer
<sailer@ife.ee.ethz.ch>.
COPYRIGHT
usbmodules is copyright 2000, Yggdrasil Computing, Incorporated, and copyright 1999, Thomas Sailer. usbmodules may may be copied under the
terms and conditions of version 2 of the GNU General Public License as published by the Free Software Foundation (Cambrige, Massachusetts,
United States of America).
usbutils-0.8 12 June 2001 usbmodules(8)