element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Single-Board Computers
  • Products
  • Dev Tools
  • Single-Board Computers
  • More
  • Cancel
Single-Board Computers
Forum "Beaglebone and the 3.8 Kernel"
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Single-Board Computers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 15 replies
  • Subscribers 59 subscribers
  • Views 1363 views
  • Users 0 members are here
  • beaglebone_black
  • beagleboneblack
  • bbb
  • beagle_bone_black
Related

"Beaglebone and the 3.8 Kernel"

fustini
fustini over 12 years ago

FYI - I found this via Google+ (https://plus.google.com/108506657199236487651/posts/UjbtCWXAYGP):

 

Beaglebone and the 3.8 Kernel

https://docs.google.com/document/d/17P54kZkZO_-JtTjrFuVz-Cp_RMMg7GB_8W9JK9sLKfA/edit?hl=en&forcehl=1#heading=h.j4ega7pcz5c

 


  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 12 years ago +2
    Hi I'm the author of that document. Glad that you've found it helpful. As to why it's not available from beagleboard.org and circuitco wiki, it is being rectified right now. Had to have a few review cycles…
  • morgaine
    morgaine over 12 years ago in reply to Former Member +1
    Prototyping capes generally don't have the eeprom describing the cape, so the expected answer is (probably) that it can be done manually, not just through the cape manager. Other boards don't have capes…
  • Former Member
    Former Member over 12 years ago in reply to Former Member +1
    Hi The document describes the mechanism pretty thoroughly. In a nutshell, the beaglebone cape manager, uses the generally available DT Overlays functionality provided by the kernel. So the only requirement…
Parents
  • Former Member
    Former Member over 12 years ago

    Hi

     

    I'm the author of that document. Glad that you've found it helpful.

     

    As to why it's not available from beagleboard.org and circuitco wiki, it is being rectified right now.

    Had to have a few review cycles before it went out.

     

    The problem with working on the cutting edge is that stuff just haven't got around to be documented

    thoroughly, so for new comers it sure is indimidating at first.

     

    We're also working on getting some examples of using the standard peripherals on the next release,

    which will help people get their designs working much faster.

     

    Don't hesitate to ask for more information, or to point areas that the document needs help.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    Hi Pantelis,

     

    We really do understand just how new this stuff is, so thankyou for the doc. It really helps.

     

    If you have time, I have one question..  Suppose I wanted to access the userspace overlay loading support from something like a Raspberry Pi (or Sabre-Lite, Cubieboard, Wandboard etc), am I able to do that with your current code ?  

     

    As far as I can tell it's only exposed through the beaglebone cape manager currently, but I can think of lots of scenarios where I wouldn't have the cape manager (or simply wouldn't want it) but the base overlay loading feature could be really useful.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 12 years ago in reply to Former Member

    Prototyping capes generally don't have the eeprom describing the cape, so the expected answer is (probably) that it can be done manually, not just through the cape manager.  Other boards don't have capes anyway, and DT is intended as a board- and architecture-independent technology.   Also, even in the presence of capes, one would still want the ability to override the cape manager's operation in some cases, for a subset of the capes currently present perhaps.

     

    Confirmation that this is the intended direction of development would be very useful.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    Hi

     

    The document describes the mechanism pretty thoroughly.

     

    In a nutshell, the beaglebone cape manager, uses the generally available DT Overlays functionality provided by the kernel.

    So the only requirement for any other platform that wants to use it, would be:

     

    a) To be using Device Tree.

    b) A platform specific manager to handle the probing of 'capes' or whatever they're called for that platform.

     

    As far as I can tell RPi doesn't support DT yet (but the A13 based ones do, and Sabre Lite do) - I think, I haven't looked all that thorougly.

     

    Now, I have had others asking about making bits of the beaglebone cape manager available as general infrastructure, so we'll

    look at that as part of our mainlining effort.

     

    You have to understand that the way things work their way in the kernel tend to go though some stages. The beaglebone is the first

    platform which uses DT so extensively, so we keep on hitting things that need fixing in the kernel infrastructure. Parts of what we've

    done, could work their way in the kernel for every platform to use. But it won't happen if users don't voice their opinions about which

    way it should go. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to morgaine

    All of the use cases you have mentioned are already handled.

     

    1) Prototyping capes can be override-loaded via three methods; kernel command line, base DT file override and runtime loading.

    2) A command line option disables automatic loading of matching capes.

    3) Virtual capes are already included which provide canned peripheral configuration for various cases, i.e. standard setup for UART/I2C/SPI/ADC and others. There's nothing that ties the cape manager to only the external connectors.

     

    Hope this clear enough.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 12 years ago in reply to Former Member

    That's a very concise description of your coverage of the problem space, and covers all my existing questions.

     

    Many thanks! image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 12 years ago in reply to Former Member

    Pantelis Antoniou wrote:

     

    Parts of what we've done, could work their way in the kernel for every platform to use. But it won't happen if users don't voice their opinions about which way it should go. 

     

    Fear not, we are fairly good at voicing our opinions here. image  Fortunately, also quite precise with them, as befits an engineering site.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    Pantelis Antoniou wrote:

     

    You have to understand that the way things work their way in the kernel tend to go though some stages.

     

    Some of us have first hand experience of the way it works image   I can't imagine I'm the only one looking at your code, thinking it looks very useful, and wondering if the mechanism couldn't be made more generic. 

     

    I guess what I'm thinking of is something where the mechanism is available regardless of the presence of capemgr, but where capemgr or another platforms equivalent can register with the generic code and then be able to perform everything it does today. So no loss in functionality for BBB, but everyone gains from the generic capability.

     

    I do understand you're implementing this first and that you're doing it specifically for the BBB, so your needs are your first concern.  However it's been my experience that the upstream kernel maintainers tend to look beyond the initial use case, see that something will be useful,  and ask the developer to change it to make it more generally useful.  I fully expect things to evolve as your efforts to mainline the code progress.

     

    Best of luck in your efforts and thanks for taking the time to share your insights here.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    We are in sync. In fact you're not the first one that suggested moving stuff around so that's a general service.

     

    All I can tell is that we're working on it; it's going to be fun image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 12 years ago in reply to Former Member

    I've been making use of DT fragments, currently just to enable the PRU and to set the mode for pins, however I'm having trouble setting GPIO2 pins as inputs. I've seen this on the latest 6/6 build too, as well as the previous build.

     

    The .dts fragment example I'm using is here. It doesn't work, although I can set the pin to input using the echo in > /sys/class/gpio/gpio65/direction so I have a workaround for now.

     

    However, does it look like a bug, or have I made an error in the dts file?

    The fragment is responsible for setting <0x8c 0x2f> which is DIL header P8, pin 18 as seen on the pinmux website, set to input, with no pullup/pulldown. When I load it, and try to verify using echo $PINS | grep 88c, I see it as 0x27, i.e. unchanged.

     

    I'm guessing I've maybe made a silly error somewhere, but it's quite frustrating having looked at it for days, and not getting anywhere!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • shabaz
    shabaz over 12 years ago in reply to Former Member

    I've been making use of DT fragments, currently just to enable the PRU and to set the mode for pins, however I'm having trouble setting GPIO2 pins as inputs. I've seen this on the latest 6/6 build too, as well as the previous build.

     

    The .dts fragment example I'm using is here. It doesn't work, although I can set the pin to input using the echo in > /sys/class/gpio/gpio65/direction so I have a workaround for now.

     

    However, does it look like a bug, or have I made an error in the dts file?

    The fragment is responsible for setting <0x8c 0x2f> which is DIL header P8, pin 18 as seen on the pinmux website, set to input, with no pullup/pulldown. When I load it, and try to verify using echo $PINS | grep 88c, I see it as 0x27, i.e. unchanged.

     

    I'm guessing I've maybe made a silly error somewhere, but it's quite frustrating having looked at it for days, and not getting anywhere!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube