# Installing and removing alkane-os The CLI (`alkane-cli afw ...`) is the supported flashing path. In-app (GUI) flashing is disabled while that path is reworked; it will call the same engine. ## Compatible miners ``` alkane-cli afw compat ``` Lists the control boards alkane-os can be installed on. For now that is the Antminer S17 (`zynq-7010`). The install/restore commands refuse any board whose `.afw` is not one of these. ## Install From a local bundle: ``` alkane-cli afw install path/to/alkane-os--zynq-7010-armv7.afw \ --host --confirm FLASH ``` From the latest release (pulled from Gitea, not GitHub, which is retired): ``` alkane-cli afw install --latest --board zynq-7010 --host --confirm FLASH # or fetch only: alkane-cli afw fetch-latest --board zynq-7010 --output ./downloads ``` A private release repo needs a token, read from `ALKANE_RELEASE_TOKEN` (else `GITEA_TOKEN`) at run time and passed to curl through a 0600 config file - never on the command line, never stored by the toolkit. ### A board still on stock Writing our first image onto a board that is still on genuine stock (past the stock gates and getting root) is done by the toolkit itself, over the network. The method is compiled into this binary; nothing else needs to be installed on your machine. Add `--from-stock`: ``` alkane-cli afw install --latest --board zynq-7010 --host \ --from-stock --confirm FLASH ``` The toolkit acquires and verifies the `.afw`, gates on compatibility, performs the network-only stock-side install, then you verify the board came up as alkane: ``` alkane-cli afw verify-live --host --timeout 300 ``` Without `--from-stock`, `install` performs a tier-2 update of a board already on alkane: it writes the dtb (`/dev/mtd0 @ 0x1a00000`), the kernel (`/dev/mtd0 @ 0x2000000`) and the rootfs (`/dev/mtd1`), holds a backup of each, reads them back (md5), and never writes `/dev/mtd0` below `0x1a00000` (BOOT.bin/FSBL/FPGA/U-Boot are preserved). ## Remove (back to stock) ``` alkane-cli afw restore-stock --host --confirm FLASH ``` Returning an aftermarket board to genuine stock is also done by the toolkit itself, over the network. You then verify independently that the board no longer answers as alkane and presents its stock OS.