Skip to content

Recovery

  1. sudo poweroff over SSH or the rescue dongle; wait for the blue LED to go off.
  2. Unplug the board’s USB-C cable from the charger, wait 10 seconds and plug it back. The board powers on by itself.
  3. 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.
  1. Power on with the recovery microSD in the slot. Armbian’s bootloader on the eMMC is expected to try the microSD first.
  2. No boot from the microSD: maskrom mode (below).
  3. From the microSD: repair the eMMC, or reinstall with armbian-install and restore the backup (Maintenance).
  1. On another computer, rkdeveloptool and a USB-A to USB-A cable to the upper USB 3.0 port (OTG) of the board.
  2. Hold the Maskrom button, power on, release it, and write the Armbian image to the eMMC following Radxa’s documentation for the ROCK 4B+.

An ESP32 USB dongle running firmware/rescue-bridge. It is kept with the recovery microSD, outside the rack.

How it works:

Your computerTerminalnc 192.168.4.1 23
DongleESP32Access point and TCP to serial bridge
rock-01/dev/ttyrescueagetty, login, shell
Works withoutEthernetfirewallsshdTailscale
  • 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/ttyrescue and starts agetty on 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, sshd or 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:

  1. Plug the dongle into the lower USB 2.0 port.
  2. Join the rock-rescue Wi-Fi network from your computer. It has no internet while connected.
  3. nc -v 192.168.4.1 23, press Enter, log in with <user> and its password.
  4. When done: exit, Ctrl+C in nc, 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, not telnet: telnet sends 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:

  1. Find the dongle serial number with the dongle plugged in:
Terminal window
udevadm info -q property -n /dev/ttyACM0 | grep -E "ID_VENDOR_ID|ID_MODEL_ID|ID_SERIAL_SHORT"
  1. Copy deploy/udev/99-rescue-serial.rules.example to /etc/udev/rules.d/99-rescue-serial.rules, replacing <dongle-serial>.
  2. Install the login override:
Terminal window
sudo install -d /etc/systemd/system/serial-getty@ttyrescue.service.d
sudo install -m 0644 deploy/systemd/serial-getty@ttyrescue.service.d/10-baud.conf /etc/systemd/system/serial-getty@ttyrescue.service.d/
sudo systemctl daemon-reload
sudo udevadm control --reload
  1. Unplug and plug the dongle, then check:
Terminal window
ls -l /dev/ttyrescue
systemctl is-active serial-getty@ttyrescue.service
  1. 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.