Uploaded by igneousphantom on Aug 14, 2008
A four part miniseries on compiling a new kernel in a debian-based distro.
The condensed version of this tutorial, all of this is explained in depth in the video:
1.wget recentkernel source from "ftp.kernel.org"
2.extract kernel source in /usr/src "tar jxvf linux-2.6.xx.tar.bz2"
3. grab a patch, if desired.
3a. apply patch "cd /usr/src/li* && bzip2 -dc ../patchdiff.bz2 | patch -p1 --dry-run"
3b. if dry run patch succeeds, repeat process omiting --dry-run
4. copy current kernel config (if you want a decent base, if you want to build vanilla, omit this step) "cp /boot/config-`uname -r` ./.config"
5. "make menuconfig", load your config, and tweak as desired.
6. "make all"
7. "make modules_install"
8. "make install"
9. use mkinitrd.yaird or mkinitramfs, or whatever initrd generator you use to create a initrd for your kernel with "mkinitrd.yaird -o /boot/initrd-2.6.xx 2.6.xx" (where xx is the new kernel version)
10. update your grub config in /boot/grub/menu.list or do "update-grub" as root.
11. reboot into your new system.
Link to this comment:
Uploader Comments (igneousphantom)
Top Comments
All Comments (50)
-
10 bucks says I messed it up. I'm making 3.0.3 right now because I had to turn on some thinkpad options(you'd think you could turn it on without re-compiling the damn kernel gosh) but still, this was a learning trip. Thanks a ton
ForeverWiked 5 months ago
-
Here's what I would do:
# apt-get install kernel-package build-essential libncurses5-dev
# cd /usr/src
# wget [path to linux source package]
# tar xjvf linux-[version number].tar.bz2
# cd /usr/src/linux-[version number]
# make menuconfig
# make clean
# make-kpkg --append-to-version -whatever --initrd kernel_image && make-kpkg --append-to-version -whatever --initrd modules_image
# dpkg -i /usr/src/linux-[version number]-whatever.deb
ladoga 7 months ago
-
nice tutorial ^^
dnscpan 10 months ago
-
@icekool666 sorry, in order to find this stuff interesting you need to possess intelligence/intellect. Since you seem to lack both of those, I can understand how you could find this boring. Have a good day right back at ya!
igneousphantom 11 months ago
-
thanks bro :)
realsifo777 1 year ago
-
@doodoobrown1987 what kind of help are you looking for?
onelife151 1 year ago
-
@leeroyjenkinsii i dont need to purchase one i have about 15 old computers my parents own an isp
doodoobrown1987 1 year ago
1:13Windows 7 vs Ubuntu 11.04 vs Snow Leopardby TheOnekstag1273,233 views
1:12Linux vs. Windowsby Bibbl1,027,277 views
14:50Installing Debian Linux on your Android Phone!by jefftheworld4,750 views
2:01Hackerby ricardochahad55,816 views
10:57Socket Programmingby nustian00810,193 views
1:00"5 years of Linux kernel development in Git" - ...by pupetv46,174 views
9:49Linux Kernel Development Chapter 1by ramyavenkatakrishnan11,753 views
2:20Compiling the Linux Kernelby dusthillguy14,576 views
9:52Howto: Debian Linux Kernel Compilation, Part 3by igneousphantom8,021 views
1:18Linux 2.6.30+ Local Kernel Exploit 0day, disabl...by spendergrsec40,877 views
14:06The Linux Kernel (Part 1)by OhHeyItsLou16,374 views
9:40An Ideal Debian System (1/3)by igneousphantom6,795 views
9:49Howto: Debian Linux Kernel Compilation, Part 2by igneousphantom11,028 views
7:20code_swarm - Linux - July 2008by charlesbabbage210,660 views
3:56The Linux Kernel (Part 3)by OhHeyItsLou4,089 views
1:16Meu linux debianby DanielRDutra25,171 views
1:10Linux Kernel Mapby copeland330024,515 views
4:12Debian 5.0by mundolinuxero25,061 views
0:38Linux Hackingby bobbahack85,142 views
8:09Howto: Debian Linux Kernel Compilation, Part 4by igneousphantom5,587 views
- Loading more suggestions...
SPEAK UP!
RenegadeFury 2 years ago
Sorry, I am the owner of a shitty mic. I was practically shouting as it was :P
My suggestion is to just turn the youtube player volume up, luckily that isn't too hard.
igneousphantom 2 years ago
@igneousphantom "My suggestion is to just turn the youtube player volume up, luckily that isn't too hard." my laptop is on the maximum volume and i still cant hear you well
Paddeiii 11 months ago
@Paddeiii then, if you honestly care to watch the video, download it with something like clive or youtube-dl and watch it with mplayer -softvol -softvol-max 1000. I don't even have the original screencast oggs anymore, so I couldn't re-master this even if I wanted to.
igneousphantom 11 months ago
igneous, How do i upgrade to Debian Sid from Debian Squeeze? So that when i " sudo cat /etc/debian_version "
it doesn't echo " squeeze/sid "
Can u help me with this issue?
El1iP3S01D 2 years ago
it's pretty simple, edit your sources.list, replace testing (or squeeze, whatever) with unstable, then apt-get update, apt-get dist-upgrade, and you're set. You'll probably see some breakage, but anyone with half a brain should be able to fix it with 10 minutes of googling.
Also: /etc/debian_version is a text file that does nothing, you could edit it to "peanutbutter/jelly" and it shouldn't make a difference.
igneousphantom 2 years ago