Xubuntu 18.04.5 + kernel 5.6.19-rt12 | rtai-modules-5.6.19-rt12 missed

More
08 Sep 2020 07:47 - 08 Sep 2020 09:05 #181215 by Adik A.
Hello again,

I decided to compare jitter under kernel 5.6.19-rt12, v4.14.175 and v4.19.114. I wanted v4.19.14, because supports Intel UHD 630 graphics (Intel i5-9500).

I'm stuck at the stage of compiling rtai-modules:
cat /etc/linuxmint/info
RELEASE=19.3
CODENAME=tricia
EDITION="Xfce"
DESCRIPTION="Linux Mint 19.3 Tricia"
DESKTOP=Gnome
TOOLKIT=GTK
NEW_FEATURES_URL=https://www.linuxmint.com/rel_tricia_xfce_whatsnew.php
RELEASE_NOTES_URL=https://www.linuxmint.com/rel_tricia_xfce.php
USER_GUIDE_URL=https://www.linuxmint.com/documentation.php
GRUB_TITLE=Linux Mint 19.3 Xfce
root@mint-linuxcnc:~/RTAI-master/ksrc# uname -a
Linux mint-linuxcnc 4.19.114-rtai-amd64 #1 SMP Tue Sep 8 09:07:06 CEST 2020 x86_64 x86_64 x86_64 GNU/Linux
cd ~/RTAI-master
./autogen.sh
./configure
debian/configure 4.19.114 rtai amd64
dpkg-buildpackage

Error:
In file included from ./include/linux/compat.h:16:0,
                 from ./arch/x86/include/asm/fpu/internal.h:14,
                 from /root/src/RTAI-master/include/asm/rtai_fpu.h:191,
                 from /root/src/RTAI-master/include/asm/rtai_hal.h:61,
                 from /root/src/RTAI-master/include/asm/rtai.h:23,
                 from /root/src/RTAI-master/include/rtai.h:27,
                 from /root/src/RTAI-master/src/sched/rtai_hal.c:75:
./include/linux/if.h:28:10: fatal error: sys/socket.h: There is no such file or directory
 #include <sys/socket.h>   /* for struct sockaddr.  */
          ^~~~~~~~~~~~~~

a bit earlier:
libtool: link: gcc -o calibrate calibrate-calibrate.o  -lpthread
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (	\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)

Has anyone successfully compiled the rtai-modules for v.4.19.14 and knows how to correct this error?

Under the v4.14.175 rtai-modules compiles w/o problems, jitter is great, but graphics acceleration does not work for my i5-9500 CPU. I also can't set the resolution to 1920x1080px.

Graphics card UHD 630 under kernel v.4.19.14 works OK, unfortunately I can't compile the RTAI modules.
Attachments:
Last edit: 08 Sep 2020 09:05 by Adik A..

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

More
08 Sep 2020 08:03 #181219 by BeagleBrainz
Are you wanting the RTAI kernel or the RT_PREEMPT kernel ?

And as far as I know Andy & others have done a lot of work on getting a RTAI kernel to work with Linuxcnc.

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

More
08 Sep 2020 08:07 #181220 by Adik A.

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

More
08 Sep 2020 08:16 #181222 by BeagleBrainz
What hardware are you going to be using to control your machine ?
I think it may be helpful if you state your goal and the hardware you hope to use with Linuxcnc ie: Mesa or Parallel port. As you have been jumping back & forth between RTAI & RT_PREEMPT.

As far as I know there is only one rtai version that will work with Linuxcnc, as I said before there as been a lot of work into getting Linuxcnc & the rtai kernel to work.

As it stands the current rtai kernel that is known to work with linuxcnc can have limited graphics.

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

More
08 Sep 2020 08:53 - 08 Sep 2020 09:00 #181224 by Adik A.
Hardware: Mesa 7i76e card.

I'm waiting for the delivery of DYN4 servo drives from DMM.

For my config (Core i5-9500, M.2 SSD, mini-itx mainboard) RTAI with kernel 4.x offers lower jitter (13us), RT_PREEMPT with kernel 5.6.19 jitter jumps to 80-100us.
Last edit: 08 Sep 2020 09:00 by Adik A..

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

More
08 Sep 2020 09:20 - 08 Sep 2020 09:21 #181225 by BeagleBrainz
You want RT_PREEMPT for Mesa ethernet. Your latency is fine.

YOU NEED TO USE RT_PREEMPT

DO NOT YOU USE RTAI FOR MESA ETHERNET

On my Lenovo T530 using my Mint 19.2 install.
running
latency-histogram --nobase
gives the follwoing
Attachments:
Last edit: 08 Sep 2020 09:21 by BeagleBrainz.

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

More
08 Sep 2020 09:37 #181226 by Adik A.
ok, so the conclusion: with Mesa Ethernet cards jitter is not as important as with a parallel connection right?

I tried your Linux Mint 19 repository but unfortunately there is a download error. I posted a log in the appropriate topic.

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

More
14 Dec 2020 08:18 #191943 by mirkap

Hello again,
...

Error:
In file included from ./include/linux/compat.h:16:0,
                 from ./arch/x86/include/asm/fpu/internal.h:14,
                 from /root/src/RTAI-master/include/asm/rtai_fpu.h:191,
                 from /root/src/RTAI-master/include/asm/rtai_hal.h:61,
                 from /root/src/RTAI-master/include/asm/rtai.h:23,
                 from /root/src/RTAI-master/include/rtai.h:27,
                 from /root/src/RTAI-master/src/sched/rtai_hal.c:75:
./include/linux/if.h:28:10: fatal error: sys/socket.h: There is no such file or directory
 #include <sys/socket.h>   /* for struct sockaddr.  */
          ^~~~~~~~~~~~~~

a bit earlier:
libtool: link: gcc -o calibrate calibrate-calibrate.o  -lpthread
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (	\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)

Has anyone successfully compiled the rtai-modules for v.4.19.14 and knows how to correct this error?
.[/b]


Hi,

I have exactly the same problem.

I try to compile RTAI 5.2.3. on Debian distro kernel 4.19.152.
I want to use RTAI with parallel port.

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

More
14 Dec 2020 09:05 #191945 by tommylight

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

More
14 Dec 2020 20:12 #191977 by mirkap

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

Time to create page: 0.118 seconds
Powered by Kunena Forum