Installation
Requirements
Requirement |
Why it is needed |
How to install |
|---|---|---|
Node.js 22 or newer |
Runs the CLI and the GUI server |
From your distribution if it ships 22 or newer, else from
nodejs.org (or |
Linux kernel source tree |
Provides the bindings and includes used for validation |
A clone of the kernel your board runs: the
ADI Linux tree, or the
board vendor’s. The Raspberry Pi examples of this guide use the ADI
tree’s Raspberry Pi branch ( |
|
Preprocesses the includes and macros of the base devicetree |
|
|
Compiles the overlay, for validation and build |
|
dt-schema 2026.9 |
Validates against the kernel bindings ( |
|
Deploy tools |
The starter |
|
dtc, cpp and dt-schema are not part of the package: Analog Attach looks
for them on PATH each time it runs. Only the version 2026.9 of dt-schema is
accepted. When one is missing or has the wrong version, the command says which,
and the command that installs it (see Troubleshooting). The
guided setup (analog-attach with no arguments) checks all three first.
Getting the package
Analog Attach is not published to the npm registry. The npm package is attached to each GitHub release.
Open the v0.2.0 release.
Download
analog-attach-cli-0.2.0.tgzfrom the Assets section.Install it with npm:
npm install -g ./analog-attach-cli-0.2.0.tgz
This puts the analog-attach command on your PATH.
If npm can’t write to its global folder (an EACCES error, typical when
Node.js comes from the distribution and the prefix is /usr), don’t use
sudo. Give npm a prefix in your home folder instead, and put its bin
folder on your PATH:
npm config set prefix ~/.local
export PATH="$HOME/.local/bin:$PATH" # add this line to ~/.bashrc too
npm install -g ./analog-attach-cli-0.2.0.tgz
Verify the installation
$ analog-attach --version
0.2.0
analog-attach --help lists the commands. To check the tools as well, run
analog-attach with no arguments in a new folder: the guided setup asks for
the backend, then checks dtc, cpp and dt-schema. Stop it there with
Ctrl-C if you only wanted the check (see Configuration).
Updating and uninstalling
To update, download the .tgz of the new release and install it the same
way. It replaces the installed version:
npm install -g ./analog-attach-cli-<version>.tgz
If you installed the AI agent skill, install it again so it matches the new
version: analog-attach skill install analog-attach-linux --force. If a
command then warns that the binding caches are out of date, run
analog-attach config --reload in that project.
To remove it:
analog-attach skill uninstall analog-attach-linux # if you installed the skill
npm uninstall -g @analog-attach/cli
This leaves your projects, their .analog-attach/ folders and the global
settings file (~/.config/analog-attach/config.json) as they are. Delete
them by hand if you no longer need them.