Compile Kernel 3.9 on Debian Wheezy and Crunchbang Linux 11 (Waldorf)

Hello Linux Geeksters. In this article I will show you how to build the kernel 3.9 on the newly released Debian Wheezy and Crunchbang Linux 11 (Waldorf).

http://zachariasblog.files.wordpress.com/2012/02/screenshotat2012-02-07220950.png

Follow this steps for a proper installation:

Install the needed packages:

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

Download the new kernel:

$ wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.9.tar.bz2

Extract the archive and cd into it:

$ tar xvf linux-3.9.tar.bz2
$ cd linux-3.9/

Do this tweaks:

$ cat /boot/config-`uname -r`>.config
$ make oldconfig

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

Next, do:

$ make-kpkg clean

Compile the kernel:

$ sudo time fakeroot make-kpkg -j4 --initrd kernel_image kernel_headers

Replace 4 with the number of cores on your computer.

Install the Kernel:

$ sudo dpkg -i ../linux-image-3.9.0_3.9.0-10.00.Custom_amd64.deb ../linux-headers-3.9.0_3.9.0-10.00.Custom_amd64.deb

Share and Enjoy

  • Twitter
  • Facebook
  • Google Plus
  • Email
  • RSS
Tagged with: , , , , , ,
Posted in The Linux and Unix Articles!
15 comments on “Compile Kernel 3.9 on Debian Wheezy and Crunchbang Linux 11 (Waldorf)
  1. VarLog says:

    ThX a lot for this Howto! Great Work!

    I have used it on Crunchbang 11 (Waldorf) – No Problems!

  2. Ian Nartowicz says:

    Neat. What particular advantages does kernel 3.9 have over the stock 3.2?

    • Geekster says:

      better ssd support, for example. personally, i do not like the new kernels. 3.6 and higher make my computer boot up in twice the time the old 3.2 kernel did.

  3. Alex says:

    # dpkg -i ../linux-image-3.9.0_3.9.0-10.00.Custom_amd64.deb ../linux-headers-3.9.0_3.9.0-10.00.Custom_amd64.deb
    dpkg: error processing ../linux-image-3.9.0_3.9.0-10.00.Custom_amd64.deb (–install):
    cannot access archive: No such file or directory
    dpkg: error processing ../linux-headers-3.9.0_3.9.0-10.00.Custom_amd64.deb (–install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    ../linux-image-3.9.0_3.9.0-10.00.Custom_amd64.deb
    ../linux-headers-3.9.0_3.9.0-10.00.Custom_amd64.deb

    I think you’re missing something?

  4. Aitor González says:

    Worked perfectly on Debian 7 Wheezy!

    Thanks!

  5. Landi says:

    You have to be aware that multimedia support has shifted position in Linux kernel 3.6+, so if you would like to use usb or built-in webcam for example, you will have to enable Device Drivers -> Mulimedia devices -> …
    As by default they will be disabled.

  6. debi says:

    Hi, thanks for this tuto.
    Just a question, I got a 8-core cpu : 4 real and 2 virtual per core. What should be the “-j” option : 4 or 8 ?
    Thank you

  7. sayan says:

    perfectly working!!!!!

  8. larry77 says:

    Hi!
    It worked on my machine. Just a question: if you go on https://www.kernel.org/pub/linux/kernel/v3.0/ you find also a lot of patches for the various kernel releases. How are those taken into account?

  9. datenfreak says:

    thank you very much for this easy to understand walk through…

    it works perfect also for kernel 3.11 with crunchbang waldorf

  10. Attila Hooper says:

    Just want to thank you. Wheezy 3.2.0-4amd was ripping me a new one w a fresh hardware build (GAZ87MX). Shutdown and logout commands were not being interpreted/executed properly causing VERY slow shutdown (6 minutes) and immediate/uncommanded reboot, even though bios power management settings were correct.

  11. spop says:

    Excellent job!

    This was the only way I could make my wireless adapter work under Debian Wheezy.

    Thanks a million!

  12. maurice says:

    works great excellent work thanks

1 Pings/Trackbacks for "Compile Kernel 3.9 on Debian Wheezy and Crunchbang Linux 11 (Waldorf)"
  1. Improve Linux Battery Life with a Kernel Update – Ryan Leaf says:

    [...] to LinuxG for his article that inspired this post. I would recommend installing Linux 3.9.8 over 3.9.0 because it appears [...]

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>