How do you JTAG the WNR854T router?
-
- Junior Member
- Posts: 87
- Joined: Fri Jul 20, 2012 11:34 am
- Location: Ohio
- Contact:
I meant that I'd boundary scan with the unit XML. This is for the flash. However, unless I add those IDs to a new flash in the XML, I get unknown flash IDs.
Code: Select all
<Test>
<Name>WNR854T</Name>
<Cat>Router</Cat>
<Protocol>ARM7</Protocol>
<SubProtocol>ARM926</SubProtocol>
<Endian>Little</Endian>
<IRLength>4</IRLength>
<Programram>0x7FFFFF</Programram>
<Memorys>
<Memory>
<Name>Image0</Name>
<Type>1</Type>
<Address>0x0</Address>
<Size>0x7FFFFF</Size>
</Memory>
</Memorys>
</Test>
-
- Junior Member
- Posts: 87
- Joined: Fri Jul 20, 2012 11:34 am
- Location: Ohio
- Contact:
I copied it from the thread instead of my XML. My XML says this:
Code: Select all
<Test>
<Name>WNR854T</Name>
<Cat>Router</Cat>
<Protocol>ARM9</Protocol>
<SubProtocol>ARM926</SubProtocol>
<Endian>Little</Endian>
<IRLength>4</IRLength>
<Programram>0x2000000</Programram>
<Memorys>
<Memory>
<Name>Image0</Name>
<Type>1</Type>
<Address>0x40000</Address>
<Size>0x800000</Size>
</Memory>
</Memorys>
</Test>
-
- Junior Member
- Posts: 246
- Joined: Thu Jun 28, 2007 8:49 pm
look here
http://www.wdscript.fr/index.php?q=english/node/106
Try this xml to backup whole flash
Do not edit flash.xml. You do not understand.
http://www.wdscript.fr/index.php?q=english/node/106
physmap platform flash device: 00800000 at f4000000
Creating 4 MTD partitions on "physmap-flash.0":
[ 19.082148] 0x000000000000-0x000000100000 : "kernel"
[ 19.089683] 0x000000100000-0x000000760000 : "rootfs"
[ 19.097267] mtd: partition "rootfs" set to be root filesystem
[ 19.103045] mtd: partition "rootfs_data" created automatically, ofs=2E0000, len=480000
[ 19.111100] 0x0000002e0000-0x000000760000 : "rootfs_data"
[ 19.119053] 0x000000760000-0x0000007a0000 : "uboot"
[ 19.126592] 0x000000000000-0x000000760000 : "image"
Where did you find "program ram" address in your xml?physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x000017
Try this xml to backup whole flash
And make sure CFI is ENABLED.<Test>
<Name>WNR854T</Name>
<Cat>Router</Cat>
<IRLength>4</IRLength>
<Protocol>ARM9</Protocol>
<SubProtocol>ARM946</SubProtocol>
<Endian>Little</Endian>
<Programram>0xd0000100</Programram>
<Memorys>
<Memory>
<Name>whole flash</Name>
<Type>1</Type>
<Address>0xf4000000</Address>
<Size>0x800000</Size>
</Memory>
</Memorys>
</Test>
Do not edit flash.xml. You do not understand.
-
- Junior Member
- Posts: 8974
- Joined: Mon Jul 18, 2005 9:33 pm
merkin wrote:look here
http://www.wdscript.fr/index.php?q=english/node/106
Where did you find "program ram" address in your xml?
Try this xml to backup whole flash
And make sure CFI is ENABLED.
Do not edit flash.xml. You do not understand.
Good point. This will most likely to work.
-
- Junior Member
- Posts: 87
- Joined: Fri Jul 20, 2012 11:34 am
- Location: Ohio
- Contact:
Its ARM 926 not ARM 946 says Open WRT. You're right that I don't know how to find the memory addresses. That's why I keep asking someone to teach me, but that part wasn't ever taught to me. How do you activate CFI? Instead of giving the commands usage when I type CFI, it just goes into the console, so I have no idea how to use many of the commands in the list.
Here's what's in the XML for the unit.
Here's what's in the XML for the unit.
Code: Select all
<Test>
<Name>WNR854T</Name>
<Cat>Router</Cat>
<IRLength>4</IRLength>
<Protocol>ARM9</Protocol>
<SubProtocol>ARM926</SubProtocol>
<Endian>Little</Endian>
<Programram>0xd0000100</Programram>
<Memorys>
<Memory>
<Name>whole flash</Name>
<Type>1</Type>
<Address>0xf4000000</Address>
<Size>0x800000</Size>
</Memory>
</Memorys>
</Test>
-
- Junior Member
- Posts: 8974
- Joined: Mon Jul 18, 2005 9:33 pm
You need to study the target. Like merkin had done, search the internet or get it from the boot console. Each target has different memory configuration. There is no "for all" method to find memory map.LightworkerNaven wrote:Its ARM 926 not ARM 946 says Open WRT. You're right that I don't know how to find the memory addresses. That's why I keep asking someone to teach me, but that part wasn't ever taught to me. How do you activate CFI? Instead of giving the commands usage when I type CFI, it just goes into the console, so I have no idea how to use many of the commands in the list.
Here's what's in the XML for the unit.
Code: Select all
<Test> <Name>WNR854T</Name> <Cat>Router</Cat> <IRLength>4</IRLength> <Protocol>ARM9</Protocol> <SubProtocol>ARM926</SubProtocol> <Endian>Little</Endian> <Programram>0xd0000100</Programram> <Memorys> <Memory> <Name>whole flash</Name> <Type>1</Type> <Address>0xf4000000</Address> <Size>0x800000</Size> </Memory> </Memorys> </Test>
-
- Junior Member
- Posts: 87
- Joined: Fri Jul 20, 2012 11:34 am
- Location: Ohio
- Contact:
OK so I did that and this is what it says.
My XML hasn't changed since the last time I posted it with Merkin's updates.
Also, before I update it, would this be the correct partitioning of the flash? I translated it from Merkin's first post.
Code: Select all
Copyright (C) 2010,2011,2012
USB JTAG NT 0.57
Target: WNR854T
-cfi 1
-detect
IDCODE 07926041
STi (ARM926)
Unknown flash type!
Report these values http://www.usbjtag.com/vbforum 0aaa,0004
-flshdct whole flash
Unknown flash type!
Report these values http://www.usbjtag.com/vbforum 0aaa,0004
Also, before I update it, would this be the correct partitioning of the flash? I translated it from Merkin's first post.
Code: Select all
<Test>
<Name>WNR854T</Name>
<Cat>Router</Cat>
<IRLength>4</IRLength>
<Protocol>ARM9</Protocol>
<SubProtocol>ARM926</SubProtocol>
<Endian>Little</Endian>
<Programram>0xd0000100</Programram>
<Memorys>
<Memory>
<Name>Kernal</Name>
<Type>1</Type>
<Address>0xf4000000</Address>
<Size>0x100000</Size>
</Memory>
<Memory>
<Name>Root FS</Name>
<Type>1</Type>
<Address>0xf4100000</Address>
<Size>0x660000</Size>
</Memory>
<Memory>
<Name>Root FS Data</Name>
<Type>1</Type>
<Address>0xf42e0000</Address>
<Size>0x480000</Size>
</Memory>
<Memory>
<Name>uBoot</Name>
<Type>1</Type>
<Address>0xf4760000</Address>
<Size>0x400000</Size>
</Memory>
<Memory>
<Name>Image0</Name>
<Type>1</Type>
<Address>0xf4000000</Address>
<Size>0x760000</Size>
</Memory>
<Memory>
<Name>All Flash</Name>
<Type>1</Type>
<Address>0xf4000000</Address>
<Size>0x800000</Size>
</Memory>
</Memorys>
</Test>
-
- Junior Member
- Posts: 8974
- Joined: Mon Jul 18, 2005 9:33 pm
I think you need to read the manual (pdf).
What is "flshdct whole flash"? Where does command come from?
If you do not know where the memory map is, find it some where like (openwrt) forum.
I do not own the router so I cannot say where is the right memory map. I do not that "flshdct whole flash" makes no sense to me.
Merkin's XML has some issue. There should not be any space in the tab name. It is impossible to search the memory by tab if the tab name has space in there.
So <Name>Root FS</Name> should be <Name>RootFS</Name>.
If you think 0xf4000000 is the flash you can use command
"flshdct f4000000" (Again this can be found in the user manual).
What is "flshdct whole flash"? Where does command come from?
If you do not know where the memory map is, find it some where like (openwrt) forum.
I do not own the router so I cannot say where is the right memory map. I do not that "flshdct whole flash" makes no sense to me.
Merkin's XML has some issue. There should not be any space in the tab name. It is impossible to search the memory by tab if the tab name has space in there.
So <Name>Root FS</Name> should be <Name>RootFS</Name>.
If you think 0xf4000000 is the flash you can use command
"flshdct f4000000" (Again this can be found in the user manual).
-
- Junior Member
- Posts: 87
- Joined: Fri Jul 20, 2012 11:34 am
- Location: Ohio
- Contact:
OK, let's tackle one thing at a time. First let's get it to recognize the flash chip before we find memory addresses further. I need to get past this bit.
This is the full output:
Also, its a Marvell chip, not STi, so something is really off. Marvell made the proc.
Code: Select all
IDCODE 07926041
STi (ARM926)
Unknown flash type!
Report these values http://www.usbjtag.com/vbforum 0aaa,0004
Code: Select all
Copyright (C) 2010,2011,2012
USB JTAG NT 0.57
Target: WNR854T
-cfi 1
-detect
IDCODE 07926041
STi (ARM926)
Unknown flash type!
Report these values http://www.usbjtag.com/vbforum 0aaa,0004
-flshdct f4000000
Unknown flash type!
Report these values http://www.usbjtag.com/vbforum 0aaa,0004
-
- Junior Member
- Posts: 8974
- Joined: Mon Jul 18, 2005 9:33 pm
The Detect Sti is not is the software. It is defined in Vender.xml. Again you need to define it properly.LightworkerNaven wrote:OK, let's tackle one thing at a time. First let's get it to recognize the flash chip before we find memory addresses further. I need to get past this bit.
This is the full output:Code: Select all
IDCODE 07926041 STi (ARM926) Unknown flash type! Report these values http://www.usbjtag.com/vbforum 0aaa,0004
Also, its a Marvell chip, not STi, so something is really off. Marvell made the proc.Code: Select all
Copyright (C) 2010,2011,2012 USB JTAG NT 0.57 Target: WNR854T -cfi 1 -detect IDCODE 07926041 STi (ARM926) Unknown flash type! Report these values http://www.usbjtag.com/vbforum 0aaa,0004 -flshdct f4000000 Unknown flash type! Report these values http://www.usbjtag.com/vbforum 0aaa,0004
If you do not get f4000000 as flash it might not be. When you get aaa 004 to it looks like a RAM area.
Who is online
Users browsing this forum: No registered users and 6 guests