> and with sudo sh -c "echo 'BB-UART2' > /sys/devices/platform/bone_capemgr/slots"
> i get sh: echo: I/O-error
This generally means the cape couldn't be loaded. You can sometimes
find more detail at the end of dmesg output, but failures when trying
to load capes are usually pretty cryptic.
--
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 beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/db971a2d-a086-ddc1-2d15-bbfd9958ff77%40steinkuehler.net.
For more options, visit https://groups.google.com/d/optout.
You have to set the pins to the proper pinmux values for UART and PWM,
not just load the overlay.
You are running a non-standard distribution. The universal overlays
are part of the BBB kernels, but the config-pin utility is probably
not getting installed. Just grab it from github:
https://github.com/cdsteinkuehler/beaglebone-universal-io
...or you can directly play with the sysfs entries created by the overlay.
I've seen this happen several time when loading a cape, that is trying to configure pins that have already been configured. For me, this happened after unloading the previous cape. There still seems to be a "bug" when unloading capes.> and with sudo sh -c "echo 'BB-UART2' > /sys/devices/platform/bone_capemgr/slots"
> i get sh: echo: I/O-error
This generally means the cape couldn't be loaded. You can sometimes
find more detail at the end of dmesg output, but failures when trying
to load capes are usually pretty cryptic.
I tried twice to implement my own overlay but I gave up because I had a significant lack of knowledge at this point.
Finally i used cape-universala (in which pwm works fine) and enabled uart2 and uart4 pins by using config-pin.
Now it works! (hope nothing else has broken!)
Thank you very much!
one last question:
pins enabled using config-pin command are enabled until reboot.
how can i keep these pins after reboot?
#!/bin/bash
config-pin P9.11 uart