Real-Time Kernel with Orange Pi 4 LTS
28 Nov 2024 11:16 #315455
by royka
Replied by royka on topic Real-Time Kernel with Orange Pi 4 LTS
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
drive.google.com/drive/folders/1BXbeBIY8...7N4Kli9-?usp=sharing
Please Log in or Create an account to join the conversation.
- Hossein74Majidi
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
30 Nov 2024 08:57 #315622
by Hossein74Majidi
I did many efforts on it since you provided this link in order to downgrade its python but still no result.
Replied by Hossein74Majidi on topic Real-Time Kernel with Orange Pi 4 LTS
This one has another problem which its python is 3.12 and linuxcnc cant be installed on it!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 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.
30 Nov 2024 09:38 #315626
by royka
Replied by royka on topic Real-Time Kernel with Orange Pi 4 LTS
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
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.
- Hossein74Majidi
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
30 Nov 2024 12:45 #315647
by Hossein74Majidi
however in your recent image I couldnt enable the spi again, even with changing the spidev status in dtb files to "okay"
Replied by Hossein74Majidi on topic Real-Time Kernel with Orange Pi 4 LTS
I was trying to install linuxcnc using .deb file, thats why I enounter the python 3.12 issue.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
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.
30 Nov 2024 13:05 #315648
by royka
Replied by royka on topic Real-Time Kernel with Orange Pi 4 LTS
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
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.
- Hossein74Majidi
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
01 Dec 2024 07:58 #315713
by Hossein74Majidi
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 thefiles 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 thefiles 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.
Replied by Hossein74Majidi on topic Real-Time Kernel with Orange Pi 4 LTS
Yes, I used theAnd 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
armbian-add-overlay
*.deb
.deb
Please Log in or Create an account to join the conversation.
01 Dec 2024 15:17 - 01 Dec 2024 15:21 #315736
by PatJac
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 .
Replied by PatJac on topic Real-Time Kernel with Orange Pi 4 LTS
i'll try that image on opi4 non-lts , nice it got 6.12That'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
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.
01 Dec 2024 18:09 - 01 Dec 2024 23:06 #315748
by royka
Replied by royka on topic Real-Time Kernel with Orange Pi 4 LTS
@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.
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.
01 Dec 2024 19:08 - 01 Dec 2024 19:13 #315751
by royka
Replied by royka on topic Real-Time Kernel with Orange Pi 4 LTS
@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.
- Hossein74Majidi
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
02 Dec 2024 07:25 #315769
by Hossein74Majidi
I wanna compile 6.12 kernel ( which is already real-time, right?)
Replied by Hossein74Majidi on topic Real-Time Kernel with Orange Pi 4 LTS
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?@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 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