BUFFALO WBR2-G54 =Unknown flash type!=

Topics about unsupported flash in here. Also please go here regularly to update your flash.def
Post Reply
Pichardo
Junior Member
Posts: 79
Joined: Tue Jun 17, 2008 11:19 pm

BUFFALO WBR2-G54 =Unknown flash type!=

Post by Pichardo »

I found this Router in a Yard Sale.. is new but don't work... i like to reflash with original firmware.

It cam with jtag port... and i conect our usbjtag(nt)

This what i get with Detect command.

Code: Select all

Copyright (C) 2010,2011,2012
USB JTAG NT    0.50
Target: WRT54G4M
-detect
IDCODE 1471217F
Broadcom BCM4712
IMPCODE 00800904
EJTAG V1, V2.0
DMA supoorted
Unknown flash type!
Report these values http://www.usbjtag.com/vbforum [color=red][b]0020,225d[/b][/color]
Look into the board and find the Flash Number is M29DW324DB, this is the Datasheet

Code: Select all

ELECTRONIC SIGNATURE
– Manufacturer Code: 0020h
– Top Device Code M29DW324DT: 225Ch
– Bottom Device Code M29DW324DB: [color=red]225Dh[/color]
I can't upload the datasheet but here is the direct link to pdf

Code: Select all

h[color=red]xx[/color]p://www.datasheetcatalog.org/datasheet/stmicroelectronics/8730.pdf
Can someone help me to add this Flash Def and making work with usbjtag(nt) program ?

For you help... thankz in advanced.

If need more info. y got some picture.

=======================================================
Update:

I open the file "flash.xml" and add one Flash type using one close to the number 29DW324....

Code: Select all

		<flash>
			<id1>0x1</id1>
			<id2>0x225C</id2>
			<name>AMD 29DL324GT</name>
			<size>0x400000</size>
			<protocol>0</protocol>
			<block>
				<secnum>63</secnum>
				<secsize>0x10000</secsize>
				<secnum>8</secnum>
				<secsize>0x2000</secsize>
			</block>
		</flash>
[color=red]		<flash>
			<id1>0x1</id1>
			<id2>0x225D</id2>
			<name>AMD 29DW324DB</name>
			<size>0x400000</size>
			<protocol>0</protocol>
			<block>
				<secnum>63</secnum>
				<secsize>0x10000</secsize>
				<secnum>8</secnum>
				<secsize>0x2000</secsize>
			</block>
		</flash>[/color]
Now i made the Detecet and get this:

Code: Select all

Copyright (C) 2010,2011,2012
USB JTAG NT    0.50
Target: WRT54G4M
-detect
IDCODE 1471217F
Broadcom BCM4712
IMPCODE 00800904
EJTAG V1, V2.0
DMA supoorted
Found Address= 9fc00000 Compatible flash AMD 29DW324DB
It was detected righ... them y read and like this:

Code: Select all

-getram CFE
Time 00:00:01 (.094)
-cmpram CFE
Time 00:00:01 (.110)
Compare data OK

-getram KERNEL
Time 00:00:16 (.141)
-cmpram KERNEL
Time 00:00:16 (.390)
Compare data OK

-getram NVRAM
Time 00:00:00 (.297)
-cmpram NVRAM
Time 00:00:00 (.281)
Compare data OK
Now what i like to make sure is if the sector in the def file is correct before try to write . . .

Any help is very appreciate . . .
====================================================
2nd Update:

I make this xml and save as "TWBR2_G54_4M.xml" and put it with the other file in config directory..

Code: Select all

<Test>
   <Name>WBR2_G54_4M</Name>
   <Cat>Router</Cat>
   <Protocol>EJTAG</Protocol>
   <Dll>CFE.dll</Dll>
   <Endian>Little</Endian>
   <IRLength>8</IRLength>
   <DMA>Yes</DMA>
   <ProbTrap>1</ProbTrap>
   <Programram>0x80200000</Programram>
   <Memorys>
      <Memory>
         <Name>Ram</Name>
         <Type>0</Type>
         <Address>0x80000000</Address>
         <Size>0x800000</Size>
      </Memory>
      <Memory>
         <Name>CFE</Name>
         <Type>1</Type>
         <Address>0x9FC00000</Address>
         <Size>0x40000</Size>
      </Memory>
      <Memory>
         <Name>KERNEL</Name>
         <Type>1</Type>
         <Address>0x9FC40000</Address>
         <Size>0x3B0000</Size>
      </Memory>
      <Memory>
         <Name>NVRAM</Name>
         <Type>1</Type>
         <Address>0x9FFF0000</Address>
         <Size>0x10000</Size>
      </Memory>
   </Memorys>
</Test>
Maybe is more ease make the change in this file....

Thankz Again . . .
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

I hope you use the latest software and this flash should be able to detect using CFI. If not something is wrong and change xml might not get you properly programmed. This flash might support buffer write which means you can significantly improve the speed if you use CFI detect instead of modify the flash.xml.
Pichardo
Junior Member
Posts: 79
Joined: Tue Jun 17, 2008 11:19 pm

Post by Pichardo »

thankz usbbdm.

What about the size and sector configuration... is correct ?

Code: Select all

			<size>0x400000</size>
			<protocol>0</protocol>
			<block>
				<secnum>63</secnum>
				<secsize>0x10000</secsize>
				<secnum>8</secnum>
				<secsize>0x2000</secsize>
			</block>
.....
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

Pichardo wrote:thankz usbbdm.

What about the size and sector configuration... is correct ?

Code: Select all

			<size>0x400000</size>
			<protocol>0</protocol>
			<block>
				<secnum>63</secnum>
				<secsize>0x10000</secsize>
				<secnum>8</secnum>
				<secsize>0x2000</secsize>
			</block>
.....
You have to find those in datasheet. That is why I prefer to use CFI since the size of sectors are defined in the CFI response.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest