RTAI with 4.19.152 - Bugs Fixed. Testers Needed

More
26 Nov 2020 19:58 #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
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
27 Nov 2020 02:42 #190391 by BeagleBrainz
I bet you're feeling pretty good, I know this has been a long haul.
Well done.

Please Log in or Create an account to join the conversation.

More
27 Nov 2020 02:54 - 27 Nov 2020 03:34 #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
Last edit: 27 Nov 2020 03:34 by Bari. Reason: missing NOT

Please Log in or Create an account to join the conversation.

More
27 Nov 2020 06:49 #190401 by BeagleBrainz
I saw that a little after I posted.

Please Log in or Create an account to join the conversation.

More
27 Nov 2020 07:34 - 27 Nov 2020 18:17 #190403 by Bari
We need more testers. Somebody else ran it for 10K test cycles on an Intel i5 and it was fine.
Last edit: 27 Nov 2020 18:17 by Bari. Reason: 10K test cycles

Please Log in or Create an account to join the conversation.

More
28 Nov 2020 21:58 #190556 by tommylight
Andrew got the boot ! :)
Thanks for reporting it.

Please Log in or Create an account to join the conversation.

More
30 Nov 2020 08:27 #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 or Create an account to join the conversation.

More
30 Nov 2020 08:38 #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 or Create an account to join the conversation.

More
30 Nov 2020 13:15 - 30 Nov 2020 22:23 #190671 by Vescovo
II am following the procedure for compiling the source.
=== 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
Last edit: 30 Nov 2020 22:23 by Vescovo.

Please Log in or Create an account to join the conversation.

More
30 Nov 2020 23:50 #190726 by Bari
Please wait for RTAI Debian packages.

Please Log in or Create an account to join the conversation.

Time to create page: 0.160 seconds
Powered by Kunena Forum