updated config-pin?

Hi -

I just our project to 4.1. I made the mods necessary to the dts to account for the gpio changes/etc and can load the overlay. However, when I run

config-pin P9.29 gpio

to set the pin modes and states, I am faced with:

bash: /sys/devices/platform/ocp/ocpP9_29_pinmux/state: No such file or directory
Cannot write pinmux file: /sys/devices/platform/ocp/ocp
P9_29_pinmux/state

It looks like the structure of the ocp dirs has changed - so I assume this is expected. But where/how to set the state now is unclear to me. Is there a “newer” version of config-pin available?

debian@beaglebone:$ uname -r
4.1.10-ti-r24

debian@beaglebone:~/puggledriver/apps$ dtc --version
Version: DTC 1.4.1-g8e001df3

Yogi

Hi -

I just our project to 4.1. I made the mods necessary to the dts to account
for the gpio changes/etc and can load the overlay. However, when I run

config-pin P9.29 gpio

to set the pin modes and states, I am faced with:

bash: /sys/devices/platform/ocp/ocp*P9_29_pinmux/state: No such file or
directory
Cannot write pinmux file: /sys/devices/platform/ocp/ocp*P9_29_pinmux/state

It looks like the structure of the ocp dirs has changed - so I assume this
is expected. But where/how to set the state now is unclear to me. Is there a
"newer" version of config-pin available?

Yeap..

debian@beaglebone:$ uname -r
4.1.10-ti-r24

debian@beaglebone:~/puggledriver/apps$ dtc --version
Version: DTC 1.4.1-g8e001df3

https://github.com/cdsteinkuehler/beaglebone-universal-io/commits/master/config-pin

Regards,

Hi -

I just our project to 4.1. I made the mods necessary to the dts to account
for the gpio changes/etc and can load the overlay. However, when I run

config-pin P9.29 gpio

to set the pin modes and states, I am faced with:

bash: /sys/devices/platform/ocp/ocpP9_29_pinmux/state: No such file or
directory
Cannot write pinmux file: /sys/devices/platform/ocp/ocp
P9_29_pinmux/state

It looks like the structure of the ocp dirs has changed - so I assume this
is expected. But where/how to set the state now is unclear to me. Is there a
“newer” version of config-pin available?

Yeap…

debian@beaglebone:$ uname -r
4.1.10-ti-r24

debian@beaglebone:~/puggledriver/apps$ dtc --version
Version: DTC 1.4.1-g8e001df3

https://github.com/cdsteinkuehler/beaglebone-universal-io/commits/master/config-pin

Pulled that repo, and used that config-pin script to try and I get the same errors again. I see the changes you made to the script, however those changes are still trying to write to /sys/devices/platform/ocp/ocpP9_29_pinmux/state - but there is no “state” file in any of the P directories. Did I forget a step?..

did you load the cape universal overlay?

https://github.com/RobertCNelson/boot-scripts/blob/master/boot/am335x_evm.sh#L239-L273

WFM..

Regards,

4.1.10-ti-r24… P9_29 works for me.

However, I get that error for P8_10.

config-pin P8.10 low

bash: /sys/devices/platform/ocp/ocpP8_10_pinmux/state: No such file or directory
Cannot write pinmux file: /sys/devices/platform/ocp/ocp
P8_10_pinmux/state

Erik

Were you able to solve this problem?