112 lines
3.2 KiB
HTML
112 lines
3.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
<TITLE>RTLinux HOWTO: Installing RTLINUX</TITLE>
|
|
<LINK HREF="RTLinux-HOWTO-3.html" REL=next>
|
|
<LINK HREF="RTLinux-HOWTO-1.html" REL=previous>
|
|
<LINK HREF="RTLinux-HOWTO.html#toc2" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="RTLinux-HOWTO-3.html">Next</A>
|
|
<A HREF="RTLinux-HOWTO-1.html">Previous</A>
|
|
<A HREF="RTLinux-HOWTO.html#toc2">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s2">2. Installing RTLINUX</A></H2>
|
|
|
|
<P>The first step in the compilation of RTLinux kernel, is to download a
|
|
pre-patched kernel 2.2.18 (x86 only)
|
|
<A HREF="http://ftp.kernel.org/pub/linux/kernel/v2.2/linux-2.2.18.tar.gz">2.2.18</A> (x86 only)
|
|
or
|
|
<A HREF="http://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.0-test1.tar.gz">2.4.0-test1</A> (x86, PowerPC, Alpha) into /usr/src/ and untar it. Also put a fresh copy of
|
|
RTLinux kernel (version 3.0) from
|
|
<A HREF="http://www.rtlinux.org">www.rtlinux.org</A> in /usr/src/rtlinux/.
|
|
(We will use $ to represent the prompt).
|
|
<P>
|
|
<OL>
|
|
<LI>Now, configure the Linux kernel :
|
|
|
|
<PRE>
|
|
$ cd /usr/src/linux
|
|
$ make config
|
|
or
|
|
$ make menuconfig
|
|
or
|
|
$ make xconfig
|
|
</PRE>
|
|
|
|
</LI>
|
|
<LI>For building the kernel image, type :
|
|
|
|
<PRE>
|
|
$ make dep
|
|
$ make bzImage
|
|
$ make modules
|
|
$ make modules_install
|
|
$ cp arch/i386/boot/bzImage /boot/rtzImage
|
|
</PRE>
|
|
|
|
</LI>
|
|
<LI>Next step is to configure LILO. Type in the following lines in the file
|
|
/etc/lilo.conf
|
|
|
|
<PRE>
|
|
image=/boot/rtzImage
|
|
label=rtl
|
|
read-only
|
|
root=/dev/hda1
|
|
</PRE>
|
|
|
|
|
|
WARNING: replace /dev/hda1 in the above with your root filesystem. The
|
|
easiest way to find out which filesystem it should be, take a look
|
|
at the existing entry in your /etc/lilo.conf for "root=".
|
|
</LI>
|
|
<LI>Now, restart your computer and load the RTLinux kernel by typing 'rtl'
|
|
at the LILO prompt. Then 'cd' to /usr/src/rtlinux/ and configure RTLinux.
|
|
|
|
<PRE>
|
|
$ make config
|
|
or
|
|
$ make menuconfig
|
|
or
|
|
$ make xconfig
|
|
</PRE>
|
|
|
|
</LI>
|
|
<LI>Finally, for compiling RTLinux
|
|
|
|
<PRE>
|
|
$ make
|
|
$ make devices
|
|
$ make install
|
|
</PRE>
|
|
|
|
</LI>
|
|
</OL>
|
|
<P>The last step will create the directory:
|
|
<P>/usr/rtlinux-xx (xx denotes the version)
|
|
<P>which contains the default installation directory for RTLinux which is
|
|
needed to create and compile user programs (that is, it contains the
|
|
include files, utilities, and documentation). It will also create a
|
|
symbolic link:
|
|
<P>/usr/rtlinux
|
|
<P>which points to /usr/rtlinux-xx. In order to maintain future
|
|
compatibility, please make sure that all of your own RTLinux programs
|
|
use /usr/rtlinux as its default path.
|
|
<P>NOTE : If you change any Linux kernel options, please don't forget to do:
|
|
<P>
|
|
<PRE>
|
|
$ cd /usr/src/rtlinux
|
|
$ make clean
|
|
$ make
|
|
$ make install
|
|
</PRE>
|
|
<P>
|
|
<HR>
|
|
<A HREF="RTLinux-HOWTO-3.html">Next</A>
|
|
<A HREF="RTLinux-HOWTO-1.html">Previous</A>
|
|
<A HREF="RTLinux-HOWTO.html#toc2">Contents</A>
|
|
</BODY>
|
|
</HTML>
|