From 0b7dffa7540d399435213c1674fac90013b88486 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20B=2E=20Brandenburg?=
The extension to the Linux kernel is released as a patch against Linux
- 2.6.32. To install the LITMUSRT kernel, first download the Linux
- kernel 2.6.32 and untar it in a directory of your choice (hereafter
+ 2.6.34. To install the LITMUSRT kernel, first download the Linux
+ kernel 2.6.34 and untar it in a directory of your choice (hereafter
referred to as $DIR). Second, apply the
LITMUSRT patch (see Section Download)
and configure, compile, and install the kernel as usual. The patch is , pp. 342-353, April 2008.
To summarize, the LITMUSRT kernel can be obtained, patched, and
compiled with the following commands:
When configuring the kernel, note that there is a menu (at the very end of the list)
- with LITMUSRT-specific configuration options. For reference, we provide sample 32-bit and 64-bit configurations that are known to work under QEMU.
+ with LITMUSRT-specific configuration options. For reference, we provide sample 32-bit and 64-bit configurations that are known to work under KVM.
Patching the Kernel
-cd $DIR
-# get Linux 2.6.32
-wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.32.tar.bz2
-tar xjf linux-2.6.32.tar.bz2
-wget http://www.cs.unc.edu/~anderson/litmus-rt/download/2010.1/litmus-rt-2010.1.patch
-mv linux-2.6.32 litmus2010
+
cd $DIR
+# get Linux 2.6.34
+wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.tar.bz2
+tar xjf linux-2.6.34.tar.bz2
+wget http://www.cs.unc.edu/~anderson/litmus-rt/download/2010.2/litmus-rt-2010.2.patch
+mv linux-2.6.34 litmus2010
# apply the LITMUS RT patch
cd litmus2010
-patch -p1 < ../litmus-rt-2010.1.patch
+patch -p1 < ../litmus-rt-2010.2.patch
# create a working kernel configuration
# - select HZ=1000
# - enable in-kernel preemptions
@@ -469,7 +468,7 @@ make modules
Libraries
@@ -478,7 +477,7 @@ make modules
depends on the LITMUSRT kernel kernel and provides its own build system (based on scons).
In order to compile liblitmus, you need to adjust the
variable LITMUS_KERNEL in the .config file to point to your
- copy of the kernel. The variables required for building liblitmus can be listed using scons -h command. For reference, we provide a sample config file.
+ copy of the kernel. The variables required for building liblitmus can be listed using scons -h command. For reference, we provide a sample config file.
Sample output of scons -h is as shown below.
@@ -517,8 +516,8 @@ Use scons -H for help about command-line options.cd $DIR -wget http://www.cs.unc.edu/~anderson/litmus-rt/download/2010.1/liblitmus-2010.1.tgz -tar xzf liblitmus-2010.1.tgz +wget http://www.cs.unc.edu/~anderson/litmus-rt/download/2010.1/liblitmus-2010.2.tgz +tar xzf liblitmus-2010.2.tgz cd liblitmus # change LITMUS_KERNEL in .config to point to the kernel source scons -- cgit v1.2.2