\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{color}
\usepackage{pstcol}
\usepackage{helvet}
% \usepackage{thumbpdf}
% \usepackage{pdftex}
\usepackage{hyperref}

\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{ae,aecompl}


\newrgbcolor{darkblue}{0.0 0.0 0.6}
\newrgbcolor{black}{0.0 0.0 0.0}
\newrgbcolor{darkblue}{0.0 0.0 0.6}

\newcommand{\bi}{\begin {indent}}
\newcommand{\ei}{\end {indent}}
\newcommand{\be}{\begin {enumerate}}
\newcommand{\ee}{\end {enumerate}}

\newcommand{\bigt}[1]{\begin{center}
                        {\textcolor{darkblue} \bf \Large #1}
                      \end{center}
                     }
\newcommand{\medt}[1]{
                        \medskip
                        \noindent
                        {\textcolor{darkblue} \bf \large #1}
                        \linebreak
                     }

\pagestyle{empty}
\setlength{\oddsidemargin}{0in}
\setlength{\topmargin}{-.5in}
\setlength{\textwidth}{6.5in}
\setlength{\textheight}{9in}
\setlength{\parindent}{0.4in}

\begin{document}

\begin{center}
\bigt{RTAI Installation Help}
\end{center}

There are quite a few references to help you install RTAI, including
the {\it README.INSTALL} file in the RTAI directory.  This is an
attempt to give a quick how-to.

   \be
   \item Download the RTAI that you want to use.  You should choose the
   latest one that will work with a Linux kernel that you want to use.  
   For example, RTAI-24.1.11.tgz.

   \item If you are using a non-standard Linux, such as the type that come
   with Red Hat, SUSE or some other packaged distribution, you will probably
   have to install a different kernel.  The packaged distributions have often
   been patched and don't work with RTAI.  You can get a pristine kernel
   from \href{http://www.kernel.org}{kernel.org} For the following, 
   assume that we are using linux-2.4.20.
   \item Place RTAI-24.1.11.tgz and linux-2.4.20.tar.bz2 in /usr/src.
   \item Execute {\it tar --gzip -xf RTAI-24.1.11}.
   \item Execute {\it tar --bz2 -xf linux-2.4.20.tar.bz2}.
   \item Create a link with {\it ln -s RTAI-24.1.11 rtai}.
   \item Delete the {\it linux-2.4} directory and recreate it
         with {\it ln -s linux-2.4.20 linux-2.4}.
   \item Change directory to linux-2.4.
   \item Copy the config file for you kernel with 
         {\it cp /boot/config-2.4.??? ./.config}.
   \item Execute {\it make oldconfig} to create a useable config file.
         You should be asked if you want to enable RTHAL capabilities;
         say {\it yes}.
   \item Execute {\it make menuconfig}.  In the {\it modules} configuration
         turn off the {\it version on each module} setting.  Also, under
         general configuration, turn off APM power management.
   \item Leave make menuconfig.
   \item Execute {\it make dep}.
   \item Execute {\it make}.
   \item Execute {\it make modules}.
   \item Execute {\it make modules\_install}.
   \item Execute {\it make install}.
   \item Modify your grub.conf or lilo.conf for the new kernel which has
         been placed in /boot.  It isn't wise to remove the old one.
   \item Reboot and you should be running your new kernel
   \ee
\medskip
Now you need to build RTAI.
\medskip
   \be
   \item Go to your /usr/src/rtai directory.
   \item Execute {\it make menuconfig}.  You probably don't have to 
         do anything here as the defaults are OK, but you have to 
         do this to save the config file.  When you close, be sure that
         you read the notices that are displayed.
   \item Execute {\it make}.
   \item Execute {\it .\\setsched newlxrt}.
   \item Execute {\it make modules}
   \item Execute {\it make modules\_install}
   \item Execute {\it make /dev}
   \ee
\medskip
Finally, you should be done.  If you have a problem with make failing
on the compile of {\it usposix}, compile the {\it watchdog} directory
by hand and ignore {\it usposix} as it probably won't be important.
\end{document}
