usbjtagnt on DIR-825 (SPI over Jtag on mips target)

Routers, VOIP devices, etc.
Post Reply
Bad_Ad84
Junior Member
Posts: 80
Joined: Tue Oct 28, 2008 11:39 pm

usbjtagnt on DIR-825 (SPI over Jtag on mips target)

Post by Bad_Ad84 »

Any idea if it would work on this router?

http://wiki.openwrt.org/toh/d-link/dir-825


Jtag is 14 pin and is in the top left of the pics, and with the other routers/modems that support spi via the jtag port, this should work?

Dont have the router yet, but id rather just use the existing jtag port instead of wiring it up directly to the chip if possible
usbbdm
Junior Member
Posts: 8979
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

If JTAG port is enabled (you can detect IDCODE and IMPCODE) then it is possible with existing software or a software modification will let it work. There are several ways of dealing SPI on MIPS core and so far with the known algorithem the NT software already supports them.
Bad_Ad84
Junior Member
Posts: 80
Joined: Tue Oct 28, 2008 11:39 pm

Post by Bad_Ad84 »

I have bought the router, i will test it when it arrives.

I have already created the xml's for both the DIR-825 and the WNDR3700 based on some full flash dumps i found. both are the same cpu and flash, but just use a slightly different layout.
Bad_Ad84
Junior Member
Posts: 80
Joined: Tue Oct 28, 2008 11:39 pm

Post by Bad_Ad84 »

-detect
IDCODE 00000001
Atheros unknown 00000000
IMPCODE 60414000
EJTAG V2.6
DMA not supoorted
Unknown flash type!
Report these values http://www.usbjtag.com/vbforum 91af,8bc8
usbbdm
Junior Member
Posts: 8979
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

Bad_Ad84 wrote:-detect
IDCODE 00000001
Atheros unknown 00000000
IMPCODE 60414000
EJTAG V2.6
DMA not supoorted
Unknown flash type!
Report these values http://www.usbjtag.com/vbforum 91af,8bc8
Which target do you select? That is very important. Also which version of the router it is?
Bad_Ad84
Junior Member
Posts: 80
Joined: Tue Oct 28, 2008 11:39 pm

Post by Bad_Ad84 »

B1

I have tried selecting a few targets from different chip types.

5101 - Broadcom
AW430W - Atheros

Both with similar results and should cover little and big endian
Bad_Ad84
Junior Member
Posts: 80
Joined: Tue Oct 28, 2008 11:39 pm

Post by Bad_Ad84 »

just realised i didnt have the latest software.

tried again with latest, when selecting AW430W i got this once:

IDCODE 00000001
Atheros unknown DEADC0DE
IMPCODE 60414000
EJTAG V2.6
DMA not supoorted
Found Address= 9fc00000 Compatible flash AT49BV/LV16X
-getram 9fc00000 400000

then it went back to same as above
usbbdm
Junior Member
Posts: 8979
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

Bad_Ad84 wrote:just realised i didnt have the latest software.

tried again with latest, when selecting AW430W i got this once:

IDCODE 00000001
Atheros unknown DEADC0DE
IMPCODE 60414000
EJTAG V2.6
DMA not supoorted
Found Address= 9fc00000 Compatible flash AT49BV/LV16X
-getram 9fc00000 400000

then it went back to same as above
This must be the initialization issue. Mostly this is working. Do you know which version of the router it is?
Bad_Ad84
Junior Member
Posts: 80
Joined: Tue Oct 28, 2008 11:39 pm

Post by Bad_Ad84 »

Yes, its B1 which i said above.
Bad_Ad84
Junior Member
Posts: 80
Joined: Tue Oct 28, 2008 11:39 pm

Post by Bad_Ad84 »

PM me if you want me to test something or if you want me to setup a remote desktop session.

I have already done the work I needed to do for this mod: https://forum.openwrt.org/viewtopic.php ... 86#p118886

I used my external programmer to do the required work, however being able to use the usbjtag would be much more convenient.
usbbdm
Junior Member
Posts: 8979
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

Bad_Ad84 wrote:PM me if you want me to test something or if you want me to setup a remote desktop session.

I have already done the work I needed to do for this mod: https://forum.openwrt.org/viewtopic.php ... 86#p118886

I used my external programmer to do the required work, however being able to use the usbjtag would be much more convenient.
I think you might consider use 6M or 3M JTAG clock. If it does not support with the current software, support it should not be a big issue.
Bad_Ad84
Junior Member
Posts: 80
Joined: Tue Oct 28, 2008 11:39 pm

Post by Bad_Ad84 »

changing the clock made no differences.

I think software will need a change to support it
usbbdm
Junior Member
Posts: 8979
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

Bad_Ad84 wrote:changing the clock made no differences.

I think software will need a change to support it
I will lookup the DIR-825 GPL code and see if I can do something to it. I might also need to fix for WRT160NL.
Bad_Ad84
Junior Member
Posts: 80
Joined: Tue Oct 28, 2008 11:39 pm

Post by Bad_Ad84 »

The WNDR3700 is pretty much the same router too (like 5101 vs webstar or ambit) so if you need support for the DIR-825 it should work with the WNDR3700 too
usbbdm
Junior Member
Posts: 8979
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

I found the source code for WRT160NL and DIR-825. I will start add support to the code first then I might need to ask to test remotely with the test app. If this works well then no need to get a router in hand.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests