Version 2.8.2 Debian Buster PREEMPT-RT ISO Freezes

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
28 Jun 2022 11:49 #246073 by tommylight

linux-image-5.10.0-13-rt-amd64 : Breaks: wireless-regdb (< 2019.06.03-1~) but 2016.06.10-1 is to be installed

It means there are wireless drivers installed that do not like the RT kernel, did you install additional wireless drivers?

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

More
28 Jun 2022 17:11 #246092 by jcbryant
Certainly not knowingly. And there's no point whatsoever in having any wireless drivers at all as there's no wireless hardware.

My reading of "but 2016.06.10-1 to be installed" is that installing ethtool would result in the installation of a 2016 version of wireless-regdb, and that the RT kernel I've got now requires a newer version (something later than 2019.06.03?). Is this correct?

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

More
29 Jun 2022 10:30 #246148 by jcbryant
I've done a bit of poking around. wireless-regdb is not a driver but the wireless regulatory database. Kernels depend on it, and so does ethtool. And as the 5.10 image and ethtool appear to require different versions of wireless-regdb, one evidently can't have both installed at the same time.

Looking at my list of installed packages, I see that the 4.19 kernel is still there. Does this means I can get back to where I was by just removing linux-image-5.10.0-13-rt-amd64?

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
29 Jun 2022 13:33 #246161 by tommylight
Press the power button on the PC, then hold down the SHIFT key till you see the GRUB menu, choose "advanced ....", there you can choose to boot the old kernel and test things.
If you want to remove the 5.10 kernel, you have to do the above procedure as the working kernel can not be removed, so the PC has to boot from 4.19.

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

More
29 Jun 2022 18:51 #246185 by jcbryant
Actually one can remove the working kernel. There's a warning message but it is possible to proceed anyway. After removing 5.10, I reinstalled 4.19, and then rebooted. Worked fine.

Now that I'm back to 4.19, everything seems to be as it was. Those strange LinuxCNC read errors have vanished, and LinuxCNC is now back to working normally apart from the fact that after some time it and the machine all freeze up.

While still using 5.10 I did some more long term pinging and in one case the worst case round trip time was 1.5ms. Truly horrendous and greater than the servo thread interval. I also noticed something of a pattern. Things would go on for a while with all round trip times close to .11ms, then there'd be a period when times were significantly higher (by a factor of 3 or 4), and then things would go back to normal. I wondered whether whether this might be due to the Intel NM10 chip set applying some form of temperature control, and applied some new thermal grease between .it and the heat sink. I haven't seen the pattern since, but then I haven't done much testing.

Basically I'm right back to where I was when I started, except in that I'm now a little bit less helpless when it comes to finding my way around Linux. Progress of a sort.....

P.S. ethtool is now installed. The 5.10 dependency Catch-22 doesn't apply to 4.19 as both 4.19 and ethtool require the same version of ethtool.
The following user(s) said Thank You: tommylight

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

More
29 Jun 2022 21:57 #246220 by andypugh
I wonder if RTAI is an option? Kernel-mode RTAI won't work, but you can actually run LinuxCNC-uspace on an RTAI kernel.
But you probably have to build your own...
andypugh@buster:~/linuxcnc-dev/src$ uname -a
Linux buster 4.19.195-rtai-amd64 #5 SMP PREEMPT Sun Jul 11 19:13:27 BST 2021 x86_64 GNU/Linux
andypugh@buster:~$ linuxcnc
LINUXCNC - 2.9.0~pre0
Note: Using LXRT realtime

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

More
29 Jun 2022 22:02 #246223 by andypugh
I have kicked off a compile of uspace on RTAI, and will then check it with an ethernet card (tomorrow) (if I remember)

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

More
30 Jun 2022 20:13 #246302 by jcbryant
I had hoped that

sudo ethtool -C eth0 rx-usecs 0

might be a silver bullet, but when I checked the current parameters for the interface (actually named enp1s0, in case this means anything to anybody) I found that rx-usecs is already zero.

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

More
01 Jul 2022 14:04 #246369 by jcbryant
I left ping (to the Mesa card) running last night and when I stopped it this morning the reported average and maximum round trip times were 0.114ms and 2.140ms.  I don't know whether the high maximum is in any way related to the system freezes I'm experiencing, but I take it as a sign that something very strange is happening now and then.

I would be very interesting in knowing whether running the same test on other machines does or does not produce similar results.

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

More
03 Jul 2022 10:07 #246491 by andypugh

I have kicked off a compile of uspace on RTAI, and will then check it with an ethernet card (tomorrow) (if I remember)

Clearly I have failed to remember. 

Maybe next week. 
The following user(s) said Thank You: tommylight

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

Time to create page: 0.073 seconds
Powered by Kunena Forum