File tree 1 file changed +24
-1
lines changed
1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ Install the prerequisites with "sudo apt install cmake device-tree-compiler" - y
9
9
- * cmake .*
10
10
- * sudo make install*
11
11
12
+ Alternatively, to avoid fetching the entire ` utils ` repository and its history, you can just download it with:
13
+ ```
14
+ $ wget https://raw.githubusercontent.com/raspberrypi/utils/refs/heads/master/kdtc/kdtc
15
+ $ chmod +x kdtc
16
+ ```
17
+
12
18
** Usage**
13
19
```
14
20
Usage: kdtc [<opts>] [<infile> [<outfile>]]
@@ -24,6 +30,23 @@ Usage: kdtc [<opts>] [<infile> [<outfile>]]
24
30
25
31
When run with no dtc options, kdtc detects the input format and attempts
26
32
to do the right thing.
33
+ ```
34
+
35
+ Assuming ` kdtc ` is in your PATH, compiling an overlay without ` #includes ` 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 ` #includes ` , use either:
40
+ ```
41
+ $ kdtc -k /path/to/kernel doofer-overlay.dts doofer.dtbo
42
+ ```
43
+ Or, running from 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.)
27
48
28
- If run within a git kernel source tree, the kerndir path is inferred.
49
+ To decompile an overlay to ` stdout ` :
50
+ ```
51
+ $ kdtc mystery.dtbo
29
52
```
You can’t perform that action at this time.
0 commit comments