Finished my eQEP Driver

For the past couple of weeks I’ve been writing a driver for the eQEP hardware in the beaglebone and beaglebone black. I’ve got the driver as a kernel patch, the device tree overlays, and C++ and Python bindings for the driver up on my github now for anyone who wants to try it out.

https://github.com/Teknoman117/beaglebot/tree/master/encoders

  • Nathaniel Lewis

Hi Nathaniel,

Impressive work!, kernel updated and started to play with the driver.

Thanks!

Paco

I’ve tried to compile the dts files on my BBB.
The .dtbo is created, but when I load the device tree overlay I just get the following:

root@arm:/lib# echo bone_eqep0 > /sys/devices/bone_capemgr.9/slots
-bash: echo: write error: Invalid argument

Any idea how to debug this?

/ Lars Vestergaard

I have compiled the .dts files and the .dtbo files are generated.
However I get the following message when I load the device tree overlay.
Do you have any aiea how to debug that?

root@arm:/lib# echo bone_eqep0 > /sys/devices/bone_capemgr.9/slots
-bash: echo: write error: Invalid argument

/ Lars

I’ve had someone else bring this issue up. I haven’t been able to repeat the issue on my end. Pulled the latest kernel source for 3.8.13, patched with the driver and was able to load the precompiled DTBO files. Searching around online, it appears to be a possible issue with capemgr, because other people have been having the same issue with other drivers or DTB files. I’ll try to compile the DTB’s with a current version of the dtc compiler.