Here's a summary of what I did, along with files that should help you recreate the setup on your own system:
- switched from "nvidia" to "vesa" display X.org display driver out of superstition
- Downloaded rtai "magma" CVS and linux kernel source 2.6.20.12
- patched kernel with hal-linux-2.6.20-x86_64-1.0-08.patch
- configured kernel with these options
- installed kernel and remembered to mkinitramfs and update-grub (the second try anyway)
- configured rtai with ./configure --enable-shm --enable-sched-up --enable-sched-lxrt --enable-fpu --enable-compat --disable-leds
- hacked emc2 TRUNK into compiling with
emc2-amd64-rev2.patch(patch no longer required)
To my surprise, emc "just worked" at this point, right up to running the nist-lathe configuration and moving motors. The rtai "kern/latency" test gave encouraging numbers as well---"ovl max" of under 7000ns after a run of several minutes. However, I did get an "unexpected realtime delay" report:
Yes, that's correct, the anomalous number was much smaller than the others. Update: the bug that caused this is now fixed in the CVS version of emc. Now my system runs the nist-lathe configuration nicely with a base-period of 15000 ns.In recent history there were 2009142, 1908, 2010087, 2008173, and 2009117 elapsed clocks between calls to the motion controller. This time, there were 2007608 which is so anomalously large that it probably signifies a problem with your realtime configuration. For the rest of this run of EMC, this message will be suppressed.
So that brings me to the list of items that need further study before this system is pronounced "ready"--don't hold your breath for official packages.
userspace/kernel header mismatches
kernel space floating point
the latency warning
- testing on more systems
- kernel and rtai packages for ubuntu
- maybe a bogon with scoping a u32 value
Files currently attached to this page:
emc2-amd64-rev2.patch | 8.7kB |
kernel.config | 42.5kB |
(originally posted on the AXIS blog)
Entry first conceived on 31 May 2007, 1:01 UTC, last modified on 15 January 2012, 3:46 UTC
Website Copyright © 2004-2024 Jeff Epler