Joined: 08 Apr 2017 Posts: 49 Location: Underground lair
Posted: Thu Dec 10, 2020 15:18 Post subject:
kernel-panic69 wrote:
Check your ground connection.
I'll solder my db-9f pigtail to prove a point but I don't think that's it. Unless pin 5 on the PC board is not actually ground? _________________ Routers: Netgear R8000, Linksys E1200v1, E4200, WRT54Gv3, TL-WDR4300v1.7
I own a half dozen of them. If I say it's a connection issue, feel free to disprove. I have run the gamut up to and save having to JTAG one to recover.
Thanks. I did read through this thread as well before proceeding. My device is
Code:
$ lsusb
Bus 003 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
I don't think there's much denying I have a solid ground. The on board pin-out is already null modem. db9 pin 2 is RX. PCB pin 2 is TX. So it's pin for pin to wire it. The two captured terminal sessions are virtually identical. And the same is true using my PL2303 USB-Serial adapter.
So, either the router is really trashed or I'm right about the need for true TTL. I do have a serial to TTL converter that I use for my Kenwood TS-440S ham radio but it uses db25 and I'm not in a hurry to dismantle it from my radio system to try it on my router. Still going to throw a little TTL converter together to test my theory.
I do like that FTDI with all the berg jumper settings. Wildly versatile. I might buy one just to have it on my bench. _________________ Routers: Netgear R8000, Linksys E1200v1, E4200, WRT54Gv3, TL-WDR4300v1.7
Joined: 08 Apr 2017 Posts: 49 Location: Underground lair
Posted: Fri Dec 11, 2020 19:05 Post subject:
kernel-panic69 wrote:
Your ground connection, re-flow the solder. Or not. I tried.
Come on, man. I know you don't know me but a little more credit please? _________________ Routers: Netgear R8000, Linksys E1200v1, E4200, WRT54Gv3, TL-WDR4300v1.7
Joined: 08 Apr 2017 Posts: 49 Location: Underground lair
Posted: Sat Dec 12, 2020 19:12 Post subject:
Okay then. I whipped up this little circuit board in about 1hr start to finish. And look what we have here! Permit me to take a moment to bask in the sunshine of success and vindication. 8)
The only substitutions I made were the transistors which are really not that critical. I used TIS93 and TIS98 because that's what I have a good supply of. Pin 1 at the PCB is 3.3v and the TTL converter works perfectly. Works with either the PL2303 or FTDI serial interfaces, as well as PuTTy 0.67 without the special VT100 translation setting and GTKTerm in Linux.
Should be smooth sailing from here. Famous last words.
Joined: 08 Apr 2017 Posts: 49 Location: Underground lair
Posted: Sat Dec 12, 2020 21:55 Post subject:
Famous last words indeed. Now after flashing factory firmware all I get is this, once every second, cannot interrupt it, and dead ethernet ports.
Code:
CFE version 2010.09.20.0 based on BBP 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Fri Nov 12 11:01:26 CST 2010 (lzh@team2-complier)
Copyright (C) 2000-2008 Broadcom Corporation.
Init Arena
Init Devs.
No DPN
This is a Serial Flash
Boot partition size = 262144(0x40000)
Found an ST compatible serial flash with 256 64KB blocks; total size 16MB
sflash_cfe_probe: flash type ST, nparts 4
sflash_cfe_probe: idx 0, name boot, descr ST Serial flash offset 00000000 size 256KB
sflash_cfe_probe: idx 1, name trx, descr ST Serial flash offset 00040000 size 1KB
sflash_cfe_probe: idx 2, name os, descr ST Serial flash offset 0004001C size 16068KB
sflash_cfe_probe: idx 3, name nvram, descr ST Serial flash offset 00FF1000 size 60KB
sflash_cfe_probe: flash type ST, nparts 3
sflash_cfe_probe: idx 0, name boot, descr ST Serial flash offset 00000000 size 256KB
sflash_cfe_probe: idx 1, name trx, descr ST Serial flash offset 00040000 size 16068KB
sflash_cfe_probe: idx 2, name nvram, descr ST Serial flash offset 00FF1000 size 60KB
sflash_cfe_probe: flash type ST, nparts 0
CPU type 0x19740: 133MHz
Tot mem: 65536 KBytes
board_final_init: commit=0, restore_defaults=0Boot version: v5.2
The boot is CFE
mac_init(): Find mac [58:6D:8F:20:A5:03] in location 0
Nothing...
country_init(): Find country code in location 0
The country is same
**Exception 8: EPC=80718DDC, Cause=80000008 (TLBMissRd)
RA=80718DE4, VAddr=0000000C
Joined: 08 Apr 2017 Posts: 49 Location: Underground lair
Posted: Sun Dec 13, 2020 17:26 Post subject:
Well, looks like I hosed this router pretty bad. Serial only gives me the cycle shown above once every second and I cannot interrupt it. Loopback is working so I know keyboard commands are being sent. Unless someone can share a tip that lets me break this cycle long enough to try CFE commands again, JTAG appears to be my last resort.
I've gone this far, may as well dive all the way in. I've seen some JTAG wiring diagrams that link directly to a DB-25 parallel port through 100 ohm resistors. Can this same thing be done using a serial adapter? Or am I looking at buying some sort of specialized hardware?
I'm on Linux so I hope openwince-jtag will do the trick for software needed to communicate. This is uncharted territory for me.
Edit: On second thought, after reading through this https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=889394 I'm not going down this road. Thanks everyone for your help but I believe it's dumpster time. _________________ Routers: Netgear R8000, Linksys E1200v1, E4200, WRT54Gv3, TL-WDR4300v1.7
If you'll try to jtag it, I'll reference my thread from this spring. Probably, you'll find some useful information there. In the end, I managed to recover my device by serial.
However, I was prepared for plan "B"
Joined: 08 Apr 2017 Posts: 49 Location: Underground lair
Posted: Tue Dec 15, 2020 13:50 Post subject:
PowerPoldi wrote:
If you'll try to jtag it, I'll reference my thread from this spring. Probably, you'll find some useful information there. In the end, I managed to recover my device by serial.
However, I was prepared for plan "B"
I stumbled across something called OpenOCD ( http://openocd.org/ ). Latest version in the Ubuntu 16.04 repos was 0.9 but much has improved since. Compiling the latest 0.11 from source code was a snap. I'm a glutton for punishment so I'll be ordering an Altera JTAG adapter with which OpenOCD is compatible.
Sorry, Kernel. No early Christmas present just yet. LOL! _________________ Routers: Netgear R8000, Linksys E1200v1, E4200, WRT54Gv3, TL-WDR4300v1.7