wrt350n v1.1 serial ttl not sure of how to set it up

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


Joined: 30 May 2008
Posts: 66

PostPosted: Thu Mar 31, 2011 4:39    Post subject: wrt350n v1.1 serial ttl not sure of how to set it up Reply with quote
I already tried to recover via the tftp method, and although I do catch a short time response from ping, ttl=100, I read the peacock thread multiple times, and every time the mini image transfers successfully (looks like it worked and recovered according to tftp) it still doesn't truly recover. Follows blinking power led in forever loop. I followed every step to a tee, and I have recovered this unit in the past when messing with different firmwares on it through tftp, so I am sure I know what I am doing.

I read a few other posts with people whom had the same issue, so anyway, I am desperate now, I soldered wires out to the serial ports (I found pics here and on openwrt and got the pinout) and I have a Serial TTL to USB which my friend had used in the past to recover a Bountiful with DD-WRT... so I know it works.

I double checked and all my solder connections are good (tested with multi meter).

I am using WinXP Pro and Serial is on COM3 by default, COM1 is available if needed.

I never used serial recovery before, and the readings here on the forums are a bit limited in that there is no written out good procedure, and not all in one place, bits and pieces of info are scattered on this.

Here is what I tried, did I do something wrong?

With everything connected (all 4 cables (VCC, Ground, TX, & RX), I checked and am quite sure its correct, I open putty, click on Serial (last option in Connection category) and set up as COM3, 115200 baud rate, DB is 8, SB is 1, Parity set to None, and Flow Control set to Xon/Xoff but also tried with it set to None as well.

I open the connection so it sits there now in the Main Session category, and then I power up the router. (Just to make sure as I understand I power the router from the power brick, but the serial connection also supplies 3.3v) is this necessary???

I see no output in the putty window, as from what i read I am supposed to press ctrl+c to interrupt the process. I just see nothing but the small green square.

Any input people??? I also ordered a jtag but it should arrive next week. Is my process wrong, what else can I try?
Sponsor
Peabody
DD-WRT Guru


Joined: 28 Dec 2009
Posts: 1518

PostPosted: Thu Mar 31, 2011 5:00    Post subject: Re: wrt350n v1.1 serial ttl not sure of how to set it up Reply with quote
xtacydima wrote:

I never used serial recovery before, and the readings here on the forums are a bit limited in that there is no written out good procedure, and not all in one place, bits and pieces of info are scattered


There is a serial recovery wiki, with the important bits collected together. Link is in note 6 of the peacock.

Connect your tx and rx together (removed from router). Type on your keyboard and see if there is output on the screen.

If you don't have a working cfe, you will not get serial output, and will need to jtag.

_________________
I fix "shortcuts". If you don't have time to read thoroughly, I don't have time to re-type what you missed.
xtacydima
DD-WRT User


Joined: 30 May 2008
Posts: 66

PostPosted: Thu Mar 31, 2011 19:58    Post subject: Reply with quote
@Peabody

I see where you were going with that, good idea I can't believe I didn't think of testing it.

Yes, what I typed on the keyboard was output in the putty screen. I am definitely confirmed now that my solder job was good and that the USb TTL device is working properly, as well as all settings are good in putty.

Guess I need to wait for arrival of my jtag cable, looks like a bad cfe. Sad
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Thu Mar 31, 2011 20:57    Post subject: Reply with quote
hmmmm.

if you were getting a few ttl=100 when pinging it during power up, there is nothing wrong with the cfe.

Your serial problems are else where.

1st, disconnect the wires from the pcb. connect the tx wire to the rx wire. You may also have to use a battery to give the ttl adapter power if it is not powered by the usb port.

With tx and rx connected to each other, you key strokes should be echo'd in the terminal. If not, you have a problem with your adapter.

post a pic of what you are using for serial on the pcb.. if memory serves, there are 7 connections in a row, only 5 are used for the serial console (4 actually.. 1 is n/c)

I have some pics posted here somewhere when I was modding my 350 by puting in a 5ghz radio card.

EDIT: found the pics:

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=57231&postdays=0&postorder=asc&start=45

In pic 1819, the serial is the 5 pin header on the right. Connections are from left to right: gnd, n/c, rx, tx, vcc

_________________
[Moderator Deleted] Shocked
xtacydima
DD-WRT User


Joined: 30 May 2008
Posts: 66

PostPosted: Fri Apr 01, 2011 7:17    Post subject: Reply with quote
@barryware

in my prev post I stated that yes, I got a repeat of what I was typing in my putty window off the keyboard, so my usb/serial connection is good. When router boots there is no output though.

I read other posts with people having the same exact unusual problem, I can only think to jtag and try remove nvram and try again in tftp

Worst case is of course a cfe remove and rebuild
xtacydima
DD-WRT User


Joined: 30 May 2008
Posts: 66

PostPosted: Fri Apr 01, 2011 7:30    Post subject: Reply with quote
i used this pic as a reference from how someone else did it


wrt350n_closeup1_lines_thumb.jpg
 Description:
 Filesize:  40.59 KB
 Viewed:  11836 Time(s)

wrt350n_closeup1_lines_thumb.jpg


Peabody
DD-WRT Guru


Joined: 28 Dec 2009
Posts: 1518

PostPosted: Fri Apr 01, 2011 12:09    Post subject: Reply with quote
Try reversing the tx and rx. Tx on the router should go to rx on the adapter.

It won't hurt anything if tx and rx are connected backwards.

_________________
I fix "shortcuts". If you don't have time to read thoroughly, I don't have time to re-type what you missed.
xtacydima
DD-WRT User


Joined: 30 May 2008
Posts: 66

PostPosted: Fri Apr 01, 2011 14:04    Post subject: Reply with quote
@Peabody

finally some progress, switching tx & rx did the trick

I got output in HyperTerminal and hit ctrl+c and was able to interrupt, see output below

I was also able to execute an nvram erase command, but got "command status = 0" - is this normal?





CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Mon Oct 30 23:22:44 CST 2006 (root@linux)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing PCI. [normal]
PCI: Initializing host
PCI: Enabling CardBus
SB PCI init done

0x3c = 0x00000100
PCI bus 0 slot 0/0: vendor 0x14e4 product 0x0800 (flash memory, rev 0x02)
PCI bus 0 slot 1/0: vendor 0x14e4 product 0x471f (ethernet network, rev 0x02)
PCI bus 0 slot 2/0: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x10
, rev 0x02)
PCI bus 0 slot 2/1: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x20
, rev 0x02)
PCI bus 0 slot 3/0: vendor 0x14e4 product 0x471b (USB serial bus, rev 0x02)
PCI bus 0 slot 4/0: vendor 0x14e4 product 0x0804 (PCI bridge, rev 0x02)
PCI bus 0 slot 5/0: vendor 0x14e4 product 0x0816 (MIPS processor, rev 0x02)
PCI bus 0 slot 6/0: vendor 0x14e4 product 0x471d (IDE mass storage, rev 0x02)
PCI bus 0 slot 7/0: vendor 0x14e4 product 0x4718 (network/computing crypto, rev
0x02)
PCI bus 0 slot 8/0: vendor 0x14e4 product 0x080f (RAM memory, rev 0x02)
PCI bus 0 slot 9/0: vendor 0x14e4 product 0x471e (class 0xfe, subclass 0x00, rev
0x02)
PCI bus 1 slot 0/0: vendor 0x14e4 product 0x4785 (host bridge, rev 0x02)
Initializing Devices.

No DPN
This is a Parallel Flash
Partition information:
boot #00 00000000 -> 0003FFFF (262144)
trx #01 00040000 -> 0004001B (2Cool
os #02 0004001C -> 007F7FFF (8093668)
nvram #03 007F8000 -> 007FFFFF (32768)
Partition information:
boot #00 00000000 -> 0003FFFF (262144)
trx #01 00040000 -> 007F7FFF (8093696)
nvram #02 007F8000 -> 007FFFFF (32768)
PCI bus 0 slot 1/0: _pci_map_mem: attempt to map 64-bit region tag =0x800 @ addr
=18010004
PCI bus 0 slot 1/0: _pci_map_mem: addr=0x18010004 pa=0x18010000 pci_mem_spac
e_pci_base=0x40000000 pci_mem_space=0x8000000
mcfg = 000810fe
ge0: BCM5750 Ethernet at 0x18010000
CPU type 0x2901A: 300MHz
Total memory: 32768 KBytes

Total memory used by CFE: 0x80300000 - 0x803A7AB0 (686768)
Initialized Data: 0x8033C900 - 0x8033FCB0 (13232)
BSS Area: 0x8033FCB0 - 0x80341AB0 (7680)
Local Heap: 0x80341AB0 - 0x803A5AB0 (409600)
Stack Area: 0x803A5AB0 - 0x803A7AB0 (8192)
Text (code) segment: 0x80300000 - 0x8033C900 (248064)
Boot area (physical): 0x003A8000 - 0x003E8000
Relocation Factor: I:00000000 - D:00000000

Boot version: ==> v4.2
The boot is CFE

mac_init(): Find mac [00:1D:7E:F9:66:13] in location 0
Update lan mac from [00:88:88:88:00:2a] to [00:1D:7E:F9:66:13]

eou_key_init(): Find key pair in location 4
The eou device id is same
Update eou public key from

to
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ- ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ-
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ- ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ-
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ- ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ-
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ- ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ-
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ- ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ-
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ- ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ-
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ- ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ-
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ- ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ-

Update eou private key from

to
À+3€$,3€,03€ 13€- äÄ3€-
- -
- -
- -
- -
- -
- -
- -

Committing NVRAM...done
Waiting for reset button release...donÿ

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Mon Oct 30 23:22:44 CST 2006 (root@linux)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing PCI. [normal]
PCI: Initializing host
PCI: Enabling CardBus
SB PCI init done

0x3c = 0x00000100
PCI bus 0 slot 0/0: vendor 0x14e4 product 0x0800 (flash memory, rev 0x02)
PCI bus 0 slot 1/0: vendor 0x14e4 product 0x471f (ethernet network, rev 0x02)
PCI bus 0 slot 2/0: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x10
, rev 0x02)
PCI bus 0 slot 2/1: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x20
, rev 0x02)
PCI bus 0 slot 3/0: vendor 0x14e4 product 0x471b (USB serial bus, rev 0x02)
PCI bus 0 slot 4/0: vendor 0x14e4 product 0x0804 (PCI bridge, rev 0x02)
PCI bus 0 slot 5/0: vendor 0x14e4 product 0x0816 (MIPS processor, rev 0x02)
PCI bus 0 slot 6/0: vendor 0x14e4 product 0x471d (IDE mass storage, rev 0x02)
PCI bus 0 slot 7/0: vendor 0x14e4 product 0x4718 (network/computing crypto, rev
0x02)
PCI bus 0 slot 8/0: vendor 0x14e4 product 0x080f (RAM memory, rev 0x02)
PCI bus 0 slot 9/0: vendor 0x14e4 product 0x471e (class 0xfe, subclass 0x00, rev
0x02)
PCI bus 1 slot 0/0: vendor 0x14e4 product 0x4785 (host bridge, rev 0x02)
Initializing Devices.

No DPN
This is a Parallel Flash
Partition information:
boot #00 00000000 -> 0003FFFF (262144)
trx #01 00040000 -> 0004001B (2Cool
os #02 0004001C -> 007F7FFF (8093668)
nvram #03 007F8000 -> 007FFFFF (32768)
Partition information:
boot #00 00000000 -> 0003FFFF (262144)
trx #01 00040000 -> 007F7FFF (8093696)
nvram #02 007F8000 -> 007FFFFF (32768)
PCI bus 0 slot 1/0: _pci_map_mem: attempt to map 64-bit region tag =0x800 @ addr
=18010004
PCI bus 0 slot 1/0: _pci_map_mem: addr=0x18010004 pa=0x18010000 pci_mem_spac
e_pci_base=0x40000000 pci_mem_space=0x8000000
mcfg = 000810fe
ge0: BCM5750 Ethernet at 0x18010000
CPU type 0x2901A: 300MHz
Total memory: 32768 KBytes

Total memory used by CFE: 0x80300000 - 0x803A7AB0 (686768)
Initialized Data: 0x8033C900 - 0x8033FCB0 (13232)
BSS Area: 0x8033FCB0 - 0x80341AB0 (7680)
Local Heap: 0x80341AB0 - 0x803A5AB0 (409600)
Stack Area: 0x803A5AB0 - 0x803A7AB0 (8192)
Text (code) segment: 0x80300000 - 0x8033C900 (248064)
Boot area (physical): 0x003A8000 - 0x003E8000
Relocation Factor: I:00000000 - D:00000000

Boot version: v4.2
The boot is CFE

mac_init(): Find mac [00:1D:7E:F9:66:13] in location 0
Nothing...

eou_key_init(): Find key pair in location 4
The eou device id is same
The eou public key is same
The eou private key is same
CMD: [ifconfig eth0 -addr=192.168.1.1 -mask=255.255.255.0]
bcm5700: no firmware rendevous
eth0: Link speed: 1000BaseT FDX
Device eth0: hwaddr 00-1D-7E-F9-66-13, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
Automatic startup canceled via Ctrl-C
CFE> nvram erase
CMD: [nvram erase]
*** command status = 0
CFE>
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Fri Apr 01, 2011 14:17    Post subject: Reply with quote
yes.. a successful command will return a status of 0..

If erasing nvram still leaves the router bricked, flash the stock linksys firmware for your router, then install dd-wrt again.

static ip on your pc

tftp utility ready to go

at the cfe prompt type:

flash -ctheader : flash1.trx

hit the enter key, launch the tftp utility.

_________________
[Moderator Deleted] Shocked
xtacydima
DD-WRT User


Joined: 30 May 2008
Posts: 66

PostPosted: Fri Apr 01, 2011 14:26    Post subject: Reply with quote
OK I tried and failed but I think my process is screwed up

when I set the static IP, and have the cat5 cable plugged into port 1 (not that it matters which port) I notice that my NIC shows no connection (is this normal, will it appear at the next command issued?)

I issued the command with tftp already started and clicked upgrade but if couldn't connect.
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Fri Apr 01, 2011 14:40    Post subject: Reply with quote
when you stop the boot and are at the cfe prompt, the switch should be active. In other words, the lan light should light.

Sometimes, some routers will not ping at this point even though you would think it should.

If you stopped the boot to soon, the switch may not be initialized. You then need to configure the switch using the ifconfig command(s).

Also.. try a diff port.

What caused this situation in the 1st place? how did the router "brick"?

_________________
[Moderator Deleted] Shocked
xtacydima
DD-WRT User


Joined: 30 May 2008
Posts: 66

PostPosted: Fri Apr 01, 2011 14:51    Post subject: Reply with quote
I tried to switch from dd-wrt to openwrt to play around with it. This is my spare router, but I would like to revive it. I want to get dd-wrt back on, but obviously must debrick it first.

I need to find the ifconfig commands I guess, cause it looks like switch is not initialized at all, I tried every port, no link light.
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Fri Apr 01, 2011 14:55    Post subject: Reply with quote
You could also try to configure your nic as 10/T half-duplex.. sometimes when it's configured as gigabit it isn't detected.
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Fri Apr 01, 2011 14:59    Post subject: Reply with quote
fggs wrote:
You could also try to configure your nic as 10/T half-duplex.. sometimes when it's configured as gigabit it isn't detected.

Bingo

@ xtacydima... You switch is initialized..

Boot version: v4.2
The boot is CFE

mac_init(): Find mac [00:1D:7E:F9:66:13] in location 0
Nothing...

eou_key_init(): Find key pair in location 4
The eou device id is same
The eou public key is same
The eou private key is same
CMD: [ifconfig eth0 -addr=192.168.1.1 -mask=255.255.255.0] <=======
bcm5700: no firmware rendevous
eth0: Link speed: 1000BaseT FDX <========
Device eth0: hwaddr 00-1D-7E-F9-66-13, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
Automatic startup canceled via Ctrl-C
CFE> nvram erase
CMD: [nvram erase]
*** command status = 0
CFE>

_________________
[Moderator Deleted] Shocked
xtacydima
DD-WRT User


Joined: 30 May 2008
Posts: 66

PostPosted: Fri Apr 01, 2011 15:08    Post subject: Reply with quote
I can configure it to 10MB Half which I just did, still no link... errrr

but it does say in the pointed out eth0: Link speed: 1000BaseT FDX so I think it can read gigabyte


Last edited by xtacydima on Fri Apr 01, 2011 15:13; edited 2 times in total
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
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