Adds a right-click "Restore to stock firmware..." action for aftermarket-firmware miners, behind a strong typed (RESTORE) confirmation that lists exactly which miners will be reverted. All three supported firmwares self-restore for free (the stock image is retained on-device; no image is uploaded), per the live-confirmed flows in the miner-firmware wiki: - VNish: POST /api/v1/unlock -> bearer -> POST /api/v1/firmware/remove (~3 s) - LuxOS: luxminer :4028 logon -> uninstallluxos (credential-free) - Braiins: SSH `uninstall.sh` (re-flashes the on-NAND stock backup) New crates/alkane-gui/src/restore.rs runs the revert on a background thread with a result channel and a fake-scan demo path; VNish password reuses the round 12 #13 per-firmware default, Braiins uses the saved SSH login. The menu item only appears when the selection includes a revertible firmware. Also fixes an event-routing bug introduced in #12/#8a: the log-viewer Close and restore OK/Cancel buttons were mistakenly handled in the MenuItem match instead of ButtonClicked, so they never fired -- this restores #12's log-viewer Close button too. Moved them to the ButtonClicked match. Verified under Xvfb + openbox: the menu item shows for VNish/LuxOS/Braiins rows; the confirm dialog renders the targets and typed gate; typing RESTORE runs the (fake) revert and closes the dialog; a wrong value is rejected and the dialog stays open. restore unit test + GUI self-test pass. NOTE: no live restore was run -- the designated test range 10.2.1.0/24 is currently empty, and production miners were not touched; the live flash awaits a unit in that range. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh
alkane-toolkit
Cross-platform desktop toolkit (Rust core, native GUI) to install stock or alkaneOS firmware on ASIC miner control boards, whatever they currently run (stock, Vnish/AnthillOS, Braiins OS+, LuxOS, ePIC, BixBit, WardenOS).
Sibling to alkane-sdk: the SDK owns board knowledge and build outputs; this toolkit is the orchestration engine and operator UI that executes its install recipes safely.
Status
M1 primary view ships: discovery (vendored asic-rs 0.8.1) + the UI-SPEC table (6 KPIs, sortable/drag-reorderable columns, row checkboxes, scan-range editor, Excel-style filter, columns panel). Pure-Rust GUI on wxWidgets via vendored + patched wx-rs (docs/adr/0002, 0003).
Build + run (Debian)
scripts/build-wx-linux.sh # once: builds vendored wx 3.3.3 to ~/.cache
scripts/build-gui-linux.sh # cargo build --release -p alkane-gui
~/.cache/alkane-tk-target/release/alkane-toolkit
Windows/macOS: scripts/build-gui-windows.sh (needs a Windows/msys2
toolchain) and scripts/build-gui-macos.sh (needs a Mac) - the GUI code is
shared; only the C++ bridge + wx differ per platform.
See docs/IMPLEMENTATION-PLAN.md for the roadmap.
Hard rules (from alkane-sdk docs/install-methods.md, encoded in code)
- Never write the bootloader/secure region.
- Verify on a channel the installer does not control.
- Reboot is root-only; a dropped SSH connection can be success.
- A packer is per board; never reuse across boards.
- Boot-switch handling is an explicit, verified step.