Jump to content

udev for i2c and gpio


OttawaHacker

Recommended Posts

If anyone is looking at fixing the access for gpio and i2c - I found you can fix it with the following udev rules

addgroup --system i2c
addgroup --system gpio

 

create in /etc/udev/rules.d/60-i2c-tools.rules

SUBSYSTEM=="i2c-dev",KERNEL=="i2c*", GROUP="i2c", MODE="0660"

 

create in /etc/udev/rules.d/61-gpio-tools.rules

SUBSYSTEM=="gpio",KERNEL=="gpiochip*", GROUP="gpio", MODE="0660"

 

image.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines