{"id":6233,"date":"2019-03-12T21:06:48","date_gmt":"2019-03-12T20:06:48","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=6233"},"modified":"2019-03-13T10:19:39","modified_gmt":"2019-03-13T09:19:39","slug":"linux-decompile-show-a-device-tree-binary-file-dtb","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/linux-decompile-show-a-device-tree-binary-file-dtb\/","title":{"rendered":"Linux: Decompile\/show a device tree binary file dtb"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_6233 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_6233')){$('.twoclick_social_bookmarks_post_6233').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Linux%3A%20Decompile%2Fshow%20a%20device%20tree%20binary%20file%20dtb\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Aunder%20linux%20device%20tree%20is%20a%20way%20to%20describe%20hardware%20which%20is%20not%20discoverable.%0D%0A%0D%0AThe%20kernel%20uses%20a%20compiled%20version%20of%20the%20device%20tree.%20This%20can%20be%20decompiled%20in%20an%20readable%20formet%20by%20the%20device%20tree%20compiler.%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/linux-decompile-show-a-device-tree-binary-file-dtb\\\/\",\"post_id\":6233,\"post_title_referrer_track\":\"Linux%3A+Decompile%2Fshow+a+device+tree+binary+file+dtb\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>under linux device tree is a way to describe hardware which is not discoverable.<\/p>\n<p>The kernel uses a compiled version of the device tree. This can be decompiled in an readable formet by the device tree compiler.<br \/>\n<!--more--><br \/>\nInstall device tree compiler<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\napt-get install device-tree-compiler\r\n<\/pre>\n<p>Decode a dtb file<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nmichael@devdeb ~# dtc -I dtb -O dts sun8i-h3-orangepi-pc.dtb -o \/tmp\/tmp.dts \r\nmichael@devdeb ~#  less \/tmp\/tmp.dts\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, under linux device tree is a way to describe hardware which is not discoverable. The kernel uses a compiled version of the device tree. This can be decompiled in an readable formet by the device tree compiler.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1323,1324,1322,224,571],"class_list":["post-6233","post","type-post","status-publish","format-standard","hentry","category-linux","tag-decompile","tag-device-tree-compiler","tag-dtb","tag-linux-2","tag-show"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/6233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=6233"}],"version-history":[{"count":6,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/6233\/revisions"}],"predecessor-version":[{"id":6240,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/6233\/revisions\/6240"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=6233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=6233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=6233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}