Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2012-01-11 14:19:01
Size: 3446
Editor: mbk-50-12
Comment: enable highlighting
Revision 4 as of 2012-08-01 08:04:11
Size: 3428
Editor: bbb
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
The extension to the Linux kernel is released as a patch against the Linux kernel. To install the LITMUS^RT^ kernel, first [[http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.36.tar.bz2|download the Linux kernel 2.6.36]] and untar it in a directory of your choice (hereafter referred to as `$DIR`). Second, apply the LITMUS^RT^ patch (download the [[CurrentRelease|current version]]) and configure, compile, and install the kernel as usual. The patch is `-p1` applicable. The extension to the Linux kernel is released as a patch against the Linux kernel. To install the LITMUS^RT^ kernel, first [[http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2|download the Linux kernel 3.0]] and untar it in a directory of your choice (hereafter referred to as `$DIR`). Second, apply the LITMUS^RT^ patch (download the [[CurrentRelease|current version]]) and configure, compile, and install the kernel as usual. The patch is `-p1` applicable.
Line 11: Line 11:
# get Linux 2.6.36
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.36.tar.bz2
tar xjf linux-2.6.36.tar.bz2
wget http://www.litmus-rt.org/releases/2011.1/litmus-rt-2011.1.patch
mv linux-2.6.36 litmus-rt
# get Linux 3.0
wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
tar xjf linux-3.0.tar.bz2
wget http://www.litmus-rt.org/releases/2012.2/litmus-rt-2012.2.patch
mv linux-3.0 litmus-rt
Line 18: Line 18:
patch -p1 < ../litmus-rt-2011.1.patch patch -p1 < ../litmus-rt-2012.2.patch
Line 33: Line 33:
When configuring the kernel, note that there is a menu (at the very end of the list) with LITMUS^RT^-specific configuration options. For reference, we provide a [[http://www.litmus-rt.org/releases/2011.1/x86_64-config|sample 64-bit configuration]] that is known to work under KVM. When configuring the kernel, note that there is a menu (at the very end of the list) with LITMUS^RT^-specific configuration options. For reference, we provide a [[http://www.litmus-rt.org/releases/2012.2/x86_64-config|sample 64-bit configuration]] that is known to work under KVM.
Line 37: Line 37:
The user-space library for real-time tasks, `liblitmus`, depends on the LITMUS^RT^ kernel kernel and provides its own build system. Run make help for instructions. Note that you will have to create a `.config` file in the library directory to point the build system to the kernel sources. For reference, we provide a sample [[http://www.litmus-rt.org/releases/2011.1/liblitmus-config|liblitmus configuration file]]. The user-space library for real-time tasks, `liblitmus`, depends on the LITMUS^RT^ kernel kernel and provides its own build system. Run make help for instructions. Note that you will have to create a `.config` file in the library directory to point the build system to the kernel sources. For reference, we provide a sample [[http://www.litmus-rt.org/releases/2012.2/liblitmus-config|liblitmus configuration file]].
Line 42: Line 42:
wget http://www.litmus-rt.org/releases/2011.1/liblitmus-2011.1.tgz
tar xzf liblitmus-2011.1.tgz
wget http://www.litmus-rt.org/releases/2012.2/liblitmus-2012.2.tgz
tar xzf liblitmus-2012.2.tgz
Line 45: Line 45:
wget http://www.litmus-rt.org/releases/2011.1/liblitmus-config wget http://www.litmus-rt.org/releases/2012.2/liblitmus-config
Line 52: Line 52:
The Feather-Trace tools (also known as `ft_tools`) depend on the `liblitmus` build system. Before the Feather-Trace toolscan be built, you must have successfully compiled `liblitmus` first. For reference, we provide [[http://www.litmus-rt.org/releases/2011.1/ft_tools-config|a sample ft_tools configuration file]]. The Feather-Trace tools (also known as `ft_tools`) depend on the `liblitmus` build system. Before the Feather-Trace toolscan be built, you must have successfully compiled `liblitmus` first. For reference, we provide [[http://www.litmus-rt.org/releases/2012.2/ft_tools-config|a sample ft_tools configuration file]].
Line 57: Line 57:
wget http://www.litmus-rt.org/releases/2011.1/ft_tools-2011.1.tgz
tar xzf ft_tools-2011.1.tgz
wget http://www.litmus-rt.org/releases/2012.2/ft_tools-2012.2.tgz
tar xzf ft_tools-2012.2.tgz
Line 60: Line 60:
wget http://www.litmus-rt.org/releases/2011.1/ft_tools-config wget http://www.litmus-rt.org/releases/2012.2/ft_tools-config

Installation Instructions

The following instructions describe how to download and build the latest released version of LITMUSRT. If you intend to use LITMUSRT for development, you should use our source code repositories instead.

The Kernel

The extension to the Linux kernel is released as a patch against the Linux kernel. To install the LITMUSRT kernel, first download the Linux kernel 3.0 and untar it in a directory of your choice (hereafter referred to as $DIR). Second, apply the LITMUSRT patch (download the current version) and configure, compile, and install the kernel as usual. The patch is -p1 applicable.

To summarize, the LITMUSRT kernel can be obtained, patched, and compiled with the following commands:

cd $DIR
# get Linux 3.0
wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
tar xjf linux-3.0.tar.bz2
wget http://www.litmus-rt.org/releases/2012.2/litmus-rt-2012.2.patch
mv linux-3.0 litmus-rt
# apply the LITMUS RT patch
cd litmus-rt
patch -p1 < ../litmus-rt-2012.2.patch
# create a working kernel configuration
#  - select HZ=1000
#  - enable in-kernel preemptions
#  - disable NO_HZ
#  - don't use power management options like frequency scaling
#  - disable support for group scheduling
#  - disable "Write protect kernel read-only data structures" (in kernel debug)
make menuconfig
# compile the kernel
make bzImage
make modules
# proceed to install kernel, build initrd, etc.
...

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 a sample 64-bit configuration that is known to work under KVM.

The Userspace Library

The user-space library for real-time tasks, liblitmus, depends on the LITMUSRT kernel kernel and provides its own build system. Run make help for instructions. Note that you will have to create a .config file in the library directory to point the build system to the kernel sources. For reference, we provide a sample liblitmus configuration file.

To summarize, the liblitmus can be obtained and compiled with the following commands:

cd $DIR
wget http://www.litmus-rt.org/releases/2012.2/liblitmus-2012.2.tgz
tar xzf liblitmus-2012.2.tgz
cd liblitmus 
wget http://www.litmus-rt.org/releases/2012.2/liblitmus-config
mv liblitmus-config .config
make

Feather-Trace Tools

The Feather-Trace tools (also known as ft_tools) depend on the liblitmus build system. Before the Feather-Trace toolscan be built, you must have successfully compiled liblitmus first. For reference, we provide a sample ft_tools configuration file.

To summarize, the Feather-Trace tools can be obtained and compiled with the following commands:

cd $DIR
wget http://www.litmus-rt.org/releases/2012.2/ft_tools-2012.2.tgz
tar xzf ft_tools-2012.2.tgz
cd ft_tools 
wget http://www.litmus-rt.org/releases/2012.2/ft_tools-config
mv ft_tools-config .config
make

InstallationInstructions (last edited 2017-05-26 23:54:21 by bbb)