Scrip Commands . . . . Help

Anything related to script should go here.
Locked
Pichardo
Junior Member
Posts: 79
Joined: Tue Jun 17, 2008 11:19 pm

Post by Pichardo »

Can you expain how it work this ?

Code: Select all

checkmdw 90000000
if MEMORY != 1000018f
Keep Trying . . . !
CAPONE
Junior Member
Posts: 5011
Joined: Sat Dec 27, 2008 3:25 pm

Post by CAPONE »

usbbdm wrote:The basic script command are show in the help.
The "control" command include "if" "goto" command. I hope this is not hard to understand giving that we have several script examples.
I had never given it much though until Pichardos Post becouse i am used to doing it My Way so to speak But it is an Intresting Subject and Now it has gotten my Intrests. Just What I needed Another thing to become an OCD Subject. LOL
Pichardo
Junior Member
Posts: 79
Joined: Tue Jun 17, 2008 11:19 pm

yes . . .

Post by Pichardo »

CAPONE wrote:I had never given it much though until Pichardos Post becouse i am used to doing it My Way so to speak But it is an Intresting Subject and Now it has gotten my Intrests. Just What I needed Another thing to become an OCD Subject. LOL
I know bro.... you can do it manualy . .. Step By Step . . Typing each command..

But i'm "curioso" and find the Script Engine" build in to the USBJTAG(nt) is powerfull and can make you life more easy and FUN.

If we learn hot to used I think we can check if the bin loaded is right or if the revision is correct, etc , etc

Keep Trying . . . !
CAPONE
Junior Member
Posts: 5011
Joined: Sat Dec 27, 2008 3:25 pm

Post by CAPONE »

Pichardo wrote:I know bro.... you can do it manualy . .. Step By Step . . Typing each command..

But i'm "curioso" and find the Script Engine" build in to the USBJTAG(nt) is powerfull and can make you life more easy and FUN.

If we learn hot to used I think we can check if the bin loaded is right or if the revision is correct, etc , etc

Keep Trying . . . !
YEs I Know. I have made My Own Scripts but there Basic and Do make things easyer for me. ;) However I would like ( When i take the Time to do so ) to Learn how to make More Complex Scripts.
Pichardo
Junior Member
Posts: 79
Joined: Tue Jun 17, 2008 11:19 pm

Post by Pichardo »

Do you see what i did for DP301-013 ?

Mod the dp3010131.xml to add another TAB called "privaty, this is to mod the bin with a "Privaty Info (SK)"

This is the xml
[php]
<Test>
<Name>DP301-013.1-Moded</Name>
<Cat>DishIrd</Cat>
<Protocol>DCU</Protocol>
<Endian>Little</Endian>
<IRLength>5</IRLength>
<Eepromprot>4</Eepromprot>
<Programram>0x80000200</Programram>
<Memorys>
<Memory>
<Name>sys</Name>
<Type>0</Type>
<Address>0x2000</Address>
<Size>0x2000</Size>
</Memory>
<Memory>
<Name>ram</Name>
<Type>0</Type>
<Address>0x80000000</Address>
<Size>0x800000</Size>
</Memory>
<Memory>
<Name>firm</Name>
<Type>1</Type>
<Address>0x7FC00000</Address>
<Size>0x400000</Size>
</Memory>
<Memory>
<Name>privaty</Name>
<Type>1</Type>
<Address>0x7FFFFF40</Address>
<Size>0x60</Size>
</Memory>
<Memory>
<Name>Eeprom</Name>
<Type>2</Type>
<Address>0x0</Address>
<Size>0x2000</Size>
</Memory>
</Memorys>
<Inits>
<Init>
<Address>0x2000</Address>
<Value>0xB291</Value>
</Init>
<Init>
<Address>0x2010</Address>
<Value>0xB6D1</Value>
</Init>
<Init>
<Address>0x2020</Address>
<Value>0xB291</Value>
</Init>
<Init>
<Address>0x2030</Address>
<Value>0xB6D1</Value>
</Init>
</Inits>
</Test>
[/php]

This and the script posted a few post backyard... make my life HAPPY.

Look using the opcion 4

Code: Select all

/////////////////////////////////////////////
//    DP 301-013 1 Chip Script
/////////////////////////////////////////////
1. Backup flash and eeprom 
2. Restore flash and eeprom 
3. Debrick (When normal programming not working) 
4. Firmware Testing (Cloning) 
5. Exit 
Please select
4
-detect
IDCODE 1D405041
STi STi5518
Check your configuration
Found Address= 7fc00000 CFI ST 29W320DT
restore flash 
Firmware testing 
-getram firm
Time 00:00:17 (.203)
-ldram privaty
C:/Documents and Settings/User/Desktop/301-013/privaty_sk.bin loaded
-erase firm
Erase starts...
Erase time 00:00:46 (.984)
-sprogram firm
Program Starts...
Program speed 183.61 KB/s
Program time 00:00:22 (.844)
Program pass, if no further programming needed, power off/on the target
-cmpram firm
Time 00:00:17 (.125)
Compare data OK
Please power off/on the box 
Press enter to continue.Spacebar and enter to break....
Before thats i use the Simple-JTAG, take me 5 minutes to read and 5 minutes to write.. and 2 o 3 more jumping fron one option to other....

With the use of USBJTAG(nt) hardware and software take me only:

Code: Select all

-getram firm
Time 00:00:[color=red]17[/color] (.203)
17 seconds to read ! !!

Code: Select all

-erase firm
Erase starts...
Erase time 00:00:[color=red]46[/color] (.984)
46 second to eraser !!!

Code: Select all

-sprogram firm
Program Starts...
Program speed 183.61 KB/s
Program time 00:00:[color=red]22[/color] (.844)
22 seconds to sprogram ! ! !

and another 17 to verify.. this is total:

17 + 46 + 22 + 17 = 102 second or 1 minute and 42 seconds !!!

And all this with ONE SHOOT !!

Thats is really LOVELY ! ! ! !

Nice Tool !!

THankz Again USBBDM

Keep Trying . . . !
CAPONE
Junior Member
Posts: 5011
Joined: Sat Dec 27, 2008 3:25 pm

Post by CAPONE »

Pichardo wrote:Do you see what i did for DP301-013 ?

Mod the dp3010131.xml to add another TAB called "privaty, this is to mod the bin with a "Privaty Info (SK)"

LOL I remember those Days. :D
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

Thanks for share the success!
Locked

Who is online

Users browsing this forum: No registered users and 5 guests