updated config-pin?

615 views
Skip to first unread message

m...@yapatel.com

unread,
Oct 23, 2015, 9:09:27 AM10/23/15
to BeagleBoard
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?

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

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

Yogi

Robert Nelson

unread,
Oct 23, 2015, 9:31:57 AM10/23/15
to Beagle Board
On Thu, Oct 22, 2015 at 8:04 PM, <m...@yapatel.com> wrote:
> 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,

--
Robert Nelson
https://rcn-ee.com/

m...@yapatel.com

unread,
Oct 23, 2015, 10:51:35 AM10/23/15
to BeagleBoard
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/ocp*P9_29_pinmux/state - but there is no "state" file in any of the P* directories. Did I forget a step?...

Robert Nelson

unread,
Oct 23, 2015, 10:54:40 AM10/23/15
to Beagle Board

Erik Stauber

unread,
Oct 24, 2015, 6:06:57 PM10/24/15
to BeagleBoard
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/ocp*P8_10_pinmux/state: No such file or directory
Cannot write pinmux file: /sys/devices/platform/ocp/ocp*P8_10_pinmux/state

Erik

cahmad...@gmail.com

unread,
Apr 21, 2016, 9:20:33 AM4/21/16
to BeagleBoard
Were you able to solve this problem?
Reply all
Reply to author
Forward
0 new messages