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.
@
elovalvoThanks 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.
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.
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...
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.