User Tools

Site Tools


projects:routers:tp-link:tl-wr703n

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:routers:tp-link:tl-wr703n [2015/10/06 23:10] – [Increase ram memory] adminprojects:routers:tp-link:tl-wr703n [2015/10/11 20:07] (current) – [Connecting after flashing] admin
Line 2: Line 2:
   * Version 1.6   * Version 1.6
  
 +This page has some information how to upgrade the ram and flash memory of a TP-LINK TL-WR703N router.
 ==== Initial installation ==== ==== Initial installation ====
 Installed via web menu (default username and password are: admin), (following [[http://wiki.xinchejian.com/wiki/Install_OpenWRT_on_TPlink_WR703N|this advise]]): [[http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin]], wait at least 5 minutes for this to complete.\\  Installed via web menu (default username and password are: admin), (following [[http://wiki.xinchejian.com/wiki/Install_OpenWRT_on_TPlink_WR703N|this advise]]): [[http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin]], wait at least 5 minutes for this to complete.\\ 
Line 22: Line 23:
   mtd write openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin firmware   mtd write openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin firmware
   reboot   reboot
-After the reboot all your settings are gone, so repeat steps from above: connect with telnet, set password, and change ip address.\\ Check logread for the system messages:+After the reboot all your settings are gone, so repeat steps from above: connect with telnet, set password, and change ip address.\\ Type logread to see system messages:
 <hidden><code bash> <hidden><code bash>
 root@OpenWrt:~# logread root@OpenWrt:~# logread
Line 151: Line 152:
  
 ==== Increase flash memory ==== ==== Increase flash memory ====
-Before removing the flash memory, first make a backup of the art partition and the u-boot partition. Once done, you can use the following script to build an image for the larger memory.+Before removing the flash memory, first make a backup of the art partition and the u-boot partition. The art partition holds parameters for your wifi hardware. U-boot partition holds parameters for your Ethernet MAC address and hardware revision number. 
 +=== Backing up u-boot and art partitions === 
 +Logon to your TL-WR703N with ssh and issue following commands: 
 +  cat /dev/mtd0 > /tmp/mtd0.0x00000000.backup_u-boot.bin 
 +  cat /dev/mtd4 > /tmp/mtd4.0x003f0000.backup_art.bin 
 +Then exit and copy the two files to your system with: 
 +  scp root@IPADDRESS:/tmp/mtd0.0x00000000.backup_u-boot.bin . 
 +  scp root@IPADDRESS:/tmp/mtd4.0x003f0000.backup_art.bin . 
 +While you are at it, also download the newest firmware from openwrt and u-boot which has better support for larger memory. See the script from below where to find these files. 
 + 
 +=== Removing the old flash chip === 
 +Unsolder the 8-pin flash chip from the back of the board. Remove excessive solder with wick. Then search for your replacement chip: 
 +  * w25q128 (Which has 16MB instead of 4MB) See [[https://forum.openwrt.org/viewtopic.php?pid=183882#p183882|here]] for other references to this chip. 
 + 
 +=== Creating a flash binary for the new chip === 
 +Once done, you can use the following script to build an image for the larger memory.
 <code bash> <code bash>
 #!/bin/sh #!/bin/sh
Line 220: Line 236:
 </code> </code>
  
-Electrically upgrading the flash memory requires to have a compatible chip. I planned to upgrade with this chip: +=== Flashing with buspirate === 
-  * w25q128 (16MB instead of 4) See [[https://forum.openwrt.org/viewtopic.php?pid=183882#p183882|here]] for other references to this chip.+Use your [[http://www.flashrom.org/Bus_Pirate|Bus Pirate]]. If the buspirate is accessible on /dev/ttyUSB0, use following command: 
 +  flashrom -p buspirate_spi:dev=/dev/ttyUSB0,pullups=on,spispeed=1M -w wr703n_image_16MB.bin 
 +If ttyUSB0 is not correct, find out with following command which device it should be: 
 +  dmesg | grep -A 4 Pirate | grep tty
  
-I try to program this chip before soldering it onto the boardFor this I decided to use JTAG interface. Many interfaces exist, have two, an openmoko debug board v3 and a [[http://www.tiaowiki.com/w/TIAO_USB_Multi_Protocol_Adapter_User%27s_Manual|Tiao usb jtag interface]]. Both use a ftdi2232 interface chip, but from a different generation.+=== Flashing with JTAG === 
 +If you have no buspirate at hand, you can also flash via JTAGYou can use several different JTAG interfaces with flashrom. tried it with two, an openmoko debug board v3 and a [[http://www.tiaowiki.com/w/TIAO_USB_Multi_Protocol_Adapter_User%27s_Manual|Tiao usb jtag interface]]. Both use a ftdi2232 interface chip, but from a different generation.
  
-For the system to recognize the interface please read more [[software:linux:jtag|here]]. To actually read from and write to the eeprom, use [[http://flashrom.org/FT2232SPI_Programmer|flashrom]] which depends on libftdi.+For the system to recognize the interface please read more [[software:linux:jtag|here]]. To actually write to the eeprom, use [[http://flashrom.org/FT2232SPI_Programmer|flashrom]] which depends on libftdi.
  
-As an alternative to flash with flashrom -and probably easier to handle- is to use your [[http://www.flashrom.org/Bus_Pirate|Bus Pirate]]Using the following command+==== Connecting after flashing ==== 
-  flashrom -p buspirate_spi:dev=/dev/ttyUSB0,pullups=on,spispeed=1M -r wr703n_image_16MB.bin+After the chip has been soldered onto the board and powered on, connect with telnet: 
 +  telnet 192.168.1.
 + 
 +Then set a password for root
 +  passwd 
 +Now it is possible to connect with ssh: 
 +  ssh root@192.168.1.1
 ===== Network configurations ===== ===== Network configurations =====
   * [[http://wiki.openwrt.org/doc/recipes/bridgedclient]] Bridged Client   * [[http://wiki.openwrt.org/doc/recipes/bridgedclient]] Bridged Client
projects/routers/tp-link/tl-wr703n.1444165826.txt.gz · Last modified: 2015/10/06 23:10 by admin