2.2.18 RTL3.0 build notes




the Linux kernel team recomends the egcs compiler to build the kernel
but there have been some problems between the egcs and glibc-2.1(+)
so it should NOT be used as the default compiler on the system

the realtime kernel folks have been working to stabilize their API and remove
the rtl version number so it may be a good idea to modify the EMC makefiles
to use RTLv1 for the 2.0.36 kernel and just RTL for 2.2.x and above
just a thought

-------------------begin-----------------------
downloaded rtl prepatched kernel 
downloaded rtl3.0 package
( need both )

unpacked to /usr/src
#tar xzvf rtlinux_kernel_2_2.tar.gz
#tar xzvf rtlinux-3.0.tar.gz

removed old linux link
   # rm linux

made new one
   #ln -s rtlinux_kernel_2.2.18-rtl  linux

Create a symbolic link for the rtlinux directory
   #ln -s rtlinux-3.0  rtlinux

Create a symbolic link from within the rtlinux directory to the
linux directory:

   #cd /usr/src/rtlinux
   #ln -sf /usr/src/linux ./linux

for a more stable kernel build with the egcs compiler
modify /usr/src/linux/Makefile

from Paul C.'s notes 
change 
EXTRAVERSION = -rtl
to
EXTRAVERSION = -rtl3.0

and use egcs as the kernel compiler
HOSTCC = egcs  
(or kgcc if you do things the redhat way)

   #cd /usr/src/linux

compile the realtime kernel
   # make mrproper; make config or make menuconfig  or make xconfig
...
from the emc readme;
say no to Symmetric Multi-processing support
unless you actually have it
say no to APM 
select target system cpu
...
    # make dep; make bzImage
...
    # make modules
...
   # make modules_install

 Copy new rtlinux-kernel image to proper place

     #cp /usr/src/linux/arch/i386/bzImage /rtzImage

 edit /etc/lilo.conf file so that you can boot the new kernel 
add

 image=/boot/rtzImage
	label=rtlinux
	read-only
	root=/dev/hda1

 and reinstall lilo 
     #lilo
now
     #reboot

 RTLinux should boot
but you wont have the realtime modules or devs yet so

configure RTLinux:
	#cd /usr/src/rtlinux
	#make config or make menuconfig  or make xconfig

compile RTLinux:
   #make
    #sh scripts/insrtl   (you will be prompted for this one)
   #make devices
   #make install

this wil create /usr/rtlinux -> /usr/rtlinux-3.0

and run
   #/usr/rtlinux/bin/rtlinux start

now
   #lsmod
should show the realtime modules installed 

--------------------end--------------------------

Brian



Date Index | Thread Index | Back to archive index | Back to Mailing List Page

Problems or questions? Contact