- Posts: 63
- Thank you received: 0
Raspberry pi 5
2 years 9 months ago #290998
by rohit269
I am install linuxcnc 2.9.2 on raspberry pi5 and I am completing all setting for Linux cnc lathe then I started linuxcnc and I found error and error picture I am also attached please see and guide me how to solve this problem
Raspberry pi 5 was created by rohit269
Attachment not found
Please Log in to join the conversation.
- Cant do this anymore bye all
- Offline
- Platinum Member
-
Less
More
- Posts: 1199
- Thank you received: 0
2 years 9 months ago #291012
by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Raspberry pi 5
As per:
linuxcnc.org/docs/html/drivers/hal_pi_gpio.html
7. Known Bugs
At the moment (2023-07-16) this driver only seems to work on Raspbian as the generic Debian image does not set up the correct interfaces in /dev/gpiomem and restricts access to the /sys/mem interface.
linuxcnc.org/docs/html/drivers/hal_pi_gpio.html
7. Known Bugs
At the moment (2023-07-16) this driver only seems to work on Raspbian as the generic Debian image does not set up the correct interfaces in /dev/gpiomem and restricts access to the /sys/mem interface.
Please Log in to join the conversation.
2 years 9 months ago #291013
by rohit269
Replied by rohit269 on topic Raspberry pi 5
Thanks for reply sir please tell now what is solution of this problem
Please Log in to join the conversation.
2 years 9 months ago #291019
by JT
Replied by JT on topic Raspberry pi 5
Don't use screen shots taken at a bad angle impossible to read. Copy and paste the text only.
JT
JT
Please Log in to join the conversation.
2 years 9 months ago #291034
by rohit269
Replied by rohit269 on topic Raspberry pi 5
Thanks for reply sir i am attached error please see
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
2 years 9 months ago #291056
by tommylight
try
where username should be PI or whatever user name you are using.
Replied by tommylight on topic Raspberry pi 5
Code:
HAL_PI_GPIO: can't open /dev/gpiomem: 2 - No such file or directory
If the error is 'permission denied' then try adding the user who runs
LinuxCNC to the gpio group: sudo gpasswd -a username gpio
HAL_PI_GPIO: can't open /dev/mem: 13 - Permission denied
hal_pi_gpio: rtapi_app_main: Operation not permitted (-1)
Code:
sudo gpasswd -a username gpio
Please Log in to join the conversation.
2 years 9 months ago #291078
by rohit269
Replied by rohit269 on topic Raspberry pi 5
Thanks for reply, sirI am already add user rohit to group gpio but same error show.
Please Log in to join the conversation.
- Cant do this anymore bye all
- Offline
- Platinum Member
-
Less
More
- Posts: 1199
- Thank you received: 0
2 years 9 months ago #291094
by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Raspberry pi 5
The error is
HAL_PI_GPIO: can't open /dev/gpiomem: 2 - No such file or directory
/dev/gpiomem doesn't exist
A replied previously
At the moment (2023-07-16) this driver only seems to work on Raspbian as the generic Debian image does not set up the correct interfaces in /dev/gpiomem and restricts access to the /sys/mem interface.
So have will have to start with a Raspbian image, build & install a rt kernel and then build & install linuxcnc.
But just for completeness can you run
and report the result
HAL_PI_GPIO: can't open /dev/gpiomem: 2 - No such file or directory
/dev/gpiomem doesn't exist
A replied previously
At the moment (2023-07-16) this driver only seems to work on Raspbian as the generic Debian image does not set up the correct interfaces in /dev/gpiomem and restricts access to the /sys/mem interface.
So have will have to start with a Raspbian image, build & install a rt kernel and then build & install linuxcnc.
But just for completeness can you run
Code:
ls -a /dev/*mem*
and report the result
Please Log in to join the conversation.
2 years 9 months ago #291119
by elovalvo
Replied by elovalvo on topic Raspberry pi 5
This problem was already known:
forum.linuxcnc.org/9-installing-linuxcnc...-pi-5?start=0#285243
My advice is to use this new module (hal_gpio) which, in addition to working on Pi 5, in my opinion is more versatile and easier to configure
For changes to be made to .hal files it may be useful to refer to this video
forum.linuxcnc.org/9-installing-linuxcnc...i-5?start=110#290838
forum.linuxcnc.org/9-installing-linuxcnc...-pi-5?start=0#285243
My advice is to use this new module (hal_gpio) which, in addition to working on Pi 5, in my opinion is more versatile and easier to configure
For changes to be made to .hal files it may be useful to refer to this video
forum.linuxcnc.org/9-installing-linuxcnc...i-5?start=110#290838
Please Log in to join the conversation.
Time to create page: 0.113 seconds
