Skip to first unread message

Andy Bushnell

unread,
Oct 18, 2017, 9:07:46 PM10/18/17
to BeagleBoard
I'm trying to use the Peripheral commands from:


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

Robert Nelson

unread,
Oct 18, 2017, 10:01:36 PM10/18/17
to Beagle Board, Andy Bushnell
Right now do


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,

Andy Bushnell

unread,
Oct 18, 2017, 10:45:08 PM10/18/17
to Robert Nelson, Beagle Board
Thanks! 

Andy

Rusty Haddock

unread,
Nov 7, 2017, 1:41:47 PM11/7/17
to BeagleBoard
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

Reply all
Reply to author
Forward
0 new messages