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 1366 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
  • shabaz
    shabaz over 12 years ago

    Hi Drew,

    Thank you for finding this document/ I've read through it, but I'll need to read it a few more times.

    I had not realized that that famous Linus rant was concerning this specific topic!

    The document compares the old way with the new way, but I was not familiar with the old way either, so for me it's totally new regardless. I wish they wouldn't use 'foo' as an example instead of a concrete example (I feel it makes it harder to understand), although they have a more realistic example at the end (UART). Still, the document appears well-written so maybe I just need to reread several more times.

     

    What I couldn't understand the reasoning of was this:

    "Callback functions are impossible in a DT platform".

    Does this mean that when a cape is detected, it won't run any specific function that you might want? And will only do pinmuxing (short of a kernel mod)?

    As far as I can understand, in a traditional system a .ko file would get called, whereas with a DT-enabled system that won't happen.

     

    For example, I noticed in the /lib/firmware file there is a 'weather cape' .dtbo file (just as a random example).

    By converting to a device tree fragment file, I can see it contains a fragment for pinmuxing, but also contains some 'compatible' lines which I'd

    originally thought meant that there must be an executable with that name somewhere, which would get called when the fragment is loaded.

    I think this is not the case however.

     

    If it won't run any specific function, then does that mean that a query needs to be done at boot time (e.g. using a startup script) that

    would check to see if a slot has become populated (by the device tree mechanism) with your particular designed cape, and then use that script to call your executable (which may (say) send some initialization I2C commands or whatever, to get the cape up and running).

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

    Well you didn't really have an 'everything-on-the-cape.ko' scenario before.  In the previous way of doing things you'd have some platform data in a board file and use that to register a driver, it's the drivers 'probe' function that gets called to do the necessary initialisation.

     

    The new method changes things so that what used to be platform data comes from device tree, as the tree is parsed and the drivers loaded then the related drivers probe function will be loaded as normal.

     

    The pinctrl driver is new and it's used to setup the hardware pinmux settings based on what's in devicetree.  So the difference would seem to be that previously the board file could have registered all the needed drivers, and also have done some additional setup for the specific cape. You can't do this second part with devicetree

     

    While generically devicetree is just data and so no callbacks, since they've built the capemgr on top of the generic functionality I'd think that it could do the specific setup for a particular cape - but you still need that bit of initialisation code to be available somewhere.

     

    That doc is probably the best writeup I've seen so far - why this stuff isn't obviously available from beagleboard.org or the circuitco wiki is beyond me though..

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

    Well you didn't really have an 'everything-on-the-cape.ko' scenario before.  In the previous way of doing things you'd have some platform data in a board file and use that to register a driver, it's the drivers 'probe' function that gets called to do the necessary initialisation.

     

    The new method changes things so that what used to be platform data comes from device tree, as the tree is parsed and the drivers loaded then the related drivers probe function will be loaded as normal.

     

    The pinctrl driver is new and it's used to setup the hardware pinmux settings based on what's in devicetree.  So the difference would seem to be that previously the board file could have registered all the needed drivers, and also have done some additional setup for the specific cape. You can't do this second part with devicetree

     

    While generically devicetree is just data and so no callbacks, since they've built the capemgr on top of the generic functionality I'd think that it could do the specific setup for a particular cape - but you still need that bit of initialisation code to be available somewhere.

     

    That doc is probably the best writeup I've seen so far - why this stuff isn't obviously available from beagleboard.org or the circuitco wiki is beyond me though..

    • 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