erx recovery
v0.1.0
该工具有助于使用串行控制台和 TFTP 恢复损坏的 Ubiquiti EdgeRouter X 设备。当内核无法启动时,它还会检测损坏的闪存。
它已经在Ubuntu 20.04下进行了测试。
eth0
。 Usage of erx-recovery:
-device-ip string
device IP address for the TFTP client, needs to be in the same network as the TFTP server (default "172.16.3.212")
-image string
path to linux kernel image (default "/path/to/kernel")
-local-ip string
local IP address for the TFTP server (default "172.16.3.210")
-log string
directory for log files (default "./logs")
-tty string
path to serial console (default "/dev/ttyUSB0")
-verbose
Increase verbosity (default true)
如果闪存(NAND)的重要部分损坏,内核将无法启动。在这种情况下,您会在日志文件中看到类似以下内容:
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
r: Start TFTP recovery.
default: 3
0
3: System Boot system code via Flash.
## Booting image at c0040000 ...
Bad Magic Number,53F511F6
Search header in next block address 460000
Bad Magic Number,578CD49B
Search header in next block address 480000
Bad Magic Number,D718AC07
Search header in next block address 4a0000
Bad Magic Number,F074335F
Search header in next block address 4c0000
Bad Magic Number,E761A28A
Search header in next block address 4e0000
Bad Magic Number,A8CE778A
Search header in next block address 500000
... [many more]