- Posts: 383
- Thank you received: 135
Can the OPI5 be Configured to Run LCNC?
- royka
- Offline
- Platinum Member
-
Less
More
1 year 1 month ago #334852
by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
Yeah I've seen it before, I believe it's a bug with the version of Mesa you're using.
Compiling a new version of mesa with panfrost would likely solve it.
Otherwise I'd suggest to take a new Armbian image and install the 6.1.115 kernel from: drive.google.com/drive/folders/1sPtbXDfx...WCB8o-ur0CINmMNvcjTQ
With the overlay "opi5plus-fixedfreq-undervolt.dts" it has a very low latency. You only need to remove the "-plus" at comparability and after that install it with "sudo armbian-add-overlay opi5plus-fixedfreq-undervolt.dts"
Compiling a new version of mesa with panfrost would likely solve it.
Otherwise I'd suggest to take a new Armbian image and install the 6.1.115 kernel from: drive.google.com/drive/folders/1sPtbXDfx...WCB8o-ur0CINmMNvcjTQ
With the overlay "opi5plus-fixedfreq-undervolt.dts" it has a very low latency. You only need to remove the "-plus" at comparability and after that install it with "sudo armbian-add-overlay opi5plus-fixedfreq-undervolt.dts"
Please Log in or Create an account to join the conversation.
- ccc774
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 2
1 year 1 month ago - 1 year 1 month ago #334890
by ccc774
Replied by ccc774 on topic Can the OPI5 be Configured to Run LCNC?
thanks Royka for the kernel.
I rebuilt the system today with Armbian Trixie and rt-kernel 6.1.115. I couldn't get the 3D accelerator to work. I think something was not set when the kernel was created.
OpenGL vendor string: Mesa
OpenGL renderer string: llvmpipe (LLVM 19.1.7, 128 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 25.0.7-2
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.5 (Compatibility Profile) Mesa 25.0.7-2
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 25.0.7-2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
Linuxcnc 2.10 won't start.
~$ linuxcnc
LINUXCNC - 2.10.0~pre0
Machine configuration file is 'gmoccapy.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./core_sim.hal
rtapi_task_start(): Operation not permitted
HAL_LIB: could not start task for thread base-thread: -1
MOTION: failed to create 100000 nsec base thread
MOTION: init_threads() failed
motmod: rtapi_app_main: Operation not permitted (-1)
./core_sim.hal:7: waitpid failed /usr/bin/rtapi_app motmod
./core_sim.hal:7: /usr/bin/rtapi_app exited without becoming ready
./core_sim.hal:7: insmod for motmod failed, returned -1
Shutting down and cleaning up LinuxCNC...
USRMOT: ERROR: command 30 timeout (seq: 1)
emcMotionInit: emcTrajInit failed
USRMOT: ERROR: command 3 timeout (seq: 2)
Note: Using POSIX realtime
LinuxCNC terminated with an error.
What do you think?
I rebuilt the system today with Armbian Trixie and rt-kernel 6.1.115. I couldn't get the 3D accelerator to work. I think something was not set when the kernel was created.
OpenGL vendor string: Mesa
OpenGL renderer string: llvmpipe (LLVM 19.1.7, 128 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 25.0.7-2
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.5 (Compatibility Profile) Mesa 25.0.7-2
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 25.0.7-2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
Linuxcnc 2.10 won't start.
~$ linuxcnc
LINUXCNC - 2.10.0~pre0
Machine configuration file is 'gmoccapy.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./core_sim.hal
rtapi_task_start(): Operation not permitted
HAL_LIB: could not start task for thread base-thread: -1
MOTION: failed to create 100000 nsec base thread
MOTION: init_threads() failed
motmod: rtapi_app_main: Operation not permitted (-1)
./core_sim.hal:7: waitpid failed /usr/bin/rtapi_app motmod
./core_sim.hal:7: /usr/bin/rtapi_app exited without becoming ready
./core_sim.hal:7: insmod for motmod failed, returned -1
Shutting down and cleaning up LinuxCNC...
USRMOT: ERROR: command 30 timeout (seq: 1)
emcMotionInit: emcTrajInit failed
USRMOT: ERROR: command 3 timeout (seq: 2)
Note: Using POSIX realtime
LinuxCNC terminated with an error.
What do you think?
Last edit: 1 year 1 month ago by ccc774.
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 383
- Thank you received: 135
1 year 1 month ago - 1 year 1 month ago #334907
by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
Yeah forgot about the permission errors. With calling this script from crontab it will solve that:
#!/usr/bin/bash
sleep 10 &&
echo "-1" > /proc/sys/kernel/sched_rt_runtime_us
echo 20 > /proc/irq/63/smp_affinity & echo 20 > /proc/irq/64/smp_affinity
The last ones to pin the Ethernet irqs, you should take yours which you can find with "cat /proc/interrupts"
Then save the file somewhere and chmod +x /location/filename
And enter "sudo crontab -e" and enter "@reboot /location/filename"
After that at least you should have LinuxCNC working again.
For the acceleration I'll have a look for that one of these days.
Now I see that the previous time your nvme didn't work until I reverted the got patch. Is it working now? Because I didn't do that on this kernel.
At least the Panfrost and the Panthor drivers are built in the kernel so it should be a system config or Mesa problem. Is the Mali firmware installed? "ls /usr/lib/firmware/mali*"
Which image are you using?
#!/usr/bin/bash
sleep 10 &&
echo "-1" > /proc/sys/kernel/sched_rt_runtime_us
echo 20 > /proc/irq/63/smp_affinity & echo 20 > /proc/irq/64/smp_affinity
The last ones to pin the Ethernet irqs, you should take yours which you can find with "cat /proc/interrupts"
Then save the file somewhere and chmod +x /location/filename
And enter "sudo crontab -e" and enter "@reboot /location/filename"
After that at least you should have LinuxCNC working again.
For the acceleration I'll have a look for that one of these days.
Now I see that the previous time your nvme didn't work until I reverted the got patch. Is it working now? Because I didn't do that on this kernel.
At least the Panfrost and the Panthor drivers are built in the kernel so it should be a system config or Mesa problem. Is the Mali firmware installed? "ls /usr/lib/firmware/mali*"
Which image are you using?
Last edit: 1 year 1 month ago by royka.
Please Log in or Create an account to join the conversation.
- ccc774
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 2
1 year 1 month ago #334921
by ccc774
Replied by ccc774 on topic Can the OPI5 be Configured to Run LCNC?
I got Linuxcnc to start, thanks for the guidance.
Regarding 3D acceleration, it's clearly something in the kernel that I can't get it to work.
I also made an overlay to block mali at startup and load Panfrost. It loaded but with an error.
~$ sudo modprobe panfrost
dmesg | tail -20 | grep -i "panfrost\|drm"
[ 60.606789] panfrost: unknown parameter 'enable_mmu' ignored
~$ XDG_RUNTIME_DIR=/tmp glxinfo -B | grep "OpenGL renderer"
OpenGL renderer string: llvmpipe (LLVM 19.1.7, 128 bits)
I made the system with: Armbian_25.8.1_Orangepi5_trixie_vendor_6.1.115_minimal.img. After that I installed Cinnamon. I have Mesa 25.0.7-2 installed.
Regarding 3D acceleration, it's clearly something in the kernel that I can't get it to work.
I also made an overlay to block mali at startup and load Panfrost. It loaded but with an error.
~$ sudo modprobe panfrost
dmesg | tail -20 | grep -i "panfrost\|drm"
[ 60.606789] panfrost: unknown parameter 'enable_mmu' ignored
~$ XDG_RUNTIME_DIR=/tmp glxinfo -B | grep "OpenGL renderer"
OpenGL renderer string: llvmpipe (LLVM 19.1.7, 128 bits)
I made the system with: Armbian_25.8.1_Orangepi5_trixie_vendor_6.1.115_minimal.img. After that I installed Cinnamon. I have Mesa 25.0.7-2 installed.
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 383
- Thank you received: 135
1 year 1 month ago #334945
by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
If you installed a regular mesa then it isn't built with panfrost support. There's also no need to block mali, but maybe you should enable the panthor overlay instead, that's the follow up of panfrost for the mali g610.
The panthor driver and panfrost driver are in the kernel included so I doubt that it's a kernel issue.
It might have been easier to start with an image with 3d acceleration support. Mine also shows llvm (old bookworm image) but never felt the need for more since it's fast enough for my use. Now I'm compiling mesa though, so I'll let you know if that's all you need.
The panthor driver and panfrost driver are in the kernel included so I doubt that it's a kernel issue.
It might have been easier to start with an image with 3d acceleration support. Mine also shows llvm (old bookworm image) but never felt the need for more since it's fast enough for my use. Now I'm compiling mesa though, so I'll let you know if that's all you need.
Please Log in or Create an account to join the conversation.
- ccc774
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 2
1 year 1 month ago #334958
by ccc774
Replied by ccc774 on topic Can the OPI5 be Configured to Run LCNC?
I installed Trixie with Cinnamon and 3D acceleration. I applied rt-kernel over the original 6.1.115 kernel and it wouldn't boot. I commented out overlays=panthor-gpu in armbianEnv and it booted. So the system has the capability to use 3d acceleration but something in rt-kernel is stopping it.
Please Log in or Create an account to join the conversation.
Time to create page: 3.196 seconds