DTSh
dottspina · 76 GitHub stars
Interactive devicetree shell: navigate, search and export the DTS of your build with west dtsh.
- Follows branch
zephyr: eachwest updatewill get its latest commits. To stay on one version, it is recommended to use a release tag.
Install
# From the workspace root
curl -fsSL https://kartben.github.io/windrose/m/dtsh.yaml \
-o zephyr/submanifests/dtsh.yaml
west update dtsh
west packages -m dtsh pip --install
# From the workspace root
Invoke-WebRequest https://kartben.github.io/windrose/m/dtsh.yaml `
-OutFile zephyr/submanifests/dtsh.yaml
west update dtsh
west packages -m dtsh pip --install
west.yml
- name: dtsh url: https://github.com/dottspina/dtsh revision: zephyr path: modules/tools/dtsh west-commands: scripts/west-commands.yml
Add to projects in your west.yml, then run west update dtsh and west packages -m dtsh pip --install.
Details
- Revision
- zephyr
- License
- Apache-2.0
- Maintainers
- @dottspina
- Last commit
- 6 mo ago
- Includes
- West commands, Python requirements
About
DTSh is an interactive DTS file viewer with a shell-like command line interface:
- easily navigate and visualize the devicetree
- find nodes based on e.g. supported bus protocols, bindings, generated IRQs, memory size, or keywords like "sensor" or "PWM"
- redirect commands output to files (text, HTML, SVG) to document hardware configurations or simply take notes
- contextual auto-completion, commands history, semantic highlighting, user profiles
- script-able (aka batch modes)
This Zephyr module adds DTSh as a West extension to your Zephyr workspace.