Reflashing the router after unsuccessful firmware. How to restore a Tp-Link router after unsuccessful firmware

During the flashing, unexpected situations occurred: the power supply was turned off, the microcode version was forcibly changed via the console, intended for a completely different device model or another hardware version of the device (hardware version) or simply during the update process everything froze, we waited for an hour hoping, and then turned off the power.

After turning on the power or rebooting, we observe constantly flashing lights at intervals of 2 seconds ( cyclic reboot) or simply all LED indicators are on, i.e. your router has turned into a blinking brick... A brick router arrived in our workshop TL-WDR4300ND inadvertently recorded in flash memory firmware for a completely different router model... without going into details, after deciding to change the firmware via the console (during the process of experimenting with installing various packages, it fell off WEB interface and didn’t want to install it anymore), the rush led to the fact that in the download command instead of the firmware version for the router WDR4300ND the version for WR1043ND, then the command to write to memory went. When flashing firmware via the console, there is no compatibility check, everything is simply written to memory and rebooted, the result is obvious - all blinking LED indicators router.

By the time the router is restored, there are already many articles on how to restore the popular model TL-WR1043ND. But no word on how to do this with the TL-WDR4300ND; as it turns out, there are several features in the recovery process.

Preparatory stage

Main Feature restoring the router via serial interface – this means you need to completely disassemble the device; you may have to work with a soldering iron. Process algorithm:

  1. the router connects to the serial interface of the router to issue commands via the console
  2. the router is connected via network interface LAN1 of the router is connected to network card computer
  3. run on the computer TFTP server with firmware file
  4. by entering a certain sequence commands, the router downloads the firmware from the TFTP server into its RAM, after which it writes it to its flash memory, after which it reboots

If everything is done correctly, the device will be restored.

Obtaining working firmware for the router

Required for firmware working version firmware for your router model, for which you need to know exactly the router model and its revision.

If you want to restore the router's functionality alternative versions firmware ( , ) – need to be downloaded latest firmware or assembly based on alternative firmware for the router.

DD-WRT download from here ftp://dd-wrt.com/others/eko/BrainSlayer-V24-preSP2, select the current year, and the most latest version release, then find the section with the firmware files for your router model. Download the firmware file factory-to-ddwrt.bin

Open-WRT download the firmware file from here http://downloads.openwrt.org/snapshots/trunk/ar71xx.

The main thing is not to make a mistake with the version of the router!

4-pin Serial interface connector on board

Location of serial interfaces and their pinout.

Connection cable

To connect the device to the computer you will need a cable; there are several options:

  • use COM cable by cutting one end and soldering it to the serial interface on the board
  • use USB to SERIAL RS232 cable It is possible to use old data cables mobile phones Nokia, or order a cable from the Chinese online store

The cable used in this article PL2303HX USB To TTL COM.

Normally working drivers for of this device were downloaded from the official Chinese website, although it is written that they work in Vista, Windows 7, but in fact, they only work normally on Windows XP, so the restoration work was carried out specifically from this OS.

The driver is installed before the cable is plugged into the USB connector for the first time!

After installing the driver, we restart Windows, only after this is it possible to connect the wire, in the device manager we check the device; in our case it is COM3. Only 3 pins are needed GND, TX and RX.

For ease of connection, you can use a 4-pin connector from motherboard to power the fan, connecting only 3 contacts, connection method to the device (Table 1.5): connect the TX cable to the RX serial interface; RX cable to TX serial interface; GND cable to GND serial.

Table 1.5 - method of connecting the cable to the serial interface of the router

Terminal program

To enter commands, you need any terminal program, for example Putty, which can work via ssh, telnet, etc. To work with the terminal, it must be installed and configured:

  • Connection type: Serial
  • Serial line - COM number port, for example, COM3
  • Speed: 115200
  • Data bits: 8
  • Stop bits: 1
  • Flow control: none

Setting up Putty, you need to write your port (see device manager)

TFTP server

During the recovery process, it will contain a working version of the firmware for your router model. Anyone will do tftp server, for example, WinAgents TFTP Server, By downloading from the official website and starting the installation, virtually no settings are required. A firmware file is placed in the server folder, which we will write to the router’s flash memory (by default this is Documents and Settings - All Users - Application Data- Win Agents - TFTP Server - XT FTP Root). On the computer’s network card, set the default server IP address for TL-WR1043ND routers: 192.168.0.5 (192.168.0.2 ), and for the WDR4300ND router: 192.168.1 .100 although during the recovery process in the console it will be visible from where the router is trying to update the firmware.

During recovery activities, the TFTP server must be running, and the firmware file (*.bin) must be located in the root folder.

Disassembling the device and searching for an unsoldered serial interface on the board

Do the disassembly process as carefully as possible, do not rush or use excessive physical force. Model router TL-WDR4300ND It is quite easy to disassemble; you need to unscrew all the screws from the bottom of the device.

With the TL-WR1043ND router model, things are more complicated, firstly, you need to unscrew 2 screws, and secondly, unscrew the clamps from the antenna connectors wireless communication and recess them completely into the case, fourthly, pull out the black middle part of the case (U-shaped ribbed frame with holes for connecting devices and ventilation), snap off the two latches on the sides and open the case.

The process of restoring the router's functionality

Now we've reached the main part this manual. What should happen at the moment:

  • disassembled and prepared router (possibly with a soldered connector to the serial connector on the board), connected with a network cable to the computer via LAN1
  • cable (can be pre-connected, you can already turn on the router)
  • running TFTP server
  • working version of microcode (firmware) for your router, located in the root folder of the tftp server
  • Putty terminal program configured and ready to connect

Connect the cable to the serial connector on the board

We connect the router and the computer with a network cable: LAN1 of the router and the computer’s network card. On the network card we register the IPv4 address 192.168.1.100 for the WDR4300ND router version.

Turn on the router and start the connection in Putty

If the contacts were connected correctly, then in the terminal connection window we will see the following periodically repeated lines:

U-boot DB120
DRAM: 128 MB
id read 0x100000ff
flash size 8MB, sector count = 128
Flash: 8 MB
Using default environment
In: serial
Out: serial
Err: serial
Het: ag934x enet_initialize…
Ho valid address in Flash. Using fixed address
wasp reset mask:c03300
WASP --> S17 PHY *
: cfgl 0x7 cfg2 0x7114
athrs17_reg_init: complete
ethO up
ethO
Autobooting in 1 seconds

These lines are repeated every 1-2 seconds, and at the same time, the router flashes all LED indicators synchronously. To start entering commands, you need to have time to enter the command tpl and press enter for 1 second in the interval after the inscription Autobooting in 1 seconds and subsequent reboot of the router, I have this operation It happened about the fifth time. If everything is completed on the screen you will see a prompt for entering commands:

db12x>

Checking tftp servers

tftpboot

The console connection window should display next text, where we will determine exactly what address the computer’s network card should have; if it is not the one set, change it immediately.

dbl2x>tftpboot
dup 1 speed 1000
Warning: no boot file name; using '6F01A8C0.img'
Using eth0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.111
Filename '6F01A8C0.img'.
Load address: x8100000
Log: *
TFTP error: ' Access violation’ (2)
Starting again

Downloading firmware by router from a tftp server

Enter the command:

Where factory-to-ddwrt4300.bin the name of the firmware file located on your running tftp server,

If everything is correct, the firmware download process will start:

dbl2x> tftpboot 0x81000000 factory-to-ddwrt4300.bin
Using ethO device
TFTP from server 192.168.1.100 our IP address is 192.168.1.111
Filename 'factory-to-ddwrt4300.bin'.
Load address: 0x81000000
Lg: ################################################# ##############

#################################################################

done
Bytes transferred = 8126464 (7c0000 hex)
dbl2x>

Last number 7c0000 It will come in handy for us, as a result we know that the firmware is in the router’s RAM.

Clearing the flash memory area needed for writing firmware

Usually, they advise you to first clear the area and then download the firmware, I think it’s better to play it safe and download the firmware first and then enter the rest of the commands.

Router command WDR4300ND: erase 0x9f020000 +7c0000

for router WR1043ND the address will look like this 0xbf020000: erase 0xbf020000 +7c0000

Something like this should happen:

dbl2x> erase 0x9f020000 +7c0000
First 0x2 last 0x7d sector size 0x10000
125
Erased 124 sectors
dbl2x>

Writing a microcode image to the router’s flash memory

Router command WDR4300ND:

For router WR1043ND: cp.b 0x81000000 0xbf020000 0x7c0000

The window will display the following:

dbl2x> cp.b 0x81000000 0x9f020000 0x7c0000
Copy to Flash… write addr: 9f020000
done
dbl2x>

If everything is so, then the process was successful!

Reboot the router

If the router blinked all the indicator lights once, and then it went successful loading, then Congratulations, the router has been restored, you can go to the WEB interface (if you restored it with ddwrt firmware or an open-wrt build with a web interface), then you can configure it according to my instructions.

Here is a simple process for restoring the functionality of routers using the serial interface. Helps in resuscitating routers during unexpected destructive actions with the router microcode (firmware).

Of course, there is another great way to restore via an equally unsoldered JTAG connector, but this method requires a programmer and much more knowledge and experience working with hardware.

Hope this instruction It will help someone restore their device, save time for studying a bunch of material, save nerves and financial resources. Everything is simple if you take everything calmly.

Hello! Yeah, it’s been a while since I published new articles. I explored new directions. For example, he was actively involved in theory and practice in electronics, in particular the development of devices based on Atmel AVR microcontrollers. But today we will not talk entirely about this, although I plan to add an “Electronics” section to my blog. We will talk about restoring the functionality of the router after unsuccessful firmware.

So, we decided to change the firmware on our router, and then suddenly the electricity was turned off during the firmware update. After this, the router will most likely stop responding to any external influence. It may, for example, stop pinging altogether. What to do?

Recovery Mode

Most modern routers have a recovery mode after unsuccessful firmware. If these are routers from D-Link (for example, I tested everything on the DIR320NRU), then as a rule the input mode looks like this:

  1. We connect the LAN port of the router to the computer using local network. Opening network connections and configure the local network connection as follows (for DIR320NRU):

    IP: 192.168.0.2
    Subnet mask: 255.255.255.0

  2. We press the “RESET” button on the back wall of the router, for example, with a toothpick.
  3. We turn off the power to the router, for example, remove the power plug.
  4. Then, insert the power plug. The power LED on the panel starts blinking. We wait a few seconds.
  5. We release the “RESET” button and try to “log in” through the browser to the router’s admin panel by entering the default address of the router in the browser (for DIR320NRU – 192.168.0.1).
  6. We see the firmware download form. We select the firmware for our router. Click “update”.

Attention! Choose the firmware version very carefully, not only for your router model, but also for the revision. And also keep in mind that after this manipulation of the router, all settings are completely reset.

This is rather a superficial recovery scheme and is not identical for all router models. For a more detailed explanation specifically for your router model, search for information on the Internet or ask your question in the comments to the article.

Recovery via UART

This recovery method is more for gurus than for beginners. To restore the router via UART, you can’t do without working with a soldering iron. You should also clearly understand what you are doing, since opening the router case automatically deprives you of any guarantees.

To restore, we will need an adapter from USB to UART. For these purposes, for example, an unnecessary cord for connecting Siemens phone, which is made on the Profilic PL2303 chip. Or a factory USB-UART adapter. And also a soldering iron and a screwdriver to open the case. All actions described below were tested on the DIR320-NRU and the PL2303 adapter.

  1. Open the adapter PL2303. We find the contact pads to which the wires going to the cell phone are soldered. We unsolder the wires from all conductors. The contacts themselves are labeled directly on the board. We find the lines: GND, Rx and Tx and solder a three-core wire to them, preferably a colored one, so as not to get confused later.
  2. We unwind the router itself. We also find there 4 contact pads located in a row. Less commonly, there are already pin connectors. They are all signed even less often. You may ask, how do you recognize them? And here it is interest Ask. Look for photos of connectors for your router on the Internet. Here is a photo showing the connector for the same Dir320-NRU. And one more thing, if you have a multimeter on hand, you can try to look for a row of 4 contacts, one of which has a supply voltage of 3.3 V. The case can be found, for example, on the case USB connector on the board.
  3. Next we move on to the adapter again. We install the drivers on the adapter, connect the adapter to the computer. By the way, the Rx output we soldered is nothing more than a receiver line COM port, and the Tx output is the transmitter. In order for data transfer to work, we must connect the receiver output (Rx) of the cord to the transmitter input (Tx) of the UART on the router, and the transmitter output of the cord (Tx) to the router receiver (Rx). That is, cross to cross. In general, we solder the wiring.
  4. Now that everything is connected, we launch it on the computer Putty program. Select the connection type: Serial. We indicate in the settings the number of the virtual Com port on which we have the PL2303 adapter. And set the speed to 56600 baud. Click connect and see a black Putty window.
  5. Now comes the fun part. We turn off the power from the router for a while or simply reboot it with the “RESET” button. And we see the bootloader loading log in the terminal. After loading the bootloader, a message appears about choosing a mode. Several modes, such as normal OS loading, router flashing via tftp and other types of downloads and updates. If you ignore this message, then after a while the download of the main firmware begins and the download log is also output to the Putty terminal.

If instead of the download log you see “running bugs”, try playing with standard transfer rates for the COM port, such as: 19200, 28800, 38400, etc.

By the way, not long ago I bought myself a new tablet from the website midexpress.com.ua. So what if it’s China, but it’s inexpensive. Now everything is China. :)

Update and flashing software router, modem or optical terminal GPON is a common and normal thing for anyone network equipment. Bug fixes, bugs removed, new features added. But what to do if during this process there was a failure or the power was turned off and you now have an almost useless piece of plastic on your hands. But don’t despair - in some cases you can try to restore the router’s firmware after unsuccessful firmware. We will now tell and show you how this is done.

Advice: regardless of brand and WiFi models router, it is worth keeping in mind that in order to restore the device’s firmware, you need to connect it to the computer via wired Ethernet connection. Through wireless network The operation will not work! Only via cable!

How to restore a D-Link router

On most modems and WiFi routers D-Link has a special Emergency interface Web Server. On some models it was called Failsafe UI. This is a special firmware that allows you to restore the router’s firmware in the event of a failure. She's on these popular models like DIR-300, DIR-320, DIR-615, DIR-620. By the way, D-Link Emergency Web Server is very often used to return to the device factory firmware instead of the installed alternative (for example, Open-WRT, DD-WRT, Tomato, etc.).

So, in order to restore a Wi-Fi router after unsuccessful firmware, you must first download the firmware file from official server- ftp.dlink.ru. We find there the folder of our modem or router model, and in it - the folder Firmware.

Download the latest version of the software to your computer and put it in the root directory of some disk or on your desktop to make it easier to find.

The next step is to open Windows settings, go to the “Network and Internet” section and find the section Ethernet.

Note: Open list network connections it is possible in another way. Press the Win+R keys and enter the command in the “Run” window ncpa.cpl.

Select a local network connection and right-click on it. A menu will appear in which you need to select “Properties”. A window will open where you need to double-click on the component IP version 4 (TCP/IPv4).

Another protocol properties window will appear, in which you need to check the “Use the following IP address” checkbox. The following must be entered below:

IP address: 192.168.0.2 Subnet mask: 255.255.255.0

Click on the OK button sequentially in each window to apply the changes. The network card has been prepared. After this, you need to turn off the router, hold down the Reset button with a paper clip and turn on the device again without releasing the button. You need to keep it pressed for about 30-40 seconds (sometimes a little longer). After that, release the reset, open the web browser and address bar enter the IP address: 192.168.0.1 . Press the “Enter” key. If everything worked out, the “Emergency Web Server” page will open.

Here you must first click on the “Browse” button, select the downloaded file with the firmware and click on the “Upload” button. This will start the firmware recovery D-Link router:

It is very important not to turn off or restart the router during the process. After the software is installed, you will see a standard web interface authorization window in your browser.

Attention! Don't forget to go back to the IP protocol settings and set automatic receipt addresses and DNS servers.

Restoring Zyxel keenetic firmware

In order to restore the functionality of routers Zyxel Keenetic the developers did special utilityKeenetic Recovery. You can download it from the download center (). After you have downloaded and unpacked the archive, run the program. A window like this should appear:

We carry out everything step by step exactly as written in the program. Namely, with the Kinetic router turned on, press Reset and hold it pressed until the “Status” indicator starts blinking. After this, release the Reset button. Utility Keenetic Recovery should automatically recognize the hardware version and start restoring the router firmware.

After this, you will need to perform the basic configuration of the device again, otherwise, with factory settings, as a rule, there will be no Internet access.
Today the Keenetic Recovery application works with the following models routers:

Keenetic Ultra II
Keenetic Giga III
Keenetic Extra II
Keenetic Air
Keenetic Extra
Keenetic Viva
Keenetic LTE
Keenetic VOX
Keenetic DSL
Keenetic Giga II
Keenetic III
Keenetic Omni II
Keenetic Lite III
Keenetic 4G III
Keenetic Start II
Keenetic Ultra
Keenetic Omni
Keenetic Start
Keenetic II
Keenetic 4G II
Keenetic Lite II
Keenetic Giga
Keenetic 4G
Keenetic Lite

Emergency recovery of Sagemcom router firmware (Rostelecom, Tatelecom, Dom.ru)

Universal routers Sagemcom F@ST 2804, 1744, 3804 are provided to subscribers of the largest providers in Russia - Rostelecom, Dom.ru, etc. Unfortunately, they sometimes also have troubles in the form of crashed firmware after a power surge, or after an unsuccessful flashing. Fortunately, many sadzhemcoms also have an interface disaster recovery. To use it, you must first search the Internet and download the firmware for your router model.
Then statically write the IP address on the network card 192.168.1.2 - like this:

After that, turn off the router, press the “Reset” button with a pencil or fountain pen and turn it on again. We hold the button for 40-50 seconds, then release it. After that, launch the web browser and enter the IP of the router in the address bar. The following page should open:

Click the “Choose” button and select the firmware file. Then click on the button “ Update Software"and wait a few minutes while the router is being restored after unsuccessful firmware. After the process is completed, you will again have access to the device's regular web configurator. Don't forget to set the TCP/IP settings to automatically receive addresses.

How to restore QTech QBR-1040W and QBR-1041WU v2S

Another one popular brand Rostelecom routers and a number of other telecom operators - this is QTech. In particular, the QBR-1040W and QBR-1041WU v2S models. In order to perform emergency recovery of the router, you must first download the current firmware version from the manufacturer's official website. We also need the TFTP32 program.
We start by registering the IP address 192.168.1.2 on the network card of a computer or laptop, as I already described above. Next, we connect the computer and the second LAN port of the router, labeled LAN2.
The next step is to use a pencil to hold down the Reset button and while holding it, turn on the power of the device. We hold it for 10-15 seconds, then release it.
Next, launch TFTP32.

In the Server Interface list, select the previously registered IP - 192.168.1.2 . Open the Tftp Client tab and enter in the “Host” field - 192.168.1.6 , and in the “Port” field - 69 . In the “Local File” field, use the “…” button to select the router firmware file. All that remains is to click on the “Put” button and wait until the software file is downloaded. To be sure, we wait another 10 minutes, after which we restart the device. We return automatic receipt of addresses in the network adapter settings and check access to QTech.

Note: If you can’t upload the firmware to 192.168.1.6, try doing it to 192.168.1.1. The fact is that for disaster recovery of a router on different version devices may use different IP addresses.

It will not be possible to restore a D-Link router after unsuccessful firmware using simple and understandable methods for any beginner. The manufacturer did not provide any proprietary application, such as the one, with which you could revive the router in a couple of clicks. But don’t be upset, now I’ll show you everything clearly and I’m sure that you will succeed too. We will do this through the command line - this method is suitable for any D-Link models— DIR-300, DIR-615, DIR-2640u and others.

How to restore a D-Link router via Emergency Room?

For recovery D-Link router will be needed current version software, or, to put it simply, firmware. About how to download it.

So let's get started.

Now let's run the command line Windows string on behalf of the administrator. In Windows 10 it is called as “Search - CMD”


On Windows 7 - “Start ( Right click mice) - Command line»

Enter the command


ping 192.168.0.1 –t

You need to wait until the response from the router is positive, and then type http://192.168.0.1 in the browser. The Emergency Room page will open.

Here we click on the “Open” button, select the firmware file that we previously saved on the computer, and then click on “Upload”.

After a few minutes, the D-Link router will be restored and can be configured from scratch.

Backup D-Link settings

Well, if you took care of saving a copy of your router’s configuration in advance, then you don’t need to configure anything - you just need to restore them from a backup.


In the D-Link admin panel, at first glance you can confuse several items according to their purpose. After, to restore the settings of the D-Link router after the firmware, we need to go to “System - Configuration”. For creating backup version settings, click on the “Backup copy” button opposite the inscription “Saving the current configuration in a file”.

To restore, select the file in the “Loading a previously saved configuration to the device” item

  • For RT-N10: RT-N10-1.9.2.7-rtn-rXXXX.trx
  • For RT-N12: RT-N12-1.9.2.7-rtn-rXXXX.trx
  • For RT-N16: RT-N16-1.9.2.7-rtn-rXXXX.trx
  • For WL500W: WL500W-1.9.2.7-d-rXXXX.trx
  • For WL500gP Premium v.1: WL500gp-1.9.2.7-d-rXXXX.trx
  • For WL500gP Premium v.2: WL500gpv2-1.9.2.7-d-rXXXX.trx
  • For WL500gD Deluxe: WL500gx-1.9.2.7-d-rXXXX.trx
  • For WL520gU Ultra: WL520gu-1.9.2.7-d-rXXXX.trx
  • For WL320gE Encore: WL320gE-1.9.2.7-d-rXXXX.trx
  • For WL320gP Premium: WL320gP-1.9.2.7-d-rXXXX.trx
  • For WL330gE Encore: WL330gE-1.9.2.7-d-rXXXX.trx
  • For WL550gE Encore: WL550gE-1.9.2.7-d-rXXXX.trx
  • For DIR-320 D-Link*: DIR320-1.9.2.7-d-rXXXXM.trx
Look carefully at the model of your device! Don't try to flash someone else's firmware! The firmware itself is a file with the extension .trx, so when downloading the firmware in the form zip or gz-file, unzip it first.

Preparing for firmware Asus router

Preliminary steps before flashing

Disconnect the router. It is advisable to disable network cable from WAN, take everything out USB ports
(otherwise, if there are connected disks, they may be disconnected incorrectly).

Resetting the router settings to default

First reset the router settings to default settings by choosing one of the following methods:

  • by selecting in the router web shell: System Setup -> Factory Default.
  • pressing a button on its body RESET for 5 seconds, light bulb POWER starts flashing, at this moment release the button.
  • For experienced users who have already configured the router - commands " erase /dev/mtd/3" And " erase /dev/mtd/4"
    (first you need to make sure that on your firmware version these sections correspond nvram And flashfs).
To reset the device settings to default ( 192.168.1.1 , admin/admin ) while the device is running (about 30 seconds after turning on the power), press the button with a sharp object RESET/RESTORE
(on the back panel, its name depends on the model) and hold until the indicator POWER will not start blinking and only at this moment let go. After the reset, the device will automatically reboot.
Please note that at first there will be no reaction ( POWER will light up, fool proof), then it may just go out for a few seconds, keep holding the button.

Three methods for safely changing firmware Asus router

The first method is the simplest

Second method, for advanced users

Through the recovery utility Firmware Restoration(described in the manual, program rescue.exe on CD-ROM it's in a box). Difference between methods:

How to restore firmware on an ASUS router using the utility Firmware Restoration:

1. Connect the power supply to the router.
2. We are not supplying power to the router yet.
3. Connect the router with a patch cord to the Ethernet port of a PC running Windows XP / 7.
4. On this PC, turn off the firewall and all unnecessary network adapters, incl. and Wi-Fi, in addition to the network adapter - where the router is connected.
5. Install the ASUS Firmware Restoration utility on the PC (pre-downloaded from the website)

Rice. 1. Firmware Restoration utility.

6. Launch ASUS Firmware Restoration:

Rice. 2. Appearance of the utility window.

7. Specify the path to required file firmware

Rice. 3. Path to the firmware file.

8. Next we clamp RESET button on the back panel of the router and turn on its power supply. Hold the button down for about 5 seconds and on the PC in the window ASUS utilities Firmware Restoration click the “Download” button. After this, the firmware update process begins. It takes about 3 minutes.
9. IMPORTANT!!! Do NOT turn off the power supply to the router until the flashing process is completed, the router DO NOT RESTART!!!

Nuances of IP address and subnet mask settings depending on the Asus router model

For models: ASUS RT-N13/DSL-N13/RT-N13U/RT-N15/RT-N16

(WL-320gP/320gE/330gE/500gP/500gPv2/500W/520gC/520gU/600g)

For models: ASUS RT-N11

For models: ASUS RT-G32

The third method, described in FAQ from Oleg

An analogue of the second method, described in the FAQ from Oleg: Firmware via tftp
(if changed IP address router, then you will need to look for it on it, and not on 192.168.1.1 )

How to restore firmware on an ASUS router through tftp

It is often necessary to erase all previously made changes to the router, for example, when switching from one type of firmware to another (necessarily from DD-WRT to Oleg and back).

To do this, the following “zeroing” firmware is used:

To recover after uploading the wrong firmware (for example from another model):

The firmware usually looks like this<модель роутера>-recover.trx

To completely clear nvram:

The firmware usually looks like this <модель роутера>-clear-nvram.trx

How to flash via tftp:

Preparation:

  • Turn off the power of the device;
  • Press the RESTORE button and hold it, turn on the power to the device;
  • Wait until the POWER indicator starts flashing (about 1 second) and release the button;
  • Take the network cable ( twisted pair), connect one tail to any of the LAN ports of the device, the other to network adapter Your PC;
  • In Windows, for the TCP/IP protocol, assign the adapter the address 192.168.1.2 with a network mask of 255.255.255.0 (if the device had an address of 192.168.1.1);
  • Run cmd.exe;
  • Check that there is a connection with the device by running the command:
ping 192.168.1.1

Something similar to:

Pinging 192.168.1.1 with 32 bytes of data: Reply from 192.168.1.1: bytes=32 time=2ms TTL=100 Ping statistics for 192.168.1.1: Packets: Sent = 1, Received = 1, Lost = 0 (0% loss) , Approximate round trip times in milli-seconds: Minimum = 2ms, Maximum = 2ms, Average = 2ms Control-C ^C

Press Control-C when you get tired of it. Pay attention to TTL=100 - this is the response of the built-in bootloader.

  • We restore the firmware (firmware.trx must be replaced with the name of the file with the firmware);
tftp -i 192.168.1.1 put<path to the firmware file><firmware_filename>.trx

We wait a few seconds, an inscription like

Transfer successful: 3706880 bytes in 7 seconds, 529554 bytes/s

  • We wait from 2 minutes to 10 until the firmware is programmed and the AIR indicator lights up - the device has booted. If after 10 minutes AIR does not light up, then you need to turn the router on/off - autoboot did not work for some reason.

Note: PC owners with Windows Vista: the craftsmen at Microsoft surprised again: tftp client(just like telnet) may be absent when initial installation. You need to install it by visiting the Control Panel and selecting "Programs and...".

You can also use the tftp2 utility instead standard command tftp.