Dear Bari,
I currently have a LinuxCNC2.8 RTAI setup from 2 years ago and would like to test 2.9 with RTAI. I want to use RTAI because it gives me the best latency on my PC and I use the Parport for stepper signal generation.
Is there a tutorial/documentation on how to install a LinuxCNC 2.9 from scratch and then add your RTAI kernel?
Thanks!
Dom
Hi Dom,
So there are no LinuxCNC packages built right now against my latest RTAI 5.3.3 Delta release yet, to my knowledge. Building LinuxCNC though once you have RTAI installed is very easy.
For simplicity sake, let's stick with just the 5.4 kernel packages.
Download the RTAI 5.4 kernel debian packages:
github.com/NTULINUX/RTAI/releases/tag/v5.3.3-delta
You need linux-image, linux-headers and rtai-modules:
github.com/NTULINUX/RTAI/releases/downlo...ai-amd64-1_amd64.deb
github.com/NTULINUX/RTAI/releases/downlo...ai-amd64-1_amd64.deb
github.com/NTULINUX/RTAI/releases/downlo...xcnc-delta_amd64.deb
Once you have those downloaded, in command line:
Code:
sudo dpkg -i linux-image-5.4.224-rtai-amd64_5.4.224-rtai-amd64-1_amd64.deb
sudo dpkg -i linux-headers-5.4.224-rtai-amd64_5.4.224-rtai-amd64-1_amd64.deb
sudo dpkg -i rtai-modules-5.4.224_5.3.3-linuxcnc-delta_amd64.deb
Specify the full path to the Debian packages after the `-i` if you are not currently in the directory of the .deb files.
After that, build LinuxCNC master branch from source:
Code:
git clone https://github.com/LinuxCNC/linuxcnc
cd linuxcnc/src
./autogen.sh
./configure --enable-non-distributable=yes
make
sudo make setuid
cd ..
. ./scripts/rip-environment
You should now be able to launch LinuxCNC, latency-test and latency-histogram via the following commands:
Code:
linuxcnc
latency-test
latency-histogram
The build dependencies for LinuxCNC must be installed before running the above `./configure` command.
Refer to this page for more info:
linuxcnc.org/docs/master/html/code/build...g-Build-Dependencies
To match that documentation page, you can use this `git clone` command instead of the one I listed above:
Code:
git clone https://github.com/LinuxCNC/linuxcnc linuxcnc-dev