Raspberry pi 5

More
18 Jan 2024 07:17 - 18 Jan 2024 07:24 #290998 by rohit269
Raspberry pi 5 was created 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 
Attachments:
Last edit: 18 Jan 2024 07:24 by rohit269.

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

More
18 Jan 2024 10:08 #291012 by cornholio
Replied by cornholio 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.

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

More
18 Jan 2024 11:19 #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 or Create an account to join the conversation.

More
18 Jan 2024 12:48 #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

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

More
18 Jan 2024 14:44 - 18 Jan 2024 14:59 #291034 by rohit269
Replied by rohit269 on topic Raspberry pi 5
 Thanks for reply sir i am attached error please see
Attachments:
Last edit: 18 Jan 2024 14:59 by rohit269.

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

More
18 Jan 2024 19:38 #291056 by tommylight
Replied by tommylight on topic Raspberry pi 5
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)
try
sudo gpasswd -a username gpio
where username should be PI or whatever user name you are using.

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

More
19 Jan 2024 00:42 - 19 Jan 2024 00:44 #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.
Last edit: 19 Jan 2024 00:44 by rohit269.

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

More
19 Jan 2024 06:35 #291094 by cornholio
Replied by cornholio 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
ls -a /dev/*mem*

and report the result

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

More
19 Jan 2024 14:39 #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

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

More
21 Jan 2024 07:39 #291247 by rohit269
Replied by rohit269 on topic Raspberry pi 5
Many thanks.

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

Time to create page: 0.143 seconds
Powered by Kunena Forum