xboxscene.org forums

Pages: [1] 2 3

Author Topic: Edit Bios Code  (Read 190 times)

ferrari_rulz_02

  • Archived User
  • Hero Member
  • *
  • Posts: 2661
Edit Bios Code
« on: September 29, 2005, 05:14:00 PM »

hey all

i got a bit of code i want to inject into a bios. how do i go about opening the bios.bin file so i can insert the text.

is there any compiling i have to do before i can use it?

any help appreciated
cheers
 beerchug.gif
Logged

ferrari_rulz_02

  • Archived User
  • Hero Member
  • *
  • Posts: 2661
Edit Bios Code
« Reply #1 on: September 29, 2005, 06:55:00 PM »

bit of a bump/more info.

nee this thread, post 257.

i want to insert this code into a BIOS, to force games into 480p.

another question, what would i have to change, to force say 720p?

if you cant be bothered clicking teh link, this is the code i need to insert (thanks dr oldschool)

CODE
patchvideoprogr:
push ebp
mov ebp,esp
push eax
mov eax,[ebp+16]
or eax,eax
js .cont; hdtv mode
jz .640; default mode (?)
test ah,01h
mov eax,88080801h; 720x480p
jz .chng
.640: mov eax,88070701h; 640x480p
.chng: mov [ebp+16],eax
.cont: pop eax
.frame: sub esp,1Ch
VJMP jback
Logged

ferrari_rulz_02

  • Archived User
  • Hero Member
  • *
  • Posts: 2661
Edit Bios Code
« Reply #2 on: September 30, 2005, 09:52:00 PM »

bump. how do i open a bios.bin file so that i can insert the code i want to?

any help appreciated
Logged

LightningStruckMyXbox

  • Archived User
  • Full Member
  • *
  • Posts: 211
Edit Bios Code
« Reply #3 on: October 01, 2005, 12:26:00 AM »

Think you might have to hex-edit it.
Logged

ferrari_rulz_02

  • Archived User
  • Hero Member
  • *
  • Posts: 2661
Edit Bios Code
« Reply #4 on: October 01, 2005, 01:54:00 AM »

QUOTE(LightningStruckMyXbox @ Oct 1 2005, 05:37 PM)
Think you might have to hex-edit it.
Logged

ferrari_rulz_02

  • Archived User
  • Hero Member
  • *
  • Posts: 2661
Edit Bios Code
« Reply #5 on: October 01, 2005, 03:28:00 AM »

ok then, ill try that, but i got a few questions:

1) this is a bios, it has to be a certian size (256kb). do i just remove some unneeded 00 000's

2) where about does this code need to go? anywhere in particular?

3) di i just do it in a hex editor, and striaght copy over the code i have posted?
Logged

ferrari_rulz_02

  • Archived User
  • Hero Member
  • *
  • Posts: 2661
Edit Bios Code
« Reply #6 on: October 01, 2005, 04:45:00 AM »

shit man i cant get it to work.

all i can get is no screen and the eject leds to do various things.

raydn, pm'd ya
Logged

ferrari_rulz_02

  • Archived User
  • Hero Member
  • *
  • Posts: 2661
Edit Bios Code
« Reply #7 on: October 01, 2005, 06:01:00 AM »

ok ive been trying this all wrong.

if i open it up in a hex editor, there is no AvSetDisplayMode in the code.

do i need an uncompiled bios or another program to open it with?
Logged

ferrari_rulz_02

  • Archived User
  • Hero Member
  • *
  • Posts: 2661
Edit Bios Code
« Reply #8 on: October 01, 2005, 06:33:00 AM »

is this how it has to be done??

id give it a go, but i cant get my hands on a copy of ms visual studio 6
Logged

ferrari_rulz_02

  • Archived User
  • Hero Member
  • *
  • Posts: 2661
Edit Bios Code
« Reply #9 on: October 01, 2005, 07:07:00 AM »

ok, i cant get my hand son a copy of ms visual studio 6.

what i need is an assembled copy of xbflash. if anyoen can help me out, id love to hear from you.
Logged

heinrich

  • Archived User
  • Hero Member
  • *
  • Posts: 2274
Edit Bios Code
« Reply #10 on: October 01, 2005, 06:12:00 PM »

what is wrong with just using xbtool to pack/unpack?  You can also use nghtshd's biostools, which is based on xbflash.
QUOTE
if i open it up in a hex editor, there is no AvSetDisplayMode in the code.

You'll probably want to find a copy of (or make) an xbox FLIRT file and load up the xbox kernal image in IDA or similiar tool.
Logged

ferrari_rulz_02

  • Archived User
  • Hero Member
  • *
  • Posts: 2661
Edit Bios Code
« Reply #11 on: October 02, 2005, 12:30:00 AM »

ok, just tried xbtool, and i got this:
CODE
== 10/02/05 16:39:35 == Unpack ==
Loading ROM image file 'C:\Documents and Settings\Daniel\Desktop\bios 480p\ind-bios.5001.06.vga.bfm.bin'...
Extracting 2BL image...
Extracting compressed KERNEL image... Invalid config params for kernel extract!


ill try nghtshd's biostools soon
Logged

ferrari_rulz_02

  • Archived User
  • Hero Member
  • *
  • Posts: 2661
Edit Bios Code
« Reply #12 on: October 02, 2005, 01:50:00 AM »

QUOTE(ferrari_rulz_02 @ Oct 2 2005, 05:41 PM)
ill try nghtshd's biostools soon
Logged

ferrari_rulz_02

  • Archived User
  • Hero Member
  • *
  • Posts: 2661
Edit Bios Code
« Reply #13 on: October 02, 2005, 03:04:00 AM »

QUOTE(ferrari_rulz_02 @ Oct 2 2005, 07:01 PM)
i cant find nghtshd's biostools.
Logged

heinrich

  • Archived User
  • Hero Member
  • *
  • Posts: 2274
Edit Bios Code
« Reply #14 on: October 02, 2005, 10:20:00 AM »

QUOTE
i unpack an e2 bios, and opened it with ida, but there was no AVSetDisplayMode in it anywhere, so im doubting it would be in any other bios.


It IS in the bios, if you want to see the function names you will need load a flirt file.
Logged
Pages: [1] 2 3