-
my guide to compling the kernel
- download the latest FULL source from www.kernel.org (I don't mess with the debs personally, I want the latest that kernel.org has to offer). save the source .tar.bz2 (or tar.gz) to /usr/src.
- decompress and untar the image in /usr/src. For example if you downloaded linux-2.6.3.tar.bz2 when uncompressed you should have a folder for /usr/src/linux/linux-2.6.3
- there's a few packages we'll need to install before compiling the kernelt:
Code:
apt-get install kernel-package libncurses5-dev
(and if building a 2.6.x kernel for the first time you'll want to add module-init-tools to this list as well)
- in /usr/src/linux-2.6.3/ run the following commands
Code:
make mrproper
make menuconfig
mrproper will insure a clean build and import some settings from your current working kernel. make menuconfig is an ncurses menu where you can go through and unselect/select support for various hardware and such relating to your computer. Once inside menuconfig the commands for adding/removing support are as follows: Y=yes (built-in support) N=no (no support) M=compiles support as a module. When you exit menuconfig say "yes" to saving the changes.
{*] now that you've trimmed the fat from the kernel we're ready to build it as a package. in /usr/src/linux-2.6.3 run the following commands (as root):
Code:
su
Password:
make-kpkg clean
make-kpkg kernel_image
- go make lunch, have a cup of coffee, pop in a movie, whatever, the compiling of the kernel into an installable .deb ipackage will take a while. Assuming the .deb was created with no fatal errors you'll now have a kernel package in /usr/src . now we need to install it, in /usr/src/ run the follwing command (still as root)
Code:
dpkg -i kernel-image-2.6.3_10.00.Custom_i386.deb
- for some reason /etc/lilo.conf is never updated correctly to add an entry for the new kernel, so we must edit it manually (still as root). Add the following entry to the very bottom of /etc/lilo.conf:
Code:
image=/boot/vmlinuz-2.6.3
label=2.6.3
initrd=/boot/linux-2.6.1.gz
read-only
# restricted
basically you want to clone the existing entry in lilo.conf for your working kernel, and replace the image= line with the vmlinuz image created in /boot when you installed the kernel_image.deb. your initrd image you want to keep the same as your working kernel (or comment it out if you disabled intial ramdisk support in the kernel you compiled). label= iyou can set to say whatever you want to indicate on the lilo boot menu what kernel you'll be booting into (you will want to make sure the prompt line in /etc/lilo conf is not commented out)
- all we need to do now is update lilo.
- reboot your computer, and in your lilo menu you should now have an entry at the bottom for this new kernel, select it, and if all went well you'll be up and running with your new custom kernel, nto bogged down by all the modules loaded by defualt in a typical knoppix install.
- As a footnote if you're compiling ALSA into your kernel for the first time you'll also want to install the following packages:
Code:
apt-get install alsa-base alsa-utils gnome-alsamixer
upon installation fo these you'll be asked which soundcard(s) you want to install sound support for.. gnome-alsamixer is a nice gui tool for the inital umuting you need to do once ALSA is installed.
Similar Threads
-
By echo6 in forum Customising & Remastering
Replies: 0
Last Post: 05-08-2005, 11:42 AM
-
By cfish in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 04-25-2005, 07:31 AM
-
By gitarzysta in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 06-03-2004, 08:36 PM
-
By Nils_ in forum Hardware & Booting
Replies: 0
Last Post: 03-08-2004, 10:50 AM
-
By tji in forum Customising & Remastering
Replies: 4
Last Post: 06-12-2003, 06:40 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Yealink T48S VoIP/SIP Phone, 2 x Gigabit Ports PoE 7" Color SIP-T48S | TESTED
$34.95

Poly CCX 400 Desktop Business Media Phone VoIP 2200-49700-019
$49.99

Grandstream VoIP Phone Adapter ATA 1-Line Black Ethernet (RJ-45) Micro USB
$27.07

Yealink MP54 - VoIP Phone - Black Teams phone Android POE WIFI Bluetooth
$49.95

Yealink SIP-T33G IP Phone 4-LineSpeakerphone VoIP Desk Phone Black w/ Power Sply
$25.00

Grandstream HT701 1-Port FXS Analog Telephone Adapter ATA VoIP Gateway -Free S/H
$19.99

Grandstream WP810 Portable Cordless Wi-Fi IP Phone
$49.28

Cisco / Linksys SPA2102 VoIP 2FXS Phone Adapter with Router (unlocked)
$18.99

Yealink SIP-T46S IP Phone - Black
$20.00

Cisco CP-8841 IP Phone Charcoal Handset And Stand Included
$27.99