Can the OPI5 be Configured to Run LCNC?
- vre
- Away
- Platinum Member
-
Less
More
- Posts: 564
- Thank you received: 16
16 Feb 2025 01:10 - 16 Feb 2025 04:36 #321674
by vre
Replied by vre on topic Can the OPI5 be Configured to Run LCNC?
opi5 plus has 2x2.5G lan.
This board can run linuxcnc with ethernet mesa card?
Supported by mainstrean kernel?
Has anyone tested it?
This board can run linuxcnc with ethernet mesa card?
Supported by mainstrean kernel?
Has anyone tested it?
Last edit: 16 Feb 2025 04:36 by vre.
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 355
- Thank you received: 123
16 Feb 2025 13:09 - 16 Feb 2025 15:00 #321734
by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
Yes it can run it easily, the same as OPI5, I have tested it, only need to pin the ethernet irq to an isolated core, isolating only the last core is sufficient. I haven't tried to build from mainline without any patches. At least the dtb is there:
github.com/torvalds/linux/blob/master/ar...-orangepi-5-plus.dts
I'd recommend to build an image (or just the kernel) with Armbian since then some Rockchip specific patches will be included:
github.com/armbian/build/tree/main/patch...rchive/rockchip-6.13
And don't forget to build with mesa-vpu extension:
ENABLE_EXTENSIONS=mesa- vpu
github.com/torvalds/linux/blob/master/ar...-orangepi-5-plus.dts
I'd recommend to build an image (or just the kernel) with Armbian since then some Rockchip specific patches will be included:
github.com/armbian/build/tree/main/patch...rchive/rockchip-6.13
And don't forget to build with mesa-vpu extension:
ENABLE_EXTENSIONS=mesa- vpu
Last edit: 16 Feb 2025 15:00 by royka.
Please Log in or Create an account to join the conversation.
- vre
- Away
- Platinum Member
-
Less
More
- Posts: 564
- Thank you received: 16
16 Feb 2025 18:30 #321756
by vre
Replied by vre on topic Can the OPI5 be Configured to Run LCNC?
Gpu works?
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 355
- Thank you received: 123
16 Feb 2025 19:00 #321757
by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
Should work, but I'll make an image and try and will let you know what works (not).
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 355
- Thank you received: 123
17 Feb 2025 14:08 #321835
by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
Built an image with Armbian and chose "Bleeding edge" kernel with this config
, booted from sd (nvme got recognized though)
Isolated core 7 and added the following environment setting so linuxcnc 2.9 will work with RT priority (not needed with a recent 2.10 build):
echo 'LINUXCNC_FORCE_REALTIME=1' | sudo tee /etc/environment
First tried with cinnamon (X11) it works but it isn't smooth, you can see the cursor flickering sometimes.
After that tried Gnome on Wayland, this works smooth.
HDMI audio doesn't work yet with 6.13, but the patches are sent so possibly it will work from 6.14
gitlab.collabora.com/hardware-enablement...n/mainline-status.md
Somehow when I run latency-histogram with base thread, the latency of the servo thread goes over 100us. Without the base thread it stays below 10us, so with Mesa it'll work perfectly fine.
It works fine, but I'll self stay with the vendor kernel 6.1.75 for now because it still works great for months without any problems.
Isolated core 7 and added the following environment setting so linuxcnc 2.9 will work with RT priority (not needed with a recent 2.10 build):
echo 'LINUXCNC_FORCE_REALTIME=1' | sudo tee /etc/environment
First tried with cinnamon (X11) it works but it isn't smooth, you can see the cursor flickering sometimes.
After that tried Gnome on Wayland, this works smooth.
HDMI audio doesn't work yet with 6.13, but the patches are sent so possibly it will work from 6.14
gitlab.collabora.com/hardware-enablement...n/mainline-status.md
Somehow when I run latency-histogram with base thread, the latency of the servo thread goes over 100us. Without the base thread it stays below 10us, so with Mesa it'll work perfectly fine.
It works fine, but I'll self stay with the vendor kernel 6.1.75 for now because it still works great for months without any problems.
Attachments:
Please Log in or Create an account to join the conversation.
- vre
- Away
- Platinum Member
-
Less
More
- Posts: 564
- Thank you received: 16
17 Feb 2025 20:20 #321867
by vre
Replied by vre on topic Can the OPI5 be Configured to Run LCNC?
Vendor kernel is real time preempt-rt ?
Because am interested for base thread because i need raster engraving
what jitter has base thread with vendor kernel ?
Because am interested for base thread because i need raster engraving
what jitter has base thread with vendor kernel ?
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 355
- Thank you received: 123
17 Feb 2025 22:20 #321876
by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
Yes vendor kernel is preempt-rt, jitter stays under 10us especially when you don't watch youtube
Here you can find the result and download link:
forum.linuxcnc.org/18-computer/48079-can...cnc?start=370#312714
Here you can find the result and download link:
forum.linuxcnc.org/18-computer/48079-can...cnc?start=370#312714
Please Log in or Create an account to join the conversation.
- vre
- Away
- Platinum Member
-
Less
More
- Posts: 564
- Thank you received: 16
18 Feb 2025 10:14 #321906
by vre
Replied by vre on topic Can the OPI5 be Configured to Run LCNC?
Very nice this will be perfect for base thread.
The pin header that has the board can drive 4 close-loop steppers ?
(i have a rockpro64 any hope for this for an image with preempt-rt kernel?)
The pin header that has the board can drive 4 close-loop steppers ?
(i have a rockpro64 any hope for this for an image with preempt-rt kernel?)
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 355
- Thank you received: 123
18 Feb 2025 12:04 #321912
by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
It would be better to have some protection of course, the same as with a Raspberry. The pin header can be used via the driver made by Guglielmi:
forum.linuxcnc.org/18-computer/48079-can...cnc?start=200#273554
For Rockpro64 (rk3399?), I built an image before for a Orange Pi 4, but that didn't seem to work well, spikes to 130us, could work with Mesa though. You can try to build one via Armbian, from 6.12 and up you don't really need to patch it, just the right configuration. Then experiment to isolate cpu1 and move the rt tasks to that core as explained in the following post:
forum.linuxcnc.org/18-computer/48079-can...cnc?start=280#286432
forum.linuxcnc.org/18-computer/48079-can...cnc?start=200#273554
For Rockpro64 (rk3399?), I built an image before for a Orange Pi 4, but that didn't seem to work well, spikes to 130us, could work with Mesa though. You can try to build one via Armbian, from 6.12 and up you don't really need to patch it, just the right configuration. Then experiment to isolate cpu1 and move the rt tasks to that core as explained in the following post:
forum.linuxcnc.org/18-computer/48079-can...cnc?start=280#286432
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 355
- Thank you received: 123
18 Feb 2025 18:14 - 18 Feb 2025 22:21 #321927
by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
For the rockpro 64 the first 2 cores (0,1) are the faster ones. To move the RT processes to cpu1, you can run this script as root (rename to prio.sh)
This was the rt kernel I made for the rk3399 back then:
drive.google.com/drive/folders/12VfNmKC3...zaNAk2EN5sHDfeCnnzYX
Maybe you've more luck with using the script (don't forget to hit the reset button in latency-histogram after running the script.)
With the Orange Pi 5 plus, when I split the processes to core 5 and 7 with the script above the latency with base thread is better with Linux 6.13
This was the rt kernel I made for the rk3399 back then:
drive.google.com/drive/folders/12VfNmKC3...zaNAk2EN5sHDfeCnnzYX
Maybe you've more luck with using the script (don't forget to hit the reset button in latency-histogram after running the script.)
With the Orange Pi 5 plus, when I split the processes to core 5 and 7 with the script above the latency with base thread is better with Linux 6.13
Attachments:
Last edit: 18 Feb 2025 22:21 by royka.
The following user(s) said Thank You: vre
Please Log in or Create an account to join the conversation.
Time to create page: 0.136 seconds