Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What exactly is a device tree, and a device tree blob? Where can I get its source code for a particular linux version? I found such name while running linux on xilinx chips (having ARM 9), for example: here

share|improve this question
Are you referring to the device/hardware description stuff used on, e.g., ARM? – derobert Mar 8 '14 at 6:27
yes. I sw this while running linux on ARM 9 based xilinx chips – gpuguy Mar 8 '14 at 6:31
I've only heard of them, not really dealt with them. Basically, it's something passed from the firmware or bootloader to the kernel, to tell it what hardware exists on the system. Here are a few links: elinux.org/Device_Tree git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/… – derobert Mar 8 '14 at 6:34

Have you tried consulting the Xilinx wiki?

This howto looks like it has everything you need to get what you want. There's links to a git repository with code as well as directions on how to build it. Here's the command to download the device-tree sources.

$ git clone git://github.com/Xilinx/device-tree.git

The Xilinx website also provides a excellent Getting Started resource if you're new to their toolhchain workflow. Here's a diagram that shows where the device trees fit in:

    ss of xilinx workflow

Given these details a very specific to a variance of Linux for the Xilinx platform I'm not going to include any of the details beyond the above here on U&L, since that wiki is maintained by a hardware vendor, Xilinx, that's supporting that version of the kernel for their hardware products to use.

share|improve this answer

Google refers to Wikipedia, which refers to www.devicetree.org which describes your "device tree" as:

The Device Tree is a data structure for describing hardware. Rather than hard coding every detail of a device into an operating system, many aspect of the hardware can be described in a data structure that is passed to the operating system at boot time. The device tree is used both by Open Firmware, and in the standalone Flattened Device Tree (FDT) form.

Seems like this is a completely different "device tree" than the "device tree" under /dev/.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.