LinuxCNC on Raspberry Pi 5

More
09 Dec 2023 04:42 #287610 by cornholio

By the way, DigiKey has over 2500 pi5 4GB in stock. $60 plus shipping.

 

Unless you are going to use Ethernet or prepared to wait for the hm2_rspi driver to get rewritten I wouldn't grab one right away. And due to the need to really run a cooler, fitting to the 7c81 is going to need a bit of ingenuity.

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

More
09 Dec 2023 07:11 - 09 Dec 2023 07:21 #287614 by thadwald
Replied by thadwald on topic LinuxCNC on Raspberry Pi 5
Well ...
I added the network-manager-gnome package in order to get the GUI nm-applet.

I also added the raspberry pi repository 
deb archive.raspberrypi.org/debian/ bookworm main
so I could get raspi-config

isolcpus 2.3
Max latency during a short test was about 15us
I hooked it up to a MESA 7i76s and just worked. So no network latency issues (yet).
I'll let it run for a while.

The 640x480 display limit is a bugger. Any idea how to fix that?

It does run pretty warm. 
Processor utilization running gcode in Axis is around 15% for cores 1 and 2
 
Last edit: 09 Dec 2023 07:21 by thadwald.

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

More
09 Dec 2023 07:17 #287616 by elovalvo
Replied by elovalvo on topic LinuxCNC on Raspberry Pi 5
Taking into account that a new version of RaspiOS has been released
(www.raspberrypi.com/software/operating-s...spberry-pi-os-64-bit)
Release date: December 5th 2023
System: 64-bit
Kernel version: 6.1
Debian version: 12 (bookworm)

and the new Preempt_RT patch
mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/6.1/

I prepared a new image for the Raspberry Pi5

Linux raspberrypi5 6.1.65-rt16-v8-16k-elv_rt+ #1 SMP PREEMPT_RT Thu Dec 7 13:43:31 CET 2023 aarch64

in which I installed a version of linuxcnc_2.10.0~pre0_arm64
forum.linuxcnc.org/9-installing-linuxcnc...xcnc?start=20#287208

This image can be downloaded from here
drive.google.com/file/d/16kKamxMKPdYAeJp...KLf/view?usp=sharing
At first glance everything seems to work regularly and the lowest value that did not show the "Unexpected realtime delay" message was
latency-test 12000

The values ​​are much better than the version here:
forum.linuxcnc.org/9-installing-linuxcnc...-pi-5?start=0#285243
 
Attachments:

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

More
09 Dec 2023 08:48 #287621 by cornholio
Why are you running such a low servo thread ?

If you are running Wayland just be wary that any apps that make calls to X lib functions will be a little, ahem, slow.

There is an option in raspi-config to change from Wayland to X.

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

More
09 Dec 2023 08:54 #287622 by cornholio

Well ...
I added the network-manager-gnome package in order to get the GUI nm-applet.

I also added the raspberry pi repository 
deb archive.raspberrypi.org/debian/ bookworm main
so I could get raspi-config

isolcpus 2.3
Max latency during a short test was about 15us
I hooked it up to a MESA 7i76s and just worked. So no network latency issues (yet).
I'll let it run for a while.

The 640x480 display limit is a bugger. Any idea how to fix that?

It does run pretty warm. 
Processor utilization running gcode in Axis is around 15% for cores 1 and 2


 

No solutions as of yet, I think its related to not being able to read EDID of the display. Raspberry Pi OS is fine. Which, IMHO, does feel a little snappier, but that's just a "seat of the pants" feeling.

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

More
09 Dec 2023 11:02 #287637 by rodw
Replied by rodw on topic LinuxCNC on Raspberry Pi 5
I did a bit of reading. can you guys try adding this at the beginning of cmdline.txt?

video=HDMI-A-1:1920x1080M@60D 

I also noticed that the RT patch 6.1,66 has been released and the 6.1.66 kernel was merged into the 6.1.y branch yesterday so it would be a good time to build another image.

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

More
09 Dec 2023 11:15 #287639 by cornholio
I think that the images built with the rpi-img-build are missing some grahpics libs that are included with the Raspberry Pi OS. When the RPi5 is booted with your image and you go to change the resolution there is no monitor info there. There could be a problem with the EDID being read, so it doesn't know what monitor\display it is working with.

Just remember rod that the RPi5 is a different beast compared to the RPi4.

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

More
09 Dec 2023 14:10 - 09 Dec 2023 14:11 #287659 by thadwald
Replied by thadwald on topic LinuxCNC on Raspberry Pi 5

rodw post=287637 userid=20660I did a bit of reading. can you guys try adding this at the beginning of cmdline.txt?

video=HDMI-A-1:1920x1080M@60D 

I also noticed that the RT patch 6.1,66 has been released and the 6.1.66 kernel was merged into the 6.1.y branch yesterday so it would be a good time to build another image.
 

There was no cmdline.txt. Creating one with this line didn't change anything.
Last edit: 09 Dec 2023 14:11 by thadwald.

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

More
09 Dec 2023 14:21 - 09 Dec 2023 14:22 #287661 by thadwald
Replied by thadwald on topic LinuxCNC on Raspberry Pi 5

This image can be downloaded from here
drive.google.com/file/d/16kKamxMKPdYAeJp...KLf/view?usp=sharing
At first glance everything seems to work regularly and the lowest value that did not show the "Unexpected realtime delay" message was
latency-test 12000

Trying your image now. ... what username and pw does it take?
Last edit: 09 Dec 2023 14:22 by thadwald.

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

More
09 Dec 2023 16:14 #287684 by rodw
Replied by rodw on topic LinuxCNC on Raspberry Pi 5
Sorry, I was quoting  a source, the file name and location (to a subfolder) may have changed

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

Time to create page: 0.113 seconds
Powered by Kunena Forum