LoginSignup
19
18

More than 5 years have passed since last update.

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

Last updated at Posted at 2015-06-18

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>;

(以下省略)
19
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
18