SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c 'chown -R root:gpio /sys/class/gpio; chmod -R 770 /sys/class/gpio;
chown -R root:gpio /sys/devices/platform/ocp/4????000.gpio/gpio/; chmod -R 770 /sys/devices/platform/ocp/4????000.gpio/gpio/;
chown root:gpio /sys/devices/platform/ocp/ocp:??_??_pinmux/state; chmod 770 /sys/devices/platform/ocp/ocp:??_??_pinmux/state'"
So in my own mind, mode 770 is a really bad idea. But I seem to recall having issues unless I gave myself executable permissions as well. Why, I'm not sure.
I'm definitely not a udev expert. I also recall, some paths gave me issues, which is why above I had to place additional rules on the "state" file. Also note my SUBSYSTEM "define"
which is "gpio*". Other obvious differences is the order in which I used chown, and chmod, but I'm not positive that would make any difference. Since the system udev is running
these rules when the sysfs file / directory structure is created. As such, it should be root, or better, if possible.
Anyway, you could create a systemd one-shot timer at boot, that waits a certain amount of time ( maybe 5-10 seconds ), then does this "manually". I'm pretty sure that would work.
But that would feel like a "hack" to me. e.g. not really the proper way to go about things. But short term, it would work. Which is what really is important.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYiBjbmZgZ4BdPc%2BYX1r7jvR2KmGcX%2BpeBiHGhtRDYT%3Duw%40mail.gmail.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYjVk5McHfV2pE8mWN1EbY3tO%2B316SgAa878mPExhAvcSQ%40mail.gmail.com.
On Thu, Apr 27, 2017 at 4:43 PM, William Hermans <yyr...@gmail.com> wrote:
> Still having issues with PWM ?
Yeah i took a break from that, PWM was too painful..
Fixed an LCD and the v4.4.x-bone/v4.4.x-rt-bone u-boot overlay problem
some users where having..
So let's try the pwm with v4.9.x ;)
On Thu, Apr 27, 2017 at 2:56 PM, Robert Nelson <robert...@gmail.com> wrote:
it works for gpio... so i wonder if we need to patch the pwm's kernel
permissions....
Maybe, but if you have other things that are more important right now, I can look into this today / tonight, and give you a short term answer if no, then long term if yes.
On Thu, Apr 27, 2017 at 3:12 PM, Robert Nelson <robert...@gmail.com> wrote:Ouch, so sounds like a boot script hack is the only way right now ?
https://lkml.org/lkml/2016/6/14/967
It'll break bonejs too, but I can live with that. Just an additional two characters in a string somewhere in my code. A few times . . .hehe
It's a little more then that, the first 0 comes from parent:
/sys/class/pwm/pwmchip0/pwm-0:0
/sys/class/pwm/pwmchipA/pwm-A:B
it's a pretty small patch:
https://patchwork.kernel.org/patch/9177249/raw/
Documentation/pwm.txt | 6 ++++--
drivers/pwm/sysfs.c | 15 ++++++++++++---
2 files changed, 16 insertions(+), 5 deletions(-)
I tried pinging the author David Hsu, but his email address is disabled.
--
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/kKLf8zWAfoM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORrREBLNGPY14436sGgaXKMH9wzSrwK1ce6e%2Bg6ieNoKMQ%40mail.gmail.com.
The Adafruit_BBIO code usage does work when the user is root.
“The more you know, the more you know you don’t know.” — Aristotle