LinuxCNC on Raspberry Pi 5

More
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

RPi 5 uses the

Code:
macb
driver (Cadence GEM) and not
Code:
genet
. So I guess you have to use a Raspberry Pi 4 if you want a native driver.

The following user(s) said Thank You: unknown

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

More
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 or Create an account to join the conversation.

More
1 year 8 months ago #320790 by jairobbo
Replied by jairobbo on topic LinuxCNC on Raspberry Pi 5
no of course, I apologize, but there is I believe a problem related to hal_gpio.
I read the man page and there were some discrepancies in my code, I was hoping the permissions fix from the man page would be the fix, but it wasn't

Good luck to all!

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

More
1 year 8 months ago #320791 by unknown
Replied by unknown on topic LinuxCNC on Raspberry Pi 5
The permissions for user CNC include group membership for gpio which is required. You do not need to change anything.
If you copy and paste the loading of the module from the man page it will work.
The problem was when you tried to load the module you inserted the word help. The driver wouldn't load because of "invalid parameter help".
Undo whatever you have done regarding udev. Reboot.
The permissions and group membership are setup whilst building the image.
Once again reread the man page, try loading the driver as shown in the example on the man page. If that doesn't work copy and paste the text on the terminal.
Remember with Linux that every character matters. Don't take any shortcuts and if something doesn't work as expected check what you typed and recheck your understanding of what should happen.

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

More
1 year 8 months ago #320816 by jairobbo
Replied by jairobbo on topic LinuxCNC on Raspberry Pi 5
that is remarkable, because I flashed the latest image for pi5 for the second time and double checked my HAL and INI files. (the 'help' was indeed misplaced, and set this discussion on the wrong leg)

This is my loadrt command:

loadrt hal_gpio inputs=GPIO3,GPIO5,GPIO6,GPIO4 outputs=GPIO12,GPIO23,GPIO16,GPIO11,GPIO20,GPIO10,GPIO24,GPIO19,GPIO21,GPIO12,GPIO26,GPIO13

I will try to attach my ful config below.

this is from the report:

Debug file information:
Note: Using POSIX realtime
Failed to register output pin collection
hal_gpio: rtapi_app_main: Operation not permitted (-1)
./my-mill.hal:7: waitpid failed /usr/bin/rtapi_app hal_gpio
./my-mill.hal:7: /usr/bin/rtapi_app exited without becoming ready
./my-mill.hal:7: insmod for hal_gpio failed, returned -1
4465
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

I ready that there is still tricky stuff related to get the pi5 going with hal_grpio, but I don't know exactly what it is.

kind regards,
Jairo

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

More
1 year 8 months ago #320817 by jairobbo

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

Time to create page: 0.074 seconds
Powered by Kunena Forum