Overview of pyfdt capabilities
stablepyfdt is a Python library for manipulating Flattened Device Trees (FDT), heavily based on fdtdump.
Supported Inputs
- Device Tree Blob (.dtb)
- Filesystem
- JSON
Supported Outputs
- Device Tree Blob (DTB)
- Device Tree Structure (text DTS)
- JSON
Core Functionalities
- Node/Attribute Manipulation: Add, delete, or pop nodes and attributes; create attributes dynamically using native Python types.
- Tree Traversal: Walk through the tree and resolve/generate paths.
- Parsing/Generation: Parse from DTB or filesystem; output to DTB, DTS, or JSON.
- Tree Operations: Compare two trees or merge two trees.
- Filesystem Integration: The Device Tree filesystem 'output' can be accessed via the
fusemount.pyFUSE sample using thefusepylibrary.