最終更新:2016-06-28 (火) 14:19:24 (511d)  

デバイスツリー はてなブックマークを見る
Top / デバイスツリー

The device tree describes the hardware system such that the kernel can configure itself during boot.

http://www.devicetree.org/

概要

  • Open Firmwareで使われているシステムのデバイス情報を記述するフォーマット
  • DTS->DTB

メモ

  • The device tree is used both by Open Firmware, and in the standalone Flattened Device Tree (FDT) form.

Linux

U-Boot

  • The bootloader passes the DTB address through r2.
  • bootm <kernel img addr> - <dtb addr>

eLinux.org

対応CPU

Linuxカーネル

ファイル

DTS - Device Tree Source

  • board-level definitions

DTSI? - Device Tree Source for included

  • generally containing SoC-level definitions

DTB - Device Tree Blob

  • produced by the compiler, and is the binary that gets loaded by the bootloader and parsed by the kernel at boot time.

使う側

コンパイラ

Xilinx

Device Tree Support

  • http://wiki.xilinx.com/zynq-linux
  • Device tree is a process by which the Linux kernel initializes itself based on the hardware platform. Device tree allows a single kernel image to run on multiple hardware platforms. A device tree file, named *.dts, is a text file that describes the hardware platform. It is compiled into a device tree blob, *.dtb, which is loaded into memory before the Linux kernel is started. The Linux kernel then uses that device tree blob to initialize itself at runtime.
  • Device tree is supported and required for the Xilinx ARM kernel. Previously to Linux kernel 3.0, most ARM Linux kernels did not support device tree and were based on platform data. PowerPC and MicroBlaze also use device tree initialization.

MicroBlaze

  • The build process for the kernel searches in the arch/microblaze/boot/dts directory for a specified device tree file and then builds the device tree into the kernel image.

.config

  • CONFIG_PROC_DEVICETREE?

kernel.org

スライド

Device Tree 入門

関連

LinuxConとかの資料

参考

Device Tree についてのまとめ