ESP-Miner-rs is bitcoin miner firmware designed to run on the ESP32-S3 of various Bitaxe:
- BitaxeMax with 1 Bitmain ASIC BM1397
- BitaxeUltra with 1 Bitmain ASIC BM1366
and more to come.
firmware/: the#[no_std]firmware for the ESP32-S3 (esp-hal + embassy), built from its own directoryminer-core/: the hardware independent mining logic (block header, share check, job book, core voltage, fan curve), tested on the host- ASIC driver: bm13xx-rs
nix-shell- install rust
- follow the espup installation guide
- skip §3.2 "RISC-V Targets Only" as out target is Xtensa ESP32-S3
- in §3.3 "RISC-V and Xtensa Targets" you can install only esp32s3 target
espup install -t esp32s3 - skip §3.4 "std Development Requirements" as we are
#[no_std]
- install probe-rs is you are using
USB-JTAG-SERIALperipheral (recommanded) or espflash
dev profile can potentially be one or more orders of magnitude slower than release, and may cause issues with timing-senstive peripherals and/or devices of esp-hal
- edit the just file to change your local WIFI SSID/PASSWORD
just build maxto build esp-miner-rs for BitaxeMaxjust build ultrato build esp-miner-rs for BitaxeUltrajust run maxto build/flash/run esp-miner-rs for BitaxeMax on the connected hardwarejust testto run theminer-coretests on the host
cd firmwareWIFI_SSID="my_ssid" WIFI_PASSWORD="my_password" cargo build --release --features=bitaxe-maxWIFI_SSID="my_ssid" WIFI_PASSWORD="my_password" cargo run --release --features=bitaxe-maxcargo testfrom the repository root runs theminer-coretests on the host