Some note on how I installed stuff on the AOICH 07/2002. RTLinux on RH7.3 using the 2.4.18 kernel. 0. My installation based on "Open RTLinux V3.1 Installation notes from Gerhard Schlager " This file are just my notes on what I did. The AP PC are: 600Mhz Intel Pentium III 192 MB RAM Intel CA810E motherboard (integrated video, sound). video requires agpgart(i810) option enable. 4MB video using RAM. Intel PCI EtherExpress Pro100 82557 -> use eepro100 driver. /dev/hda1 - swap. a2 - / (for rh7.1) a3 - / (for rh6.2) a4 - /aux 1. Install a standard redhat 7.3 distrubtion. 1.1 Perform normal RedHat install. I did the following: custom configuration No Firewall options. Install services: telnet, rsh, rdist ssh-server; and edit /etc/xinetd.d to enable. 1.2. Post installation. a. Add accounts: aroot, droot, ao, denault. c. nfs mountings, nis, telnet, rlogin, ssh c. up2date d. Other need apps: dump/restore 2. Get 2.4.18 kernel, Open RTLinux 3.1, and patch for 2.4.18 kernel 2.1. Get 2.4.18 kernel source: > ftp ftp.kernel.org user: ftp password: me@ ftp> cd pub/linux/kernel/v2.4/ ftp> get linux-2.4.18.tar.bz2 ftp> quit 2.1. Get Open RTLinux 3.1, rtlinux documentation, and patch for 2.4.18 kernel to run RTLinux 3.1 >ftp ftp.fsmlabs.at user: ftp password: me@ ftp> cd pub/rtlinux ftp> get rtlinux-3.1.tar.bz2 ftp> get rtldoc-3.1.tar.bz2 ftp> cd contrib/ripoll ftp> get rt-patch-2.4.18.tar.bz2 ftp> quit 3. Installed the standard kernel to be used with RTLinux. I prefer to first compile & install the standard kernel before appling the RTL patches. > su root # cd /usr/src # rm linux-2.4 (link) # bunzip2 -c ~/rtlinux/linux-2.4.18.tar.bz2 | tar xvf - # mv linux linux-2.4.18 # ln -s linux-2.4.18 linux *Also check to make user /usr/include/linux is a link to /usr/src/linux/include/linux. # cd linux # make menuconfig Code maturity level options -> Prompt for development and/or incomplete code/drivers ENABLE Processor type and features -> your CPU type MTRR (Memory type range register) ENABLE Symmetric mulit-processing support DISABLE General setup -> Power Management support -> DISABLE enable NFS v3 Recompile kernel, modules & install # make dep # make clean # make install # make modules # make modules_install # reboot 4. Modifiy the standard 2.4.18 to RTLinux by installing the 3.1 source and 2.4.18 kernel patch 4.1 unpack the downloaded files to /usr/src > su root # cd /usr/src # bunzip2 -c ~/rtlinux/rtlinux-3.1.tar.bz2 | tar xvf - # bunzip2 -c ~/rtlinux/rt-patch-2.4.18.tar.bz2 | tar xvf - 4.2 gunzip the patch files in rt-patch-2.4.18/ /usr/src # gunzip rt-patch-2.4.18/patch_rtl-2.4.18.gz /usr/src # gunzip rt-patch-2.4.18/patch_rtlinux-3.1.gz 4.3 Lets rename the current kernel source directory to reflect it is an _rtl source:o /usr/src # mv linux-2.4.18 linux-2.4.18_rtl /usr/src # rm linux /usr/src # ln -s linux-2.4.18_rtl linux 4.4 Change /usr/include/asm to refer to /usr/src/linux/include/asm-i386: # rm -rf /usr/include/asm # ln -s /usr/src/linux/include/asm-i386 /usr/include/asm 4.5 Need to patch the standard kernel to use with RTLinux. First do a dry-run and inspect the log file. If everthing look good do the patch for real # cd /usr/src/linux # patch -p1 --dry-run < ../rt-patch-2.4.18/patch_rtl-2.4.18 > mylogfile # patch -p1 < ../rt-patch-2.4.18/patch_rtl-2.4.18 4.6 Prepare to recompile the kernel. Save your .config before doing make mrproper, then restore it. The make oldconfig just check it: cp .config my_config make mrproper cp my_config .config make oldconfig 4.7 Recompile kernel, modules & install # make dep # make clean # make install # make modules # make modules_install # reboot 5. Now the RTLinux3.1 must be patch for the 2.4.18 kernel. Then you can Install/Make RT Linux. 5.1 Change to the /usr/src/rtlinux-3.1 directory and make a dry run patch with /usr/src/rtlinux-3.1 # cd /usr/src/rtlinux-3.1 # patch -p1 --dry-run < ../rt-patch-2.4.18/patch_rtlinux-3.1 > file_list.out if the output, saved in the file file_list.out is ok, make the patch true. # patch -p1 < ../rt-patch-2.4.18/patch_rtlinux-3.1 5.2. Install RTlinux, first make a symbolic links: # cd /usr/src # ln -s rtlinux-3.1 rtlinux # cd rtlinux # ln -s ../linux linux 5.3 Make RTLinux # cd /usr/src/rtlinux # make menuconfig enable Userspace Real-Time (psc.o module). # make dep # make # make devices 5.4 Configure so that RTLinux modules are loaded at boot time. Add these line to /etc/rc.d/rc.local install rtl modules at boot time. #----------------------------------------- echo "Installing RTLinux Modules ... " sleep 1 insmod /usr/src/rtlinux/modules/rtl.o insmod /usr/src/rtlinux/modules/rtl_time.o insmod /usr/src/rtlinux/modules/rtl_sched.o insmod /usr/src/rtlinux/modules/rtl_posixio.o insmod /usr/src/rtlinux/modules/rtl_fifo.o insmod /usr/src/rtlinux/modules/psc.o insmod /usr/src/rtlinux/modules/mbuff.o