Friday, 12 September 2014

Xenomai installing on opensuse12.1


Steps to install Xenomai in opensuse12.1
1)create a separate directory under your home/working directory-say name
$mkdir /root/XENO_WS

2)download xenomai-2.6.3.tar.bz2 and linux-3.8.13.tar.bz2 packages from ftp/desdslides, to /root/XENO_WS- also download the required kernel configuration file,for the xenomai linux kernel

3)unpack both packages

4) cd xenomai-2.6.3/   (this folder containes source/headers for real-time kernel and
                        patches for the linux kernel to be used for Xenomai)

5) ./scripts/prepare-kernel.sh   \
    --linux=../linux-3.8.13  \
    --arch=x86  \
    --adeos=ksrc/arch/x86/patches/adeos-ipipe-<version>.patch  (select the appropriate <version>, for your linux kernel version)

Note : check the appropriate files are present and names are correct ??? - complete this step, with care

6) cd ../linux-3.8.13  (now, we have a patched kernel source for xenomai)


7) make mrproper
    make oldconfig

8) cp config-<forxenomai>  ( copying the custom configuration to the patched kernel directory )
eg:   $cp .config /boot/config-3.2.21-xenomai

//Edit the Makefile with your text editor and add -xenomai to
//the extraversion line.
$gedit Makefile



9) rest of the steps are the same as we did for a regular linux kernel -
       resume from   make oldconfig and complete all the steps !!!

10) reboot and load the newly built xenomai / linux kernel, which contains
    a patched linux kernel and the xenomai real-time nucleus+skins(microkernel + system APIs) !!!

11) now, your environment is ready for real-time coding in kernel space !!!

12) from here on, refer to class notes for xenomai and also refer to
    xenomai kernel module examples !!!

13) start understanding the examples and testing the examples - make sure
    you are comfortable with the examples and their working

14) next, start with assignment1 of Xenomai/RTOS - you need to refer to
    native_api.pdf and comments provided in the samples to understand
    the code/APIs

15) you can compile xenomai application modules, using just type make command
    from a specific example's folder(no arguments are needed) - make will use the Makefile provided
    in the respective sample folder - you can modify the Makefile, if
    needed !!! 

Notes :  /root/XENO_WS/xenomai-2.6.3/  is a directory holding xenomai kernel
         source code and headers !!! /root/XENO_WS/linux-3.8.13/ holds
         patched linux kernel source for xenomai !!!
        
         if there are any doubts, interact with the faculty, as needed !!!

         installation steps for part2 will be provided separately !!!
CAUTION:
THIS CONFIGURATION IS FOR KERNEL SPACE


//*****************************************************************************//

1) before starting the steps below, you must have installed the xenomai kernel space
   support, using the steps provided in part 1 - in addition, you must have completed
   testing samples for kernel space and also assignment1 of xenomai/RTOS

2) if you have completed the above, cd /root/XENO_WS/ folder

3) mkdir /root/XENO_WS/XN_BUILD and cd /root/XENO_WS/XN_BUILD

4)  /root/XENO_WS/xenomai-2.6.3/configure  --enable-x86-sep  (this is will prepare for building and installing
                                   user-space components of xenomai / RTOS)
-------------------------------------------------------------------------------
note : there is no need for any configuration file, for building this part !!!
-------------------------------------------------------------------------------
5) make ( to build the user-space components - mainly xenomai RT libraries)

6) make install (to install scripts and libraries for xenomai )

7) now, the user-space installation and scripts are installed under /usr/xenomai

8) next, read class notes related to user-space real-time tasks and rules !!!

9) now, try to test user-space examples provided - explore the Makefile provided
   for such examples - they will provide information in libraries used and
   headers used - you may need to modify sample Makefile(s) to your requirements !!!

10) once you are comfortable with user-space samples, you can switch to assignment2 of
   xenomai/RTOS !!!


Note: user-space real-time tasks are subject to primary mode <-> secondary mode switching !!!
CAUTION:
THIS CONFIGURATION IS FOR USER SPACE
//********************************************************************************//

No comments:

Post a Comment