The OpenNET Project / Index page

[ новости /+++ | форум | wiki | теги | ]

Поиск:  Каталог документации

Next Previous Contents

2. Installing RTLINUX

The first step in the compilation of RTLinux kernel, is to download a pre-patched kernel 2.2.18 (x86 only) 2.2.18 (x86 only) or 2.4.0-test1 (x86, PowerPC, Alpha) into /usr/src/ and untar it. Also put a fresh copy of RTLinux kernel (version 3.0) from in /usr/src/rtlinux/. (We will use $ to represent the prompt).

  1. Now, configure the Linux kernel :
                    $ cd /usr/src/linux
                    $ make config
                    $ make menuconfig
                    $ make xconfig
  2. For building the kernel image, type :
                    $ make dep
                    $ make bzImage
                    $ make modules
                    $ make modules_install
                    $ cp arch/i386/boot/bzImage /boot/rtzImage
  3. Next step is to configure LILO. Type in the following lines in the file /etc/lilo.conf
    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=".
  4. 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.
                    $ make config  
                    $ make menuconfig
                    $ make xconfig
  5. Finally, for compiling RTLinux
                    $ make
                    $ make devices
                    $ make install

The last step will create the directory:

/usr/rtlinux-xx (xx denotes the version)

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:


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.

NOTE : If you change any Linux kernel options, please don't forget to do:

                $ cd /usr/src/rtlinux
                $ make clean
                $ make
                $ make install

Next Previous Contents

Inferno Solutions
Hosting by

Закладки на сайте
Проследить за страницей
Created 1996-2022 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру