Tag Archives: compile kernel

Easy Way to build a mainline kernel on ubuntu

Compiling a Linux kernel on Ubuntu
———————————-

This should be useful in the event that the user wants to investigate whether a newer kernel allows
certain peripherals to work better (or at all) or some other problems they might encounter while using
the kernel officially provided by Canonical.

As an example, I use the 4.1.5 release from kernel.org.

1) Make sure you have the build environment set up first:

sudo apt-get build-dep linux-image-$(uname -r)

2) Grab the sources from kernel.org.

 mkdir linux_test_builds
    cd linux_test_builds
    wget -c https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.1.5.tar.xz

3) Unpack the kernel:

tar xfv linux-4.1.5.tar.xz

Continue reading Easy Way to build a mainline kernel on ubuntu