Bricked WNDR3700v3

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
austin17427
DD-WRT Novice


Joined: 13 Feb 2020
Posts: 6

PostPosted: Thu Feb 13, 2020 5:55    Post subject: Bricked WNDR3700v3 Reply with quote
I'm trying to unbrick a WNDR3700v3 Netgear router.
I soldered 3 cables to Serial GND,TX,RX and I can see router booting.
After connection, I tried to send Ctrl-C in many different ways. None of them worked.
Finally wrote a python script, that also didn't work.

I'm trying to send Ctrl-C (b'\x03') in different places. Nothing worked so far!
How can I get this router to accept input from me or drop to CFE???

Code:

import serial
with serial.Serial('/dev/tty.usbserial-1420', 115200) as ser:
    ser.write(b'\x03')
    ser.write(b'\x03')
    ser.write(b'\x03')
    ser.flushInput()
    while True:
        try:
    ser.write(b'\x03')
    ser.write(b'\x03')
    ser.write(b'\x03')
            ser_bytes = ser.readline()
            print(ser_bytes.decode('UTF-8'))
            ser.write(b'\x03')
        except Exception as e:
            print(e)
            break


Here is my output:

Quote:
Decompressing..........done
CFE for WNDR3700v3 version: v1.0.6
Build Date: Wed May 18 17:25:10 CST 2011
Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
Found an ST compatible serial flash with 128 64KB blocks; total size 8MB
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 2010.09.30.0
CPU type 0x19740: 480MHz
Tot mem: 65536 KBytes
Device eth0: hwaddr 74-44-01-48-6A-23, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
Loader:raw Filesys:tftp Dev:eth0 File:192.168.1.2:vmlinuz Options:(null)
Loading: Failed.
Could not load 192.168.1.2:vmlinuz: Timeout occured
too long file.
LZMA boot failed
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 5192 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
Linux version 2.6.22.19 (root@tomato) (gcc version 4.2.4) #2 Sat Jan 18 15:33:38 CET 2020
CPU revision is: 00019740
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Zone PFN ranges:
Normal 0 -> 16384
HighMem 16384 -> 16384
early_node_map[1] active PFN ranges
0: 0 -> 16384
Built 1 zonelists. Total pages: 16384
Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Setting up vectored interrupts
PID hash table entries: 512 (order: 9, 2048 bytes)
CPU: BCM4716 rev 1 pkg 10 at 480 MHz
Using 240.000 MHz high precision timer.
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 61188k/65536k available (33k kernel code, 4288k reserved, 2786k data, 128k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Using membase 8000000
PCI: Initializing host
PCI: Reset RC
PCI: no core
PCI: Fixing up bus 0
PCI/PCIe coreunit 0 is set to bus 1.
PCI: Fixing up bridge
PCI: Fixing up bridge
PCI: Enabling device 0000:01:00.1 (0004 -> 0006)
PCI: Fixing up bus 1
NET: Registered protocol family 2
Time: MIPS clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
squashfs: version 3.0 (2006/03/15) Phillip Lougher
io scheduler noop registered (default)
HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
N_HDLC line discipline registered.
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb8000300 (irq = Cool is a 16550A
PPP generic driver version 2.4.2
MPPE/MPPC encryption/compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver, V0.18.3
PPTP driver version 0.8.5
pflash: found no supported devices
Found an ST compatible serial flash with 128 64KB blocks; total size 8MB
Creating 6 MTD partitions on "sflash":
0x00000000-0x00040000 : "pmon"
0x00040000-0x00790000 : "linux"
0x0012d000-0x005e0000 : "rootfs"
0x005e0000-0x00780000 : "jffs2"
0x007f0000-0x00800000 : "nvram"
0x007e0000-0x007f0000 : "board_data"
_nvram_init: allocat header: 2166161408, size= 65536
u32 classifier
OLD policer on
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (512 buckets, 4096 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
ipt_account 0.1.21 : Piotr Gasidlo <quaker@barbara.eu.org>, http://www.barbara.eu.org/~quaker/ipt_account/
net/ipv4/netfilter/tomato_ct.c [Jan 18 2020 15:26:10]
NET: Registered protocol family 1
NET: Registered protocol family 10
ip6_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 128k freed
Warning: unable to open an initial console.
Algorithmics/MIPS FPU Emulator v1.5
emf: module license 'Proprietary' taints kernel.
eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.110.27.20012
wl_module_init: passivemode set to 0x0
eth1: Broadcom BCM4329 802.11 Wireless Controller 5.110.27.20012
PCI: Enabling device 0000:01:01.0 (0000 -> 0002)
eth2: Broadcom BCM4331 802.11 Wireless Controller 5.110.27.20012
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Thu Feb 13, 2020 6:40    Post subject: Reply with quote
Rattle CTRL+C repeatedly and apply power.

https://chester.me/archives/2017/03/unbricking-a-wndr3700v3-netgear-n600-wireless-router/

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
austin17427
DD-WRT Novice


Joined: 13 Feb 2020
Posts: 6

PostPosted: Thu Feb 13, 2020 12:15    Post subject: Reply with quote
Thanks for mentioning that, I followed that article. Still can't get it to work... It was mentioned in that article, it's difficult to get to CFE.
Quote:
I was about to give up, but this page shows the trick: during boot, you can quickly press Ctrl+C and get to a Common Firmware Enviroment CFE> prompt:


Article mention a link, https://forum.archive.openwrt.org/viewtopic.php?id=47501 I followed that too.

I begin to suspect if my TX line is dead on the TTL-USB adapter, I can read 3.3 Volts on the multimeter but I still haven't been able to send a Ctrl-C through that line...

Any other ideas?
austin17427
DD-WRT Novice


Joined: 13 Feb 2020
Posts: 6

PostPosted: Thu Feb 13, 2020 15:13    Post subject: [SOLVED] Reply with quote
Turns out the TTL-USB adapter is NOT working on the Transmit. I tried it with a Raspberry Pi and never been able to get any key strokes through. I ordered a replacement...
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Thu Feb 13, 2020 18:04    Post subject: Reply with quote
I haven't had an adapter go bad on me. Are you SURE you didn't connect something to the wrong pin?
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
thommy181
DD-WRT User


Joined: 16 Mar 2019
Posts: 353
Location: Szczecin, Poland EU

PostPosted: Thu Feb 13, 2020 18:51    Post subject: Bricked WNDR3700v3 Reply with quote
If you usue Putty software for serial connection change in options and serial section -> flow control option to none. If you do not this operation keybord won't working in serial connection. Click ctrl+c still immidetly as soon as prompt line start and cursor is blinking.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Thu Feb 13, 2020 19:18    Post subject: Re: Bricked WNDR3700v3 Reply with quote
thommy181 wrote:
If you usue Putty software for serial connection change in options and serial section -> flow control option to none. If you do not this operation keybord won't working in serial connection. Click ctrl+c still immidetly as soon as prompt line start and cursor is blinking.


While I agree that you should check and ensure flow control is off, I don't think you'd get any serial console output if it were on Question Confused

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
austin17427
DD-WRT Novice


Joined: 13 Feb 2020
Posts: 6

PostPosted: Thu Feb 13, 2020 20:05    Post subject: Reply with quote
Pretty sure, it's correct! I used the same adapter on Raspberry, I can see the output which means Receive works. I couldn't get to write anything via T. I'm getting a replacement part tomorrow. Btw, I'm on Mac.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Thu Feb 13, 2020 21:26    Post subject: Reply with quote
Are you using minicom, screen, coolterm, ?
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
austin17427
DD-WRT Novice


Joined: 13 Feb 2020
Posts: 6

PostPosted: Thu Feb 13, 2020 22:08    Post subject: Reply with quote
I used CoolTerm, kermit and Python --serialpy. All can read but none can write. (None can write anything including Ctrl-C)
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Fri Feb 14, 2020 1:20    Post subject: Reply with quote
I'm familiar with minicom and coolterm. On coolterm, everything under "Flow control" needs to be un-checked, if it wasn't before.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
flood404
DD-WRT User


Joined: 18 Dec 2013
Posts: 336

PostPosted: Fri Feb 14, 2020 19:24    Post subject: Reply with quote
I had this happen on 3700 v2. It was because the USB TTL device needs to be grounded. You can watch the terminal output with just tx and rx connected but nothing from your keyboard will be inputted from PuTTY without the ground connection. Once you got the ground connection. Power it up and hold CTRL and spam the C key then it will finally get to the cfe prompt.


Make sure your grounding the right pin too.
austin17427
DD-WRT Novice


Joined: 13 Feb 2020
Posts: 6

PostPosted: Fri Feb 14, 2020 22:16    Post subject: Reply with quote
Amazon delivered the replacement part (first adapter was bad) this afternoon.
Connected the adapter, tftpd, wrt-dd, kaboom.
Back in business.



Screen Shot 2020-02-14 at 4.02.57 PM.png
 Description:
1st screen shot after debrick
 Filesize:  181.67 KB
 Viewed:  2322 Time(s)

Screen Shot 2020-02-14 at 4.02.57 PM.png


Display posts from previous:    Page 1 of 1
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