OpenWrt Forum Archive

Topic: [SOLVED]Dlink DSL502T JTAG cable

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi everyone.
I'm trying to fix a bricked Dlink DSL 502t and load openwrt, and could use some help. Please forgive my lack of knowledge as up until yesterday I'd never done anything in this area.

(As is always does apparently) Upgrading the firmware completely destroyed it, and in my ignorance mtd3 (among others) has been wiped. mtd2 (with adam2) appears to still be intact and functioning.

I've built a jtag cable and I'm trying to connect it to tjag now, but I can't for the life of me get anything to work. The pin layout on the connector is very suspect, as it is labeled

8  9  10 11 12 13 14
1  2   3   4   5   6   7

where as all the diagrams online show for headers in this fashion:

2  4  6  8  10  12
1  3  5  7   9   11


I've been attempting to follow this guide: https://forum.openwrt.org/viewtopic.php?id=7742
but he only very briefly covers the section on how to modify a cable to fit properly (incase you haven't spotted already the header has 14 pins instead of 12)

My cable follows this diagram: http://www.t-hack.com/wiki/images/e/e7/ … altung.gif

If anyone could help me interpret this information, and maybe give me some insight into how the pins need to be connected, or what I am doing wrong, I would greatly appreciate it.

Thanks in advance


ADDED:
I know there is some form of a connection occuring, as hooking the cables up in different ways and probing returns a different CPU chip ID, either all 0s, all 1s or 100000....

(Last edited by granyte on 26 Nov 2012, 06:58)

I finally figured out how the pins need to be set out.

I've included a diagram of how the JTAG cable for the DSL502T should be constructed, just incase anyone is ever looking for it in the future.

Caution:
Pin numbers are as printed on board, THEY ARE NOT IN THE CONVENTIONAL FORM.

http://pictat.com/i/2012/11/26/10424dlinkdsl50.png

The discussion might have continued from here.