Real-Time Kernel with Orange Pi 4 LTS

More
28 Nov 2024 11:16 #315455 by royka
That's not the mesa I meant, but try otherwise this image with Linux 6.12 rt:
drive.google.com/drive/folders/1BXbeBIY8...7N4Kli9-?usp=sharing

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

More
30 Nov 2024 08:57 #315622 by Hossein74Majidi

That's not the mesa I meant, but try otherwise this image with Linux 6.12 rt:
drive.google.com/drive/folders/1BXbeBIY8...7N4Kli9-?usp=sharing
 

This one has another problem which its python is 3.12 and linuxcnc cant be installed on it!
I did many efforts on it since you provided this link in order to downgrade its python but still no result.

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

More
30 Nov 2024 09:38 #315626 by royka
It is available: packages.debian.org/trixie/arm64/python3.12

Did you try to install with: sudo apt install linuxcnc-uspace ?
Otherwise first: sudo apt install python3.12

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

More
30 Nov 2024 12:45 #315647 by Hossein74Majidi

It is available: packages.debian.org/trixie/arm64/python3.12

Did you try to install with: sudo apt install linuxcnc-uspace ?
Otherwise first: sudo apt install python3.12

I was trying to install linuxcnc using .deb file, thats why I enounter the python 3.12 issue.
however in  your recent image I couldnt enable the spi again, even with changing the spidev status in dtb files to "okay"

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

More
30 Nov 2024 13:05 #315648 by royka
And to see if it's worth to look further, how is the latency with isolcpus=5 ?
If it's good enough, what's in your armbianEnv.txt?
You installed the spi overlay by editing as in:
forum.linuxcnc.org/media/kunena/attachme...k3399-spi-spidev.txt

And installed with: sudo armbian-add-overlay rockchip-rk3399-spi-spidev.dtso

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

More
01 Dec 2024 07:58 #315713 by Hossein74Majidi

And to see if it's worth to look further, how is the latency with isolcpus=5 ?
If it's good enough, what's in your armbianEnv.txt?
You installed the spi overlay by editing as in:
forum.linuxcnc.org/media/kunena/attachme...k3399-spi-spidev.txt

And installed with: sudo armbian-add-overlay rockchip-rk3399-spi-spidev.dtso

Yes, I used the
armbian-add-overlay
command, but it didn’t work. I also tried copying and replacing the files with the new ones, but still, there was no result. However, if I use the
*.deb
files you provided for Linux 6.9.12, they seem to solve the SPI issue. But with the recent image (6.12-rt), no matter what I do, it doesn’t work.One thing I noticed is that when I use the Cinnamon desktop environment, the LinuxCNC error doesn’t occur. So now, I’m running LinuxCNC on the Cinnamon desktop in real-time mode using the
.deb
files you provided.Now, I’m wondering how I can compile my customized build with the Armbian build system. I want to learn how to do this so I can compile anything I need. For example, I currently want an Armbian image with a real-time kernel that already has LinuxCNC installed, without any additional packages.I did try compiling using the Armbian build system, but for some reason, the resulting image doesn’t boot at all.

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

More
01 Dec 2024 15:17 - 01 Dec 2024 15:21 #315736 by PatJac

That's not the mesa I meant, but try otherwise this image with Linux 6.12 rt:
drive.google.com/drive/folders/1BXbeBIY8...7N4Kli9-?usp=sharing

i'll try that image on opi4 non-lts , nice it got 6.12

Royka , my armbian from minimal to cinnamon 25.02 trixie + opi5 + your rt 6.1.75 run linuxcnc with mesa 7i92 like a charm...better latency then my i5 2500 .

Thanks for all . 

 
Last edit: 01 Dec 2024 15:21 by PatJac.
The following user(s) said Thank You: royka

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

More
01 Dec 2024 18:09 - 01 Dec 2024 23:06 #315748 by royka
@Hossein74Majidi That's a pity then that it doesn't work. But now LinuxCNC does work with this image you should be able to use the other kernel with another image which works with LinuxCNC.
To compile your own image with Armbian:
- You'll see in the directory patch/kernel/archive wich kernels (rockchip64) has the patches to add the opi 4
- In the this file you can set the kernel version: config/sources/families/include/rockchip64_common.inc
- The rt patch (except for 6.12) you put in the directory patch/kernel/archive/rockchip64-6.*
- Remove the part from the patch where it adds the "localversion" like you see here under, otherwise you'll get an error the moment it will install the kernel in the image
diff --git a/localversion-rt b/localversion-rt
new file mode 100644                                                                                                                                                               index 0000000000000..0efe7ba1930e1
--- /dev/null
+++ b/localversion-rt
@@ -0,0 +1 @@
+-rt5

- In the file below you might want to change the gpu governor to performance (which I didn't):
packages/bsp/rk3399/20-gpu-governor.conf

./compille (optional) EXPERT=yes
If you've done it correctly, after you chose the option that you want to see the kernel config, you'll see the option "Full preemption realtime" in General setup.
Last edit: 01 Dec 2024 23:06 by royka.

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

More
01 Dec 2024 19:08 - 01 Dec 2024 19:13 #315751 by royka
@PatJac The rk3588 works really well indeed with the 6.1.75 kernel and just the last core isolated. The 6.12 kernel deb files are now uploaded for both boards too. And let us know the result you can get with the RK3399 board please. But likely the results will be better when the LinuxCNC source code will be edited so it'll move the rt task to the isolated core instead of the fixed last core, because the first 2 cores are the faster ones.
Last edit: 01 Dec 2024 19:13 by royka.

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

More
02 Dec 2024 07:25 #315769 by Hossein74Majidi

@Hossein74Majidi That's a pity then that it doesn't work. But now LinuxCNC does work with this image you should be able to use the other kernel with another image which works with LinuxCNC.
To compile your own image with Armbian:
- You'll see in the directory patch/kernel/archive wich kernels (rockchip64) has the patches to add the opi 4
- In the this file you can set the kernel version: config/sources/families/include/rockchip64_common.inc
- The rt patch (except for 6.12) you put in the directory patch/kernel/archive/rockchip64-6.*
- Remove the part from the patch where it adds the "localversion" like you see here under, otherwise you'll get an error the moment it will install the kernel in the image
diff --git a/localversion-rt b/localversion-rt
new file mode 100644                                                                                                                                                               index 0000000000000..0efe7ba1930e1
--- /dev/null
+++ b/localversion-rt
@@ -0,0 +1 @@
+-rt5

- In the file below you might want to change the gpu governor to performance (which I didn't):
packages/bsp/rk3399/20-gpu-governor.conf

./compille (optional) EXPERT=yes
If you've done it correctly, after you chose the option that you want to see the kernel config, you'll see the option "Full preemption realtime" in General setup.
 

I wanna set the SPI settings before building, Can I do it by editing the dts files in the /patch/kernel/archive/rockchip64-6.12?
I wanna compile 6.12 kernel ( which is already real-time, right?)

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

Time to create page: 0.088 seconds
Powered by Kunena Forum