VOGONS


First post, by UCyborg

User metadata
Rank Member
Rank
Member

I have an old bricked router Linksys WRT54GL, I'd like to see if it still talks via serial interface or whether the flash chip/NVRAM can still be manipulated via JTAG.

There are unused pin connection slots on the board (right side on the picture below), JP1 is for JTAG, JP2 is for the two serial ports.

SO54r33.jpeg

The holes' diameter is 1 millimeter, I'd like to know if making connection from this board with jumper wires such as these ones, using male end to connect to the holes, is valid approach, would such connection work properly? Or are these types of wires only meant to connect if you already have some kind of pin strip properly attached to the slot?

Last edited by UCyborg on 2024-03-14, 21:36. Edited 2 times in total.
Arthur Schopenhauer wrote:

A man can be himself only so long as he is alone; and if he does not love solitude, he will not love freedom; for it is only when he is alone that he is really free.

Reply 2 of 9, by UCyborg

User metadata
Rank Member
Rank
Member

I was mostly curious about methods that don't involve soldering, particularly if it could be as simple as just sticking male end of jumper into a hole. Considering what was written about doing the same with the pin headers that are meant to be soldered, I suspected those wires by themselves might have the same problem. But there was a hint posted it could work:

qcqe6.png

Though it was followed by the definitely surer method - press fit headers that don't require soldering:

rK6IW.png

Source: https://electronics.stackexchange.com/questio … older-for-proto

I got around asking at my workplace about it today, coworker from production department said one could do that and it may work, but it's not the surest method. For this experiment, it has to be sure so if it doesn't work out, it will be because hardware's done and not because of flimsy connection.

He also told me it's not a problem for him to solder pin headers on it so I don't have to hunt around for press-fit headers. Soldering is not one of my skills, plus doing it at home and needing equipment, just not worth the bother for one lone experiment with high probability of failure. There was a power outage recently and it doesn't boot since, all LEDs except Internet and DMZ just blink forever. That's with a good power supply that came with another device, the original presumably doesn't work properly anymore, with it, LEDs light up for cca. 5 seconds, then darkness. No life on LAN ports. Doesn't respond to usual tricks with power cycling and reset button.

Anyway, I'll see if it says anything over serial port, USB to RS232 TTL converter should do the job. I'm not so sure about JTAG method anymore. The only way that I'd bother would be with Raspberry Pi. The old method is crafting special JTAG cable (way over my head) or maybe getting it from across the ocean, again not worth the bother for me, and plugging to computer's LPT port (my main PC is old enough to have the header for it on the motherboard).

Getting Raspberry Pi just for this would not be worth it neither, but I see myself putting it to other uses. And here's the catch, for the latter, the latest and greatest Pi 5 would be preferable, but the one program and its fork for performing magic over JTAG only surely runs on up-to Pi 3 (https://github.com/oxplot/tjtag-pi). I've read about GPIO stuff and it's way over my head. I've done some patching of old games in the past, writing bits in C and x86 ASM, but this is totally alien to me. I suspect getting that program to run on latest Raspberry Pi is not as simple as changing hardcoded peripheral base address in the source code and compiling it.

So the only surest way would be getting otherwise less interesting Raspberry Pi 3. Sigh.

Arthur Schopenhauer wrote:

A man can be himself only so long as he is alone; and if he does not love solitude, he will not love freedom; for it is only when he is alone that he is really free.

Reply 3 of 9, by BitWrangler

User metadata
Rank l33t++
Rank
l33t++

Yeah you need some kind of spring or wedge to make full contact, the fishing line is a cool idea, but you could wedge each pin in with a wooden toothpick also.

This one time at band camp... okay college... I had to connect a male serial cable to male port and managed a shaky connection by chopping the ends off a bunch of bic pen refills, rolling aluminum foil up and posting it inside, and using those as sleeves to make basically a double sided female socket. If you're trying to do male pin header to male hookup cable pins though, that are individually positionable, then bits of stripped wire insulation, slid over the pins with the other male forced in alongside it are often enough temporarily.

Unicorn herding operations are proceeding, but all the totes of hens teeth and barrels of rocking horse poop give them plenty of hiding spots.

Reply 4 of 9, by UCyborg

User metadata
Rank Member
Rank
Member

It's all clearer now, I found fishing line (wire) method described here, the additional wire involved that ensures good contact has totally slipped by me.

I also asked about it at work and the coworker in production agreed just putting the jumper wire in by itself is not the sure way. I didn't know we have a bunch of plain pin headers available, he said it was not a problem for him to solder them on my router's board. So both JTAG and serial ports are now ready to be connected to with the female end of the jumper wire.

Thanks for pointing out the woodpick method, will keep it in mind. Interesting experience regarding putting both male ends together.

I've been recently staring at different source code examples written in C dealing with those GPIO pins on Raspberry Pi. If I understood it right, it may not be as complicated as initially thought. At least I think tjtag-pi could be easily changed in a way that it will drive those pins through the WiringPi library, which recently got support for Raspberry Pi 5, rather than being hardcoded to work with specific hardware revision.

Arthur Schopenhauer wrote:

A man can be himself only so long as he is alone; and if he does not love solitude, he will not love freedom; for it is only when he is alone that he is really free.

Reply 5 of 9, by UCyborg

User metadata
Rank Member
Rank
Member

Changed title a bit to be more descriptive.

After trying another good power supply that has a LED that is normally lit when it's powered, it was blinking along with router's LEDs, I believe this means short circuit protection kicking in. I guess this means faulty capacitors in best case scenario and something else fried in worst case scenario.

So I suppose if one wanted to try anything in this case, soldering would be unavoidable. I wonder though, could multimeter be used to pinpoint anything, eg. this capacitor definitely doesn't work, without taking it off? I remember someone on YouTube showing measuring with both ESR and multimeter, when capacitor was still on-board, ESR is more suitable for in-circuit testing from what I've read. I don't have an ESR meter, but I have a multimeter that does both capacitance and resistance testing.

Arthur Schopenhauer wrote:

A man can be himself only so long as he is alone; and if he does not love solitude, he will not love freedom; for it is only when he is alone that he is really free.

Reply 7 of 9, by UCyborg

User metadata
Rank Member
Rank
Member

I have a feeling the old Linksys power supply could be responsible for causing more damage than it would have occurred otherwise. That thing was rather hot during normal operation, probably not normal for 1A power supply, at least by modern standards, maybe that was "normal" back then. I thought about it few times, but, as it just worked until now, it didn't come into my awareness that maybe it would be a good idea to replace it.

So if I plug the original supply in, the lights stay lit for about 4 seconds, then they go off. Back then when it broke I must have tried power cycling about 2 - 4 times, last time I heard whining noise coming from the router that lasted about 2 seconds... Subsequently, I was only trying with the other known good power supplies, that apparently cut the power right away when they detected short circuit.

The old supply was cold when I got home, the power outage occurred about 2 hours earlier, lasted over half-hour.

No, I don't have a thermal camera at hand. These things are pricey!

Soldering equipment on the other hand can be acquired at much lower prices. Do you need anything expensive for simpler things like (de)soldering capacitors? It doesn't look too complicated on YouTube and who knows, the skill might come in handy in the future for another computing device. So if I got this right, you need the solderer and the wire, correct? And be careful to not burn the board (or yourself).

At least that's the only idea I have for ruling out the capacitors. I've got a bad feeling it could be something else, but you have to start somewhere, right? If it's something else, then well, at least I'll know, but if it's really just capacitors by any chance, maybe I can have a router working again to play with. There are also coils, these can apparently be tested, though no idea about replacement, and even beyond capacitors alone, there are chips on the board that are ancient and it's probably more complicated to get them on, even if I could get a replacement somehow...

Thoughts?

Arthur Schopenhauer wrote:

A man can be himself only so long as he is alone; and if he does not love solitude, he will not love freedom; for it is only when he is alone that he is really free.

Reply 8 of 9, by lti

User metadata
Rank Member
Rank
Member

I recognize that board.
https://www.badcaps.net/forum/troubleshooting … bad-capxon-caps
From that thread, there's a chance that bad caps can damage the main ICs, but a good de-CapXon job might put it in a state where it will accept firmware. If those purple caps are bad enough, you could measure a drop in capacitance, but they tend to fail with good capacitance and high ESR.

Reply 9 of 9, by kaputnik

User metadata
Rank Oldbie
Rank
Oldbie

I'm usually just using bent pieces of jumper wire for temporary through-hole connections. Simple and works reasonably well.

DSC_0778.JPG
Filename
DSC_0778.JPG
File size
174.86 KiB
Views
124 views
File license
Fair use/fair dealing exception
DSC_0782.JPG
Filename
DSC_0782.JPG
File size
277.13 KiB
Views
124 views
File license
Fair use/fair dealing exception

Sorry about potato quality 😜