This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:routers:netgear:wgt634u [2013/01/18 01:15] – [FT2232H based JTAG] admin | projects:routers:netgear:wgt634u [2013/02/01 11:35] (current) – [JTAG software] admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Netgear WGT634U ====== | ====== Netgear WGT634U ====== | ||
- | After flashing a WGT634U router, which I wanted to convert to a 3g usb wifi router, a apparently used a wrong openwrt image, despite careful checking, the device was bricked. (I changed the header with 4 bytes, which I read ..., which was not a good thing to do)\\ So a JTAG interface was needed to bring this device back to life. The first time in my life I would use this kind of interface. | + | After flashing a WGT634U router, which I wanted to convert to a 3g usb wifi router, a apparently used a wrong openwrt image, despite careful checking, the device was bricked. (I changed the header with 4 bytes, which I read ..., which was not a good thing to do)\\ So a JTAG interface was needed to bring this device back to life. The first time in my life I would use this kind of interface.\\ |
==== FT2232H based JTAG ==== | ==== FT2232H based JTAG ==== | ||
Spending many hours on the internet what differences between JTAG interfaces are, how they are controlled, I found a very popular chip, the FT2232H from the company FTDI, which manifest itself into a myriad of circuits. This one is from Ebay: TIAO USB JTAG. Manual of this can be found here: [[http:// | Spending many hours on the internet what differences between JTAG interfaces are, how they are controlled, I found a very popular chip, the FT2232H from the company FTDI, which manifest itself into a myriad of circuits. This one is from Ebay: TIAO USB JTAG. Manual of this can be found here: [[http:// | ||
Line 29: | Line 28: | ||
</ | </ | ||
+ | ==== JTAG on router ==== | ||
+ | Following text is from [[http:// | ||
+ | < | ||
+ | R66 (pin 3) 10KΩ | ||
+ | R65 (pin 5) 33Ω | ||
+ | R67 (pin 7) 10KΩ | ||
+ | R68 (pin 9) 10KΩ | ||
+ | R73 (pin 11) 33Ω | ||
+ | </ | ||
+ | Information about the pinout on the wgt634u can be found [[http:// | ||
+ | <csv hdr_rows=1> | ||
+ | function, | ||
+ | nTRST, | ||
+ | TDI,3,4,GND | ||
+ | TDO,5,6,GND | ||
+ | TMS,7,8,GND | ||
+ | TCK, | ||
+ | nSRST, | ||
+ | n/ | ||
+ | </ | ||
+ | A buffered cable such as the Wiggler requires an external Vcc voltage supply. The 14-pin header conveniently supplies this voltage on pin 14. The typical unbuffered cable, however, does not require an external voltage in order to function. Formally, the pin 14 is called VREF and used to indicate a JTAG signal levels: 5V, 3.3V or 2.5V. On the most devices this pin is tied to the device' | ||
+ | ==== JTAG software ==== | ||
+ | In the openmoko wiki they tell how to use openocd with the Debug Board to flash the openmoko Freerunner gsm phone; but there' | ||
+ | <code bash> | ||
+ | svn co -r 1855 http:// | ||
+ | cd urjtag | ||
+ | sh autogen.sh --enable-cable=ft2232 --enable-lowlevel=ftdi | ||
+ | make | ||
+ | sudo make install | ||
+ | </ | ||
+ | |||
+ | You need to enhance the data installed to / | ||
+ | <code bash> | ||
+ | echo -e " | ||
+ | mkdir / | ||
+ | echo -e " | ||
+ | cp / | ||
+ | </ | ||
+ | |||
+ | Then, you can finally flash your WGT. Download the [[http:// | ||
+ | <code bash> | ||
+ | cable ft2232 vid=0x1457 pid=0x5118 | ||
+ | detect | ||
+ | initbus ejtag_dma | ||
+ | detectflash 0x1fc00000 | ||
+ | eraseflash 0x1fc00000 3 | ||
+ | flashmem 0x1fc00000 wgt634uCFE.bin | ||
+ | </ | ||
+ | |||
+ | ===== Links and information ===== | ||
+ | * [[http:// |