CG814WG v2 XML
-
- Junior Member
- Posts: 17
- Joined: Thu Sep 25, 2014 12:44 pm
Thanks. It's the same as what Carlito's Way posted. You're saying that it worked for you? To read and restore stock and flash firmware to it?
I'm redoing one from scratch. So far, it's different from this. I'm almost done. I just have to test it. I'm just using the CM right now and don't want to mess it up.
I'm redoing one from scratch. So far, it's different from this. I'm almost done. I just have to test it. I'm just using the CM right now and don't want to mess it up.
-
- Junior Member
- Posts: 5011
- Joined: Sat Dec 27, 2008 3:25 pm
I can check on my end. this one has the 8MB flash?geoneo111 wrote:I tested my file and it writes the stock to it but it fails when I verify. I'm getting "Compare data Failed address 9E7FFC80, target 20, PC memory FF"
It also bricks it when I try to flash firmware on it. Oh, well!
"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."
-
- Junior Member
- Posts: 17
- Joined: Thu Sep 25, 2014 12:44 pm
Thanks Capone. Yes this has an 8MB flash.
This is my file that I did from scratch but it's not good for flashing firmware. I did this based on the device information in the modem. Maybe someone can improve on it.
<Test>
<Name>CG814WGV2</Name>
<Cat>Modem</Cat>
<Protocol>EJTAG</Protocol>
<Endian>Big</Endian>
<IRLength>5</IRLength>
<DMA>Yes</DMA>
<ProbTrap>1</ProbTrap>
<Programram>0x80400000</Programram>
<Memorys>
<Memory>
<Name>Image2</Name>
<Type>1</Type>
<Address>0x9E000000</Address>
<Size>0x3E0000</Size>
</Memory>
<Memory>
<Name>Log</Name>
<Type>1</Type>
<Address>0x9E3E0000</Address>
<Size>0x20000</Size>
</Memory>
<Memory>
<Name>Boot</Name>
<Type>1</Type>
<Address>0x9E400000</Address>
<Size>0x20000</Size>
</Memory>
<Memory>
<Name>Image1</Name>
<Type>1</Type>
<Address>0x9E420000</Address>
<Size>0x3C0000</Size>
</Memory>
<Memory>
<Name>Config</Name>
<Type>1</Type>
<Address>0x9E7E0000</Address>
<Size>0x20000</Size>
</Memory>
<Memory>
<Name>Firmware2</Name>
<Type>1</Type>
<Address>0x9E000000</Address>
<Size>0x130000</Size>
</Memory>
<Memory>
<Name>Firmware1</Name>
<Type>1</Type>
<Address>0x9E420000</Address>
<Size>0x130000</Size>
</Memory>
</Memorys>
<Inits>
<Init>
<Address>0xFFFE0224</Address>
<Value>0x0</Value>
</Init>
<Init>
<Address>0xFFFE2300</Address>
<Value>0x1A</Value>
</Init>
<Init>
<Address>0xFFFE2304</Address>
<Value>0x0</Value>
</Init>
<Init>
<Address>0xFFFE2308</Address>
<Value>0x8040</Value>
</Init>
<Init>
<Address>0xFFFE230C</Address>
<Value>0x3</Value>
</Init>
<Init>
<Address>0xFFFE2310</Address>
<Value>0x4824</Value>
</Init>
</Inits>
</Test>
This is my file that I did from scratch but it's not good for flashing firmware. I did this based on the device information in the modem. Maybe someone can improve on it.
<Test>
<Name>CG814WGV2</Name>
<Cat>Modem</Cat>
<Protocol>EJTAG</Protocol>
<Endian>Big</Endian>
<IRLength>5</IRLength>
<DMA>Yes</DMA>
<ProbTrap>1</ProbTrap>
<Programram>0x80400000</Programram>
<Memorys>
<Memory>
<Name>Image2</Name>
<Type>1</Type>
<Address>0x9E000000</Address>
<Size>0x3E0000</Size>
</Memory>
<Memory>
<Name>Log</Name>
<Type>1</Type>
<Address>0x9E3E0000</Address>
<Size>0x20000</Size>
</Memory>
<Memory>
<Name>Boot</Name>
<Type>1</Type>
<Address>0x9E400000</Address>
<Size>0x20000</Size>
</Memory>
<Memory>
<Name>Image1</Name>
<Type>1</Type>
<Address>0x9E420000</Address>
<Size>0x3C0000</Size>
</Memory>
<Memory>
<Name>Config</Name>
<Type>1</Type>
<Address>0x9E7E0000</Address>
<Size>0x20000</Size>
</Memory>
<Memory>
<Name>Firmware2</Name>
<Type>1</Type>
<Address>0x9E000000</Address>
<Size>0x130000</Size>
</Memory>
<Memory>
<Name>Firmware1</Name>
<Type>1</Type>
<Address>0x9E420000</Address>
<Size>0x130000</Size>
</Memory>
</Memorys>
<Inits>
<Init>
<Address>0xFFFE0224</Address>
<Value>0x0</Value>
</Init>
<Init>
<Address>0xFFFE2300</Address>
<Value>0x1A</Value>
</Init>
<Init>
<Address>0xFFFE2304</Address>
<Value>0x0</Value>
</Init>
<Init>
<Address>0xFFFE2308</Address>
<Value>0x8040</Value>
</Init>
<Init>
<Address>0xFFFE230C</Address>
<Value>0x3</Value>
</Init>
<Init>
<Address>0xFFFE2310</Address>
<Value>0x4824</Value>
</Init>
</Inits>
</Test>
-
- Junior Member
- Posts: 5011
- Joined: Sat Dec 27, 2008 3:25 pm
You may have ended with a Bad Backup. I am able to program Haxo or Stock firmware with no problems.geoneo111 wrote:With yours or mine? Either way I think I might have taken a bad stock from the get go.
I did fail to mention, that on this particular modem, I only Use the USBJtag Nt application, not the UJModem application for programming.
"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."
-
- Junior Member
- Posts: 17
- Joined: Thu Sep 25, 2014 12:44 pm
Yeah, I'm back with this...
After redoing the xml file based on device (memory) information I'm able to flash to all the sections (Image2,log,booth,Image1 & config) but when it comes to AllFlash i get a memory error. "Compare data Failed address 9E7FFC80, target 20, PC memory FF".
When I created the XML by choosing New Target XML, I CopyFrom the old CG814WGV2 and left the Program Memory the same (0x80400000). Maybe that's my problem? Any help would be appreciated. Just trying to make the perfect xml.
After redoing the xml file based on device (memory) information I'm able to flash to all the sections (Image2,log,booth,Image1 & config) but when it comes to AllFlash i get a memory error. "Compare data Failed address 9E7FFC80, target 20, PC memory FF".
When I created the XML by choosing New Target XML, I CopyFrom the old CG814WGV2 and left the Program Memory the same (0x80400000). Maybe that's my problem? Any help would be appreciated. Just trying to make the perfect xml.
Who is online
Users browsing this forum: No registered users and 5 guests