Firmware Corruption — Recovery Guide
Recover from bricked miners, failed firmware updates, and boot loops. Step-by-step recovery procedures for Antminer (SD card), Whatsminer (WhatsMiner Tool), and Avalon (UART) miners.
Symptoms
You are experiencing one or more of the following:
- Miner is in a boot loop (powers on, LEDs blink, then restarts endlessly)
- Web UI is blank, partially loaded, or inaccessible after a firmware update
- Miner was updating firmware and power was lost during the process
- Serial console shows kernel panic or filesystem errors
- Miner's status LED shows an error pattern (rapid blinking or solid red)
- Miner powers on and fans spin but never starts hashing and web UI is non-functional
- Web UI displays wrong firmware version or shows corrupted interface elements
- SSH access shows read-only filesystem or missing executables
Important: If the miner is in a boot loop, do not repeatedly power cycle it. Each failed boot attempt may further corrupt the firmware. Instead, proceed directly to the recovery method appropriate for your miner brand.
Quick Checks
Before performing a full firmware recovery, try these quick steps:
- Wait at least 10 minutes. Some firmware updates take longer than expected. If you just flashed new firmware, wait for the process to complete. The miner may reboot multiple times during the update.
- Hard reset. Press and hold the reset button on the control board for 10-15 seconds while the miner is powered on. This restores factory default settings (but does not reflash firmware).
- Check the firmware file. If the update failed midway, verify you downloaded the correct firmware for your exact model and hardware version. Check the file checksum (MD5/SHA256) against the manufacturer's published value.
- Try accessing via IP directly. After a firmware update, the miner may have reverted to DHCP and received a new IP address. Scan your network to find it. See Network Problems.
Diagnostic Flowchart
Suspected firmware corruption
│
├─ Can you access the web UI?
│ ├─ YES (even partially)
│ │ ├─ Try flashing firmware through the web UI
│ │ │ ├─ Success → Problem solved
│ │ │ └─ Fails → Proceed to recovery method
│ │ │
│ │ └─ Web UI corrupted but upload page works
│ │ └─ Flash correct firmware via upload page
│ │
│ └─ NO (cannot reach web UI at all)
│ ├─ Miner has link lights?
│ │ ├─ YES → Miner has network but web server crashed
│ │ │ ├─ Try SSH access (ssh root@<ip>)
│ │ │ └─ No SSH → Recovery method needed
│ │ │
│ │ └─ NO → Miner may not be booting at all
│ │ └─ Recovery method needed
│ │
│ └─ Check serial console if available
│ ├─ Kernel panic → NAND corruption, recovery method needed
│ ├─ U-Boot prompt → Possible TFTP recovery
│ └─ No output → Hardware failure (not firmware)
│
├─ Recovery method by brand:
│ ├─ Antminer → SD card flash
│ ├─ Whatsminer → WhatsMiner Tool recovery
│ └─ Avalon → UART serial recoveryCauses
1. Interrupted Firmware Update
Probability: Very High
The most common cause of firmware corruption is a firmware update that was interrupted before completion. This can happen from power loss, network disconnection, or the user closing the browser during the update process.
Symptoms specific to this cause:
- Problem started immediately after a firmware flash attempt
- Power went out during the update
- Browser was closed or network disconnected during the flash process
- Web UI shows a partially updated state (old and new elements mixed)
Prevention: Always ensure stable power during firmware updates. Use a UPS if available. Do not close the browser, reboot the miner, or disconnect the network until the update process confirms completion. For large operations, update miners one at a time rather than in bulk.
2. Incompatible Firmware Version
Probability: High
Flashing firmware meant for a different model or hardware revision can cause the miner to become unbootable. Even within the same model line (e.g., S19 vs S19 Pro vs S19j Pro), firmware is not interchangeable.
Symptoms specific to this cause:
- Miner does not boot after flashing firmware for a different model
- Partial functionality (some features work, others do not)
- Mismatched chip driver causes "Chain find 0 ASIC" errors
Prevention: Always verify the firmware file matches your exact model and hardware revision before flashing. Check:
- Model number (printed on the miner's label)
- Hardware revision / control board version (visible in the web UI before updating)
- Manufacturer's release notes for compatibility information
3. Corrupt Download
Probability: Medium
Firmware files can be corrupted during download due to network errors, incomplete downloads, or downloading from unofficial sources that host modified or damaged files.
Symptoms specific to this cause:
- Downloaded file size does not match the expected size listed on the download page
- Checksum (MD5/SHA256) does not match the manufacturer's published checksum
- Flash process itself reports an error before completing
Prevention: Always download firmware from the manufacturer's official website. Verify the file checksum:
# Verify MD5 checksum
md5sum firmware-file.tar.gz
# or on macOS
md5 firmware-file.tar.gz
# Verify SHA256 checksum
sha256sum firmware-file.tar.gz
# or on macOS
shasum -a 256 firmware-file.tar.gzCompare the output with the checksum published on the download page. If they do not match, re-download the file.
4. SD Card Issues (Antminer)
Probability: Medium
For SD card-based firmware recovery on Antminer, problems with the SD card itself can prevent successful recovery. Low-quality cards, incorrect formatting, or corrupted card contents are common issues.
Symptoms specific to this cause:
- SD card recovery fails to start (miner ignores the SD card)
- Recovery starts but fails partway through
- Different SD cards produce different results
- SD card works in a computer but miner does not recognize it
Prevention: Use a reputable brand SD card (SanDisk, Samsung, Kingston) with 2-16GB capacity. Larger cards sometimes have compatibility issues. Always format the card fresh before writing the recovery image.
Recovery Methods
Antminer: SD Card Recovery
This is the primary recovery method for all Bitmain Antminer models. It writes a fresh firmware image to the control board's NAND flash using a microSD card.
You will need: a microSD card (2-16GB, FAT32 formatted), a computer with a card reader, and the correct firmware recovery image from Bitmain's website or support channel.
Download the Recovery Image
Download the correct SD card recovery image for your specific Antminer model and hardware version from Bitmain's official support page. The file is typically named like recovery_S21_[version].img or comes as a .zip containing an image file.
The SD card recovery image is different from the regular web UI firmware update file. Do not use the web update .tar.gz file for SD card recovery. Look for the file specifically labeled as "SD card recovery image" or "firmware recovery."
Prepare the SD Card
- Insert the microSD card into your computer
- Format it as FAT32 (required -- exFAT or NTFS will not work)
- Extract the recovery image files to the root of the SD card
- Some models require specific filenames on the card -- follow the instructions included with the recovery image
- Typically, you extract a folder or set of files directly to the card's root directory
For Windows users, use SD Card Formatter or the built-in format tool. For macOS, use Disk Utility (choose MS-DOS FAT format).
Insert the SD Card into the Miner
- Power off the miner completely
- Locate the microSD card slot on the control board. On most Antminer models, it is on the edge of the control board, accessible by removing the miner's cover. On some models (S19, S21), the slot is accessible from outside the chassis.
- Insert the microSD card firmly into the slot (contacts facing the correct direction)
Boot into Recovery
- Power on the miner with the SD card inserted
- The miner will detect the SD card and begin the recovery process automatically
- Recovery progress is indicated by the LEDs on the control board:
- Typically, LEDs blink in a specific pattern during recovery
- The process takes 3-10 minutes depending on the model
- Do not power off the miner during recovery
Wait until the LEDs indicate completion (usually a steady green or the miner reboots itself).
Remove SD Card and Verify
- Once recovery is complete and the miner has rebooted, power off the miner
- Remove the SD card (leaving it in may cause the miner to re-flash on every boot)
- Power on the miner and wait 3-5 minutes for it to initialize
- Scan your network for the miner's IP address (it will be using DHCP with default settings)
- Access the web UI and verify the firmware version
- Reconfigure your pool settings and any other customizations
Whatsminer: WhatsMiner Tool Recovery
MicroBT provides the WhatsMiner Tool software for firmware management and recovery on all Whatsminer models.
Download WhatsMiner Tool
Download the latest version of WhatsMiner Tool from MicroBT's official website. Install it on a Windows computer connected to the same network as the miner. The tool requires .NET Framework (typically pre-installed on modern Windows).
Download the Firmware
Download the correct firmware file for your Whatsminer model from MicroBT's official firmware page. Verify the file checksum before proceeding.
Connect and Scan
- Launch WhatsMiner Tool
- Click Scan to discover Whatsminer devices on your network
- The tool will list all detected devices with their IP address, model, and status
- Miners with firmware issues may show as "Abnormal" in the status column
If the miner does not appear in the scan, it may not have a valid IP address. Try connecting the miner directly to your computer with an Ethernet cable and setting your computer's IP to the same subnet as the miner's default (check MicroBT documentation for the default IP).
Flash Firmware
- Select the miner(s) you want to recover
- Click Firmware Upgrade or Recovery
- Browse to the downloaded firmware file
- Click Start to begin the flashing process
- The tool will show progress for each selected miner
- Wait for the process to complete -- do not disconnect power or network
The tool handles the entire process including verification. The miner will reboot automatically when finished.
Verify Recovery
After the miner reboots:
- Wait 5 minutes for initialization
- Rescan with WhatsMiner Tool -- the miner should now show "Normal" status
- Access the web UI and reconfigure pool settings
- Monitor for 30 minutes to ensure stable operation
Avalon: UART Serial Recovery
Avalon miners use a UART serial connection for low-level firmware recovery. This requires a USB-to-UART adapter and terminal software.
Equipment Needed
- USB-to-UART adapter (FTDI FT232R, CP2102, or CH340-based)
- Terminal software (PuTTY, minicom, screen, or similar)
- The correct Avalon firmware image
- Dupont wires or appropriate cable to connect to the debug header
Connect the Serial Cable
- Locate the UART debug header on the Avalon controller board (usually a 3-pin or 4-pin header labeled TX, RX, GND, and sometimes VCC)
- Connect: Adapter TX to Board RX, Adapter RX to Board TX, Adapter GND to Board GND
- Do not connect VCC unless you are sure of the voltage level (3.3V vs 5V)
- Plug the USB adapter into your computer
Incorrect serial connections can damage the controller board. Double-check the TX/RX/GND pins. TX and RX must be crossed (your adapter's TX goes to the board's RX and vice versa). Verify voltage levels match (most Avalon boards use 3.3V logic).
Open a Serial Terminal
Configure your terminal software:
- Baud rate: 115200 (standard for Avalon)
- Data bits: 8
- Stop bits: 1
- Parity: None
- Flow control: None
# macOS/Linux using screen
screen /dev/tty.usbserial-xxxx 115200
# or using minicom
minicom -b 115200 -D /dev/ttyUSB0Enter Recovery Mode
- Power off the Avalon controller
- Start the serial terminal and verify you can see output
- Power on the controller while watching the terminal
- You should see U-Boot boot messages scrolling
- Press a key (usually Enter or any key) during the U-Boot countdown to interrupt boot and get the U-Boot command prompt (
avaon#or=>)
If you miss the window, power cycle and try again. The countdown is typically 1-3 seconds.
Flash via TFTP or Serial Upload
From the U-Boot prompt, you can flash firmware via TFTP (if network is available) or via serial upload:
TFTP Method (faster, requires network):
- Set up a TFTP server on your computer with the firmware file
- At the U-Boot prompt, configure the network:
setenv ipaddr 192.168.1.100
setenv serverip 192.168.1.1- Download and flash the firmware:
tftp 0x80000000 firmware.bin
nand erase.chip
nand write 0x80000000 0x0 ${filesize}
resetSerial Upload Method (slower, no network needed): Use the XMODEM or YMODEM protocol in your terminal software to send the firmware file when prompted by U-Boot. This is significantly slower than TFTP but works without any network.
Exact commands vary by Avalon model and firmware version. Consult Canaan's support documentation for your specific model.
Verify and Configure
After flashing, the controller should boot normally. Connect via the web UI or AUC and verify:
- Firmware version is correct
- Hash board modules are detected
- Configure pool settings
Alternative Recovery: TFTP Boot (Advanced)
Some Antminer models support TFTP-based recovery when the SD card method is not possible. This requires setting up a TFTP server and connecting to the miner's serial console.
Set Up TFTP Server
Install a TFTP server on your computer:
- Windows: Use Tftpd64 (free)
- macOS: Built-in:
sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist - Linux:
sudo apt install tftpd-hpa
Place the firmware recovery files in the TFTP server's root directory.
Connect Serial Console
Connect a USB-to-UART adapter to the control board's serial debug port. Open a terminal at 115200 baud. You should see U-Boot output during power-on.
Interrupt U-Boot and Configure TFTP
Interrupt the boot process to get the U-Boot prompt. Then configure networking and fetch the firmware via TFTP. Exact commands depend on the Antminer model -- consult Bitmain's technical documentation for your specific control board revision.
TFTP recovery is rarely needed for Antminer. The SD card method is simpler and more reliable. Use TFTP only if the SD card slot is physically damaged or the SD card method has failed.
When to Seek Professional Help
Contact a qualified repair technician if:
- Both SD card and TFTP recovery methods fail (may indicate NAND flash hardware failure on the control board)
- The serial console shows no output at all (possible SoC or hardware failure, not firmware)
- You are not comfortable working with serial consoles and TFTP servers
- The miner needs a control board replacement after failed recovery
- You are managing a large fleet and need to recover many miners efficiently
Frequently Asked Questions
Q: Can I use any SD card for Antminer recovery?
Use a microSD card between 2GB and 16GB, formatted as FAT32. Higher-capacity cards (32GB+) sometimes have compatibility issues with older control boards. Use a reputable brand (SanDisk, Samsung, Kingston). Cheap or counterfeit SD cards have higher failure rates.
Q: Can I flash third-party firmware (Braiins OS, VNish) using the recovery method?
Third-party firmware vendors typically provide their own installation tools and methods. The SD card / recovery methods described here are for restoring the manufacturer's stock firmware. After restoring stock firmware, you can then install third-party firmware using the vendor's recommended process.
Q: I accidentally flashed firmware for the wrong model. Is my miner bricked?
Not permanently in most cases. The SD card or tool-based recovery method can overwrite the incorrect firmware with the correct version. The miner may not boot with the wrong firmware, but the recovery process works at a lower level (U-Boot or hardware bootstrap) that does not depend on the application firmware being correct.
Q: How can I tell which firmware version I need?
Check the label on your miner for the exact model number and hardware revision. Bitmain labels usually include a hardware version like "C71" or similar. If you cannot read the label, the control board itself has version markings. Download the firmware that matches both the model and hardware revision.
Q: My miner says "firmware update failed" but still works on the old version. Should I try again?
If the miner is still functional on the old firmware, first investigate why the update failed: verify the firmware file checksum, ensure you have a stable network connection, and confirm you have the correct firmware version. Then try again. Do not repeatedly attempt failed updates without diagnosing the cause, as each attempt carries a small risk of leaving the miner in a partially updated state.
Q: Can a firmware update brick the miner's hash boards?
No. Firmware updates only affect the control board. Hash boards have their own PIC microcontroller firmware which is separate and not modified by standard firmware updates. Even a completely corrupted control board firmware will not damage hash boards -- they simply will not operate until the control board is recovered.
Related Guides
- Miner Shows No Hashrate -- Firmware corruption can cause zero hashrate
- Network Problems -- Finding the miner after a firmware recovery
- Power Supply Issues -- Stable power is critical during firmware updates
Network Problems — Troubleshooting Guide
Find your miner on the network, fix connection issues, and resolve web UI access problems for Antminer, Whatsminer, and Avalon miners.
Abnormal Chip Voltage — Troubleshooting Guide
Diagnose and fix voltage-related errors on ASIC mining hashboards, including out-of-range chip voltage, failed buck converters, shorted ASICs, and PSU voltage droop across Antminer, Whatsminer, and Avalon models.