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 Device Tree Overlays - version 2
  • 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 1 reply
  • Subscribers 56 subscribers
  • Views 264 views
  • Users 0 members are here
  • devicetree
  • beagleboneblack
  • bbb
  • beagle_bone_black
Related

Device Tree Overlays - version 2

Former Member
Former Member over 11 years ago

We've discussed device tree overlays and the BBB's 'capemgr' at length here previously, so I was interested to see that Pantelis is having another go at getting these into tha mainline kernel here http://thread.gmane.org/gmane.linux.drivers.devicetree/50851  It's almost a year since the last attempt (essentially what we have in current BBB kernels), so no surprise that things have changed around quite a bit.

What seems to be of most interest is that the control of it via the 'slots' file buried under /sys seems to have vanished and been replaced with:


     cat ~/BB-UART2-00A0.dtbo >/proc/device-tree-overlay

where you're actually sending the file itself instead of a name which capemgr then converts to a filename and asks the kernel firmware loader to load for you.

 

The good thing is that this makes for a much more generally useful facility, it's not BBB specific anymore.

 

The downside is that it seems likely that the current examples posted here and shabaz excellent blog posts will become obsolete to some degree.

 

It's obviously just a first step, I'd imagine there's some sort of BBB capemgr to come, but I'm wondering if it could actually end up being a userspace app. Time will no doubt tell.  I'd also think that it will be at least six months before this would make it into mainline, so plenty of time for things to change..

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 11 years ago +1
    Hi Selsinork, I'm glad they are revisiting things at least, since something needs to be done to make things easier. Let's hope it works out better. In the meantime, for basic GPIO in C, I've been using…
Parents
  • shabaz
    shabaz over 11 years ago

    Hi Selsinork,

     

    I'm glad they are revisiting things at least, since something needs to be done to make things easier. Let's hope it works out better.

    In the meantime, for basic GPIO in C, I've been using the library here by vegetableavenger (described here how to use, although you'll find it self-explanatory) and avoiding the device tree - not something I wanted to do and not great but sometimes one needs a quick way. As far as I can tell, it now works for all relevant GPIO pins although so far I've just used the known working ones in Meng-Lun's excellent example code repository (Click on Demo in the earlier link).

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • shabaz
    shabaz over 11 years ago

    Hi Selsinork,

     

    I'm glad they are revisiting things at least, since something needs to be done to make things easier. Let's hope it works out better.

    In the meantime, for basic GPIO in C, I've been using the library here by vegetableavenger (described here how to use, although you'll find it self-explanatory) and avoiding the device tree - not something I wanted to do and not great but sometimes one needs a quick way. As far as I can tell, it now works for all relevant GPIO pins although so far I've just used the known working ones in Meng-Lun's excellent example code repository (Click on Demo in the earlier link).

    • Cancel
    • Vote Up +1 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