I’m trying to use the Peripheral commands from:
https://github.com/beagleboard/pocketbeagle/wiki/Peripherals
I’m trying the PWM commands. When I get to
echo 20000 > ${ocp}/48300000.epwmss/48300200.pwm/pwm/pwmchip*/pwm0/period
I get permission denied. I tried adding sudo before echo and no joy.
Suggestions?
Thanks Andy
Right now do
https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Privileged_echo
We do have a better solution, which utilizes udev, but I haven’t back ported that to v4.9/v4.4 yet. (It requires fixes for bonescript still… I fixed adafruit library last week)
Regards,
If you need to use ‘sudo’ just prefixing it to your command won’t affect the redirection. Best to do this:
echo 20000 | sudo tee ${ocp}/48300000.epwmss/48300200.pwm/pwm/pwmchip*/pwm0/period