erx recovery
v0.1.0
Esta ferramenta ajuda a recuperar dispositivos Ubiquiti EdgeRouter X quebrados usando um console serial e TFTP. Ele também detecta flash danificado quando o kernel não consegue inicializar.
Ele foi testado no Ubuntu 20.04.
eth0
do EdgeRouter X conectado à máquina local. 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)
Se partes importantes da memória flash (NAND) estiverem danificadas, o kernel não poderá inicializar. Neste caso você verá algo assim no arquivo de log:
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]