Sorry to bump up an old thread, but I was trying to catch up on the general state and future of overlay support and this looks like the best discussion. I was curious, is there any thought around how bonescript and other tools that use overlays today for dynamic pin control (like setting pull-ups, analog inputs, etc.) would work in a world without overlays? For example does bonescript work on the 3.14 kernel today without the cape manager?
exports.is_cape_universal = function(callback) { var ocp = exports.is_ocp(); if(debug) winston.debug('is_ocp() = ' + ocp); var cape_universal = exports.find_sysfsFile('cape-universal', ocp, 'cape-universal.', callback); if(debug) winston.debug('is_cape_universal() = ' + cape_universal); return(cape_universal); }; However, I'm not finding that 3.14 is really using cape-universal. I'm still exploring that, but it seems Robert has implemented things in a different way. When I'm not fighting 'buildbot' (builds.beagleboard.org), I'm looking at what it'll take to align 'config-pin' from cape-universal and Robert's entries. Right now, I'm leaning towards backing out Robert's changes and going back to cape-universal. With cape-universal, there are gpio and pinmux helpers that can be configured from userspace. |
Also based on this LKML thread that was mentioned in other threads (https://lkml.org/lkml/2014/7/27/57), does it still look like device tree overlay support is on its way into the mainline kernel?
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Tue, Aug 26, 2014 at 3:50 PM, Tony DiCola <to...@tonydicola.com> wrote:
Sorry to bump up an old thread, but I was trying to catch up on the general state and future of overlay support and this looks like the best discussion. I was curious, is there any thought around how bonescript and other tools that use overlays today for dynamic pin control (like setting pull-ups, analog inputs, etc.) would work in a world without overlays? For example does bonescript work on the 3.14 kernel today without the cape manager?I have a version where I did a bit of a proof-of-concept on this, but I haven't enabled all of the peripherals yet. I have various implementations of the kernel interfaces and here is the one that uses cape-universal:It is triggered by this condition when the library is loaded:This is the test condition I used to discover if cape-universal is loaded:
exports.is_cape_universal = function(callback) {
var ocp = exports.is_ocp();
if(debug) winston.debug('is_ocp() = ' + ocp);
var cape_universal = exports.find_sysfsFile('cape-universal', ocp, 'cape-universal.', callback);
if(debug) winston.debug('is_cape_universal() = ' + cape_universal);
return(cape_universal);
};
However, I'm not finding that 3.14 is really using cape-universal. I'm still exploring that, but it seems Robert has implemented things in a different way. When I'm not fighting 'buildbot' (builds.beagleboard.org), I'm looking at what it'll take to align 'config-pin' from cape-universal and Robert's entries. Right now, I'm leaning towards backing out Robert's changes and going back to cape-universal.
With cape-universal, there are gpio and pinmux helpers that can be configured from userspace.
Jason,What is so radically different that capemgr does not work ?
Sorry if this is a total newb question, but this is one aspect I've been struggling to try and understand. As I'm not exactly a kernel dev *yet*.I've read stuff where people have used mmap to configure pins, using the PRU etc, but again this is another area where I lack experience . . . Perhaps the device tree needs to be in place for any of this to work?
On Tue, Aug 26, 2014 at 5:35 PM, William Hermans <yyr...@gmail.com> wrote:
Jason,What is so radically different that capemgr does not work ?Didn't say that it doesn't work. It hasn't yet been added to our 3.14 tree which will require a backport. It looks like it should land upstream in 3.17 and we'll likely backport it from there.
Didn't say that it doesn't work. It hasn't yet been added to our 3.14 tree which will require a backport. It looks like it should land upstream in 3.17 and we'll likely backport it from there.
--
What I mean is this: Why doesn't the capemgr that is in 3.8.x work in 3.14.x *right now* Why is it not a drop-in addition ? Obviously something is different, but I am trying to understand why the kernel progresses in a manner that breaks things in previous version, that are not all that old.Didn't say that it doesn't work. It hasn't yet been added to our 3.14 tree which will require a backport. It looks like it should land upstream in 3.17 and we'll likely backport it from there.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/ULhioCVzbYk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.