-
Senior Member
registered user
Re: my guide to compling the kernel

Originally Posted by
Hayabusa
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
The directory would be /usr/src/linux-2.6.3 after the extraction (tar -xjvf linux-2.6.3.tar.bz) and once done while still in the /usr/src directory.
Code:
ln -s /usr/src/linux-2.6.3 linux
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)
Add to the list the package fakeroot.
[*] 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.
The mrproper is not necessary and you should.
Code:
cd /usr/src/linux
make menuconfig
{*] 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
Never compile a kernel as root that is why the fakeroot package exists and should always be used for that purpose the commands would be in the /usr/src/linux directory.
Code:
fakeroot make-kpkg clean
fakeroot make-kpkg kernel_image
cd ..
su
Password:
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:
Never happened to me before but I had a strange one last week on my firewall box where depmod would not run on the new kernel and caused an error during the installation I had to run it after booting into the new kernel.
[*]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.[/list]
Also do not forget to remove the knx-alsa package to get it out of the way and prevent problems in the future.
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

HGST HUA723030ALA640 3TB SATA 7200 RPM 3.5 in Enterprise HDD | 0F14044 (100%)
$45.00

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A
$64.00

Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE
$68.99

HDD 3.5" SATA Hard Drive with Windows 10/Win 11 64x Installed Legacy
$35.00

Seagate ST6000NM0115 6TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive
$159.99

Hitachi / HGST Travelstar HTS541010B7E610 1TB 2.5" SATA III HDD
$29.99

HGST HUS724040ALA640 4TB 7200 RPM SATA 3.5" Internal Desktop Drive 100% Health
$78.00

Seagate ST2000NM0045 2TB 3.5" 12Gb/s 128MB 7.2K RPM SAS HDD P/N: 1V4204-002
$24.99

Toshiba 1TB 2.5" SATA HDD MQ01ABD100V 5400RPM 9.5mm Laptop Internal Hard Drive
$51.99

HUS726060ALA640 HGST Ultrastar 6TB SATA 6Gbps 7.2K 3.5" Hard Drive OF21860
$129.99