Can the OPI5 be Configured to Run LCNC?

More
1 year 8 months ago #321674 by vre
opi5 plus has 2x2.5G lan.
This board can run linuxcnc with ethernet mesa card?
Supported by mainstrean kernel?
Has anyone tested it?

Please Log in to join the conversation.

More
1 year 8 months ago #321734 by royka
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

Please Log in to join the conversation.

More
1 year 8 months ago #321756 by vre
Gpu works?

Please Log in to join the conversation.

More
1 year 8 months ago #321757 by royka
Should work, but I'll make an image and try and will let you know what works (not).

Please Log in to join the conversation.

More
1 year 8 months ago #321835 by royka
Built an image with Armbian and chose "Bleeding edge" kernel with this config

Attachment not found

, 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.

 

Attachment not found

Please Log in to join the conversation.

More
1 year 8 months ago #321867 by vre
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 ?

Please Log in to join the conversation.

More
1 year 8 months ago #321876 by royka
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

Please Log in to join the conversation.

More
1 year 8 months ago #321906 by vre
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?)

Please Log in to join the conversation.

More
1 year 8 months ago #321912 by royka
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

Please Log in to join the conversation.

More
1 year 8 months ago #321927 by royka
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)
 

Attachment not found



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
 

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.341 seconds
Powered by Kunena Forum