Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-08-2005, 03:26 AM   #1
LQ Newbie
Registered: Jun 2005
Location: SinCity, USA
Distribution: debian, slackware (also mac osx)
Posts: 20

Rep: Reputation: 0
Question custom kernels... Why so hard?

Hello LQ!

i am so glad i found this site. I have slackware 10 installed and running usefully on my pII 400 named Strider.... yes, it's a LOtR reference.... Hobbits Rock!

I love it. I down loaded the disc 1 and 2 iso's and i was off.

now, however, I amd noticing some slowdown and i want to compile a custom kernel. Coming from FreeBSD, i figured it would be no sweat... in FBSD you edit a plain text config file, commenting out what you dont need, compile, install, reboot and ur done... everything i've seen on the subject in the linux world is about writing makefiles and "tweaking the source"... i'm a geek but i'm not a programer....

would someone please help me out?


Old 06-08-2005, 04:08 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Nah its neither too difficult nor complicated. Take a look at this article at kerneltrap. Its meant for those upgrading to the 2.6 kernel but I used it when I compiled my first kernel a while ago.
Old 06-08-2005, 04:09 AM   #3
Registered: Feb 2005
Distribution: slack 10
Posts: 50

Rep: Reputation: 15
It's even easier than editing a textfile, try 'make menuconfig' in the directory, and you'll get a menu, where you can edit each setting.

This is, how I would do it (for a kernel):
unpack the new kernel to /usr/src/linux-
rm /usr/src/linux
ln -s /usr/src/linux- /usr/src/linux
cd /usr/src/linux

copy your old config in the directory, so you can use it as a base for the new kernel: cp /boot/config /usr/src/linux/.config
make menuconfig
make && make modules_install

Now the new kernel is compiled, you'll have to copy it to your boot dir:
cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-
cp /usr/src/linux/.config /boot/config-
cp /usr/src/linux/ /boot/

Now edit your /etc/lilo.conf, add an entry like this above the existing image entry (make sure to change the root disk to the appropriate one):
image = /boot/kernel-
root = /dev/sda3
label = slack-2.6.11

This way you can still boot your old kernel, in case something went wrong.
Run lilo as root, and all should be done.

Reboot and pray :P

Hope this helps, don't give up, if it doesn't work the first few times

Good luck


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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-headers and custom compiled kernels jaakkop Slackware 2 11-22-2005 11:21 AM
custom geforce video card--custom module? bandofmercy Linux - Hardware 3 10-14-2004 06:52 PM
how do i install onto SATA hard drive, when all precompiled kernels won't boot edman007 Slackware 5 01-13-2004 11:49 AM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 10:46 PM
Red Hat Update Agent for kernel updates and custom kernels SparceMatrix Linux - General 5 09-03-2002 04:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:42 AM.

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