Can the OPI5 be Configured to Run LCNC?

More
01 Apr 2024 03:14 #297330 by tommylight


With the image of armbian kernel 6.8.0-RC1-edge, without real time but with isolcpus = 5.7. Something better in Servo Thread behaves, I have a Orange Pi 5.
 

No, this is much worse than the first picture, see the colored columns on both sides of the graph.
Use --show at the end of the latency-histogram line to show those excursions.
The following user(s) said Thank You: angelnu

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

More
02 Apr 2024 18:50 #297452 by angelnu
Thanks Royka for the image of the kernel.

I have installed the kernel in Armbian Debian Bookworm, the results are magnificent. 

 
Attachments:
The following user(s) said Thank You: tommylight, royka

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

More
02 Apr 2024 20:24 #297462 by tommylight


I have installed the kernel in Armbian Debian Bookworm, the results are magnificent. 

Yes they are! :)

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

More
03 Apr 2024 10:41 #297497 by pippin88
Is SPI working at proper speed on Orange Pi 5 for real time use? (Raspberry Pi 5 SPI currently has issues with slow speeds / access making it not suitable for real time functions I believe)
The following user(s) said Thank You: Calysto

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

More
12 Apr 2024 19:32 #298110 by angelnu
With royka kernel 5.10.160-rt89+-5 works very well, but I sometimes use internet with opi5 and where I am there is no internet, I connect with android mobile phone via portable hotspot - internet sharing via USB.
But with royka's rt kernel it doesn't detect the connection, before installing the kernel it detects the connection.
I guess it is some kernel option that is disabled.

Does anyone have any idea of what option to enable in the kernel of the thousands that there are.

That's strange, maybe you can try this kernel on another image:
drive.google.com/drive/folders/1JglCIPKv...roZcjOvr?usp=sharing

I'm using this kernel with the Debian Bookworm Image from the site of Orange Pi and HW acceleration works, although while watching YouTube videos the latency increases a bit, but not so much as yours for sure.

 

I tried to install linuxcnc with the image from the orange pi Debian Bookworm site, but linuxcnc is not in the Chinese repositories, I download the debs files from the linuxcnc site and there are many unfulfilled dependencies.
The orange pi site image works pwm, the armbian image does not work pwm.

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

More
12 Apr 2024 20:20 #298114 by rodw
Just use the script to install linuxcnc as discussed on the getting linuxcnc 2.9 docs

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

More
14 Apr 2024 15:20 - 15 Apr 2024 09:10 #298232 by royka
@angelnu Here you can find the kernel options to enable android sharing.
wiki.gentoo.org/wiki/Android_USB_tethering

This kernel is with Android and iOS USB tethering enabled:
drive.google.com/file/d/1KS7IkLzMxAQJIOT...m4v/view?usp=sharing

You can edit the apt sources "/etc/apt/sources.list" to:
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware

deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware

deb http://repo.huaweicloud.com/debian bookworm-backports main contrib non-free non-free-firmware

deb http://linuxcnc.org bookworm base 2.9-uspace
Last edit: 15 Apr 2024 09:10 by royka.
The following user(s) said Thank You: angelnu

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

More
15 Apr 2024 13:36 #298283 by angelnu
Many thanks to Royka for his help, it seems to work quite well. Let's see if I learn to compile the kernel.
I have not been able to compile the kernel in real time.

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

More
15 Apr 2024 19:42 - 15 Apr 2024 19:47 #298309 by royka
To compile the rt kernel on the OPi5:
git clone https://github.com/orangepi-xunlong/linux-orangepi.git -b orange-pi-5.10-rk35xx-rt
cd linux-orangepi
cp /boot/config-5.10.160-rt89+ ./.config
make menuconfig #Here you can make your changes
make -j$(nproc)
sudo make modules_install
sudo make install

Here LinuxCNC 2.10 build from master today:
drive.google.com/drive/folders/1ZqLOGr7l...sLdif?usp=drive_link
Last edit: 15 Apr 2024 19:47 by royka.
The following user(s) said Thank You: angelnu

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

More
24 Apr 2024 11:24 #298984 by vre
Orange pi 5 can work with the onboard header I/O with linuxcnc ?

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

Time to create page: 0.249 seconds
Powered by Kunena Forum