Education

The Case for Open-Source Bitcoin Mining Firmware

Pinned BS-1 displayDriver.cpp excerpt showing 400.0f added before hashrate formatting and efficiency calculation.

Open-source Bitcoin mining firmware lets independent reviewers inspect how a miner works and investigate suspicious behavior. That transparency matters, but source availability alone does not prove that an installed binary is safe, correctly built, or identical to the published code.

The Bitfortun BS-1 source illustrates the value of inspection: the reviewed display code adds 400 GH/s before formatting hashrate and calculating the displayed efficiency. Antbleed illustrates a related lesson: public code can contain a serious vulnerability until someone identifies and addresses it. Both cases support careful review, reproducible builds where practical, and independent checks of mining performance.

This guide covers firmware history, source-code evidence, installation restrictions, fees, the Bitaxe and Mujina projects, and practical checks for home miners and larger operators. Source references and project status were rechecked on November 8, 2026. The BS-1 discussion is a source review, not a benchmark of a shipped device.

Quick overview

  • Why source access matters: Corresponding firmware source lets owners and independent developers inspect measurement logic, fees, hardware control, and update behavior. It also enables modification and review of the published build.
  • The documented finding: The reviewed Bitfortun BS-1 display source adds 400 GH/s before presenting hashrate and calculating displayed efficiency. This establishes a source-code offset, not the actual output of a shipped miner or the intent behind it.
  • What open source cannot guarantee: Public code does not establish bug-free operation, zero fees, safe recovery, accurate claims, or a match between a downloaded binary and its repository. Check the exact release and hardware target.
  • Verify useful work: Dashboard and pool hashrates can differ because of measurement methods, averaging windows, share difficulty, and uptime. Compare sustained independent pool records before treating a short-window discrepancy as falsification.
  • Fees and licensing: Open-source firmware can charge fees, and GPL source obligations depend on distribution and the applicable license. A firmware fee, pool fee, and pool-fee rebate are different terms.
  • Experimental alternatives: Mujina’s documented Bitaxe Gamma workflow uses replacement board firmware and a Linux host over USB. It is an experimental, board-specific arrangement rather than a drop-in AxeOS update.


What is open-source Bitcoin mining firmware?

Open-source Bitcoin mining firmware is software released under a license that permits inspection, modification, and redistribution under its terms. Firmware coordinates the miner’s ASICs, network and pool connections, submitted work, frequency and voltage settings, cooling, and status reporting.

Displayed hashrate is an estimate whose meaning depends on its implementation. Current ESP-Miner uses ASIC register and counter measurements for local hashrate, while a pool estimates contributed work from submitted shares and their difficulty. These are different measurements with different averaging windows. Reading the implementation helps explain the numbers; comparing them with independent observations helps evaluate the miner. The hashrate error percentage is another metric to understand separately from rejected pool shares.

It also matters which components are open. A published dashboard does not establish that the hashing daemon, updater, drivers, or installed binary are inspectable. The Bitaxe projects combine open firmware with published schematics, PCB layouts, and bills of materials. Hardware design files, firmware source, vendor SDKs, boot ROMs, and ASIC silicon remain separate parts of the stack.

For source-based assurance, identify the exact release, its corresponding source and dependencies, the build instructions, and the binary you intend to install. A reproducible build can help connect source to a particular binary; public source by itself does not make that connection.


Why did mining software start open, and how did cgminer start it all?

Bitcoin began with open-source mining software, and several influential early standalone miners were also published openly. The Bitcoin v0.1 client Satoshi released in January 2009 included its own CPU miner under the MIT license. Jeff Garzik’s standalone cpuminer followed in November 2010. In July 2011 Con Kolivas took over that codebase, rewrote it for GPU mining, and renamed it cgminer under the GPL. Luke Dashjr added FPGA support and later forked BFGMiner from it in 2012.

cgminer became an influential codebase in the ASIC era. Several manufacturers adapted existing mining software and added hardware-specific drivers rather than starting from scratch. Bitmain’s own Antminer daemon, published as bitmaintech/cgminer and later bmminer, still carries the copyright lines “Copyright 2011-2014 Con Kolivas, 2011-2012 Luke Dashjr, 2010 Jeff Garzik” at the top of cgminer.c. The development of public mining software from Satoshi’s CPU miner through cpuminer and cgminer helped shape the machines securing the network today. The hardware moved in lockstep, from CPUs to GPUs to FPGAs to ASICs, and the software followed each step.

As mining professionalized, software stacks became more varied. A product can include GPL components alongside proprietary management or tuning software, and its installation interface may impose signature or access restrictions. Source availability and an owner’s ability to build, install, and recover firmware should therefore be checked component by component.

Selected mining software milestones from Bitcoin v0.1 and cgminer to Antbleed, OSMU, Mujina and BS-1 source review.
Selected milestones in public mining software and firmware inspection. Antbleed is included as a finding in published source.

What can closed-source mining firmware do to you?

Limited source access makes some behavior harder to inspect, but it does not make external testing impossible. Network inspection, binary analysis, power measurements, and independent pool records can reveal problems in both open and closed systems. The capabilities below are reasons to investigate an implementation, not proof that every proprietary firmware package uses them.

  • Remote shutdown: Antbleed exposed a vendor check-in path that could stop affected miners. The relevant code was public, and Bitmain later removed the behavior.
  • Developer fees: Some firmware directs part of a miner’s work to fund development. A disclosed fee is different from a hidden diversion. Braiins publishes its firmware fee and pool-rebate terms.
  • Pool incentives or restrictions: Check whether a product works with your chosen pool and which discounts apply. A pool-fee rebate does not necessarily remove a firmware development fee.
  • Inflated numbers: A display can present a value that differs from the underlying measurement. The published BS-1 display offset is an example; it does not establish intent or the performance of a shipped binary.
  • Telemetry: Review which device identifiers and operational data leave the miner. Antbleed reports documented MAC address, serial-number, and IP information; this article does not establish that it sent pool credentials.
  • Efficiency features: Hardware capability, firmware support, and actual production use are different claims. Covert ASICBoost’s alleged use should not be presented as settled by the existence of the capability alone.
  • Updates and recovery: Signed updates, disabled access services, and board-specific boot paths can limit replacement options. Verify the exact model, controller, firmware version, and recovery method.

Source publication improves visibility into these paths, and independent testing provides another layer of evidence. Neither a vendor label nor an open-source license substitutes for examining the actual implementation and deployment.

Five firmware checks covering shutdown behavior, fees, hashrate reporting, replacement paths and build verification.
Public source improves inspection. It does not guarantee zero fees, correct measurements, unrestricted installation, or a matching deployed binary.

What has Bitmain been caught doing?

Three distinct subjects belong here: the documented Antbleed vulnerability, ASICBoost capability and disputed historical use, and model-specific firmware installation restrictions. They should not be treated as the same kind of evidence.

Antbleed (2016–2017): a remote-shutdown vulnerability

Affected Antminer firmware included a check-in path that sent device identifiers and could stop hashing in response to a server reply. The behavior was reported publicly before the April 2017 Antbleed disclosure, with the offending lines quoted in contemporary coverage.

In its archived April 2017 response, Bitmain described an unfinished anti-theft feature, acknowledged the security problem, listed the S9, R4, T9, L3, and L3+ as affected products, and announced updated source and firmware removing it. Bitmain also stated that the source had been public. Public code therefore helped make the behavior inspectable; lack of public source is not an accurate explanation for how long this incident persisted.

Contemporary estimates of roughly 70% potential Bitcoin-network exposure reflected assumptions about Bitmain hardware’s market presence. They were not a measured count of vulnerable online miners or evidence that such a shutdown occurred. The documented risk was serious without turning that estimate into a confirmed network-wide event.

ASICBoost (2017–2018): capability and production use

ASICBoost reduces repeated work within Bitcoin’s hashing process. Historical discussions described potential efficiency gains around 10–20%, depending on the implementation and baseline. In 2017 the controversy concerned covert capability in Bitmain hardware and whether it had been used; Bitmain disputed mainnet-use allegations. Hardware capability is not proof of deployment.

In October 2018 Bitmain released firmware enabling the overt version for supported models. Overt support and the historical allegation about covert production use remain separate questions. The latter should not be described as conclusively established by this article.

Signature locks: check the exact model and controller

Bitmain firmware can impose signature checks or restrict access, but the relevant installation and bypass behavior varies. Awesome Miner’s compatibility guidance lists bypass exceptions including S9/L3+ firmware from July 2019 onward, S17/T17 firmware from December 2019 onward, and S19/S21 firmware before March 2024. That is a compatibility list for its installer, not a universal date when every Antminer became locked.

USB bootloader access and SD-card recovery are different mechanisms. A claim that a disabled USB path also removes an SD-card path needs documentation for that particular control board. Use the vendor’s current instructions rather than assuming all Amlogic, Zynq, or BeagleBone controllers recover the same way.

Bitmain’s security firmware Q&A discusses disabled SSH and warranty implications for unauthorized firmware. Owners should check the applicable product and seller terms. Our guide to running an Antminer on a standard 120 V outlet covers a specific alternative-firmware use case; it is not a guarantee that a particular miner, power supply, or household circuit is compatible.


What did the Bitfortun BS-1 code audit find?

The reviewed BS-1 source adds a fixed 400 GH/s before formatting screen hashrate and computing displayed efficiency. This is a numerical display operation, separate from the pointer-buffer operation elsewhere in history.cpp. The compared pinned upstream display function does not contain the same addition.

The manufacturer published its firmware source under GPLv3. This review uses commit bbd42bcfe24e65b028f27838aee538d4d6806abe, committed August 16, 2026, and compares its display path with upstream NerdQAxe+ revision b4af4e8. On November 8, 2026, we also checked the later published BS-1 revision 90d0159e7f2368587582aa8d6a8af9392e9bc770, where the numeric display offset remained present under the repository’s relocated source directory.

  • displayDriver.cpp, lines 833 and 835: The code adds 400.0f to SYSTEM_MODULE.getCurrentHashrate(). The value is in GH/s; dividing by 1,000 converts it to TH/s for the efficiency calculation.
  • history.cpp, line 102: The one-minute return path separately adds 0.4 to a GH/s value. This is not the 400 GH/s display offset.
  • The main API field: In the reviewed handler_system.cpp, hashRate uses the system hashrate without that display addition and returns zero when the firmware reports shutdown.

For an illustrative calculation, a 5.1 TH/s input becomes 5.5 TH/s after adding 0.4 TH/s, a 7.8% increase. At an assumed 95 W, dividing by 5.5 gives 17.3 J/TH while dividing by 5.1 gives 18.6 J/TH. These figures explain the arithmetic; they are not measured BS-1 power or performance results.

We have not bench-tested a shipped BS-1 or established that its installed binary matches the reviewed repository. The source proves the presence of the addition in the reviewed display path. It does not prove the author’s intent, the hashrate of a physical unit, or a pool-side result. Screen, API, and pool comparisons must also account for timing, measurement windows, shutdown state, and the firmware actually installed.

Illustrative 4.5, 5.0 and 5.5 TH/s inputs become 4.9, 5.4 and 5.9 TH/s after the source code display offset.
Illustrative arithmetic from the published +400 GH/s display offset, using an assumed 95 W. These are not measured API results or a BS-1 benchmark.

Is open source a double-edged sword?

Open licensing permits other people and businesses to reuse and modify code. A fork can improve a project, introduce a bug, change fees, or alter reporting. Public source makes those changes easier to inspect, but does not stop bad changes from being written or guarantee that someone has reviewed them.

Hardware copying and misleading branding are separate issues. Open hardware licenses can permit third-party manufacturing; that alone does not make a board counterfeit. Our guide to identifying counterfeit or misleadingly labeled Bitaxe boards explains why the actual parts, construction, branding, and seller still matter.

GPL obligations also need precise wording. Private modifications do not automatically have to be posted publicly. Distributing covered binaries brings corresponding-source obligations under the license; that is different from a universal requirement to publish every edit on GitHub. The GNU licensing FAQ explains the distinction. An open-source license also does not, by itself, require a product to have no fees.

A problem in closed software can still be detected through external measurements, network observation, or binary analysis. Source access adds a powerful inspection and repair path. It gives owners and reviewers more ways to check a calculation, remove a behavior, maintain a fork, choose a service, and continue using supported hardware after a vendor stops maintaining it.


How do Bitaxe and AxeOS put this into practice?

Bitaxe projects publish hardware designs under CERN-OHL-S terms, while ESP-Miner/AxeOS is published under GPLv3. Skot’s work and the Open Source Miners United (OSMU) community helped make open home mining hardware practical. OSMU dates its founding to March 2023 and supports multiple open mining projects, including members of the Bitaxe and NerdAxe families.

What that openness means for an owner:

  • Inspect the measurement method. The AxeOS dashboard presents values produced by the installed firmware. Current ESP-Miner has register/counter-based local hashrate reporting, averages, hardware-error metrics, and pool-share statistics; these should not be collapsed into one measurement.
  • Build and install compatible firmware. Flashing a Bitaxe can include a matching public release or a custom build. The image format, controller, board revision, power supply, and recovery procedure still matter. Openness is not permission to install an arbitrary binary, and it does not override seller warranty terms.
  • Inspect community safety work. AxeOS release development has included warnings about scam pools. Check the features and release notes of the version you actually install rather than treating source access as a guarantee against every malicious pool.
  • Inspect the hardware files too. The Bitaxe Naja Duo is an example of BM1373-based open hardware. Schematics, layouts, component lists, and the correct firmware build all help explain how a particular design works.

Open design files do not make every dependency open. ASIC and controller silicon, boot ROMs, and vendor SDK components need to be considered separately. Start with the Bitaxe firmware source or the NerdAxe firmware source, then check the license and dependency information for the exact project and release.


What is Mujina, and what does it mean for industrial miners?

Mujina is a GPLv3 mining-software project written in Rust and supported by the 256 Foundation. It aims to provide a shared open mining core with drivers for different hardware. The foundation’s ecosystem includes projects such as Mujina, Ember One hashboards, Libre Board control hardware, and Hydra Pool. These projects operate at different layers and maturity levels.

Published Mujina compatibility and current setup

The project’s compatibility matrix lists Bitaxe Gamma, the CPU development backend, and EmberOne/00 in mainline. It lists S19j Pro/S19k Pro work in a community fork and Intel BZM2 work as in progress. These statuses describe particular implementations, not turnkey support for every miner in those product families.

For Bitaxe Gamma, the current Mujina setup guide uses rhapd-bitaxe-gamma, replacing the deprecated bitaxe-raw path. Flashing this board firmware replaces standalone ESP-Miner operation: the controller exposes board access over USB, while mujina-minerd on a Linux host drives mining. It does not leave a normally operating AxeOS miner on the board underneath Mujina.

The project’s published status page describes Stratum v1 mining, hardware monitoring, a REST API, and a container path. It also describes gaps such as production tuning, pool failover, published efficiency figures, and complete installable control-board images. Those pages carry their own status dates; recheck the matrix, current source, and release instructions before deployment. Mujina’s stated zero-dev-fee design is a project policy, not a rule imposed on every open-source fork.

Why this matters at industrial scale

Large operators need to distinguish firmware fees, pool fees, remote services, and actual delivered work. For example, Braiins currently publishes a 2–2.5% firmware dev fee, depending on hardware, plus a separate pool-fee rebate for qualifying Braiins OS mining. The rebate does not mean the firmware dev fee disappears. At a hypothetical 100 PH/s, a 2.5% firmware fee corresponds to 2.5 PH/s of work; actual terms and accounting must be checked for the product used.

Public corresponding source, reproducible builds where practical, independent pool records, and controlled measurements can improve an operator’s evidence. None of them alone proves that every share was submitted or that an entire deployed fleet behaves correctly. Operational controls, update management, network observation, and sampling remain relevant.

Open firmware, pools, controller designs, and hashboards can expand the parts of a mining stack that can be inspected and maintained. They do not remove all vendor dependencies. Tether’s open-source MiningOS is relevant at the fleet-management layer; its documented device-management architecture should not be confused with replacing an ASIC’s low-level firmware.

Mujina remains experimental. The project does not present its current S19 path as a production-ready fleet replacement. Evaluate it on appropriate test hardware and follow the exact board’s current instructions before considering operational deployment.

AxeOS runs on a Bitaxe controller; Mujina runs on a Linux host using rhapd-bitaxe-gamma for USB board access.
A Bitcoin node alone is not a Stratum server. The Mujina path replaces standalone ESP-Miner operation with a host-controlled setup and remains experimental.

Closed vs open firmware compared

Avalon Nano 3S example: Canaan’s Nano 3S Linux firmware SDK publishes the Linux firmware build system, mining applications, web interface, and A3197S driver. Canaan-authored code is MIT-licensed unless stated otherwise; dependencies retain their licences. The first public SDK release is an alpha preview with development defaults. Published firmware source does not establish an open PCB or ASIC silicon design, or prove that an installed binary matches this source tree.

Compare the particular firmware product and release, not just its label. A stock image may contain open components, and a commercial product can combine open and proprietary components.

Property Stock vendor image Commercial aftermarket examples Open examples: ESP-Miner and Mujina
Source access Check which components and corresponding versions are published. Source and proprietary components vary by product. Public repositories support inspection; verify the source for the installed build.
Development fee Check the vendor’s product and service terms. Braiins example: 2–2.5%, hardware dependent. Other products vary. The named projects do not advertise a built-in dev fee; an open license can still permit fees.
Pool choice and rebates Check supported protocols and any service restrictions. Check pool choice separately from firmware fees and pool-fee rebates. Check the implemented protocol, configuration, and status of the particular build.
Replacement and recovery Model, board, signatures, and current firmware affect the available paths. Installation may use a compatible network tool, SD card, USB, or another board-specific path. Source access helps modification; compatible images and an available recovery path are still needed.
Independent inspection External measurements and any published source can reveal problems. External testing and published components provide evidence; unavailable code limits inspection. Anyone can inspect the published source. Review quality and source-to-binary matching still matter.
Examples discussed here Antbleed affected stock products even though relevant source was public. Disclosed development fees and documented installation requirements. The BS-1 offset was identified in public forked source; this does not establish a shipped device’s performance.

Examples and documentation checked November 8, 2026. See the linked project licenses, installer compatibility notes, and product terms. This is not a complete taxonomy of every firmware release.


What we found in the code

The pinned BS-1 display code adds 400 GH/s before formatting its screen hashrate and calculating displayed efficiency. The reviewed API uses the system-hashrate path without that display addition; the pinned files and distinctions below explain how to reproduce the finding.

The finding can be reproduced from pinned public files. The BS-1 findings concern the cited display, system, history, board configuration, and API source revisions, as of November 8, 2026. They do not establish the behavior of every upstream commit, release binary, or shipped unit.

Method. Review liaojinguu/bitfortun-BS-1 at bbd42bc and compare the relevant display function with NerdQAxe+ revision b4af4e8. Trace the displayed value back to System::getCurrentHashrate(), then inspect the board configuration and /api/system/info handler. Pin the commit and file paths so a later repository reorganization does not change the evidence.

  • Numeric display offset: DisplayDriver::updateHashrate() adds 400.0f before the efficiency division and displayed hashrate formatting. The two statements are present in the pinned BS-1 file and absent from the compared pinned upstream function.
  • Hardware-counter path: The reviewed bitfortunqaxeplus2.cpp sets m_hasHashCounter = true. Its system path returns smoothed chip-counter hashrate plus any configured external hashrate. The display addition is applied after that returned value.
  • Separate history operations: getCurrentHashrate1m() adds 0.4 to a GH/s average. The separate buffer-pointer operation adds 400 elements to an allocated pointer; it is not arithmetic that adds 400 GH/s to the displayed value. Runtime consequences of that pointer code were not established in this review.
  • API path: The reviewed API handler calls the unmodified system-hashrate path for hashRate during normal operation and returns zero in shutdown. Reading a screen and API at different times can still produce differences beyond the display addition.
  • Later source check: The offset remains in the later published BS-1 source revision, under its relocated directory.
Pinned BS-1 display code adds 400.0f before formatting; the compared upstream NerdQAxe+ function has no offset.
Source screenshots comparing BS-1 revision bbd42bc with NerdQAxe+ revision b4af4e8. The BS-1 display code contains +400.0f; the compared upstream display code does not. Top: BS-1 revision bbd42bc. Bottom: upstream revision b4af4e8.

Limits of the finding. The inspected paths establish a display offset in the source. They do not establish the intent behind it, hidden fees, wallet diversion, share withholding, or the performance of a physical device. We have not verified a shipped binary against a reproducible build. Claims about undocumented behavior or the whole codebase need a separately defined, reproducible audit rather than an inference from these lines.


How to check what your own miner is reporting: step by step

  1. Identify the firmware and build. Record the miner model, board revision, version, release source, and any custom changes. Save your settings before changing firmware.
  2. Record comparable local readings. On AxeOS, note hashrate, averaging window, uptime, temperatures, fan behavior, power assumptions, and hardware-error metrics after the miner has had time to stabilize. Current local hashrate can be register/counter-derived rather than a pool-share estimate.
  3. Read the API with the same context. Where supported, open http://[miner-ip]/api/system/info on your local network and inspect fields such as hashRate and the available averages. Match units, time windows, and firmware version. Values taken at different times or using different methods are not required to match within rounding.
  4. Compare independent pool records. Use a meaningful observation period, such as 24 hours or longer, and check the pool’s own window. Estimates based on accepted shares depend on share difficulty, submitted work, uptime, stale/rejected shares, and luck. There is no universal 5–10% allowance after 24 hours. A pool-side estimate is independent of the miner’s displayed number, but still requires a trustworthy pool and sound interpretation.
  5. Distinguish error metrics. The error percentage on the dashboard and the pool’s rejected-share rate are different. In current ESP-Miner, local error percentage uses the ASIC error-counter rate relative to the measured total rate. Review cooling, settings, connection quality, and the implementation before assigning a cause.
  6. Check source and binary provenance. Inspect the exact release’s measurement functions, source archive, build instructions, checksums, and signatures where provided. A checksum establishes byte identity against a reference, not the safety of that reference. A reproducible build can help connect source and binary when the build environment is properly controlled.
  7. Use a supported recovery path. For an AxeOS-based Bitaxe, the Bitaxe webflasher or ESP Tool can provide an appropriate USB installation path. Match the exact board and image type, maintain stable power, and confirm normal mining and cooling after restart.

What this means for miners

For a home miner, public firmware and hardware designs provide useful ways to understand, repair, and maintain a device. Check the installed version, source provenance, recovery options, and independent pool records rather than relying on a dashboard or license label alone.

For a larger operation, apply the same principle with stronger operational controls: separate firmware fees from pool terms, manage updates, observe network behavior, sample actual performance, and ask for corresponding source and reproducible builds where practical. Follow Mujina’s published status before considering test or fleet deployment.

The BS-1 source case demonstrates that a numerical display modification can be identified in published code. Antbleed demonstrates that public code can still contain a serious vulnerability until it is reviewed and fixed. The case for open-source mining firmware is greater inspectability and owner control, combined with the work needed to verify what is actually running.


Open-source mining firmware FAQs


Related reading

To top