Buffalo WHR-G54S JTAG Pinout!!

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3  Next
Author Message
Cricri
DD-WRT User


Joined: 17 Nov 2006
Posts: 78

PostPosted: Mon May 07, 2007 1:07    Post subject: Reply with quote
IS there any specific DD-WRT build for WHR-G54s with SD card support for noobs like me?
Also, instead of soldering a SD card slot on cutting out an opening, what if I soldered directly the SD card to the motherboard (i.e. wires from JTAG points to points on the SD card, without card slot). Any reason why that would be a bad idea?
I ask because I have a spare 1GB card around, but no SD slot, and they're not cheap, and I'd like to not mess with the router cosmetics. I wouldn't need the card anyway for anything else.
Sponsor
Eko
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 5771

PostPosted: Mon May 07, 2007 4:38    Post subject: Reply with quote
You can do it.
Cricri
DD-WRT User


Joined: 17 Nov 2006
Posts: 78

PostPosted: Mon May 07, 2007 8:53    Post subject: Reply with quote
Neat, I might give it a go then. I have 23SP3 05/02/07 now, will it support the SD card natively or do I need to compile my own build? Thanks!
Eko
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 5771

PostPosted: Mon May 07, 2007 8:55    Post subject: Reply with quote
It supports it. (but might have problems with 1 gb card. I fixed this. I will pm you latest sp3 now)
Cricri
DD-WRT User


Joined: 17 Nov 2006
Posts: 78

PostPosted: Mon May 07, 2007 9:12    Post subject: Reply with quote
Thanks Smile
*EDIT* Oie, I've been posting in the JTAG thread! Apologies, I shouldn't post after midnight, I've been on a inaccurate posting rampage before going to bed!
Again, apologies for that Embarassed
chuckao
DD-WRT Novice


Joined: 05 Sep 2006
Posts: 5

PostPosted: Wed Aug 01, 2007 1:29    Post subject: How to: JTAG with Buffalo WHR G54S Reply with quote
Hi,

My Buffalo WHR G54S is bricked and I don´t know the reason for that. It was working perfectly for 1 year with dd-wrt 23 sp2 and yesterday it was bricked. All ether ports´ leds still on and power led too. So, I have to try to use JTAG cable but I don´t have idea how to make one.

I read good tips in this thread (tks anectine17) however the final idea is not so clear to me.

Anectine17 said:

In Router JTAG connector:

pins 1,3,5,7,9,11 are ground;
pin 2 is 4.4 volts;
pin 4 is TDI;
pin 6 is TDO;
pin 8 is TMS;
pin 10 is TCK;
pin 12 seems to do nothing.

Is it correct?

If yes, so look to my attached picture and you will see which hole correspond to pin 1. (the top-left hole).

Is it correct?

In this same picture I put a modified Eugene´s JTAG schema (tks Eugene [1]) linking my router JTAG connector to PC parallell port.

Could anyone confirm if this schema is correct?

anectine17 said to use 480ohms resitors but Eugene´s schema shows 100ohms.

So, which one is correct?

Finally, supposing that my JTAG is correct so I have to use HairyDairyMaid's tool rev 4.8, isn´t it?

Ok, but I don´t know yet which commands I have to use. My router is bricked and I´m sure that I don´t need to do a backup of its firmware.

Cheers,

[1] - http://lazutkin.com/blog/2006/apr/5/jtag/



JTAG-whr-g54s.png
 Description:
JTAG schema for Buffalo WHR G54S
 Filesize:  152.87 KB
 Viewed:  26532 Time(s)

JTAG-whr-g54s.png


wayland
DD-WRT User


Joined: 17 Jun 2006
Posts: 184
Location: Essex, England

PostPosted: Wed Aug 01, 2007 7:41    Post subject: Reply with quote
Just get stuck in and do it!

First their are already some resistors on the board, at least on the WHR-HP-G54, so I just soldered the wires stright on. Pin one is always identified, as you have spotted.

The J-TAG cable need only be a parralell printer cable with the printer end cut off. It goes into your parralell socket on your PC, if you have an older PC which still has this. You then solder the required wires to the J-TAG pad on the buffalo

Popping the .sys file in the correct windows directory is important, must get this step to work. Hairy Dairy Maid is what you use from the dos prompt to do stuff.

You don't need to erase the whole flash memory, it's usually enough to clear the NV RAM. You may find you need some command line options to actually make it skip a few checks to get it to run.

The principle of J-TAG is that it gives you full access to the data and address bus of the board without the CPU or software running. It means you can poke around in the memory and stuff via your PC. But it only uses a handful of wires so reflashing the whole memory would take a while.

Just get on and do it without worrying about resistors. After all it's bricked so it won't get any worse!

Regards,
Wayland.

_________________
Buffalo
WRT54G
chuckao
DD-WRT Novice


Joined: 05 Sep 2006
Posts: 5

PostPosted: Wed Aug 01, 2007 11:57    Post subject: Reply with quote
wayland wrote:
Just get stuck in and do it!

First their are already some resistors on the board, at least on the WHR-HP-G54, so I just soldered the wires stright on. Pin one is always identified, as you have spotted.

Just get on and do it without worrying about resistors. After all it's bricked so it won't get any worse!


Hi wayland,

You are right!! There are resistors on the board wired to pins 2, 4, 6, 8, 10 and 12.

I will do it ! Very Happy But first, I have to find a store that sells JTAG connector and it will the most difficult part Laughing

cheers,
wayland
DD-WRT User


Joined: 17 Jun 2006
Posts: 184
Location: Essex, England

PostPosted: Wed Aug 01, 2007 12:10    Post subject: Reply with quote
I just used a fine tipped soldering iron and soldered them on. It's not like you will be doing this very often on the same board. My J-Tag cable was a DE25 connector with a strip of ribbon cable from an old IDE cable. I just separated the individual wires at the ends and stripped back a little then soldered then ends on the right pins and pads.
_________________
Buffalo
WRT54G
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 11564
Location: Wherever the wind blows- North America

PostPosted: Wed Aug 01, 2007 14:13    Post subject: Reply with quote
anectine17, did you add ~390ohm resistors to your reversed pin pigtail extension? I haven't bricked my G54S yet...but knowing me...it's inevitable.

redhawk

_________________
The only stupid question....is the unasked one.
chuckao
DD-WRT Novice


Joined: 05 Sep 2006
Posts: 5

PostPosted: Wed Aug 01, 2007 22:34    Post subject: Reply with quote
Hey wayland!!!

I was wrong. There aren´t resistors on the board of WHR-G54S. Please, look the attached picture, you can see resistor spaces but they are not there.

So, I really need to use resistors, isn´t it? But, which one? 100 ohms or 480ohms?

Cheers,



j7-whr-g54s-2.png
 Description:
J7 - Buffalo WHR G54S
 Filesize:  225.36 KB
 Viewed:  26489 Time(s)

j7-whr-g54s-2.png


Iron
DD-WRT User


Joined: 17 Jun 2007
Posts: 100
Location: China, Suzhou

PostPosted: Mon Aug 13, 2007 6:48    Post subject: Reply with quote
Try it with the 480 ohms first, if it doesn't work try it with 100 ohms... That way you are always safe Smile
_________________
Buffalo WHR-G54S, Generic Broadcom V2.4 Beta 2007-08-15, SD/MMC mod(2 GByte).
Buffalo WHR-HP-G54, Generic Broadcom V2.4 2007-08-15 SD/MMC mod(1 GByte).
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 11564
Location: Wherever the wind blows- North America

PostPosted: Mon Aug 13, 2007 14:59    Post subject: Reply with quote
You need 450-480 ohm resistors.

redhawk

_________________
The only stupid question....is the unasked one.
anectine17
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1535
Location: Idaho

PostPosted: Mon Aug 13, 2007 15:36    Post subject: Reply with quote
OK......I've gotten 472 thousand PM's and e-mails asking me to tell you how I built the adapter. I put a LOT of time and money (I ruined 2 WHR's, not to mention the one I bought for HD...resistors, connectors, cable, etc.). I figured since I put the effort and cash into figuring it out, people could do one of 2 things: buy an adapter or cable from me to help offset what I burned up, or figure the simple part of voltages out themselves. Obviously that's not going to happen...everyone wants it for free on a silver platter. Maybe someone will remember this next time I'm stuck on something and am actually offering CASH for a solution, and I won't go totally unnoticed (has happened at least 3 times now)....yeah, I'm a bit annoyed at the whole thing.

Anyway.... HairyDairy and I basically had 3 of the WHR's......he had one and I had 2 so we could work "together" on it. Comparing voltages to those found on the WRT's, we determined that in order to arrive at the same working voltages with the WHR, we needed 480 ohms of resistance. Obviously, (to me anyway) the WHR's don't have any JTAG resistors installed, so all of that resistance must be installed on the cable. So, if you're building a cable just for the WHR, you'll want to use 480 ohm (or thereabouts) resistors, OK? Now, applying the rithmatik I lernded way back when, I deduced that if I was building an adapter to use with my standard JTAG cable, I had to take the 100 ohm resistors already on the cable into consideration....and I came up with 380 ohms for the adapter. 380 + 100 = 480. I've never seen a 380 ohm resistor, so I used 390's and it works fine.

Have fun with it. Next time I'm asking for help with a software or similar issue, remember where this came from and don't blow me off. Thanks.

Alden



JTAG Cable and Supply Price List.doc
 Description:

Download
 Filename:  JTAG Cable and Supply Price List.doc
 Filesize:  25 KB
 Downloaded:  1362 Time(s)


_________________
Clear 4G Wimax.
Linksys WRT54G-TM w/14929 std-nokaid, fan-cooled, 2 GB SD mod, Primary Router.
Linksys WRT54G v.3 w/15230 std-nokaid, Client Bridge.
Linksys E2000 w/15200 "Big"
Linksys WRT54G v.4
La Fonera 2100, fan-cooled
Linksys WRT54G v.3.1
Linksys WRT54G v.1.1
Linksys WRT54GS v.1
2x Linksys WRT54G v.2.2

Peacock Thread - READ THOROUGHLY
elgolebio
DD-WRT Novice


Joined: 06 Aug 2007
Posts: 31

PostPosted: Sun Aug 26, 2007 10:13    Post subject: Reply with quote
Ok, JTAG works fine. No 470 or 480 ohm resistors nedeed. Just use 100ohm. Just build a regular JTAG from Openwrt scheme. You don't need to solder pins into your Buffalo, the pins are small enough, that all you have to do is to plug them and they will sit tight. Ofcourse JTAG pinouts in this router are a mirrored version of pinouts from Linksys routers, but that is no problem, just plug the pins upside down the board.

Sorry for my english, I just wanted to tell all that there's no need to make a different cable with 470ohm resistors, and also no need to solder the pins. GOOD LUCK
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum