OK, found out. Note to future self:
If you want /sys/clas/pwm/pwm-6:0, do an
echo 0 > /sys/class/pwm/pwmchip6/export
I misunderstood that echo 0> /sys/class/pwm/pwmchip3/export was an unexport
to reset things.
To remove that channel, of course do a
echo 0> /sys/class/pwm/pwmchip6/unexport
I am trying to get p8_45 and p8_49 to run PWM2A and PWM2B signals. I am
running 4.14.3-ti-r14 with
enable_uboot_overlays=1
enable_uboot_cape_universal=1
disable_uboot_overlay_video=1
According to the SRM that is possible, When I do an export to
echo 1 > /sys/class/pwm/pwmchip6/export
, I only
I think I have it figured out. If you disable the ecap devices, the dual
channel populate normally. e.g. 0,2,4. But when you do have ecap enabled,
that's when things start to get squirrely. But at least it's not completely
random. There are or seem to be patterns when you have both ecap enabled.
On Fri, Sep 29, 2017 at 3:19 PM, William Hermans wrote:
> Robert,
>
> Ok I think I see what you mean now( fully ). With universal IO and the
> generic startup script enabled. I did see something similar to what you were
> saying. However, if one disables both universal IO, and
I mean this hack fix is fairly trivial. Without the qep's being enabled.
debian@wgd:~$ sudo su
root@wgd:/home/debian# cd ~
root@wgd:~# nano pwm-enable.sh
*#!/bin/bashecho '0' > /sys/class/pwm/pwmchip0/exportecho '1' >
/sys/class/pwm/pwmchip0/exportecho '0' >
Robert,
Ok I think I see what you mean now( fully ). With universal IO and the
generic startup script enabled. I did see something similar to what you
were saying. However, if one disables both universal IO, and the generic
startup script, then writes their own custom overlay for all 3 of the PWM
On Wed, Sep 27, 2017 at 1:31 PM, Robert Nelson
wrote:
>
> Don't compare "pwmchipX's" directly, you need to dig into the symlink:
>
> root@beaglebone:/sys/class/pwm# ls -lh
> total 0
> lrwxrwxrwx 1 root root 0 Oct 13 17:14 pwmchip0 ->
>
So a few things to note about pwm behavior on the latest stretch image
versus Jessie.
Obviously, Jessie by default runs an older kernel. 4.4.x versus 4.9.x.
First,
Jessie:
root@wgd:~# uname -r
4.4.68-ti-r111
root@wgd:~# lsmod |grep pwm
pwm_tiehrpwm
Stretch:
root@wgd:~# uname -r
4.9.50-ti-r61