Advanced Device Tree (Part 4): Practical Linux Debugging

Advanced Device Tree (Part 4): Practical Linux Debugging

1. Device Tree in the sys Filesystem 1.1 /sys/firmware/devicetree/base The Linux kernel exports device tree information to the<span>/sys/firmware/devicetree/base</span> directory, providing a user-space access interface. Directory Structure: /sys/firmware/devicetree/base/ ├── compatible ├── model ├── #address-cells ├── #size-cells ├── cpus/ │ ├── cpu@0/ │ └── cpu@1/ ├── memory@80000000/ ├── soc/ │ ├── i2c@10002000/ │ ├── uart@10009000/ │ └── … Read more

Understanding the Linux Kernel’s proc File System

/proc is a special virtual file system. It does not exist on a physical disk but is dynamically generated by the kernel in memory. Its main purpose is to serve as an interface that allows user-space programs (such as ps, top, htop, etc.) to easily obtain runtime information about the kernel and processes, and in … Read more