User Tools

Site Tools


doc:howto:generic.reload.image

This guide was lifted from this support page This link points to ChilliFire

Preparatory steps:

* If working on MS Windows, download and install WinSCP program from SCP Client for transferring files along with PUTTY SSH and Telnet client

* If working on Linux make sure that scp is installed.

* Download a stable OpenWrt firmware image from http://downloads.openwrt.org/attitude_adjustment/12.09-beta2/ar71xx/generic/ for your specific TP-Link model. It must be the file with phrase 'factory' in its file name. The ones with the phrase 'sysupgrade' can NOT be used.

* Rename the downloaded firmware file to 'firmware.bin' (without the apostrophes).

Recovery process:

  • Reboot the router
  • Just when the 'SYS' LED starts flashing press the WPS button in the front or the reset button in the back.
  • The 'SYS' LED will start to flash very fast. The firmware is now in fail safe mode.
  • Connect your computer to the router's LAN port number 1
  • Give your computer a fixed IP address in the 192.168.1.x range, say 192.168.1.22
  • You should now be able to 'ping' your computer on 192.168.1.1
  • Open a command terminal and type the command:

telnet 192.168.1.1

  • You should now see the OpenWrt welcome logo and a prompt
  • Reset the root password by typing the command

passwd (additional prompts will follow) !This is required for the process to work.!

  • Type the following commands:

mount_root

   touch jffs2 
   touch root 
   /etc/init.d/dropbear start
  • Now start winscp and connect with the following settings:

Protocol: SCP

   Host: 192.168.1.1 
   Port: 22 
   User: root 
   Password: <your password>
  • WinSCP will log you into the router and you will see the router's file-system on the right hand site and your local disk on the left.
  • You are now on the router's /root, go up one level up to /, and from there got to /tmp folder.
  • Once in the /tmp folder simply transfer the firmware file over from your local file system to /tmp directory on the router.
  • If working on Linux in a terminal window in lieu of WinSCP use the command scp firmware.bin root@192.168.1.1:/tmp from the directory the file is

located in.

  • Log back into the router and type the following commands

cd /tmp

    mtd -r write /tmp/firmware.bin firmware 
  • The router will load the new firmware and reboot.
  • Once the router has fully rebooted you can ping the router on 192.168.1.1
  • Make sure the WAN port of the router is connected to the LAN with Internet access
  • Open a Putty command terminal and connect to 192.168.1.1 using SSH on port 22.
  • A command window will appear allowing you to login.

Login: root

   Password: <your password> 
  • Type the following commands to enable the Web interface:

cd /tmp

   opkg update 
   opkg install luci 
   /etc/init.d/uhttpd enable 
   /etc/init.d/uhttpd start
   !! Celebrate !!
   You now have a working firmware with graphical interface on 192.168.1.1.
doc/howto/generic.reload.image.txt · Last modified: 2014/07/29 17:24 by chapros