Check the device tree root file system (useful for debugging)

a. /sys/firmware/fdt               

Into the / sys / directory after firmware can see two files, one is devicetree folder, and the other is fdt (dtb original file, you can use hexdump -C fdt print it out to see'll find that the data file and dtb It is the same).

b. /sys/firmware/devicetree

A directory structure presented dtb file. Base directory corresponding to the root node, each node corresponds to a directory, a file corresponding to each property

c. /sys/devices/platform

System all platform_device, have come from the device tree, but also to have a .c file registered
for platform_device from the device tree, you can enter the / sys / devices / platform / <device name> / of_node view its device tree attributes ( for example, after entering / sys / devices / platform / led / of_node node if found in the directory, it indicates that the device from tree platform_device)

d. /proc/device-tree

It is linked files, point / sys / firmware / devicetree / base

Guess you like

Origin www.cnblogs.com/Oude/p/12038722.html