ggarg118 wrote: ↑
Mon Aug 20, 2018 2:19 pm
3) Make pi be in the kmem group (and reboot to make it take effect)
I am pretty new to the linux environment. Could u help more? How to do that?? any link suggesting the same?
Probably the simplest (if it works) is to follow the advice of another thread responder and use /dev/gpiomem instead.
But if you want to follow item 3 from the above list, here's how:
0) run "groups" - see that kmem is not in the list.
1) Become root (sudo bash)
2) Edit /etc/group with your favorite editor, say the "vigr" program.
Find this text:
Code: Select all
See how the "dialout" line has "pi" at the end. This makes pi be a member of the dialout group.
If you put "pi" at the end of the "kmem" line, then you will be in the kmem group as well.
3) Save and exit
5) Log in as pi and run "groups" - see that kmem is now in the list.