User: Password:
Subscribe / Log in / New account

Platform devices and device trees

Platform devices and device trees

Posted Jun 23, 2011 20:04 UTC (Thu) by klossner (subscriber, #30046)
In reply to: Platform devices and device trees by etienne
Parent article: Platform devices and device trees

The device tree source code is compiled by the dtc tool to the compact binary form expected by the of_xxx() routines. The tool finds and publicizes errors, albeit sometimes with cryptic messages.

My current work is with products that use u-boot as the bootloader. u-boot takes the binary device tree, adds decorations to reflect the hardware (e.g., describing the amount of installed system RAM), then passes it to the Linux kernel.

It's true that a single system-on-chip processor has a constant part. But it may be one of a large family of such chips. It can be easier to describe the individual components of the SOC in the device tree (e.g., there are PCI Express ports at addresses X and Y and an Ethernet port at Z) than to prepare a code module for each chip.

(Log in to post comments)

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds