- Posts: 887
- Thank you received: 0
LinuxCNC on Raspberry Pi 5
1 year 8 months ago #320711
by unknown
Replied by unknown on topic LinuxCNC on Raspberry Pi 5
The images provided are not generic Debian images, as generic Debian didn't support overlays.
The images we build are custom images based on Debian repo but with kernel sources from the RPi-Linux github.
The output I gave was showing that the hal_gpio driver does indeed work, the first line is loading the driver with the GPIO config as per the man page for the driver. Yes it was the current image, with the 6.12 series kernel & Linuxcnc 2.9.4.
The images we build are custom images based on Debian repo but with kernel sources from the RPi-Linux github.
The output I gave was showing that the hal_gpio driver does indeed work, the first line is loading the driver with the GPIO config as per the man page for the driver. Yes it was the current image, with the 6.12 series kernel & Linuxcnc 2.9.4.
Please Log in to join the conversation.
1 year 8 months ago #320714
by rodw
Replied by rodw on topic LinuxCNC on Raspberry Pi 5
hal_gpio uses a newer method that is meant to support other ARM hardware, not just the PI. Code changes at the kernel never stops!
Please Log in to join the conversation.
1 year 8 months ago #320716
by rodw
Replied by rodw on topic LinuxCNC on Raspberry Pi 5
There is a commit pending with etherlab or the 6.11 kernel and up which also should let ethercat on 6.12 work for us.
Bjarne at etherlab is chasing it up for us internally. He has been so helpful for us along the way.
Bjarne at etherlab is chasing it up for us internally. He has been so helpful for us along the way.
Please Log in to join the conversation.
1 year 8 months ago #320720
by unknown
Invalid parameter `help' <<<<< this is the error from the above, Linux is pretty verbose in telling you what is wrong.
But you really need to read the man page
linuxcnc.org/docs/devel/html/drivers/hal_gpio.html
Replied by unknown on topic LinuxCNC on Raspberry Pi 5
halcmd loadrt hal_gpio helpHello everyone,
I started to work with linuxcnc only a few weeks ago, when I decided to upgrade my 3d printer with A and B axis.
Because my pi4 was starting to jitter I acquired a pi5.As one does..
I etched the image 2.94 for pi5 to an SD card. Running this image, GPIO is not working.
halcmd loadrt hal_gpio help
Note: Using POSIX realtime
Invalid parameter `help'
<commandline>:0: waitpid failed /usr/bin/rtapi_app hal_gpio
<commandline>:0: /usr/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for hal_gpio failed, returned -1
cnc@raspberrypi:~$
I dont have the knowledge to troubleshoot this. Unfortunately. Maybe somebody here know how to solve this.
kind regards,
JAiro
Invalid parameter `help' <<<<< this is the error from the above, Linux is pretty verbose in telling you what is wrong.
But you really need to read the man page
linuxcnc.org/docs/devel/html/drivers/hal_gpio.html
Please Log in to join the conversation.
1 year 8 months ago #320721
by unknown
Replied by unknown on topic LinuxCNC on Raspberry Pi 5
I had a look at the ethercat DKMS package (extracted the package in a temporary directory, no need to do an install), and what I saw is that the source of the modules have ending with 5.14 & 6.1 before the .c .h extension (I'm guessing these are the supported kernels). I'd get confirmation that the commit for 6.11 will work for 6.12.There is a commit pending with etherlab or the 6.11 kernel and up which also should let ethercat on 6.12 work for us.
Bjarne at etherlab is chasing it up for us internally. He has been so helpful for us along the way.
Please Log in to join the conversation.
1 year 8 months ago #320724
by rodw
gitlab.com/etherlab.org/ethercat/-/merge_requests/151
Replied by rodw on topic LinuxCNC on Raspberry Pi 5
It seems to be confirmed because the notes say it fixes issue #160 which is the issue I raised.
. I'd get confirmation that the commit for 6.11 will work for 6.12.
gitlab.com/etherlab.org/ethercat/-/merge_requests/151
Please Log in to join the conversation.
1 year 8 months ago #320727
by unknown
Replied by unknown on topic LinuxCNC on Raspberry Pi 5
I wonder about the drivers in the gnet folder for the RPi. Whether the drivers from 6.12.x kernel source need to be patched with the ethercat stuff and moved into the gnet folder.
Please Log in to join the conversation.
1 year 8 months ago #320730
by rodw
Replied by rodw on topic LinuxCNC on Raspberry Pi 5
Don't overthink it.
The drivers in Ethercat refer to optimised RT Ethernet NIC drivers. There is a generic driver we use and then some hardware specific ones for install and broadcom, I assumed there would be generic driver support.
The drivers in Ethercat refer to optimised RT Ethernet NIC drivers. There is a generic driver we use and then some hardware specific ones for install and broadcom, I assumed there would be generic driver support.
Please Log in to join the conversation.
1 year 8 months ago #320745
by zmrdko
Replied by zmrdko on topic LinuxCNC on Raspberry Pi 5
regarding EtherCAT driver for rpi5 ethernet:
gitlab.com/etherlab.org/ethercat/-/issues/104
gitlab.com/etherlab.org/ethercat/-/issues/104
RPi 5 uses the
driver (Cadence GEM) and notCode:macb. So I guess you have to use a Raspberry Pi 4 if you want a native driver.Code:genet
Please Log in to join the conversation.
1 year 8 months ago #320750
by unknown
Replied by unknown on topic LinuxCNC on Raspberry Pi 5
I'll have to leave this to Rod & others. It's not something I could really test other than the installation bit.
Please Log in to join the conversation.
Time to create page: 2.557 seconds
