WRT310N recovery.

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


Joined: 29 Jul 2009
Posts: 6

PostPosted: Fri Jul 31, 2009 4:17    Post subject: Reply with quote
HardReset wrote:
ggunawan wrote:
@HardReset: do you mean my computer IP? I have set fixed to 192.168.1.2,

by the way, I'm trying to backup the CFE,KERNEL by using : jtag -backup:cfe /fc:19 /noreset
but the process show "fffffff fffffff fffffff" for each block, this happen both CFE and Kernel. is that mean that the CFE is blank? how to program it? I never use command jtag -erase:cfe ..


Yep.. cfe is blank assuming your jtag setup is working.. I wonder how that happened Confused

Sorry about being vague with the static thing.. The first thing to do is ping the router after eraseing nvram & kernel. If the cfe is good, the router will respond. It is common for a user to forget to set a static IP in the rig. I do it all the time (forget).

Except for the flashchip being forced, your jtag setup see's the processor right.

If you cfe backup is all ff's, then you need to flash a cfe 1st.



@hardreset:,
thank you for your explanation, you are correct my CFE seems blank, I don't know either what could be happen, but now I have done with flashing CFE and now my router are responding, I just downloaded from this thread http://www.dd-wrt.com/phpBB2/viewtopic.php?t=25971&postdays=0&postorder=asc&start=120 .

I have 2 firmware, 1st firmware is Linksys 310N downloaded from somewhere (I forgot for the web address), and 2nd firmware is DD-WRT taken from this thread.

programming kernel by using TFTP.
when loading Linksys kernel, my router seems back to normal, web access are available with password protected, ping respond is normal.

then I try to erase the kernel and NVRAM and program it with DD-WRT firmware.

After sucessfull loading DD-WRT firmware, I'm doing 30/30/30 hardreset, after that the ping is unstable the Power LED blingking and the WIFI LED is lit. the ping respond still unstable, I cann't access to the web pages or telnet.

is there any problem with the DD-WRT firmware?

JTAG is working fine.
Sponsor
redhawk0
DD-WRT Guru


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

PostPosted: Sat Aug 01, 2009 13:19    Post subject: Reply with quote
Are you using a FW build that has 310N.bin in the name. It is required for the first flash, otherwise you will see what you describe.

redhawk

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


Joined: 29 Jul 2009
Posts: 6

PostPosted: Mon Aug 03, 2009 4:53    Post subject: Reply with quote
redhawk0 wrote:
Are you using a FW build that has 310N.bin in the name. It is required for the first flash, otherwise you will see what you describe.

redhawk


Yes, the file has that name.
by the way, I just captured the serial output from the chips and got the result below, and this is how the POWER LED is always blinking, the router is always reboot caused by BUS Error when loading the kernel program, seems like flash storage problem when doing TFTP or RAM Problem when loading the firmware.

Quote:

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Thu Jan 3 14:20:25 CST 2008 (root@linux)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing PCI. [normal]
PCI: Initializing host
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)
Initializing Devices.

No DPN
This is a Parallel Flash
Boot partition size = 262144(0x40000)
Partition information:
boot #00 00000000 -> 0003FFFF (262144)
trx #01 00040000 -> 0004001B (2Cool
os #02 0004001C -> 003F7FFF (3899364)
nvram #03 003F8000 -> 003FFFFF (32768)
Partition information:
boot #00 00000000 -> 0003FFFF (262144)
trx #01 00040000 -> 003F7FFF (3899392)
nvram #02 003F8000 -> 003FFFFF (32768)
Reset switch via GPIO 8 ...
PCI bus 0 slot 1/0: pci_map_mem: attempt to map 64-bit region tag=0x800 @ addr=1
8010004
PCI bus 0 slot 1/0: pci_map_mem: addr=0x18010004 pa=0x18010000
ge0: BCM5750 Ethernet at 0x18010000
CPU type 0x2901A: 300MHz
Total memory: 32768 KBytes

Total memory used by CFE: 0x80700000 - 0x807A2600 (665088)
Initialized Data: 0x80737980 - 0x8073A880 (12032)
BSS Area: 0x8073A880 - 0x8073C600 (7552)
Local Heap: 0x8073C600 - 0x807A0600 (409600)
Stack Area: 0x807A0600 - 0x807A2600 (8192)
Text (code) segment: 0x80700000 - 0x80737980 (227712)
Boot area (physical): 0x007A3000 - 0x007E3000
Relocation Factor: I:00000000 - D:00000000

Boot version: v4.7
The boot is CFE
mac_init(): Find mac [00:21:29:8d:df:3f] in location 1
Nothing...
CMD: [ifconfig eth0 -addr=192.168.1.1 -mask=255.255.255.0]
eth0: Link speed: 1000BaseT FDX
Device eth0: hwaddr 00-21-29-8D-DF-3F, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
CMD: [go;]
Check CRC of image1
Len: 0x2F0000 (3080192) (0xBC040000)
Offset0: 0x1C (2Cool (0xBC04001C)
Offset1: 0x9A8 (2472) (0xBC0409A8)
Offset2: 0xE3400 (930816) (0xBC123400)
Header CRC: 0xD5B48B9F
Calculate CRC: 0xD5B48B9F
Image 1 is OK
Try to load image 1.
Waiting for 5 seconds to upgrade ...
CMD: [load -raw -addr=0x807a2600 -max=0x770000 :]
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: _tftpd_open(): retries=0/5
_tftpd_open(): retries=1/5
_tftpd_open(): retries=2/5
_tftpd_open(): retries=3/5
Failed.
Could not load :: Timeout occured
CMD: [boot -raw -z -addr=0x80001000 -max=0x770000 flash0.os:]
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3856 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
CPU ProcId is: 0x0002901a, options: 0x0000004d
Linux version 2.4.37 (root@dd-wrt) (gcc version 3.4.6 (OpenWrt-2.0)) #6119 Tue J
ul 21 02:12:19 CEST 2009
Setting the PFC to its default value
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd cons
ole=ttyS0,115200
CPU: BCM4785 rev 2 at 300 MHz
Using 150.000 MHz high precision timer.
Calibrating delay loop... 299.82 BogoMIPS
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for 'wait' instruction... unavailable.
POSIX conformance testing by UNIFIX
PCI: Initializing host
PCI: Ignoring BAR0-1 of IDE controller 00:06.0
PCI: Fixing up bus 0
PCI: Fixing up bridge
PCI: Setting latency timer of device 01:00.0 to 64
PCI: Fixing up bus 1
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-0Cool with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
ttyS00 at 0xb8000300 (irq = 2) is a 16550A
ttyS01 at 0xb8000400 (irq = 2) is a 16550A
PCI: Setting latency timer of device 01:01.0 to 64
PCI: Enabling device 01:01.0 (0004 -> 0006)
Data bus error, epc == 8021f2a4, ra == 802207e8
Oops in traps.c::do_be, line 394:
$0 : 00000000 1000fc00 00000000 8107aa00 8107aa00 c0001000 00000000 8107aa00
$8 : 8107aa00 00000000 00000040 00000001 81079cc7 fffffffb ffffffff 0000000a
$16: 00000000 00000001 c0001000 8107a800 8107aa00 8035c00c 8035c6f0 80334420
$24: 00000000 81079b99 81078000 81079c38 00000000 802207e8
Hi : 00000000
Lo : 00000a00
epc : 8021f2a4 Not tainted
Status: 1000fc03
Cause : 0000001c
PrId : 0002901a
Process swapper (pid: 1, stackpage=81078000)
Stack: 0000080d 00000001 c0000000 00000001 c0000000 802207e8 81079cc0
8107a800 00000000 00000000 00000040 00000001 0000080d 00000001 80208edc
18000000 81079cc0 8107a800 00000000 00000000 8021aa28 8021a998 8107a800
00000010 81079cc0 00000000 2f696370 2f312f31 00773062 00000820 0000080d
802166d8 8107a800 c0000000 8107a814 00000005 8107a800 c0000000 00000804
00000820 ...
Call Trace: [<802207e8>] [<80208edc>] [<8021aa28>] [<8021a998>] [<802166d8>]
[<8021ae44>] [<8021b83c>] [<800fd1d4>] [<800b5cf4>] [<8001d6d0>] [<800238c4>]
[<8002ecc8>] [<80004000>] [<8000bfb8>] [<80221334>] [<80004000>] [<801012f0>]
[<802219fc>] [<8022262c>] [<80289c6b>] [<80134550>] [<802227f0>] [<80101558>]
[<80135148>] [<80135248>] [<8013525c>] [<801351c0>] [<80001964>] [<80001964>]
[<80001914>] [<800039e4>] [<80012960>] [<80060118>] [<800039d4>]

Code: 00061040 00452821 00e04021 <94a20000> 25290001 012a182b a5020000 24a5
0002 1460fffa
Kernel panic: Attempted to kill init!
<0>Rebooting in 5 seconds..
Valis
DD-WRT Novice


Joined: 19 Jan 2009
Posts: 22

PostPosted: Tue Aug 04, 2009 18:16    Post subject: Reply with quote
redhawk, I'm guessing this thread (original post) is for recovery of a corrupt kernel?
_________________
E2500 v1, DD-WRT v24-sp2 (07/06/12) std-usb-nas (SVN revision 19453)
WRT310N v1, DD-WRT v24-sp2 (09/18/10) std-nokaid (15230M NEWD Eko)
Eko
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 5771

PostPosted: Fri Dec 04, 2009 10:41    Post subject: Reply with quote
Note. Cfe has 2 diff commands that are executed for tftp upgrade (boot wait). Both will take tftp transfer of file with right header, but only 1 will really flash the router.

To enter "real" upgrade mode, you must first press the reset button, keep it pressed and then plug in power. Observe ping response and start tftp.
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Wed Mar 03, 2010 16:54    Post subject: Reply with quote
JB1 = JTAG
Serial is on the bottom of board

anybody know what JP1 is?

_________________
The New Me
gobbledigook
DD-WRT Guru


Joined: 06 Apr 2009
Posts: 727

PostPosted: Wed Mar 03, 2010 17:30    Post subject: Reply with quote
Hey!

great work redhawk0 Smile i have a 600n and am interested in this cisco console cable, when i was de-bricking mine last year someone mentioned it but i couldn't work out how it works?

do you need to put an rs232 chip inbetween? or is it simply plug and off you go??
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Thu Mar 04, 2010 1:20    Post subject: Reply with quote
Just recovered one of these bad boys via serial (the following also works on a Asus RT-N16)

**Modified Redhawk0 instructions**

1. Connect Serial cable
2. start a rapid fire Cntl-C as you plug the router to power
1. nvram erase
2. flash -noheader : flash1.trx
3. but have tftp.exe ready
4. flash -noheader : flash1.trx starts the tftp daemon
5. Use Readhawk0's dd-wrt.v24_mini_wrt310N.bin
6. give it 5 minutes after it finishes
7. then power cycle....hard reset...then config
8. when it stops spitting out txt....hit the enter key...you should get a login prompt...at that point, power cycle it, hard reset...then config
9. you'll see it boot up

_________________
The New Me
Joe Sixpack
DD-WRT Novice


Joined: 14 May 2015
Posts: 36

PostPosted: Thu May 14, 2015 1:44    Post subject: Reply with quote
Hey guys/gals
I know this is a old thread but It seems to be exactly what im looking for.

Can someone give me a pinout and give me a run down of their setup?

I picked up a wrt310n v1 at a junk store for $3.50 Razz
I then brought it home and promptly broke it.

I wanted to load tomato shibby on it, I got it to take tomato-ND-1.28.5x-124-VPN ok, but the virtual wireless is very buggy to the point of basicly not working so I then tried to load up a K26 build tomato-K26-1.28.RT-MIPSR1-107-MiniVPN (only vpn k26 I could find that would fit)

But it soft bricked, infact even though shibby's site says this router will take a k26 build none of them worked, even though tomatoanon says there are units out there running k26 builds.

anyway in the course of me testing various firmwares I accidentally flashed a MIPSR2 build via the WebUI.

So now it's hard bricked, power just keeps flashing, no ping, no tftp.

It's a old router, I only have 3.50 in it but I'd hate to junk it and also I feel like I need to fix it.

I need a bit of help getting start with Jtag though.
Years back I re-flashed a dead motherboard with a hobbled together printer cable and recovered resisters, the flash chip used SPI.

So this seems similar but a lot complicated.
I need pinouts and setup advice, Im gonna probably just buy a cable off ebay.

I already bought a security bit set from harbor freight (damn you linksys).

I've see 3 connectors on the board.
JP3, 12pin, thru-hole
JB1, 6pin top/bottom, top marked 11 - 1, bottom 15 - 5.
JB2, 5pin, bottom, 5 - 1

based on the pictures I guess JB1 is JTAG?
And JB2 is serial.. I assume we're talking rs232 for console? not SPI?
JP3 Is unknown?

DHC mentioned flashing via serial? little confused on the procedure of that, but will that still work even in my situation with a bad kernel?
going in via serial would be easier I'd think, less wires.

If I go jtag route is serial still necessary? you can see status via jtag right? Im just looking to de-brick this thing.. If I get it running again Im just gonna load up k24 build that I know works (-V-AP) and be happy.

Any advice you guys can give on how to get started with this I'd appreciate, I've been trying to read up on Jtag, seems like there is a lot of variance in it's pinouts and such.

Would either of these be suitable
http://www.ebay.com/itm/111656464940
http://www.ebay.com/itm/261671536836

Also with Jtag would I want to power the unit up normally or do you supply power to teh jtag interface? I know when I reprogrammed that mobo flash ship with spi I had to supply it with 3.3v (mobo off)


any advice much appreciated.
Murrkf
DD-WRT Guru


Joined: 22 Sep 2008
Posts: 12675

PostPosted: Thu May 14, 2015 2:44    Post subject: Reply with quote
See the peacock announcement note 6 and all relevant links in it.
_________________
SIG:
I'm trying to teach you to fish, not give you a fish. If you just want a fish, wait for a fisherman who hands them out. I'm more of a fishing instructor.
LOM: "If you show that you have not bothered to read the forum announcements or to follow the advices in them then the level of help available for you will drop substantially, also known as Murrkf's law.."
Joe Sixpack
DD-WRT Novice


Joined: 14 May 2015
Posts: 36

PostPosted: Thu May 14, 2015 20:14    Post subject: Reply with quote
Murrkf wrote:
See the peacock announcement note 6 and all relevant links in it.

OK Im fairly certain it is hard bricked.

Seems like serial is the way to go for a reflash.. assuming the bootloader is intact.
Cheaper, less complex, and less work.

The question is what are the odds my bootloader is intact?
I can not get a ping out of it, is it possible I'd be able to flash over serial? I read the bootloader is usually protected from bad firmware flashes, but I also read the boot loader is responsible for recovery when flashing over TFTP.. which is no longer working.

So is it possible that it will no longer offer ping responses or TFTP but still accessible via serial?

Should I try the serial route or go for the more complicated Jtag flash?

I cruised ebay and found some cheap USB -> TTL boards.
The PL2303 is well known but apparently problematic and wonky drivers.
http://www.ebay.com/itm/331529699010

CP2102 has a good rep. from what I can tell
http://www.ebay.com/itm/111647855546

Im currently leaning towards this ch340g board
http://www.ebay.com/itm/271751638102
It has extra pins for CTS,DTR, and switch selectable 5/3.3v VCC, although neither of those things should be needed for my purpose it seems like a nicer board then the other 2, and also I read it's become a popular chip for Arduino.

Any suggestions?
Only thing is coming from china.. could be up to a 6week wait, that kinda sucks but I don't urgently need the router, I just wanna fix it.
Murrkf
DD-WRT Guru


Joined: 22 Sep 2008
Posts: 12675

PostPosted: Fri May 15, 2015 16:15    Post subject: Reply with quote
Unless you issued some heavy duty commands it is likely your cfe is intact and serial will work, even though you are not getting responses through the lan cable.
_________________
SIG:
I'm trying to teach you to fish, not give you a fish. If you just want a fish, wait for a fisherman who hands them out. I'm more of a fishing instructor.
LOM: "If you show that you have not bothered to read the forum announcements or to follow the advices in them then the level of help available for you will drop substantially, also known as Murrkf's law.."
Joe Sixpack
DD-WRT Novice


Joined: 14 May 2015
Posts: 36

PostPosted: Fri May 15, 2015 17:29    Post subject: Reply with quote
Murrkf wrote:
Unless you issued some heavy duty commands it is likely your cfe is intact and serial will work, even though you are not getting responses through the lan cable.


I didn't, This final brick happened via webUI flash/upgrade coming from: 2.4Kernel build of tomato "tomato-ND-1.28.5x-124-VPN" to a 2.6 Kernel build for MIPSr2
So not sure what procedure it does, Im assuming it doesn't touch the CFE, If I had to guess it's in some sort of boot loop since I accidentally flashed a MIPS R2 build instead of R1. Although I never got any of the Shiby K26 R1 builds working either, but at least I could recover from them with TFTP.

I went ahead and ordered the ch340g serial board.
Im thinking about getting a jtag cable just as a backup in case serial doesn't work, can probably use it later down the road.

Do you know if the Altera USB Blaster clones work for this purpose? OR should I stick with a LPT Cable?

I've got a laptop with printer port but they're becoming extinct so USB is more accessable.
Joe Sixpack
DD-WRT Novice


Joined: 14 May 2015
Posts: 36

PostPosted: Sat May 23, 2015 23:50    Post subject: Reply with quote
It lives!

CPE was intact the USB/Serial board came today (pretty fast from china) Worked like a dream.

My router must be a bit older, the CPE was dated nov 07, I noticed log that was posted earlier in the thread had a date of Jan 08

Quote:
CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Wed Nov 28 17:23:03 CST 2007 (root@linux)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.


Anyone else notice the router claims it has IDE and USB? has anyone explored either of those options?

could USB be on JP3? or is the router lying?

Can anyone tell me the correct newest dd-wrt build with VPN support to load on to this?

Only one I know that works is the mini one posted in this thread and it's from 2010.

I'd like to get a firmware running that can handle virtual AP, tomato shibby k24builds choke with VAP.

The MIPSr1 k26 builds Im thinking have driver issues or something with the serial console up I could see it was having trouble with et1 (lan) eth0 wifi was recognized but never comes up either.

So Im hoping I can find a DD-WRT build that can property handle VAP and VPN.
Murrkf
DD-WRT Guru


Joined: 22 Sep 2008
Posts: 12675

PostPosted: Sun May 24, 2015 12:25    Post subject: Reply with quote
Now read the rest of the peacock announcement. Any further questions should be in a new thread, not this necroed recovery thread.
_________________
SIG:
I'm trying to teach you to fish, not give you a fish. If you just want a fish, wait for a fisherman who hands them out. I'm more of a fishing instructor.
LOM: "If you show that you have not bothered to read the forum announcements or to follow the advices in them then the level of help available for you will drop substantially, also known as Murrkf's law.."
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