Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

How to list the kernel Device Tree

If dtc is available on your platform (else, install the device-tree-compiler package), you can use:

dtc -I fs /sys/firmware/devicetree/base

The device tree is exposed as a hierarchy of directories and files in /proc. You can cat the files, eg:

find /proc/device-tree/ -type f -exec head {} + | less

Beware, most file content ends with a null char, and some may contain other non-printing characters.

Tags:

Linux

Embedded

Linux Kernel

Device Tree

Related

systemd: lie about process name using sh -c exec idiom Difference between "command not found" and "no such file or directory"? What are the differences between the various partition tables? Why can't I remove the '.' directory? netcat doesn't print response Which character encodings are supported by posix? variable interpolation in shell script How can I tell which user limit I am running into? Simplest standard way to print last bash command with timestamp Explanation of file - org.freedesktop.login1.policy How to grow filesystem to use unallocated space in partition? How is the IFB device positioned in the packet flow of the Linux kernel

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy