SilverThings / bulldog

Java GPIO Library for BeagleBoneBlack, Raspberry Pi and CubieBoard.
http://www.silverspoon.io
Apache License 2.0
49 stars 23 forks source link

Adding search paths for capemgr #60

Closed mpbarnwell closed 8 years ago

mpbarnwell commented 8 years ago

I suggest this as a better fix to #51 since it'll be backwards compatible with minimal code changes.

mijaros commented 8 years ago

Hello, We've got simmilar solution in past, but we've abbandoned that, because of device-tree overlay setting in new kernel didn't work out of the box and DTC was needed to compile. Could you provide us some info about that? Are there some pins working out of the box, and how did you set them up?

In the end, we expect to drop SysFS dependence, so I suppose that capemgr will be dropped too.

Thank you for collaboration

mpbarnwell commented 8 years ago

Hi @xjaros1,

Sorry it's taken me so long to reply, I've not had hands on the device in a little while.

I'm not sure what info you're after; I've only been using GPIO and that's working perfectly. From the look of DeviceTreeCompiler.java DTC is only needed for PWM and I've not used that.

I'm using the Ubuntu build shown here, this has a 4.1 kernel:

uname -a
Linux controller-cc2f7c 4.1.13-bone17 #1 Wed Dec 2 20:16:24 UTC 2015 armv7l armv7l armv7l GNU/Linux

This comes with dtc, though I seem to recall upgrading it for some reason:

root@controller-cc2f7c:~# dtc --version
Version: DTC 1.4.1-g93aabdec