Jump to content


Photo

Flash Tsop With X2 (and Others) 12c508 Code


  • Please log in to reply
88 replies to this topic

#1 Ubergeek

Ubergeek

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,090 posts

Posted 05 April 2003 - 08:21 AM

Not had any time at all to work on this - so we knocked this together last night to give budding coders something to have a crack at

pls no questions - if you now what you are doing all your answers will be on this page

This hasn't really been tested and may need adjusting - but it basically controls d0 and a15 similar to the matrix for flashing your tsop

TBH i dont know why this hasnt been released to the scene before now as the code is really really simple


CODE

;CONNECT PIC PIN 8 TO GROUND
;CONNECT PIC PIN 1 TO 5 VOLTS
;CONNECT PIC PIN 2 TO D0
;CONNECT PIC PIN 3 TO A15
;D0 WILL BE GROUND AT BOOT FOR HALF A SECOND THEN WILL GO OPEN
;A15 WILL BE GROUND AT BOOT AND STAY GROUND FOR 50 SECONDS


; CODE XBOX V1.555
;  12C508




INAD EQU 00H  
TRMO EQU 01H  
PC EQU 02H  
STATUS  EQU 03H  
FSR     EQU 04H  
OSSCAL  EQU 05H  
GPIO    EQU 06H    
COUNT EQU 07H  
COUNT1 EQU 08H  
COUNT2 EQU 09H    
COUNT3 EQU 0AH  


#DEFINE Z    STATUS,2
#DEFINE C    STATUS,0



ORG 00  
MOVWF OSSCAL      
GOTO START_


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  
LONG_
D_
CLRF TRMO
S_
NOP
NOP
NOP
BTFSS TRMO,7
GOTO S_
DECFSZ COUNT
GOTO D_
RETLW 00
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  

START_
CLRF GPIO
MOVLW B'10000111'
OPTION
MOVLW B'11001111'
TRIS GPIO
BCF GPIO,5  ;PIC PIN 2  D0
BCF GPIO,4  ;PIC PIN 3  A15

MOVLW .8;D0 TIMING VARIABLE AJUST THIS FOR D0 O/C FROM GROUND TIME
MOVWF COUNT;LOWER NUMBER WILL REDUCE TIME FROM D0 TO O/C
CALL LONG_


MOVLW B'11101111'
TRIS GPIO

MOVLW .255;A15 TIMING VARIABLE AJUST THIS TO AJUST A15 TIME FROM GROUND
MOVWF COUNT;LOWER NUMBER WILL REDUCE THE TIME UNTIL A15 IS O/C
CALL LONG_
MOVLW .255
MOVWF COUNT
CALL LONG_
MOVLW .255
MOVWF COUNT
CALL LONG_
MOVLW .255
MOVWF COUNT
CALL LONG_
MOVLW .255
MOVWF COUNT
CALL LONG_
MOVLW .255  
TRIS GPIO
LAST
NOP
GOTO LAST

END


some info that this code was based on (found on xboxhacker.net)

Programming the Onboard TSOP using a X2PRO or X2LITE.
This can be done and has been done on 1.0 boxes.

1) Connect TSOP Write lines (See matrix instructions)
2) Ground A15 (T1 on the matrix instructions)
3) Program X2Pro with EvoxMatrixTSOP bios
4) Turn power on and after 1/2 second turn DIP switch 4 off
5) Wait for EvolutionX to come up
6) Remove A15 Ground
7) Use EvolutionX to Flash a 1 meg bios to TSOP

Make sure your Evox xbe is named and placed somewhere that the EvoxMatrixTSOP bios can find it. I used a CD-RW with Slayer's 2.0 disk and Flashed 4974 onto the TSOP.

Look at the TSOP Flash Matrix Instructions floating around for pin locations etc.

This works with both the PRO and LITE but ONLY on 1.0 boxes until a EvoxMatrixTSOP bios is released for 1.1.

BTW, After you remove the A15 ground but before you flash the TSOP, if you use EvolutionX to backup your Box, you will have a copy of the orignal bios from your box. But you must do steps 1-6 first before you do the backup or you will just backup the X2.

Edited by Ubergeek, 05 April 2003 - 08:22 AM.


#2 Ubergeek

Ubergeek

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,090 posts

Posted 06 April 2003 - 10:49 AM

*bump*

can a mod make this sticky - i think you'll find its wanted by a lot of ppl wink.gif

#3 mirx999

mirx999

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,476 posts

Posted 07 April 2003 - 09:35 PM

indeed it is. thanks, Uber!

#4 jp110099

jp110099

    X-S Expert

  • Members
  • PipPipPip
  • 622 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 07 April 2003 - 11:31 PM

nice job Ubergeek, you are truly a god!, thx for this wonderful info smile.gif

Edit: N00b Question - How do i use this code? I would like to flash the TSOP.

Edited by jp110099, 08 April 2003 - 02:13 PM.


#5 MackLogic

MackLogic

    X-S Enthusiast

  • Members
  • 3 posts

Posted 07 April 2003 - 11:49 PM

Very nice indeed. One of my xboxs wont boot to evox tho lol
Im building the milksop so i can program it without a modchip.
But this does give me something to play with and test ph34r.gif



#6 kard63

kard63

    X-S Enthusiast

  • XS-BANNED
  • 0 posts
  • Xbox Version:unk

Posted 08 April 2003 - 03:01 AM

Veryu very cool.

#7 Regionfree

Regionfree

    X-S Member

  • Members
  • Pip
  • 94 posts

Posted 08 April 2003 - 04:56 AM

I counted about 30 errors in the code which need to be fixed before assembling. Has anyone had a crack at it yet?

#8 Ubergeek

Ubergeek

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,090 posts

Posted 08 April 2003 - 09:03 AM

QUOTE (Regionfree @ Apr 8 2003, 05:56 AM)
I counted about 30 errors in the code which need to be fixed before assembling. Has anyone had a crack at it yet?

it assembles no errors for me

im sure it needs a tweek tho

#9 Regionfree

Regionfree

    X-S Member

  • Members
  • Pip
  • 94 posts

Posted 08 April 2003 - 01:11 PM

I still keep getting errors with MPASM for some reason.
I haven't used it since upgrade. Perhaps there is a bug.
Will look into it.

#10 nexus2

nexus2

    X-S Enthusiast

  • Members
  • 12 posts

Posted 08 April 2003 - 02:57 PM

You really don'y need the PIC or the Code to do this. Just follow the directions below the code. Turning the X2 off after you turn on the Xbox is not that hard to do. It just takes a few times before you learn when to do it. After that, its easy to repeat.

Just remember to use a boot CD or have Evox on your hard drive in a place the EvoxMatrixTSOP bios can find it. Slayer's 2.0 disk works great for this, Just flash the TSOP with the Bios on his disk, then you can copy a different Bios to your harddrive and flash that.

#11 jp110099

jp110099

    X-S Expert

  • Members
  • PipPipPip
  • 622 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 08 April 2003 - 06:35 PM

It says to turn off switch 4 on X2 Pro, can i aussume i can just take the On/Off jumper off the X2 Lite and uflash it with the X2 4976.02?

#12 nexus2

nexus2

    X-S Enthusiast

  • Members
  • 12 posts

Posted 08 April 2003 - 07:56 PM

You just take the jumper off the Lite. You need to create a 1 meg bios image with 4 copies of 4976.02 in it. This is what I have programed in my TSOP and it works great.

The Lite is a little scary to use, you must program it with the EvoxMatrixTSOP bios to do this. If you can't get Evox to Boot (it may take a few tries to get the timing down.) then you may not beable to reprogram the Lite back to a work Bios. You can't run a box with the MatrixTSOP bios. It is only used to flash the TSOP.

But it does work. Several people have used this method with a Lite and Flashed the TSOP.

#13 cougar69

cougar69

    X-S Enthusiast

  • Members
  • 6 posts

Posted 10 April 2003 - 02:37 AM

This is all good if you have code on your tsop..,but what if there is no code on the onboard tsop? Ive tried this on my 1.0 that I flashed with emigah and hosed. I forgot to disable 15,21. so I bought the x2 . Box fires up with any bios but the Matrix_tsop. flip dip number 4 ...1/2 second into boot it goes into the on/off cycle mode with red /green flashing button. Timed the switch 4 a hundred times. Am I just missing something? Oh and I barowed a buddies Matrix and the whole proccess acted exactly the same. also I was doing the t1 to ground. Any help is apriciated:)

#14 Ubergeek

Ubergeek

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,090 posts

Posted 10 April 2003 - 01:27 PM

QUOTE (cougar69 @ Apr 10 2003, 03:37 AM)
This is all good if you have code on your tsop..,but what if there is no code on the onboard tsop? Ive tried this on my 1.0 that I flashed with emigah and hosed. I forgot to disable 15,21. so I bought the x2 . Box fires up with any bios but the Matrix_tsop. flip dip number 4 ...1/2 second into boot it goes into the on/off cycle mode with red /green flashing button. Timed the switch 4 a hundred times. Am I just missing something? Oh and I barowed a buddies Matrix and the whole proccess acted exactly the same. also I was doing the t1 to ground. Any help is apriciated:)

has to be a working bios on the onboard rom to do wthis method

only other way to fixed a hosed rom is to take it off and programme manually (but of course 99% of you are not going to do this or dont have the tools/skills)

so basically you just need to fit a mod and use the bios on this

if you want to use XBL then i recommend selling the box (with the mod) and getting a new one

perhaps not wanted you wanted to hear tho bro ?

#15 cougar69

cougar69

    X-S Enthusiast

  • Members
  • 6 posts

Posted 10 April 2003 - 02:28 PM

No That is what I figured Thanks:)





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users