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 6 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 8 months ago
-
nice tutorial ^^
dnscpan 11 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 1 year 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
9:49
Howto: Debian Linux Kernel Compilation, Part 2by igneousphantom11,168 views
9:25
An Ideal Debian System (2/3)by igneousphantom3,906 views
8:45
An Ideal Debian System (3/3)by igneousphantom3,266 views
8:58
Introduction to programming with C++: part 1by PetarMarendic115,604 views
1:12
Linux vs. Windowsby Bibbl1,076,134 views
9:49
Linux Kernel Development Chapter 1by ramyavenkatakrishnan12,693 views
1:18
Debianizing an Enterprise 450by igneousphantom907 views
2:44
Linux Tutorial: The Power of the Linux Find Commandby NixiePixel460,448 views
1:13
Windows 7 vs Ubuntu 11.04 vs Snow Leopardby TheOnekstag12101,713 views
10:57
Socket Programmingby nustian00811,890 views
2:20
Compiling the Linux Kernelby dusthillguy14,720 views
2:01
Hacker for Babiesby ricardochahad81,763 views
1:00
"5 years of Linux kernel development in Git" - Teaserby pupetv48,010 views
2:28
Compiz and debian lenny 5.0by zknn93106,936 views
6:52
Debian Lenny + Enlightment17 on yaJohny EeePC 1000hby yaJohnySVK6,876 views
9:04
Basic Linux Commandsby strandjsgmail120,110 views
1:14
Debian 5 Lenny + Compiz + AWN + Emeraldby williandolence29,627 views
10:00
Linux Device Drivers-Introby linuxkernellearning19,231 views
9:34
Debian GNU/Linux Crash Course -- Lesson 2by MartianStation6,843 views
1:16
Meu linux debianby DanielRDutra25,245 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 1 year 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 1 year 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 3 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 3 years ago