wrt55agv2

Routers, VOIP devices, etc.
Post Reply
merkin
Junior Member
Posts: 246
Joined: Thu Jun 28, 2007 8:49 pm

wrt55agv2

Post by merkin »

Cannot detect flash on this target. This flash is already defined in the flash.xml
CPU: Atheros AR5312a mips ejtag
Flash: MX29LV320B

USB JTAG NT 0.57
Target: WRT55AGv2
-detect
IDCODE 00000001
Atheros
IMPCODE 40404000
EJTAG V1, V2.0
DMA not supoorted
Unknown flash type!
Report these values http://www.usbjtag.com/vbforum 1000,014f[\quote]
(should get 0xC2 0x22A8 according to datasheet)

Test name : WRT55AGv2
Test DLL :
IRLength : 5
Endian : Big
CFE Flash=unknown
<Test>
<Name>WRT55AGv2</Name>
<Cat>Router</Cat>
<Protocol>EJTAG</Protocol>
<Endian>Big</Endian>
<IRLength>5</IRLength>
<DMA>No</DMA>
<ProbTrap>1</ProbTrap>
<Programram>0x80100000</Programram>
<Memorys>
<Memory>
<Name>Ram</Name>
<Type>0</Type>
<Address>0x80000000</Address>
<Size>0x400000</Size>
</Memory>
<Memory>
<Name>CFE</Name>
<Type>1</Type>
<Address>0x1FC00000</Address>
<Size>0x400000</Size>
</Memory>
</Memorys>
</Test>

http://www.dd-wrt.com/phpBB2/viewtopic. ... &start=465

https://dev.openwrt.org/browser/tags/ka ... h?rev=7871

Any ideas?
merkin
Junior Member
Posts: 246
Joined: Thu Jun 28, 2007 8:49 pm

Post by merkin »

@usbbdm
There seems to be no reason USBJTAGNT cannot detect flash?
Working fine with tjtag and dlc5 cable.

Image
CAPONE
Junior Member
Posts: 5011
Joined: Sat Dec 27, 2008 3:25 pm

Post by CAPONE »

merkin wrote:@usbbdm
There seems to be no reason USBJTAGNT cannot detect flash?
Working fine with tjtag and dlc5 cable.

Image
Looks like you have all the information needed to create an XML for that Target.
"If you give a man a fish you feed him for a day. If you teach a man to fish you feed him for a lifetime."
usbbdm
Junior Member
Posts: 8973
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

merkin wrote:@usbbdm
There seems to be no reason USBJTAGNT cannot detect flash?
Working fine with tjtag and dlc5 cable.
Could be one of the two reason.
1. The XML file is not right.
2. Small adjustment of software needed for the CPU. Not the flash

So far it is not cleared to me which is the case. I need to do some study before I can not
say for sure. Which XML template you copied from?
Can you try one of the two?
1.enter debug on mode and detect again.
2.enter trap on mode and try again.
3. Try lower JTAG clock.

from your tjtag experience, looks there is a init sequence needed for XML.
usbbdm
Junior Member
Posts: 8973
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

merkin wrote:Cannot detect flash on this target. This flash is already defined in the flash.xml
CPU: Atheros AR5312a mips ejtag
Flash: MX29LV320B

USB JTAG NT 0.57
Target: WRT55AGv2
-detect
IDCODE 00000001
Atheros
IMPCODE 40404000
EJTAG V1, V2.0
DMA not supoorted
Unknown flash type!
Report these values http://www.usbjtag.com/vbforum 1000,014f[\quote]
(should get 0xC2 0x22A8 according to datasheet)

Test name : WRT55AGv2
Test DLL :
IRLength : 5
Endian : Big
CFE Flash=unknown
<Test>
<Name>WRT55AGv2</Name>
<Cat>Router</Cat>
<Protocol>EJTAG</Protocol>
<Endian>Big</Endian>
<IRLength>5</IRLength>
<DMA>No</DMA>
<ProbTrap>1</ProbTrap>
<Programram>0x80100000</Programram>
<Memorys>
<Memory>
<Name>Ram</Name>
<Type>0</Type>
<Address>0x80000000</Address>
<Size>0x400000</Size>
</Memory>
<Memory>
<Name>CFE</Name>
<Type>1</Type>
<Address>0x1FC00000</Address>
<Size>0x400000</Size>
</Memory>
</Memorys>
</Test>

http://www.dd-wrt.com/phpBB2/viewtopic. ... &start=465

https://dev.openwrt.org/browser/tags/ka ... h?rev=7871

Any ideas?
If you want I can take a look remotely tonight and see if we can fix it that way.
merkin
Junior Member
Posts: 246
Joined: Thu Jun 28, 2007 8:49 pm

Post by merkin »

Sure I will meet you in chat tonight...what time?

I already tried "debug on", "trap on" and "fullpracc 1" modes and slower speed before I ask for help. Nothing detects flash.

It must be memory init in the target xml. I made the target xml myself, but I do not know how to add correct inits. Perhaps you can show example for everyone to learn.
Here is tjtag source http://sourceforge.net/projects/tjtag/f ... 0.2-Final/
usbbdm
Junior Member
Posts: 8973
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

merkin wrote:Sure I will meet you in chat tonight...what time?

I already tried "debug on", "trap on" and "fullpracc 1" modes and slower speed before I ask for help. Nothing detects flash.

It must be memory init in the target xml. I made the target xml myself, but I do not know how to add correct inits. Perhaps you can show example for everyone to learn.
Here is tjtag source http://sourceforge.net/projects/tjtag/f ... 0.2-Final/
No that is not source code.
merkin
Junior Member
Posts: 246
Joined: Thu Jun 28, 2007 8:49 pm

Post by merkin »

Source is included in this "tjtag" version
http://sourceforge.net/projects/tjtag/f ... urce=files

Also this "zjtag" includes source (same author as tjtag)
http://sourceforge.net/projects/zjtag/? ... ecommended

But I think openwrt firmware has good documentation for ar5312.
https://dev.openwrt.org/browser/tags/ka ... order=name

Apparently you were already offered donation with this cpu.
viewtopic.php?t=6345

Here are two interesting posts about inits for other apps
http://www.dd-wrt.com/phpBB2/viewtopic. ... 86c07c56f8

http://sourceforge.net/mailarchive/foru ... evelopment

Do you still want to try teamviewer?
usbbdm
Junior Member
Posts: 8973
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

Why not open AR430W and copy these lines?
<Inits>
<Init>
<Address>0xBC003000</Address>
<Value>0xFFFFFFFF</Value>
</Init>
<Init>
<Address>0xBC003008</Address>
<Value>0x0</Value>
</Init>
<Init>
<Address>0xBC004000</Address>
<Value>0x05551212</Value>
</Init>
<Init>
<Address>0xB8400000</Address>
<Value>0x100E3CE1</Value>
</Init>
</Inits>
merkin
Junior Member
Posts: 246
Joined: Thu Jun 28, 2007 8:49 pm

Post by merkin »

Thank you Sir.
-DETECT
IDCODE 00000001
Atheros
IMPCODE 40404000
EJTAG V1, V2.0
DMA not supoorted
Found Address= 1fc00000 CFI MX29LV320B
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests