Based partly on
http://wiki.linuxcnc.org/cgi-bin/wiki.pl?RPi3BPreemptRT#buildhalgpio

I am trying to add Raspberry Pi GPIO to LinuxCNC (based on the Machinekit
code)

The makefile in that Wiki page copies the hal_gpio files into the Makefile
in the same place as the hal_bb_gpio, but for some reason the bp_gpio files
seem to have been added in to the Hostmot2 objects.

I have fixed this, and have hal_gpio compiling, but at runtime I seem to
have a permissions problem:

halcmd: loadrt hal_gpio

Note: Using POSIX realtime

HAL_GPIO: can't open /dev/gpiomem:  13 - Permission denied

HAL_GPIO: can't open /dev/mem:  13 - Permission denied

hal_gpio: rtapi_app_main: Operation not permitted (-1)

<stdin>:1: waitpid failed /home/andypugh/linuxcnc-dev/bin/rtapi_app hal_gpio


Do I perhaps need to add something to the make-setuid section?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed
for the especial use of mechanical geniuses, daredevils and lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to