mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-19 11:55:24 +02:00
dtc: add more examples (#17130)
This commit is contained in:
parent
e50d8e5fc9
commit
6cf98be656
1 changed files with 13 additions and 1 deletions
|
@ -3,6 +3,18 @@
|
|||
> The Device Tree Compiler, a tool for recompiling device trees between formats.
|
||||
> More information: <https://github.com/dgibson/dtc>.
|
||||
|
||||
- Decompile a `.dtb` file into a readable `.dts` file:
|
||||
- Compile a device tree source `.dts` file into a binary device tree blob `.dtb` file:
|
||||
|
||||
`dtc -I dts -O dtb -o {{path/to/output_file.dtb}} {{path/to/input_file.dts}}`
|
||||
|
||||
- Compile a device tree source `.dts` file into a binary device tree blob overlay `.dtbo` file:
|
||||
|
||||
`dtc -@ -I dts -O dtb -o {{path/to/output_file.dtbo}} {{path/to/input_file.dts}}`
|
||||
|
||||
- Decompile a device tree blob `.dtb` file into a readable device tree source `.dts` file:
|
||||
|
||||
`dtc -I dtb -O dts -o {{path/to/output_file.dts}} {{path/to/input_file.dtb}}`
|
||||
|
||||
- Decompile the current device tree from the system into a readable device tree source `.dts` file:
|
||||
|
||||
`dtc -I fs -O dts /proc/device-tree`
|
||||
|
|
Loading…
Add table
Reference in a new issue