RTAI with 4.19.152 - Bugs Fixed. Testers Needed

More
5 years 11 months ago #190362 by Bari
RTAI is working with the 4.19.152 kernel, IPIPE release 15.

Latency on AMD Ryzen is staying below 10 microseconds.

The load/unload crash test bug looks fixed.

No Deb packages yet.

Source is here: github.com/NTULINUX/RTAI

Please Log in to join the conversation.

  • BeagleBrainz
  • New Member
  • New Member
More
5 years 11 months ago #190391 by BeagleBrainz
Replied by BeagleBrainz on topic RTAI with 4.19.152 - Bugs Fixed. Testers Needed
I bet you're feeling pretty good, I know this has been a long haul.
Well done.

Please Log in to join the conversation.

More
5 years 11 months ago #190392 by Bari
Well might NOT be over yet. It works fine here but Andy just tried this earlier today and he said:
"I tried running the abs.0 test in a loop with your new RTAI and 4.19.152. Unfortunately the old problem is still there, it locked the machine after 111 iterations. "

This script:

#!/bin/bash
sudo dmesg -c > /dev/null
rm ${HOME}/test-results/*
source ${HOME}/linuxcnc-dev/scripts/rip-environment
for PASS in $(seq 1 1000); do
echo starting pass ${PASS}
runtests ${HOME}/linuxcnc-dev/tests/abs.0
# uncomment these lines to make it crash less often
#DMESG=$(printf "${HOME}/test-results/dmesg.%04d" ${PASS})
#sudo dmesg -c > ${DMESG}
#cat ${DMESG} | cut -d ] -f 2- > ${DMESG}.cut
#sync
done

Please Log in to join the conversation.

  • BeagleBrainz
  • New Member
  • New Member
More
5 years 11 months ago #190401 by BeagleBrainz
Replied by BeagleBrainz on topic RTAI with 4.19.152 - Bugs Fixed. Testers Needed
I saw that a little after I posted.

Please Log in to join the conversation.

More
5 years 11 months ago #190403 by Bari
We need more testers. Somebody else ran it for 10K test cycles on an Intel i5 and it was fine.

Please Log in to join the conversation.

More
5 years 11 months ago #190556 by tommylight
Andrew got the boot ! :)
Thanks for reporting it.

Please Log in to join the conversation.

More
5 years 11 months ago #190658 by Vescovo
Hello All,
The RTAI 4.19.152 component is mostly installed but causing problems with opening "kernel/ipipe/Kconfig.debug" for make olddefconfig and make menuconfig. Any help would be appreciated.

Please Log in to join the conversation.

More
5 years 11 months ago #190660 by Bari
Why are you trying to open "kernel/ipipe/Kconfig.debug"?

Please post more details about what you are trying to do.

Please Log in to join the conversation.

More
5 years 11 months ago #190671 by Vescovo
II am following the procedure for compiling the source.
Code:
=== Installing RTAI === Commands marked with # specify root, commands marked with $ are user commands. 1.) Download the RTAI source $ git clone https://github.com/NTULINUX/RTAI.git 2.) Patch kernel with IPIPE, in this case we use 4.19.152 # rm -rf /usr/src/000*.patch /usr/src/linux # cd /usr/src # wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.19.152.tar.xz # tar xf linux-4.19.152.tar.xz # ln -sfv linux-4.19.152 linux # cp -aLv /path/to/this/RTAI-git-tree/ksrc/patches/v4.19.152/*.patch /usr/src/ # cd linux # patch -p1 < ../0001*.patch # patch -p1 < ../0002*.patch # patch -p1 < ../0003*.patch # patch -p1 < ../0004*.patch # make olddefconfig # make menuconfig Configure to your needs # make bzImage && make modules # make install && make modules_install 3.) Update grub Refer to your distribution documentation to do this. Generally for newer distros: # grub-mkconfig -o /boot/grub/grub.cfg 4.) Configure, build and install RTAI (MUST BE BOOTED INTO YOUR NEW RTAI KERNEL) $ cd ~/RTAI $ ./autogen.sh $ make menuconfig Configure to your needs. You may also use ./configure instead. For a full list of possible options: $ ./configure --help To build and install RTAI: $ make # make install === To create an RTAI .deb package === Remove any previously installed RTAI packages: # apt-get purge linux-*-rtai* rtai-modules* Notice: You must run the command above from inside a directory that does not contain any .deb packages, otherwise you may see errors such as: E: Unable to locate package linux-4.19.152-rtai_4.19.152-rtai-1_amd64.changes $ cd ~/RTAI $ ./autogen.sh $ ./debian/configure 4.19.152 rtai FIXME: In some cases (undetermined as of yet) you may need to use this command instead: $ ./debian/configure 4.19.152 rtai amd64 Now you are ready to build the actual package: $ dpkg-buildpackage -uc -us 5.) LinuxCNC Configure LinuxCNC: $ cd linuxcnc/src $ ./autogen.sh $ ./configure For a full list of possible options: $ ./configure --help Now build LinuxCNC: $ make Allow LinuxCNC to change permissions as needed: # make setuid To test LinuxCNC in a run-in-place environment: $ cd ../ && . ./scripts/rip-environment To run LinuxCNC latency test in said environment: $ latency-test Or to run LinuxCNC itself: $ linuxcnc For more information on building and installing LinuxCNC, please visit: http://linuxcnc.org/docs/master/html/code/building-linuxcnc.html

It fails at "make olddefconfig" and "make menuconfig"
The original OS is a fresh install of Linuxcnc 2.8 buster vmlinuz-4.19.0-12-rt-amd64 Preempt RT

In order to get this far I needed to install
apt-get install bison
apt-get install flex

#Errors
root@debian-10amd:/usr/src/linux# make olddefconfig
scripts/kconfig/conf --olddefconfig Kconfig
lib/Kconfig.debug:438: can't open file "kernel/ipipe/Kconfig.debug"
make[1]: *** [scripts/kconfig/Makefile:69: olddefconfig] Error 1
make: *** [Makefile:554: olddefconfig] Error 2

root@debian-10amd:/usr/src/linux# make menuconfig
scripts/kconfig/mconf Kconfig
lib/Kconfig.debug:438: can't open file "kernel/ipipe/Kconfig.debug"
make[1]: *** [scripts/kconfig/Makefile:29: menuconfig] Error 1
make: *** [Makefile:554: menuconfig] Error 2

REBUILT again in different order.
1) Installed linuxcnc buster x64 ISO onto USB and dist-upgrade
2) Installed RTAI from source
3) Patched 4.19.0-12 reporting as 4.19.152-1 prior to patch and paused at "make olddefconfig"
4) Installed Linuxcnc Source as per linuxcnc.org/docs/devel/html/code/building-linuxcnc.html
5) Installed ALL dependencies like before
6) Ran make, no errors
7) Ran runtests, no errors
8) Continued with make olddefconfig, no error
9) make menuconfig, left defaults
10) make bzImage && make modules: FAILED looking for timeconst.h
11)locate timeconst.h NO RESULT

Please Log in to join the conversation.

More
5 years 11 months ago #190726 by Bari
Please wait for RTAI Debian packages.

Please Log in to join the conversation.

Time to create page: 0.099 seconds
Powered by Kunena Forum