Real-Time Kernel with Orange Pi 4 LTS

More
02 Dec 2024 08:14 #315770 by Hossein74Majidi
I did compile successfully:
- Debian Bookworm
- Kernel 6.12.1 Real-time
- Minimal without desktop
- SPI Configured as desired
It boots up ok and I've installed linuxcnc too. however linuxcnc can't be opened cause no desktop.
Now how can I add linuxcnc to the build system, in order for after compiling linuxcnc be already installed and when system boots up, linuxcnc shows up without any desktop gui.

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

More
02 Dec 2024 08:35 - 02 Dec 2024 09:35 #315772 by royka
With 6.12 the kernel needs a small patch to be recognized as realtime for linuxcnc and needs a specific config otherwise it gives an error during compiling:
forum.linuxcnc.org/38-general-linuxcnc-q...6-12?start=10#315437

And see the next post for the necessary config.

LinuxCNC needs X to start, you can try something like:
raspberrypi.stackexchange.com/questions/...hout-showing-desktop
Last edit: 02 Dec 2024 09:35 by royka.
The following user(s) said Thank You: Hossein74Majidi

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

More
02 Dec 2024 10:24 - 02 Dec 2024 10:26 #315775 by Hossein74Majidi

With 6.12 the kernel needs a small patch to be recognized as realtime for linuxcnc and needs a specific config otherwise it gives an error during compiling:
forum.linuxcnc.org/38-general-linuxcnc-q...6-12?start=10#315437

And see the next post for the necessary config.

LinuxCNC needs X to start, you can try something like:
raspberrypi.stackexchange.com/questions/...hout-showing-desktop
 
 

I've done based on what you said about installing X, and desktop got enabled using start X and linuxcnc showed up. hwoever its latency was really bad, something like 500 us. which it was probably because of not being real-time (without adding the rt patch that you mentioned)

After this, I used that patch that you said and I copied it to /patch/kernel/archive/rockchip64-6.12. However during this build I compiled it with XFCE Desktop. Now after compilation again it doesnt boot at all!!!
I'm trying to find out why it doesnt boot.
Or I can compile it without desktop (minimal) and install X to find out if the latency gets better or not.

Another thing that I did was, I added patch for 6.6.63 rt46 to my 6.6 kernel. but during the compilation I get some errors however it compiles without rt patch
Last edit: 02 Dec 2024 10:26 by Hossein74Majidi.

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

More
02 Dec 2024 10:41 #315776 by royka
Without seeing (uart) logs it's hard to tell what's going wrong.

With the 6.6 kernel likely you didn't remove the localversion part from the patch like I mentioned before. Probably you can also remove it from the kernel config menu.

If it's something else, you should provide logs
The following user(s) said Thank You: Hossein74Majidi

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

More
02 Dec 2024 12:44 #315786 by Hossein74Majidi

Without seeing (uart) logs it's hard to tell what's going wrong.

With the 6.6 kernel likely you didn't remove the localversion part from the patch like I mentioned before. Probably you can also remove it from the kernel config menu.

If it's something else, you should provide logs
 

Yes, for kernel 6.6 it was the localversion indeed, I forgot about it :)
but for bot kernels 6.12 and 6.6, when I tested the latency-test I got 0 for all of it parameters!!
(kernel 6.6 with rt patch from kernel.org and 6.12 with rt patch that you gave its link)
btw I installed linuxcnc using custompatch.sh file to be installed during the compilation, can it be the problem for this?

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

More
02 Dec 2024 13:16 #315787 by royka
As far as I know it shouldn't matter if you install it during compilation, otherwise it would be fixed with "apt reinstall linuxcnc-uspace".
What do you see with: uname -a ?
What do you see in the terminal when you start with: latency-histogram ?
The following user(s) said Thank You: Hossein74Majidi

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

More
02 Dec 2024 16:57 #315808 by PatJac

@PatJac let us know the result you can get with the RK3399 board

Did not even succeded at installing the img...second try ,re sha checking now the one i got...
no go ,it's corrupted somehow .
A minimal img would be fine, less prone to those 5+Gb img corruption..
or tar.gz the huge thing .
I will give it another go .

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

More
02 Dec 2024 17:10 #315810 by royka
No problem, but you can also just install the dtb and kernel deb that I uploaded.
It doesn't boot or writing error?

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

More
02 Dec 2024 17:55 #315812 by PatJac
I am trying to work it out of opi4 minimal trixie 6.12 , as i got success that way with the opi5 .
i'll be back !!

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

More
02 Dec 2024 18:23 #315819 by PatJac

It doesn't boot or writing error?


got bad sha checksum on all 2 download .

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

Time to create page: 0.080 seconds
Powered by Kunena Forum