Raspberry pi 5
- rohit269
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 63
- Thank you received: 0
			
	
						18 Jan 2024 07:17		 -  18 Jan 2024 07:24		#290998
		by rohit269
	
	
		
			
	
	
		
	
			 		
													
	
				Raspberry pi 5 was created by rohit269			
			
					Attachments:
		Last edit: 18 Jan 2024 07:24  by rohit269.			
			Please Log in or Create an account to join the conversation.
- Cant do this anymore bye all
- 
				  
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 1200
- Thank you received: 425
			
	
						18 Jan 2024 10:08				#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 or Create an account to join the conversation.
- rohit269
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 63
- Thank you received: 0
			
	
						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.
- JT
- 
				  
- Away
- Administrator
- 
				  
		Less
		More
		
			
	
		- Posts: 1032
- Thank you received: 536
			
	
						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
					JT
Please Log in or Create an account to join the conversation.
- rohit269
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 63
- Thank you received: 0
			
	
						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			
					
		Last edit: 18 Jan 2024 14:59  by rohit269.			
			Please Log in or Create an account to join the conversation.
- tommylight
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 20851
- Thank you received: 7107
			
	
						18 Jan 2024 19:38				#291056
		by tommylight
	
	
		
			
				trywhere username should be PI or whatever user name you are using.			
					
	
			
			 		
													
	
				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)sudo gpasswd -a username gpioPlease Log in or Create an account to join the conversation.
- rohit269
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 63
- Thank you received: 0
			
	
						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.
- Cant do this anymore bye all
- 
				  
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 1200
- Thank you received: 425
			
	
						19 Jan 2024 06:35				#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
ls -a /dev/*mem*and report the result
Please Log in or Create an account to join the conversation.
- elovalvo
- Offline
- Elite Member
- 
				  
		Less
		More
		
			
	
		- Posts: 204
- Thank you received: 127
			
	
						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
					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.
- rohit269
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 63
- Thank you received: 0
			
	
						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.098 seconds	
 
													