Resetting EdgeRouter via Serial Console
Required hardware
- Console cable (DB9 → RJ45), e.g. ebay link.
- Serial port (or USB → Serial converter)
Required software
- Serial terminal (microcom)
- TFTP server (tftpd-hpa)
- FTP/HTTP server (optional)
Procedure
1. Prepare TFTP server with the rescue image
If you have none, install tftpd-hpa (the default settings will do):
apt-get install tftpd-hpa
Next, place the rescue image to /srv/tftp:
cp emrk-0.9c.bin /srv/tftp
2. Prepare local HTTP/FTP server with system image
skipped
3. Connect to the router via serial port
Launch serial terminal program:
microcom
[RET]
The default port settings (at least for microcom) should do, but for the record the required port settings are:
- Baud rate: 115200
- Data bits: 8
- Parity: NONE
- Stop bits: 1
- Flow control: NONE
Power up the router and press any key when it starts booting.
4. Boot from the rescue image
set ipaddr 192.168.1.100 # local address
set netmask 255.255.255.0 # local network mask
set serverip 192.168.1.10 # TFTP server address
set bootfile emrk-0.9c.bin
tftpboot
bootoctlinux $loadaddr
5. Reinstall system image
emrk-reinstall
Enter system image url (e.g. ftp://192.168.1.10/upload/ER-e100.v1.5.0.4677648.tar) when prompted.
Wait a couple of minutes and reboot:
reboot