+34 641 10 27 16

Unlocking an AML board over UART

AsicBoost · AML Unlock

How to Unlock an AML Board via UART

Enabling firmware rollback on Amlogic boards to install AsicBoost.

This is a guide to unlocking Amlogic (AML) control boards on Bitmain Antminer miners. On boards with stock firmware from September 2025 or newer, the firmware rollback via SD card is blocked. Below we show how to enable the board USB port over UART: after that you can downgrade the firmware via an SD image and install AsicBoost. The procedure is hardware-level and meant for experienced users.

Which models need unlocking

UART unlock is not needed for every miner, only for those that meet both conditions:

  • an Amlogic (AML) control board;
  • stock firmware from September 2025 or newer (FR 1.20+), where the SD-card rollback is blocked.

These are usually the newer models: Antminer S19 XP, S21 (and variants), T21, L9.

If you have an XIL, BB or CV board, or the stock firmware is older than September 2025, unlocking is not needed: the SD-image rollback and AsicBoost installation work directly. You can identify the board type in HashCore Toolkit while scanning the network or from the documentation.

What you will need

  • An AML control board and a 12 V power supply.
  • A Windows PC or laptop.
  • A USB-UART adapter with installed drivers (for example, Silicon Labs CP2102).
  • A terminal program to send commands (for example, PuTTY).
  • Jumper wires (Dupont) to connect the adapter to the board pins.
  • Tweezers or a thin screwdriver to short the JP2 jumper.
  • An SD card with a stock image to downgrade the firmware after unlocking.
USB-UART adapter (for example, CP2102)

We only use TX, RX and GND, the other pins are not needed.

  • Power Indicator: board power indicator
  • Level Select Pin: not used; a jumper feeds the supply voltage to the Output Voltage pin
  • TX Indicator: TX signal indicator
  • RX Indicator: RX signal indicator
  • Hardware Flow Control Pins: not used

Step-by-step unlock

1
COM port

Connect the USB-UART adapter to the computer and check the assigned COM port number in Device Manager (for example, COM7).

Finding the COM port number
2
UART connector on the board

On the control board, find the service UART connector. It is usually a group of three pins labeled RX, TX and GND.

This connector is used for a serial connection to the board to view the boot log, run diagnostics and recover the device. Before connecting, make sure the pin markings are clearly readable to avoid mistakes when wiring the USB-UART adapter.

UART connector on the Amlogic board
3
Wiring

Connect the adapter to the board as follows:

  • Adapter GNDBoard GND (ground / common wire)
  • Adapter RXDBoard TX (data transmit)
  • Adapter TXDBoard RX (data receive)
Wiring the adapter to the board
4
PuTTY setup

Launch PuTTY and set Connection type to Serial. Enter the COM port your USB-UART adapter is connected to, then set the speed (Speed / Baud) to 115200.

Leave the other parameters at their defaults:

  • Data bits: 8
  • Stop bits: 1
  • Parity: None
  • Flow control: None
Setting the COM port and speed in PuTTY
5
Check the connection

Power on the control board. A boot log should appear in the terminal, this confirms that the adapter is wired correctly and communication with the board is established.

During data exchange the TX and RX LEDs on the adapter will blink. This means data is being transferred between the adapter and the control board.

If the boot log does not appear or the TX/RX LEDs do not blink, check:

  • the adapter is wired correctly;
  • all connections are secure;
  • the PuTTY settings (COM port, baud rate and other parameters).
Boot log in the terminal
6
JP2 jumper

Put the control board into recovery mode. To do this, fully disconnect its power, then find the JP2 jumper and carefully short its pins with a metal tweezer or a small screwdriver.

Shorting the JP2 jumper
7
Enter U-Boot mode

Make sure the PuTTY window is active, then power on the control board. Keep the JP2 jumper shorted until the first boot log lines appear in the terminal.

As soon as booting starts, release JP2 and immediately press the Space key several times. If done correctly, the automatic boot is interrupted and the board enters U-Boot (ENV) mode.

If U-Boot does not start, disconnect the power and repeat the procedure. During the next power-on, briefly short the JP1 or JP2 pins a few times to force an interruption of the boot and enter U-Boot.

Entering U-Boot mode
8
setenv command

Type the command setenv bitmain_usb_switch 1 and press Enter. It enables the board USB port.

Entering the setenv bitmain_usb_switch 1 command
9
saveenv command

Type saveenv and press Enter to save the setting.

Saving the setting with the saveenv command
10
Reboot

Reboot the control board so the changes take effect and the device boots normally.

After a successful reboot you can move on to the next stage:

  1. Downgrade the stock firmware version using a prepared SD image.
  2. Once done, install AsicBoost firmware following the guide for your ASIC miner model.

If all the previous steps were done correctly, the AsicBoost installation will go through without restrictions.

Video guide: Unlocking an AML board

Video coming soon

If the port did not unlock

If the port did not unlock and the U-Boot command line is still shown in the terminal, run the following commands one by one. After each command press Enter and wait for it to complete.

saveenv
setenv bitmain_usb_switch 1
saveenv

After the commands run successfully, reboot the control board. On the next start the bitmain_usb_switch setting will be saved and the USB port should work in unlocked mode. If the problem persists, repeat the procedure, making sure all the previous steps were done correctly.

Re-entering the unlock commands
Board unlocked? Install the firmware with HashCore Toolkit.
Install with HashCore Toolkit

FAQ

Which miners need AML unlock?
The unlock is needed for Bitmain Antminer miners with an Amlogic (AML) control board and stock firmware from September 2025 or newer, for example S19 XP, S21, T21 and L9. On these boards the SD-card rollback is blocked, so the USB port is opened over UART.
Is unlocking mandatory?
Only if you have an AML board with stock from September 2025 or newer and the SD rollback is blocked. If AsicBoost can be installed directly or you can roll back via SD, unlocking is not needed.
Can it be done without UART?
On Amlogic boards with new stock, SSH and the SD rollback are closed, so the USB port can only be enabled over UART. There is no other way on these boards.
Will it damage the board?
The unlock uses standard U-Boot commands and does not overwrite the miner memory, so the risk is minimal. But the procedure is hardware-level: work carefully with the jumpers and power and do not mix up the RX, TX and GND pins.
What settings to use in PuTTY?
Serial mode, speed (Speed / Baud) 115200, Data bits 8, Stop bits 1, Parity None, Flow control None.
What to do after unlocking?
After unlocking, downgrade the stock firmware version via an SD image, then install AsicBoost with HashCore Toolkit following the guide for your model.

Help

The board will not unlock?

Message support: we will tell you the pinout for your board, read the terminal output with you and help you get all the way to a working firmware. We answer in Russian, English and Spanish.

Message on Telegram