LinuxCNC on Raspberry Pi 5

More
2 years 10 months ago #287639 by Cant do this anymore bye all
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
2 years 10 months ago - 2 years 10 months ago #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: 2 years 10 months ago by thadwald.

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

More
2 years 10 months ago - 2 years 10 months ago #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: 2 years 10 months ago by thadwald.

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

More
2 years 10 months ago #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.

More
2 years 10 months ago #287690 by chuckp47
Replied by chuckp47 on topic LinuxCNC on Raspberry Pi 5

This image can be downloaded from here
drive.google.com/file/d/16kKamxMKPdYAeJp...KLf/view?usp=sharing

I installed this and it's quite nice.  Much like the default Pi release, everything came up normally.  The latency historgram looks good.  I'm trying to talk to a Mesa 7c81.  After I set it up for an XZ lathe I get this error report when launch.  The key part seems to be:

Note: Using POSIX realtime
hm2_rpspi: Can't map peripherals: Invalid argument
hm2_rpspi: cannot map peripheral memory.
hm2_rpspi: rtapi_app_main: Invalid argument (-22)
./my_LinuxCNC_machine.hal:9: waitpid failed /usr/bin/rtapi_app hm2_rpspi
./my_LinuxCNC_machine.hal:9: /usr/bin/rtapi_app exited without becoming ready
./my_LinuxCNC_machine.hal:9: insmod for hm2_rpspi failed, returned -1


One of you can probably point out how to correct the memory management.  Suggestions?  There are less errors on the rspi than in the past.  Maybe if I get the memory setup right it can load the rspi driver?
ulimit -l reports 1030416, much bigger than the 20480 noted in the build document.

 

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

More
2 years 10 months ago #287695 by chuckp47
Replied by chuckp47 on topic LinuxCNC on Raspberry Pi 5
Reading the errors again, these are all about rspi. That's the same as I had in Rod's image.
I suspect that the SPI driver is still not capable of what is expected here. Some research into the SPI situation showed me that there are features like chip select support that are not yet available in the RPi 5 (RP1 chip) driver package. This will be something more to look into, both in the how LinuxCNC is using SPI and what the SPI firmware driver for the RP1 chip is doing.

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

Time to create page: 0.541 seconds
Powered by Kunena Forum