LinuxCNC on Raspberry Pi 5

More
1 year 9 months ago #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
1 year 9 months ago #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
1 year 8 months ago - 1 year 8 months ago #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: 1 year 8 months ago by probotix.

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

More
1 year 8 months ago #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
1 year 8 months ago - 1 year 8 months ago #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. 
Last edit: 1 year 8 months ago by KrisJ.

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

More
1 year 8 months ago - 1 year 8 months ago #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: 1 year 8 months ago by royka.

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

Time to create page: 0.291 seconds
Powered by Kunena Forum