On 9/4/2014 3:43 PM, Jason Kridner wrote: > Charles, > > It would be great if you could take a look at this and see if it is > suitable for you and if I'm headed down the right path. There is a > pre-built linux-image package and if you use one of Robert's recent test > images, you can simply use 'dpkg -i XXX.deb && reboot' to install it. > > It would be great if config-pin was updated to work with this. Right now, I > have commented out the exit statement where cape-universal isn't detected.
I've made some changes to config-pin that should help it deal with running on a 3.14+ kernel that doesn't have capemgr: https://github.com/cdsteinkuehler/beaglebone-universal-io/commit/3b13d4ceb2e705d4dda7dd05a80dc5fdf2b326f3 I also tried to (more) gracefully handle the instance where config-pin was called for a GPIO pin that has not been exported (as is the case with all I/O pins and the default 3.14 device-tree). Now if you ask config-pin to setup a pin in GPIO mode and the pin is not exported, it will complain about not being able to set the direction, but will still update the pinmux value correctly. Setting a pin to something other than GPIO will not trigger this warning. Example: debian@beaglebone:~$ uname -a Linux beaglebone 3.14.17-ti-r18 #1 SMP Fri Sep 5 00:21:05 UTC 2014 armv7l GNU/Linux debian@beaglebone:~$ config-pin p8.10 in+ WARNING: GPIO pin not exported, cannot set direction or value! debian@beaglebone:~$ config-pin p8.10 timer debian@beaglebone:~$ Next up, I plan to try and see if I can extend the pinmux helper with a mode (settable via device-tree) so the device tree can specify an initial mode for the pins, but the pinmux settings will still be changeable at run-time via sysfs and config-pin. Ideally, it should be possible to use most of the BBB special-purpose hardware without having to craft a custom device tree file! -- Charles Steinkuehler [email protected] -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
