73 lines
4.1 KiB
Markdown
73 lines
4.1 KiB
Markdown
# Alkane OS
|
|
|
|
[](https://gitea.bluefla.re/blueflare/alkane-os/actions)
|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|
|
|
Portable mining, tuning, and management logic for Alkane control boards. The
|
|
source is MIT licensed. `alkane-sdk` owns the board images and supplies the
|
|
hardware backend at build time. This repository has no on-board web frontend;
|
|
the intended management surfaces are SSH, cgminer-compatible port 4028, and a
|
|
minimal API.
|
|
|
|
## Status
|
|
|
|
This is the initial interface and release tooling. It does not mine yet. A
|
|
target in the matrix is an obligation to implement and validate, not a claim
|
|
of support. All 64 theoretical same-vendor controller/chip pairings are in
|
|
scope: 52 Bitmain and 12 WhatsMiner. For pairings a stock image rejects, the
|
|
simulator must record the first genuine rejection gate and Alkane OS must mine.
|
|
No live board is required by CI. Bench devices supply captures and independent
|
|
validation of the simulator.
|
|
|
|
The current executable lists target obligations (`alkane-os --list-targets`)
|
|
and its version. It does not start a miner or a network service. The library
|
|
now includes a versioned local Unix-socket client for the SDK hardware
|
|
backend, with bounded frames, two-second I/O timeouts, and fail-closed
|
|
response validation. The matching SDK server framing library exists, but no
|
|
board adapter is installed in an image yet.
|
|
The library can also verify an ASIC-reported SHA-256d share against an exact
|
|
pool target, including BM13xx version rolling. A test checks a BM1366 nonce
|
|
captured from real silicon at difficulty 1588. This verifies reports only;
|
|
pool communication and continuous job scheduling are still pending.
|
|
The `simulator_replay_probe` example sends that captured job through the Rust
|
|
HAL client to the SDK's host-only C/Python replay server, then verifies the
|
|
returned nonce. From this repository, run it with
|
|
`cargo run --example simulator_replay_probe -- SOCKET_PATH` after starting
|
|
the SDK server. It is a simulator check and sends work to the named socket.
|
|
The first BM1366 mining session sequences fan, temperature, PSU, reset,
|
|
work submission, and nonce polling through the HAL. It rejects stale work IDs,
|
|
malformed reports, and hashes below the caller's pool target. Sensor or HAL
|
|
failure stops the PSU. The caller must provide a board-validated temperature
|
|
limit.
|
|
|
|
The `main` branch has full tests and a conformance gate; releases are created
|
|
only after every required cell passes. `next` runs a build check and produces
|
|
release candidates. `ci/version-x.txt` is the manually edited major version.
|
|
For this repository, Y changes when the mining protocol, HAL contract, tuning
|
|
policy or API changes; Z changes for compatible fixes and packaging updates.
|
|
|
|
## Local checks
|
|
|
|
```sh
|
|
cargo fmt --check
|
|
cargo clippy --all-targets -- -D warnings
|
|
cargo test
|
|
python3 ci/check-conformance.py
|
|
```
|
|
|
|
The last command currently fails because simulator and device evidence are
|
|
still pending. It is a release gate, not a unit test.
|
|
|
|
The badges record measured host-side checks for this initial core. They do
|
|
not imply that any board image or mining target has passed conformance.
|
|
CI and metric badges are served from a private, machine-maintained branch.
|
|
The CI badge shows the last completed attempt for this source branch while
|
|
newer runs are queued; main CI refreshes measured metrics before conformance.
|