On 2/8/2014 10:34 PM, Michael wrote: > Hi Josh, > > no, in the current 3.13 images available from Robert Nelson there is no > cape manager. > > He started a project "Really Simple Cape Manager" > https://github.com/RobertCNelson/rscm that changes the hardware > configuration by patching the device tree source file "am335x-boneblack.dts", > builds it and then copies it to the boot partition. So there are no more > device tree overlays. > > I like this solution and in my projects the hardware configuration is fixed > and will not be changed during runtime. > > In the "simple" folder there are some examples patch files.
#shamelessplug I haven't tested with the 3.13 kernel, but this sounds like a good use for my "universal" device tree overlay, which lets you setup and use most of the hardware from user-space: https://github.com/cdsteinkuehler/beaglebone-universal-io You can switch pins between various functions like pwm, uart, and gpio using a static device tree and entries in sysfs. I've got a script[1] that makes this easy, so you can do things like: ./config-cape-universal P8.13 pwm ./config-cape-universal P9.24 uart ./config-cape-universal P9.26 high The advantage of defining all the hardware in the same "overlay" is you can mix and match pins, for instance using just the Tx or Rx side of the UART, while using the other pin for a different function without having to custom edit your own device tree file. [1] Yes, config-cape-universal is a lousy name. Suggestions for a better name are welcome! -- 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/groups/opt_out.
