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/10 22:55] – [Increase flash memory] adminprojects:routers:tp-link:tl-wr703n [2015/10/11 20:07] (current) – [Connecting after flashing] admin
Line 152: 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 221: Line 236:
 </code> </code>
  
-Electrically upgrading the flash memory requires to have a compatible chipI 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 Pirate | grep tty 
 + 
 +=== Flashing with JTAG === 
 +If you have no buspirate at hand, you can also flash via JTAG. You can use several different JTAG interfaces with flashrom. I 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.
  
-Instead of programming the memory in a running system with the chip (except for R/W pins) connected in parallel, it is recommended to program this chip externally and then solder it onto the boardFor this I decided to use a JTAG interface. Many interfaces exist, I 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.+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.
  
-For the system to recognize the interface please read more [[software:linux:jtag|here]]. To actually read from and write to the eepromuse [[http://flashrom.org/FT2232SPI_Programmer|flashrom]] which depends on libftdi.+==== Connecting after flashing ==== 
 +After the chip has been soldered onto the board and powered onconnect with telnet: 
 +  telnet 192.168.1.1
  
-As an alternative to flash via JTAG -and probably easier to handle- is to use your [[http://www.flashrom.org/Bus_Pirate|Bus Pirate]]. Using the following command: +Then set a password for root: 
-  flashrom -p buspirate_spi:dev=/dev/ttyUSB0,pullups=on,spispeed=1M -r wr703n_image_16MB.bin+  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.1444510525.txt.gz · Last modified: 2015/10/10 22:55 by admin