All root-caused and fixed against the live fleet (read-only scans; no device
state changed). asic-rs changes go through the vendored tree + thirdparty/asic-rs
patch queue (0003-0005) with refreshed checksums, per ADR 0003.
#5 (XIL/CVITek + WhatsMiner blank control board):
- VNish reports the board in short form in /api/v1/info "platform": "cv"
(CVITek), "xil" (Xilinx), "aml" (AMLogic); AntMinerControlBoard::parse matched
only the full names, so CVITek/Xilinx boards were blank. Added CV/XIL.
- Old M30S firmware (< 2022.7.29 -> v1 backend) omits summary's "CB Platform"
and v1's parse mandatorily stripped an "ALLWINNER_" prefix. Added get_version
/Msg/platform as a fallback source and made the strip optional.
- Verified live: S19k Pro cv->CVITek, S19 xil->Xilinx, M30S+ VE40->H6OS.
#6b/#11 (VNish partner / shared-devfee build):
- The partner build shows as /api/v1/info "build_name" ("WildRose",
"vnishreturn"). The VNish backend (v1_2_0 + v1_3_0) now reads /build_name and
combines it with the /fw_version number, so firmware_version reads e.g.
"WildRose 1.2.7". Verified live on S19j Pro / S19k Pro.
#8 (hashboard PIC detection):
- pic_probe tried i2c-1/i2c-0 for CVITek, but a live VNish CVITek S19k Pro
exposes the hashboard MCU on i2c-3 (i2cdump 0x48 = period-8 -> PIC). Broadened
bus_candidates (cvi->[3,4,1,0], aml->[1,3,4,0], bb->[0,1,3,4], else->[1,0,3,4]);
probe_pic stops at the first bus that classifies. The classify logic was
already correct + unit-tested; only the bus map was wrong.
The GUI picks up #5/#6b automatically through asic-rs (CPU/Board columns now
populate for VNish CVITek/Xilinx and old M30S; FW Version shows the partner
build); #8 is fixed in the GUI's own pic_probe. The miner_probe diagnostic's
local-only mutation modes are left uncommitted as before.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh
asic-rs and the miner's network API cannot report PIC-vs-noPIC (only one legacy
SKU, ANTMINER S19J88NOPIC, carries it in the model string; the authoritative
signal lives on the control board's I2C bus). So this builds the real detector
ON TOP of asic-rs as an opt-in SSH probe, per the project wiki
(30-power-thermal-and-board-identity/hashboard-eeprom-pic.md):
- pic_probe.rs: SSH to the control board and run i2cdump -y <bus> 0x48 b, then
discriminate by the register period -- a PIC/MCU board exposes an 8-byte
register file that WRAPS every 8 bytes ("17 00 4b 50 7f 00 00 00 ..."), while
a noPIC board has a 4-register LM75 temp sensor (4-byte wrap). The classifier
is pure + unit-tested against the wiki's example dumps and is conservative
(indeterminate -> None, never a guess). The I2C bus is chosen from the
control-board family (AMLogic->1, BeagleBone->0, else try both). We shell out
to ssh/sshpass (no SSH crate) so the offline/vendored build is unaffected.
- Right-click "Detect PIC (SSH)..." on the selected miners: a dialog collects
SSH login (prefilled from a new 0600 ssh-credentials.txt, default user root),
then start_pic_probe runs one miner at a time on a background thread (each is a
slow SSH round trip; never part of the fast network scan) and upserts
pic_present into the rows as results arrive. Fake-scan mode returns
deterministic demo results. Guarded against a firmware flash / concurrent probe.
The classifier is unit-tested; the live SSH round-trip needs a reachable bench
miner with SSH + i2c-tools to verify end-to-end. cargo check --release --tests
clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh