File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Install the prerequisites with "sudo apt install cmake device-tree-compiler" - y
9
9
- * cmake .*
10
10
- * sudo make install*
11
11
12
- Alternatively, you can just download the latest version using :
12
+ Alternatively, to avoid fetching the entire ` utils ` repository and its history, you can just download it with :
13
13
```
14
14
$ wget https://raw.githubusercontent.com/raspberrypi/utils/refs/heads/master/kdtc/kdtc
15
15
$ chmod +x kdtc
@@ -30,6 +30,23 @@ Usage: kdtc [<opts>] [<infile> [<outfile>]]
30
30
31
31
When run with no dtc options, kdtc detects the input format and attempts
32
32
to do the right thing.
33
+ ```
33
34
34
- If run within a git kernel source tree, the kerndir path is inferred.
35
+ Assuming ` kdtc ` is in your PATH, compiling an overlay without ` #include ` s is simple:
36
+ ```
37
+ $ kdtc widget-overlay.dts widget.dtbo
38
+ ```
39
+ For an overlay written as if it were in the kernel tree with ` #include ` s, use either:
40
+ ```
41
+ $ kdtc -k /path/to/kernel doofer-overlay.dts doofer.dtbo
42
+ ```
43
+ Or, running from a directory within the kernel tree:
44
+ ```
45
+ $ kdtc /path/to/whatsit-overlay.dts /path/to/whatsit.dtbo
46
+ ```
47
+ (When run within a git kernel source tree, the ` --kerndir ` path is inferred.)
48
+
49
+ To decompile an overlay to ` stdout ` :
50
+ ```
51
+ $ kdtc mystery.dtbo
35
52
```
You can’t perform that action at this time.
0 commit comments