[LAU] Alternative Kernel for Mint 17.1?

Ralf Mardorf ralf.mardorf at alice-dsl.net
Mon Feb 16 19:14:54 UTC 2015

On Mon, 16 Feb 2015 12:13:53 -0500, Gene Heskett wrote:
>as you, make clean;make;make modules;
>sudo make headers-install
>sudo make modules-install
>sudo make install

A PPA, perhaps kxstudio, might provide linux-rt for the OP's distro.

If the OP wants or needs to build linux-rt packages from source at least
some of those packages are needed, installing all of them doesn't harm:

apt-get update
apt-get install fakeroot build-essential crash kexec-tools makedumpfile kernel-package kernel-wedge
apt-get install libncurses5 libncurses5-dev libelf-dev asciidoc binutils-dev

You could run more than one job, e.g.


Replace the kernel and patch with the kernel you want to build:

wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-foo_bar.tar.bz2
wget https://www.kernel.org/pub/linux/kernel/projects/rt/3.8/older/patch-foo_bar_rt.patch.bz2

Extracting and patching:

tar -jxvf linux-foo_bar.tar.bz2
mv linux-foo_bar linux-foo_bar_rt
cd linux-foo_bar_rt
bzip2 -dc ../patch-foo_bar_rt.patch.bz2 | patch -p1

cp /boot/config-from_an_existing_kernel .config

When running "make oldconfig" care about rt settings:

make oldconfig


make-kpkg clean
make-kpkg --initrd kernel-image kernel-headers

Then install the kernel and headers with "dpkg -i".
It might be better to build with fakeroot, but there was a time when it
didn't work, hence I usually build as root.

Assumed the links in to the headers in /lib should be missing, link by
command line:

ln -s /usr/src/linux-headers-foo_bar_rt /lib/modules/foo_bar_rt/build
ln -s /usr/src/linux-headers-foo_bar_rt /lib/modules/foo_bar_rt/source

You only need the headers to build vbox modules, proprietary graphics
drivers and similar.

"Aber beklecker nicht das Sofa, Sofa!" - Frank Zappa

More information about the Linux-audio-user mailing list