I was really happy when a version of QNX was released under GPL. Hardware level code just worked, and
the GUI was simple to program for. This version was not supported, and is no longer distributed by
them. This seems to be the closest solution, combined with Qt instead of Pt (Photon under QNX).
In general, anything to be done as root (make install) is prefixed with sudo, this is how Ubuntu does
things, they have no root login enabled by default.
This should work start to finsih, with the versions listed.
Using : Kubuntu 5.10 with Kernel 2.6.10, RTAI 3.3, Comedi 0.7.70, Comedilib 0.7.22
Taken mostly from
here
Additional info
here
Install K/Ubuntu and Kernel Source
Download ISO, burn to CD/DVD, install and configure, reboot to add base packages
Optional auto-updates, uncomment all config lines in sources.list
pico /etc/apt/sources.list
sudo apt-get update
sudo apt-get dist-upgrade
Add KDE desktop to Ubuntu, need KDE for KDevelop. Optionally add the "enlightenment" wm.
sudo apt-get install kubuntu-desktop
sudo apt-get install enlightenment eterm eterm-themes epplets menu
Add aditional development software.
sudo apt-get install build-essential g++-3.4 gcc-doc binutils-doc libncurses-dev
Add kernel source, real time source, and driver source (available in /usr/src)
sudo apt-get install kernel-source-2.6.10 rtai comedi-src libcomedi0
Un-tar all the source files (available in /usr/src)
Create a link from the source dir to /usr/src/linux :
cd /usr/src
ln -s kernel-source-2.6.10 linux
Build Kernel
In the kernel directory at /usr/src, apply ADEOS patch
cd /usr/src/linux
patch -p1 < ../modules/rtai/base/arch/i386/patches/hal-linux-2.6.10-i386-r9.patch
Choose a config method, one of :
make xconfig # (Qt-based)
make gconfig # (GTK-based)
make menuconfig # (dialog-based as in 24.1.x)
On the main menu, go to Adeos support and make sure it is on with a * (not M), use space to change.
Disable module versioning support in the loadable modules part of configuration (it is listed
experimental, rtai will not work with this on).
Set cpu architecture to 586/686 in processor type & features -> processor family (use the
586/686 option, 486 has issues).
Disable ACPI and APM in power management (not required but makes a better RTAI environment)
Exit and save the kernel configuration. Proceed to build the kernel:
make bzImage && make modules && sudo make modules_install && sudo make
install && echo "Done OK."
Add new kernel to boot loader:
cp arch/i386/boot/bzImage /boot/RTL-bzImage-2.6.12-386
cd /boot
sudo mkinitrd -o /boot/RTL-initrd.img-2.6.12-386 /lib/modules/2.6.12
this creates a ram disk required for booting.
Then edit the grub configuration:
sudo nano /boot/grub/menu.lst
add the following lines near the end in the linux block:
title Ubuntu, kernel 2.6.8.1-adeos
root (xxxxxx)
kernel /boot/vmlinuz-2.6.8.1-adeos root=/dev/hda2 ro quiet splash
initrd /boot/initrdl.img-2.6.8.1-adeos
savedefault
boot
Now you can reboot the machine, in grub, just select the adeos kernel. And it should boot. Really.
Build RTAI
Go to the rtai source directory:
cd /usr/src/modules/rtai
And choose an install method
make xconfig # (Qt-based)
make gconfig # (GTK-based)
make menuconfig # (dialog-based as in 24.1.x)
In add-ons, do NOT include the 'comedi support over LXRT' option (I can't get this to compile)
Also do NOT add In-kernel C++ support (unsupported)
Exit & save the configuration
make && sudo make install
Build Comedi
Compile and modprobe to load
cd /usr/src/modules/comedi
./configure && make && echo "Done OK."
sudo make install && sudo make dev && sudo modprobe comedi && echo "Done
OK."
Finished
Set up your comedi devices as per its instructions.
comedi-config ...