Can the OPI5 be Configured to Run LCNC?

More
1 year 1 month ago - 1 year 1 month ago #335086 by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
Thanks for pointing out. I was using it with the vendor blobs, but when i tried Panthor I had the same. They changed a lot with the scheduling which made it not rt-friendly anymore.

It kept me busy for a while but I think it's working correctly now. glxinfo -B shows "Device: Mali-G610 (Panfrost) (0xffffffff)" and Chromium is with acceleration and 4k without frame dropping. I'll upload the patches there

Update: mpp can give huge spikes during seeking with YouTube, so it might be better to disable hardware video decoding. Or make a symlink with hw decoding for when you don't use your CNC and one with software decoding (still nod bad).
I'll see if it's fixable. 
install the libv4l-rkmpp package from the Google Drive.

Btw this forum is lately very difficult to reach.

drive.google.com/drive/folders/17WBVgRBA...4GUaGlhR?usp=sharing

 
Last edit: 1 year 1 month ago by royka. Reason: Error fixed
The following user(s) said Thank You: Ilysha

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

More
1 year 1 month ago #335210 by ccc774
Replied by ccc774 on topic Can the OPI5 be Configured to Run LCNC?
sorry I only replied now, I was sick. I installed and tested your packages today and they work better than last time. I appreciate your help which is always of the best quality and very prompt. Thank you Royka!

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

More
1 year 1 month ago - 1 year 1 month ago #335232 by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
No problem and thank you. I've also found that the issue already have been resolved, but I don't think it's already included in the image. So I'll post a new package soon.

github.com/JeffyCN/libv4l-rkmpp/commit/c...7508dcd75e05247eb83a

Package is on the Google Drive
Last edit: 1 year 1 month ago by royka.

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

More
1 year 1 month ago #335591 by Ilysha
Replied by Ilysha on topic Can the OPI5 be Configured to Run LCNC?
Hi everyone! I’m new to Linux and Orange Pi, but I’m really eager to learn and figure things out. I would be incredibly grateful for your help. Could someone write a simple, step-by-step guide—from a fresh Armbian installation to a fully working setup, including using files from a disk? I’m really trying to understand everything and I’ve already exhausted ChatGPT! Please, I would deeply appreciate any guidance you can give

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

More
1 year 1 month ago #335668 by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
Hi, Here you can find a few rt-kernels:
drive.google.com/drive/folders/1JglCIPKv...roZcjOvr?usp=sharing

With the 6.1.115 kernel I'm still experimenting a bit to get full gpu acceleration, I think the 6.1.75 is a more safe choice. Then find/create an image from Armbian for example, install the kernel and the dtb of the same kernel version. Check /boot if the symlinks are correct, sometimes when it creates a new initramfs creates a link to the older version, so better to delete or move the other kernel versions to a another place.

With Armbian: when you choose for an image with Debian it's more easy to install LinuxCNC but you probably won't have VPU acceleration (1080p/1440p still works fine though)
With Ubuntu it's more easy to have VPU acceleration, but you'll have to compile LinuxCNC yourself (there's a manual).
With the mainline kernel you should expect that not everything works yet.

So make your choice, find download an image that fits to the kernel you want (Vendor 5.x or 6.x) or mainline. Install the kernel and dtb if it's not exact the same version.

For better latency values isolate the last core (isolcpus=7). With Armbian edit the extraargs line to add the kernel parameter:
sudo nano /boot/armbianEnv.txt
extraargs=cma=256M isolcpus=7
ctrl+x and press y following an enter to save.

In Debian to install linuxcnc:
sudo apt update; sudo apt install linuxcnc-uspace

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

More
1 year 4 weeks ago #335683 by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
This mainline build also works pretty well, but will first do some more testing. In chromium/firefox the acceleration doesn't work, but 1080p works fine though. I'll upload an image/kernel if someone is interested.

 
The following user(s) said Thank You: tommylight

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

Time to create page: 3.204 seconds
Powered by Kunena Forum