Re: [LAU] Alternative Kernel for Mint 17.1?

From: Ralf Mardorf <ralf.mardorf@email-addr-hidden-dsl.net>
Date: Mon Feb 16 2015 - 21:14:54 EET

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.

export CONCURRENCY_LEVEL=2

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

Build:

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
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Tue Feb 17 00:15:01 2015

This archive was generated by hypermail 2.1.8 : Tue Feb 17 2015 - 00:15:02 EET