Recovery
Power cycle
Section titled “Power cycle”sudo poweroffover SSH or the rescue dongle; wait for the blue LED to go off.- Unplug the board’s USB-C cable from the charger, wait 10 seconds and plug it back. The board powers on by itself.
- Frozen system, no SSH and no dongle: unplug the cable directly.
- Only the board’s cable; the charger, switch and panel stay on.
- The Reset button on the board is a hard reset, the same as unplugging for the file systems, and it may keep the SSD enclosure powered. Prefer the cable.
System on the eMMC does not boot
Section titled “System on the eMMC does not boot”- Power on with the recovery microSD in the slot. Armbian’s bootloader on the eMMC is expected to try the microSD first.
- No boot from the microSD: maskrom mode (below).
- From the microSD: repair the eMMC, or reinstall with
armbian-installand restore the backup (Maintenance).
Maskrom mode
Section titled “Maskrom mode”- On another computer,
rkdeveloptooland a USB-A to USB-A cable to the upper USB 3.0 port (OTG) of the board. - Hold the Maskrom button, power on, release it, and write the Armbian image to the eMMC following Radxa’s documentation for the ROCK 4B+.
Rescue dongle
Section titled “Rescue dongle”An ESP32 USB dongle running firmware/rescue-bridge. It is kept with the recovery microSD, outside the rack.
How it works:
Your computerTerminal
nc 192.168.4.1 23DongleESP32Access point and TCP to serial bridge
rock-01
/dev/ttyrescueagetty, login, shellsshdTailscale- The dongle creates its own Wi-Fi network and a TCP server on port 23. Bytes from TCP go to the USB serial port and back, at 115200 baud.
- On the node it shows up as a USB serial port. A udev rule names it
/dev/ttyrescueand startsagettyon it, the same login program used on a local console. - The node side uses no network at all, so it works when Ethernet, the firewall,
sshdor Tailscale are broken. - One device on the Wi-Fi network and one TCP connection at a time; a new connection replaces the previous one.
| Situation | Solved? |
|---|---|
| Ethernet, switch or router down | Yes |
sshd stopped or misconfigured, firewall blocking, Tailscale down |
Yes |
| Boot failure or frozen system | No: HDMI and keyboard, power cycle or recovery microSD |
Use:
- Plug the dongle into the lower USB 2.0 port.
- Join the
rock-rescueWi-Fi network from your computer. It has no internet while connected. nc -v 192.168.4.1 23, press Enter, log in with<user>and its password.- When done:
exit, Ctrl+C innc, rejoin the home network and unplug the dongle.
- On macOS, the terminal app needs the Local Network permission (System Settings, Privacy & Security, Local Network).
- Use
nc, nottelnet:telnetsends negotiation bytes that end up in the login prompt. - Computer cannot join
rock-rescue: unplug the dongle, wait 5 seconds and plug it back.
One-time setup on the node, after installation:
- Find the dongle serial number with the dongle plugged in:
udevadm info -q property -n /dev/ttyACM0 | grep -E "ID_VENDOR_ID|ID_MODEL_ID|ID_SERIAL_SHORT"- Copy deploy/udev/99-rescue-serial.rules.example to
/etc/udev/rules.d/99-rescue-serial.rules, replacing<dongle-serial>. - Install the login override:
sudo install -d /etc/systemd/system/serial-getty@ttyrescue.service.dsudo install -m 0644 deploy/systemd/serial-getty@ttyrescue.service.d/10-baud.conf /etc/systemd/system/serial-getty@ttyrescue.service.d/sudo systemctl daemon-reloadsudo udevadm control --reload- Unplug and plug the dongle, then check:
ls -l /dev/ttyrescuesystemctl is-active serial-getty@ttyrescue.service- Test a login from your computer once and store the dongle.
- Strong password for
<user>; root has a password (Armbian asks for it on first login). - Never enable automatic login on this
getty.