STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
which_firmware Namespace Reference

Functions

list[dict] find (Path registry, str prefix)
int main ()

Detailed Description

Answer "which firmware is this board running?" from a digest it reported.

    which_firmware.py 5f2885e2                 # a prefix is enough
    which_firmware.py 5f2885e2 --registry DIR  # a registry tree other than the default

The digest is what a board puts in its heartbeat and what the DAQ shows in the
config panel. CI records one file per distinct image on the `firmware-registry`
branch, so get that branch first:

    git fetch origin firmware-registry:firmware-registry
    git worktree add /tmp/fwreg firmware-registry

and point --registry at it, or set STAR_FIRMWARE_REGISTRY.

Function Documentation

◆ find()

list[dict] which_firmware.find ( Path registry,
str prefix )

Definition at line 26 of file which_firmware.py.

Referenced by main().

◆ main()

int which_firmware.main ( void )

Definition at line 40 of file which_firmware.py.

References find(), and main().