LinuxCNC on Raspberry Pi 5

More
24 Jan 2025 15:26 #319760 by Onat
Replied by Onat on topic LinuxCNC on Raspberry Pi 5
@cornholio I'm sure I'm just stupid... but I can't seem to get past the first login/pw check? No matter what I setup in the rpi imager, it always tells me that the password is wrong.. I have also tried all default passwords (like root/root & pi/raspberry..) any idea?

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

  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
More
24 Jan 2025 15:46 #319761 by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic LinuxCNC on Raspberry Pi 5
cnc
cnc

These images aren't based on the raspios, they are based on Debian bookworm.
I'm actually surprised the RPi imager worked with the image. Usually balena etcher or some other utility is required.

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

More
24 Jan 2025 15:49 #319762 by Onat
Replied by Onat on topic LinuxCNC on Raspberry Pi 5
works now! thanks :) yeah the RPi imager can be used with a custom image and works like balena then.

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

  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
More
24 Jan 2025 15:53 #319764 by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic LinuxCNC on Raspberry Pi 5
Oh ok, some users have reported issues with other images with RPi imager.

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

More
24 Jan 2025 17:09 #319768 by Onat
Replied by Onat on topic LinuxCNC on Raspberry Pi 5
Unfortunately linuxCNC terminates immediately with the following errors:
hm2_rpspi: Cant map peripherals: Invalid argument
hm2_rpspi: Cant map peripheral memory.

And so on (as far as I remember these were the original errors you had way back right?)
Is there anything specific I have to set up? I just pulled my machine config & tried to run it.

Thank you

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

More
24 Jan 2025 17:54 #319772 by PCW
Replied by PCW on topic LinuxCNC on Raspberry Pi 5
RPI5 needs the hm2_spix driver

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

More
04 Feb 2025 00:22 - 04 Feb 2025 00:23 #320547 by probotix
Replied by probotix on topic LinuxCNC on Raspberry Pi 5
@ elovalvo Thanks for your work on this. I am trying to stay within RPI OS and compiling my own kernel. Can you tell me why I still have to patch the kernel, even though RT_PREEMPT is supposed to be a part of the mainstream kernel now? I am using the latest 6.6.74.

>Len
Last edit: 04 Feb 2025 00:23 by probotix.

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

More
04 Feb 2025 03:42 #320556 by unknown
Replied by unknown on topic LinuxCNC on Raspberry Pi 5
There is a small patch to allwow the kernel to make a sysfs entry that Linuxcnc and some other programs use to determine if the kernel is a realtime kernel.

forum.linuxcnc.org/media/kunena/attachme...ernel-realtime.patch

forum.linuxcnc.org/38-general-linuxcnc-q...6-12?start=10#315437

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

More
04 Feb 2025 14:57 - 04 Feb 2025 15:00 #320610 by KrisJ
Replied by KrisJ on topic LinuxCNC on Raspberry Pi 5
I'm trying to follow Deje63's step by step to build the RT Kernel but I end up with an error:
"reversed (or previously applied patch detected) assume -R?" when trying to run command
"patch -p1 < ../patch-$RT_PATCH_VERSION.patch".
I'm not sure what it meant so I tried to patch anyway but end upp with make throwing "Error 2" at me,.on makefile:1921. Any idea what this might be and/or how to rectify it?

OR even better if anyone might be able to share an .img with LinuxCNC working with Rpi5 and built on RaspberryOS Lite.
I can't get the GPIO pins to work with the distro on the downloads page and it looks like in the man pages that a build on RpiOS is necessary for this to work...

Edit: attached Deje's txt-file for convenience. 
Attachments:
Last edit: 04 Feb 2025 15:00 by KrisJ.

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

More
04 Feb 2025 15:14 - 04 Feb 2025 15:22 #320612 by royka
Replied by royka on topic LinuxCNC on Raspberry Pi 5
If you build LinuxCNC now from Master you don't have to patch the kernel anymore from 6.12+.
To be clear, of course you still need a PREEMPT_RT built kernel.
Last edit: 04 Feb 2025 15:22 by royka.

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

Time to create page: 0.107 seconds
Powered by Kunena Forum