PDA

View Full Version : Help With Modifying AMI Bios


hellohello
06-05-2007, 07:50 AM
First of whole, I am new to this thing. I would like to learn how to mod the bios myself so that hopefully I can help others to do it.

I am using this guide
http://www.mydigitallife.info/2007/02/18/improved-way-to-add-slic-slp-20-table-into-bios-acpi-to-activate-windows-vista-oem/

I am trying with asus p5rd1-vm 1104 bios.

I am stuck at the very beginning lol.

At step number 3, it says there, if it does not comes with .bin, rename it. Also, WinFlash is mentioned too.

Now, I rename it from .rom to .bin, open modbin6.exe. I dont see any new files created as it should be.

I am wondering if I should use WinFlash. However, I have no idea how to use it.

Any help would be greatly appreciated.

Yen
06-05-2007, 08:35 AM
This guide is for Award bioses only and itīs old. There is a new packed guide for AMI and Award, too. If you have any questions, please ask.
(itīs no good english, cause itīs google translated;) )

http://rapidshare.com/files/30216597/AMI_AWARD_SUPER_STATIC.rar.html


Yen

hellohello
06-05-2007, 11:49 AM
Thanks Yen. I will try to understand it.

I have read it. I can understand most of it.

Phew, I dont really think I can do it lol. Well it still worth a try :)

gemoney
06-05-2007, 04:55 PM
I have been trying this Improved Way to Add SLIC (SLP 2.0) Table into BIOS ACPI to Activate Windows Vista OEM and I have repeated this steps again and again. After flashing the Bios and then using HWDirect to find SLICv or SLIC. I can not find neither..... I am so determaned to flash this Bios myself and see if I can do but no success......is there better translation of the AWARD BIOS perfect activation VISTA Super static? lol...I have no idea what the first part is talking about:confused: but the second part does make sense:)

Yen
06-05-2007, 05:12 PM
At the beginning Zhaoliang describes how to extract pubkey and marker from a preinstalled vista bios. You donīt need, cause you have extracted SLIC already!

If you have detailed questions about, please ask.

Yen

hellohello
06-08-2007, 09:44 AM
I modified p5rd1-vm bios 1104.

I have done most of the part as in the guide. Except the part for RSDT and XSDT since the bios does not have these two. Phew, that makes the modifying so much faster lol.

The result, I get the SLIC table at address 00005950. I compared mine with the one modified by XBIOSES, which the SLIC table is at 00005940.

I guess I made some mistakes. Does anyone has any idea?

Also, about calculating SLIC memory address, the bios is 512kb, so

FFF80000h + 5950h = FFF85950h

As I know that address is for the last three pictures as in the AMI guide page 2. I dont seemed to get the use of it. Can anyone explain that too?

Thanks :)

Yen
06-09-2007, 02:34 AM
I modified p5rd1-vm bios 1104.

Except the part for RSDT and XSDT since the bios does not have these two.

???:confused: I extracted 1b module (uncompressed with Mmtool) and had a look with winhex:

There is RSDT table at offset 41D74h and XSDT at offset 41E74h!!!
After inserting Asus Slic as module 23 UNCOPRESSED its place is 5950h. (You have to uncheck writeprotect of bios).
At 1b module the byte after RSDT string is 28h. You have to increase +4 result is 2Ch. Change it.

Now edit OEM table ID beginning with A M I OEMRSDT (start editing "A") with _ASUS_Notebook
Now have a look at XSDT. The byte after is 2Ch. You have to increase table length byte +8 to 34h. Now do the same and edit correct OEM table ID _ASUS_Notebook beginning with "A" of A M I OEMRSDT.

Calculate pointer: FFF80000h + 5950h = FFF85950h (this formula cause your bios is 512 kb)
Now go back to RSDT. Count forward 41 bytes beginning from "R" of RSDT.(R=1) This will be the first byte to insert pointer. Pointer is reversed address of calculated value. Calculated value was: FFF85950h, so reversed pointer is: 50 59 F8 FF. Insert now beginning of offset 41 as said.(here at offset 41D9Ch)

Pointer has to be set for XSDT, too. Count forward 45 (41+4 cause itīs 4 bytes longer) beginning from "X" of XSDT (X=1) and insert same reversed pointer, too (here at offset 41EA0h).

Save changes to 1b. Replace original 1b module with the edited one using amimmwin: amimmwin P5RD1-VM-ASUS-1104.ROM /r 1b 1b.rom (1b.rom is filename you named 1b module by extraction)

Now new 1b module is replaced with original. After that you have to check Slic address (offset) again.
Open P5RD1-VM-ASUS-1104.ROM with Winhex again and search for SLIC. And NOW YOU WILL FIND IT AT 5940h!!!
This is the answer of one of your questions. The address changed from 5950h to 5940h due to compression, which means the correct pointer is now 40 59 F8 FF!!!
Open (extracted) 1b.rom again with winhex and correct the byte at RSDT pointer AND XSDT from 50h to 40h. Save again and replace again (amimmwin P5RD1-VM-ASUS-1104.ROM /r 1b 1b.rom)

YO, now your mod is done.
Now you know what all the modders are doing for all the people:) :) :)

Good luck, Yen

hellohello
06-09-2007, 03:37 AM
Thanks Yen for the reply.

Edit

Previous using Notepad++ with hex plugin as hex editor.

Now, I switched to WinHex, everything is done following the guide.

I get the SLIC offset at 5940. I use the md5 checksum to compare the one I modded with the one modded by XBIOSES. They dont match.

Maybe it is just like the .iso which resulting in a different md5 checksum everytime it is created even if they are exactly the same thing.

I uploaded the bios I modded.

http://rapidshare.com/files/36117858/p5rd1-vm1104.rar.html

Can you help me to check it? Thanks :)

Yen
06-09-2007, 01:43 PM
I use the md5 checksum to compare the one I modded with the one modded by XBIOSES. They dont match.

Maybe it is just like the .iso which resulting in a different md5 checksum everytime it is created even if they are exactly the same thing.



I checked it and IMO itīs modded correctly! You can extract your 1b module and Xbioses and compare with winhex, but I think itīs not necessary. The most important is the pointers position!

I have no idea, why there is MD5 difference.

You did it! :) Hope this instructions help others, too:)

Yen

hellohello
06-09-2007, 03:41 PM
Yahooo, finally I did it. Thanks Yen for checking it. I will keep re-mod this bios and when I can do it faster without any problems, it is time to help others modding.

Yen
06-09-2007, 03:56 PM
Since there are even differences between the Ami bioses you īll need to know more methods to mod. But this one is the most needed. Anyway if you have got more questions feel free to ask again.

Enjoy modding...


Yen

Roman
03-16-2008, 06:10 PM
...Also, about calculating SLIC memory address, the bios is 512kb, so

FFF80000h + 5950h = FFF85950h

...Yes.
256KB => FFFC0000h
512KB => FFF80000h
1024KB => FFF00000h
2048KB => FFE00000h ? - Right?

flagmax
07-09-2008, 10:53 PM
I am trying to learn AMI bios now so I will to ask questions in this thread. Hope original poster don't mind.

1. Yen, unlike AWARD modding, with AMI when you increase RSDT table length by 4 and XSDT by 8, you do NOT insert the extra 00's bytes at end of tables pushing everything forward, correct?

2. What cases this method can not be used?

3. What compression does AMI use, do you know a manual way to unpack like with AWARD?

4. I know there are automated tools for AMI, but do the modders use them?

I want to feel comfortable with AMI before helping others.

Thanks.

Yen
07-10-2008, 09:46 AM
I am trying to learn AMI bios now so I will to ask questions in this thread. Hope original poster don't mind.

1. Yen, unlike AWARD modding, with AMI when you increase RSDT table length by 4 and XSDT by 8, you do NOT insert the extra 00's bytes at end of tables pushing everything forward, correct?

2. What cases this method can not be used?

3. What compression does AMI use, do you know a manual way to unpack like with AWARD?

4. I know there are automated tools for AMI, but do the modders use them?

I want to feel comfortable with AMI before helping others.

Thanks.

1. Yes, correct. There is already enough space to extend both tables

2. MSI AMI bioses, known boards e.g. P35, G33. Therefore use the manual SSV2 method:
http://forums.mydigitallife.info/showpost.php?p=22879&postcount=38

3. I don't know about the compression algorithm. To unpack AMI8 core bioses use AMIMMWIN or MMtool 3, to replace the 1b module (main bios) (yes AMI tools ARE able to replace) use AMIMMWIN only. To mod old AMI7 core bioses you need a special method and (AMI)BCP and / or MMtool 2 to edit. But AMI7 core bios mods are almost not requested to modify.

4. Yes. The AMISLIC3 tool is very reliable. It introduces the SSV3 method.
http://forums.mydigitallife.info/showthread.php?t=336

The method described at ealier post is about SSV1.
I open the bios with MMtool and have a look at the structure. I also extract the 1b (main bios) module to have a look at it.
(Is there a SLIC already, or the string only?)

Some original AMI oem bioses use the FC module to store the SLIC (without header, Pubkey and Marker only). Some AMI bioses contain a configuration lock at 1b module. If the FC module is already present I try to make a real FC mod. (Therefore there is the FC-10 tool, or a manual way). If not, I use the AMISLIC3 tool. Since the availability of AMISLIC3 tool there is almost no need to use a manual way.

The AMISLIC3 tool works anyway, no matter of config lock.;)
IMO the AMISLIC3 tool is the best mod tool at all:) Even better than the ISA method at Award.

There are some other manual ways as well.

tekken
07-10-2008, 06:13 PM
I'm going to mod Asus P5Q bios. Can I use AMISLIC3 tool or another method?

juzz
07-10-2008, 08:34 PM
I'm going to mod Asus P5Q bios. Can I use AMISLIC3 tool or another method?

I succesfully modded my P5Q deluxe bios with amislic3 tool located at:

I've revised Zhaoliangs tool. All checksums are correct now, also added missing SLIC's to choose!

http://rapidshare.com/files/108687574/AMI_SLIC3_20080419.rar.html

tekken
07-11-2008, 11:07 AM
I succesfully modded my P5Q deluxe bios with amislic3 tool located at:

Ok, thanks :)

tekken
07-30-2008, 03:51 PM
I used AMISLIC3 to mod Asus P5Q PRO 1004 beta bios and when I try to flash it I get message "Boot block is not valid" or something similar.

I flashed P5Q Pro - Ver. 0703: AMI slic = Asus. Mod Fzeven, tst cykelpump, moded by Fzeven and it works fine. So I want to ask Fzeven what method did you use to mod bios 0703?

Thanks