How to install AxeOS on a BitAxe
This page will guide you through the process of installing AxeOS onto your Bitaxe.
1. Connect your BitAxe to your PC
If you don’t have a BitAxe with USB connectivity make sure to establish a serial connection with either a JTAG ESP-Prog device or a USB-to-UART bridge.
Otherwise, just plug your BitAxe into your PC with a USB-cable
2. BitAxeTool
OSMU built BitAxeTool to make the installation process very easy. You can install it onto your system through pip. If you do not have pip installed, check this guide.
Run in your terminal:
3. Pre-Configuration
Starting with v2.0.0, the AxeOS firmware requires some basic manufacturing data to be flashed in the NVS partition.
Create a file called config.cvs
and copy the content of this file into it. You have to modify
asicfrequency
asicvoltage
asicmodel
devicemodel
- and
boardversion
.
The following are recommendations but you must have all values in your config.cvs
file to flash properly.
Save the file, we need it in the next step.
4. Flash
Download the latest firmware from the release page or compile it yourself. It should look like esp-miner-factory-vX.X.X.bin
. Now you can finally flash your BitAxe! To do so type into a system terminal:
before executing the command replace
{path-to-config}
with the path to the config file from the previous step{path-to-firmware}
with the path to the firmware you downloaded or compiled
BitAxeTool should now flash your BitAxe successfully.
5. Linux Troubleshooting
On Linux, you may encounter a few errors when trying to flash with BitAxeTool, depending on how you installed the tool. These include:
Permission denied
Failed to connect
The port is busy or doesn't exist
bitaxetool: command not found
Example command:
Example output:
In the above scenario, BitAxeTool does not have permission to access the port. To fix this, run the command again with sudo
, e.g.:
BitAxeTool should now flash your BitAxe successfully.
If you encounter the error sudo: bitaxetool: command not found
, it’s likely that you have installed BitAxeTool in a virtual environment, using Conda, etc. The root (sudo) user may not find your command because the PATH environment variable for the root does not include the directory where BitAxeTool is located.
To resolve this, you can specify that you want to use the current environment’s ‘PATH’ with sudo:
Example command:
Output example of successful flash: