zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Debian compile 3.10 Kernel

July 14, 2013 by Igor Drobot Leave a Comment

Kernel

Actuals Debian 7 brings a stable Kernel version 3.2.0-4. For some development reasons I need a newer Kernel version so in this way was this tutorial created.

Install the needed packages for the compilation process:

1
apt-get install kernel-package fakeroot build-essential ncurses-dev

apt-get install kernel-package fakeroot build-essential ncurses-dev

1
wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.tar.xz

wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.tar.xz

1
2
tar xvf linux-3.10.tar.xz
cd linux-3.10/

tar xvf linux-3.10.tar.xz cd linux-3.10/

Take the config of your actual running kernel

1
cat /boot/config-`uname -r`> .config

cat /boot/config-`uname -r`> .config

1
make oldconfig

make oldconfig

You will be asked a lot of questions. If in doubt, press enter to choose the default answer.

#
# configuration written to .config
#

1
make-kpkg clean

make-kpkg clean

1
time fakeroot make-kpkg -j1 --initrd kernel_image kernel_headers

time fakeroot make-kpkg -j1 --initrd kernel_image kernel_headers

1
2
dpkg -i ../linux-image-3.10.0_3.10.0-10.00.Custom_amd64.deb
dpkg -i ../linux-headers-3.10.0_3.10.0-10.00.Custom_amd64.deb

dpkg -i ../linux-image-3.10.0_3.10.0-10.00.Custom_amd64.deb dpkg -i ../linux-headers-3.10.0_3.10.0-10.00.Custom_amd64.deb

After reboot check the running:

1
2
uname -a
Linux devel 3.10.0 #1 SMP Thu Jul 11 16:52:55 CEST 2013 x86_64 GNU/Linux

uname -a Linux devel 3.10.0 #1 SMP Thu Jul 11 16:52:55 CEST 2013 x86_64 GNU/Linux

Filed Under: Linux Tagged With: compile, Kernel, linux-headers, linux-image

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok