Getting started
1. Install
Linux
Download the .deb and install it with apt, which also pulls in the
device tree compiler:
sudo apt install ./kernelgrove_amd64.deb
The package recommends device-tree-compiler and cpp rather than
depending on them: everything except compiling works without either, and both are ordinary
distribution packages with their own security updates, so they are never bundled.
Windows
Run the installer. It offers an optional component that downloads dtc and the C
preprocessor — Windows ships neither. Skip it and the editor still works; only building does not.
2. First run
Two things happen once, before the window opens:
- The licence agreement is shown. It is accepted in the app, not in the installer, so an
unattended
apt installnever blocks waiting for someone to click Accept. - The bindings database is downloaded (about 68 MB) if there is not one already. It ships separately from the program — see One database, one door. If the download cannot happen you can point the app at a local copy instead, and change it later from Help → Use a local database…
3. Open something
There are two ways in, and neither is a single-file dialog:
- Your own project — File → Open folder… (
Ctrl+O). The folder is the project: its sibling.dtsiincludes, its overlays and its.dtsall stay within reach in the side panel. - A real SoC or board — the database button on the rail
(
Ctrl+6) opens the catalogue: about 3,700 trees read out of the Linux kernel. Pick one and press Load DTS.
4. Edit
Diagnostics appear as you type, in the PROBLEMS strip at the bottom and in the gutter. They are layered — the specification first, then the generic bindings, then the constants, then the device's own binding — so no layer invents a rule an earlier one already settled.
Ctrl+Spacecompletes property names for the node'scompatible, and offers the enumerated values a property admits.- The Inspector on the right lists every property the binding declares, written or not, marked required or optional. A missing required property is visible before you compile.
Ctrl+click on an#includeor on a&labelopens where it is defined, even when that file only exists inside the database.
5. Write an overlay
The OVERLAYS section (Ctrl+4) → Create new overlay → click the node in
the source you want to target. Tick what you want to add, edit the preview directly if you
prefer, and press Create overlay file. The .dtso lands in the open folder,
named after its target node, and from then on it is an ordinary file — the assistant steps aside.
6. Build
BUILD TOOLS (Ctrl+5): pick the .dts, toggle the overlays that go
into the build, press Build. It checks first and compiles second, and one error stops
the build. That order is the point: dtc knows nothing about bindings and will
happily compile an overlay whose target does not exist in the base, leaving you to discover it
on the board.
dtc does
not preprocess. On Debian or Ubuntu:
sudo apt install device-tree-compiler cpp. Help → About reports the
version of each one it can find, read fresh every time you open it.
Where next
The rest of the documentation, or write to us from the contact section.