Can the OPI5 be Configured to Run LCNC?

More
2 years 1 month ago #310047 by briansm
Replied by briansm on topic Can the OPI5 be Configured to Run LCNC?
Thanks for the excellent work @royka! Your deb files are exceptionally good.
I've experimented with various PREEMPT_RT patches for kernels 6.6 and 6.1, but haven't been able to achieve the impressively low real-time latency that you did for kernel 5.10.160 (testing with OrangePi5 Plus and OrangePi5 Max).
Could you share some insights for us to learn from? Or do you have the kernel patch/source that I can use to reproduce your build for kernel 5.10.160? I'd like to learn and apply the same techniques for a board with a Cortex A35 processor.

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

More
2 years 1 month ago #310090 by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
Because the source was not mainlined the bsp source was necessary. At the beginning I used the already rt patched source of Rockchip, because the bsp source seems to be cherry picked updated so applying the rt patch yourself won't work.
Then I created a rt patch by comparing the "original" rockchip source by the rt source.

After that, Orange Pi published a rt patched source, to compile that source see:
forum.linuxcnc.org/18-computer/48079-can...cnc?start=310#298309

The config in the attachment (copied from the Rockchip source and added a few things) works well with the RK3588.
So you could try to use that as a reference for the timers/schedulers.
Attachments:
The following user(s) said Thank You: briansm

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

More
2 years 1 month ago #310094 by briansm
Replied by briansm on topic Can the OPI5 be Configured to Run LCNC?
Thanks Royka!
FYR, I left the board run overnight. The max latency was less than 1us. Normally, it's 50 or 100us with other kernel rt patches:


In The cyclictest, the isolated cores (5, 7) have latency less than 3us
The following user(s) said Thank You: royka

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

More
2 years 1 month ago #310108 by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
That's a pretty impressive result! From which board is this?

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

More
2 years 1 month ago #310220 by briansm
Replied by briansm on topic Can the OPI5 be Configured to Run LCNC?
These results are from my tests with the OrangePi 5 Plus and OrangePi 5 Max using the kernel patch (version 5.10.160) from your Google Drive.

I attempted to patch kernel 6.1 with PREEMPT_RT patches but couldn't achieve the same low latency levels

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

More
2 years 1 month ago #310460 by nhanpham
Replied by nhanpham on topic Can the OPI5 be Configured to Run LCNC?
Hello, I am using the Orange Pi 5 Plus. I’m running Debian from the official Orange Pi website, and I have installed a real-time kernel patch (version 5.10.160). When I run LinuxCNC, I encounter this error when starting hm2:
Code:
iptables: Failed to initialize nft: Protocol not supported hm2_eth: ERROR: Failed to execute 'env "PATH=/usr/sbin:/sbin/${PATH}" iptables -A hm2-eth-rules-output -o enP3p49s0 -p icmp -j DROP'
The real-time kernel is working very well, but I am experiencing many errors related to total_packet_errors, which was showed in hal

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

Time to create page: 3.179 seconds
Powered by Kunena Forum