This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
failsafe_mode_recovery [2015/08/31 13:52] nworbnhoj [TFTP a new firmware image to your router] Add failsafe recovery via ssh |
failsafe_mode_recovery [2019/04/28 09:55] (current) ispyisail [Factory Reset] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | So your router has become unresponsive and you have heard the horror stories of ' | + | ====== Failsafe Mode, Factory Reset, and Recovery Mode ====== |
| - | ===== Failsafe recovery via ssh ===== | + | ===== Gargoyle (Basic) |
| + | ==== Factory Reset ==== | ||
| - | This procedure assumes that: | + | With the Gargoyle |
| - | - you had a good Gargoyle install on the router | + | |
| - | - you messed | + | |
| - | Open a terminal and: | + | //Note: The button hold time is officially between 3 and 90 seconds// |
| - | - type '' | + | |
| - | - provide your password | + | |
| - | - at the Gargoyle prompt type '' | + | |
| - | - __wait__ until the command prompt returns | + | |
| - | - power cycle the router. | + | |
| - | The router which should now come up in its default Gargoyle configuration | + | |
| + | //Note: Not enabled for all router models// | ||
| - | ===== TFTP a new firmware image to your router ======== | ||
| - | If you router' | ||
| - | Here is an example | + | ===== Gargoyle/ |
| - | D:\My Documents\Downloads> | + | |
| - | Pinging 192.168.1.1 with 32 bytes of data: | + | |
| - | Reply from 192.168.1.1: | + | |
| - | Reply from 192.168.1.1: | + | |
| - | Ping statistics for 192.168.1.1: | + | |
| - | Packets: Sent = 2, Received | + | |
| - | Approximate round trip times in milli-seconds: | + | |
| - | Minimum | + | |
| - | D:\My Documents\Downloads> | + | [[https://openwrt.org/ |
| - | Transfer successful: 3346464 bytes in 6 seconds, 557744 bytes/ | + | |
| - | If you get this | + | ==== Failsafe Mode ==== |
| - | D:\My Documents\Downloads> | + | |
| - | Error on server : code pattern incorrect | + | |
| - | It means your bootloader does not understand the format | + | * Failsafe Mode is useful if you have lost control |
| + | |||
| + | ==== Factory Reset ==== | ||
| + | |||
| + | * Factory Reset erases all your packages and settings, returning | ||
| + | |||
| + | ==== Recovery Mode ==== | ||
| + | |||
| + | * Recovery Mode allows you to install new firmware on a router that has become corrupted. ([[https:// | ||
| - | ===== Using Failsafe recover mode ===== | ||
| - | If you cannot get the ping response from your router then try to get into OpenWRTs failsafe recovery mode. This procedure can recover your router if a configuration error on your part has made it impossible to access the router via the web interface or SSH. | ||
| - | The procedure assumes that you had a good Gargoyle install on the router and just messed up your settings. | ||
| - | If you cannot get to the Web interface of your router but you can get a command line prompt using SSH then you only need to do steps 8 & 9 below. | ||
| - | - Install [[http:// | ||
| - | - Configure your computer with static IP 192.168.1.2 | ||
| - | - Connect your computer to a LAN port on the router. | ||
| - | - Start Wireshark and monitor the LAN connection. | ||
| - | - Powerup your router, when wireshark shows the first packet from 192.168.1.1 immediately press and hold the reset button on the back of the router for three seconds. | ||
| - | - Router power LED should be flashing quickly. (Failsafe mode) | ||
| - | - From a command prompt on your computer " | ||
| - | - From the command prompt of the router " | ||
| - | - Reboot your router which should now come up in its default Gargoyle configuration. | ||
| - | ===== JTAG recovery method ======== | ||
| - | If you cannot get either of the above to work for you then the next approach I use is the JTAG cable method. | ||