17
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

updated at

メモ:Device tree blob (.dtb)をDevice tree source (.dts)に戻す

Device Tree Compiler (DTC)は、通常はDevice tree source (.dts)からDevice tree blob (.dtb)に変換するものだが、逆変換もできるらしい。

Ubuntu 15.04にDTCをインストールして、確認してみる。

$ sudo apt-get install device-tree-compiler

手持ちのRaspberry Piのdtbファイルを変換してみる。

$ dtc -I dtb -O dts -o bcm2708-rpi-b.dts bcm2708-rpi-b.dtb 
$ cat bcm2708-rpi-b.dts
/dts-v1/;

/ {
    #address-cells = <0x1>;
    #size-cells = <0x1>;
    compatible = "brcm,bcm2708";
    model = "Raspberry Pi Model B";
    interrupt-parent = <0x1>;

(以下省略)
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
17
Help us understand the problem. What are the problem?