EtherCAT Communication Issues, Lost Frames, Interruptions in Program Execution

More
12 Sep 2024 19:24 #310027 by stenly
I'm not sure how that could happen. There were no other devices plugged in and even then the UUID the Alert is saying does not exist is exactly the Debian root partition of the SSD.

Yes, I did see that part of the docs. However, that only covers installing LinuxCNC (the software, not the distro) on an already patched to RTAI kernel on a vanilla Debian install, correct? I am still stuck on the part where you actually compile the RTAI kernel and boot to it.

Now that I think about it, while installing the compiled kernel with "make install," I did see some warning about some modules not being found and now the error at boot suggests the same.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
12 Sep 2024 19:40 #310030 by tommylight
No compiling.
if using the LinuxCNC official ISO, the only things you have to do is as stated in the linked page
sudo apt update
sudo apt install linuxcnc
it will install everything needed.
It might also complain it need to remove LinuxCNC-uspace, so if it does not remove it by itself
sudo apt purge linuxcnc-uspace
After reboot
uname -a
to check the kernel, and if it is the RT-preempt one, reboot and hold down the shift key till you see the grub menu, there choose the RTAI kernel and press enter.
The following user(s) said Thank You: stenly

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

More
13 Sep 2024 10:26 - 13 Sep 2024 10:46 #310059 by stenly
I'm still having trouble booting to RTAI. I did try to follow the steps from the official docs, but running the linuxcnc-install.sh script would cause source conflicts on a LinuxCNC ISO, leaving me unable to use apt. On a vanilla Debian 12 ISO, it would still install linuxcnc-uspace and all, but then on trying to run sudo apt install linuxcnc it would cause conflicts again, even when I try to purge linuxcnc-uspace and linuxcnc-doc*.

I tried it following the instructions from the pinned RTAI thread , install a fresh vanilla Debian 12 ISO, download the 4 .deb files and install them with dpkg, yet the linuxcnc package would fail to build with dpkg. Either way, it still leaves me with the same error about the root filesystem on attempting to boot. I even tried to go with BIOS boot instead of UEFI.

Am I still doing something wrong? Should I open a new thread in the Installing LinuxCNC forum section regarding this?

Edit: in the rescue shell I am dropped in, uname -r does confirm I am running the RTAI kernel. So the issue is not the kernel installation allegedly, but it somehow not finding the correct root filesystem? I double and triple checked the UUID, it is indeed the correct one.
Last edit: 13 Sep 2024 10:46 by stenly.

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

More
14 Sep 2024 10:53 #310134 by stenly
I managed to figure my way around the conflicts, I was interpreting the docs incorrectly probably. Also not sure what exactly I did differently, but after a few reinstalls through varying methods, I got past that error and onto a new problem.

Upon booting to the RTAI kernel, the display manager service fails to start entirely. I am able to press Ctrl+Alt+F1 to log into a tty, though and uname -r does tell me I am booted to the correct kernel. I am still unable to start the display manager or the desktop environment at all, even manually. Interestingly, when I start latency-test, a kernel panic occurs and the system freezes up entirely. I am attaching an image.

All this on UEFI boot and on both a vanilla Debian 12 install and an install of the LinuxCNC 2.9.3 ISO as well.

Quite honestly, I have no idea what to think.
Attachments:

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
14 Sep 2024 12:36 #310140 by tommylight
Try setting the BIOS in Legacy mode or with CMS enabled.
The following user(s) said Thank You: stenly

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
14 Sep 2024 12:38 #310141 by tommylight
Wait, i just saw the tittle, EtherCAT did not work with RTAI at all, are you sure it works now?
The following user(s) said Thank You: stenly

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

More
14 Sep 2024 12:40 - 14 Sep 2024 12:44 #310142 by stenly
Oh, I already did that as I mentioned a few posts ago. However, I didn't mention in the latest post that trying it in Legacy boot doesn't get me past the initial root filesystem error. No clue...

I will attempt to try some different RTAI versions and will also see if I can try it out on a different computer altogether. In the pinned RTAI thread I saw some talk of unstable versions and on differing behavior across different motherboards.

Will give it a few more tries before I look into buying new hardware, lol.

EDIT: Did not see your last response as it seems you posted it as I was typing mine. I have no clue about EtherCAT on RTAI at this point as I am simply trying to boot w/ RTAI for the sake of seeing if the latency spikes issues are resolved. The idea was to go back to EtherCAT testing as the next step after this is settled. Or do you mean that RTAI in general is entirely incompatible with EtherCAT and I shouldn't pursue this line of thinking at all?
Last edit: 14 Sep 2024 12:44 by stenly.

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

More
14 Sep 2024 14:37 - 14 Sep 2024 15:01 #310147 by CORBETT
@stenly

I am positive Sascha dropped support for RTAI back years ago, and this would have been before Scott started the new branch that everyone is working from on the REPO.  (I can remember Sascha stating that no one is using RTAI now and he was dropping support)

Be aware that RTAI had a lot of work arounds back in the day.  The last time that I built with RTAI was back in 2015 and that was under Debian 7 Wheezy with LCNC 2.6...  Back before 2015, RTAI was dominate as LCNC did not play well with PREEMPT.  But somewhere around 2015-2017, PREEMPT took over.  I am pretty sure that Sascha fixed the "mutex" problem back before PREEMPT came into play.  I worked heavily on the RTAI builds back between 2013-2015, and I am sure I have all my notes from back then on the work arounds.  Also, you mentioned about "missing modules", I am sure you are talking about the "kernel modules" as that was a problem back with RTAI builds.  I am extremely busy and never on here, but I will try to do a RTAI build over the weekend and see if it will work without doing a bunch extra work.  Two weeks ago, I did a minimal Debian 12 with LCNC 2.10, ECAT 1.6, and Sascha's code, but that was with PREEMPT...  I will do my best to try and do a build and let you know something.

Also, in the BIOS... yes you have to be "legacy" and under the "drives' section you need to check if it is in "RAID" mode.  If you have more than one SSD/drive hooked up, it will try to automatically turn RAID on and you will get the BOOT errors you are describing.


Hope it helps...
Robert


"""EDIT"""    
I forgot to add that you MUST get the "kernel modules" installed to get RTAI working.  If you do not get them installed, you will NOT be able to do the build as it will fail while building.  Just wanted to make sure you were aware of that.

 
Last edit: 14 Sep 2024 15:01 by CORBETT.
The following user(s) said Thank You: tommylight, stenly

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

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
14 Sep 2024 21:27 #310166 by rodw
I am pretty sure that RTAI is not supported  by ethercat debs. For starters, the debs use DKMS  so the kernel modules are compiled on yur computer so I suspect that requires a mainstream kernel to fetch the linux-headers source code.
The following user(s) said Thank You: stenly

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

More
14 Sep 2024 23:28 #310173 by CORBETT
@Rod

Yeah I agree, I hadn't went to the RTAI site in a long time and wasn't sure if by chance it had gone mainstream.  I checked earlier and no, it's still the task of compiling.  So, yeah you are right about the debs.

It really comes down to if he can get PREEMPT working or if he has to go with RTAI.  If RTAI, then it will be a not so fun source build... those kernel modules suck to deal with if they don't install right off.
The following user(s) said Thank You: rodw, stenly

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

Time to create page: 0.080 seconds
Powered by Kunena Forum