Jump to content

ACPI (DSDT) Patcher for BIOS and AML


  • Please log in to reply
843 replies to this topic

#261
homepav

homepav

    InsanelyMac Protégé

  • Members
  • Pip
  • 22 posts
  • Location:moscow

But It's not working. I exported DADT.dsl to C:\ and trying to compile DSDT.aml to D:\ and patcher deletes DSDT.dsl and said what It cant found "C:\DSDT.dsl".

Yeh, I found! After renaming DSDT.dsl patcher compile it! But if the file have name "DSDT" patcher always deletes it.


?????? yes , work

#262
pantstx

pantstx

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts

If you can boot without cpus=1 it works, else your problem can be different.
I tested with your BIOS, aliases are removed so it should work.

homepav, this problem sould only happen when putting dsdt file in the same folder than the patcher and your dsdt is named :
"dsdt.aml","dsdt.dsl" or "dsdt.xtr"
Since the patcher use it to store temp file, all that files are deleted before lauching functions.


You're right- it does indeed boot without cpus=1. Is it not just the bios aliases that prevent the kernel from recognizing both cores of a multi core cpu?

#263
Dimarzio

Dimarzio

    InsanelyMac Protégé

  • Members
  • Pip
  • 25 posts
I flashed my BIOS on Gigabyte Dual BIOS mobo P35-DS3L. It works just fine like with dsdt.aml but now im having two long beeps on restart before POST. I know that people have same experience here. Let's solve it guys! Or I will simply remove the beeper out of the mobo =)
Seriously, why do you think it happens?

#264
koalala

koalala

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 196 posts

You're right- it does indeed boot without cpus=1. Is it not just the bios aliases that prevent the kernel from recognizing both cores of a multi core cpu?

Aliases are mis-interperted by OSX so it crash. CPU Aliases are useless, in real mac, there is no CPU aliases.

#265
pbt

pbt

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts
I was unable to flash the bios

Here is copy of my bios for p5qc
sound realtec alc1200, 8 channel High definition Audio CODEC

The bios is version 1613

Here is the message from the patcher

0 Warning, 0 Error occurred.
Done.

Intel ACPI Component Architecture
AML Disassembler version 20081204 [Dec 4 2008]
Copyright © 2000 - 2008 Intel Corporation
Supports ACPI Specification Revision 3.0a


Intel ACPI Component Architecture
ASL Optimizing Compiler version 20081204 [Dec 4 2008]
Copyright © 2000 - 2008 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl 2775: Name (_T_0, Zero)
Remark 5110 - Use of compiler reserved name ^ (_T_0)

dsdt.dsl 2860: Name (_T_0, Zero)
Remark 5110 - Use of compiler reserved name ^ (_T_0)

dsdt.dsl 2908: Name (_T_0, Zero)
Remark 5110 - Use of compiler reserved name ^ (_T_0)

dsdt.dsl 2974: Name (_T_0, Zero)
Remark 5110 - Use of compiler reserved name ^ (_T_0)

dsdt.dsl 3044: Name (_T_0, Zero)
Remark 5110 - Use of compiler reserved name ^ (_T_0)

dsdt.dsl 5768: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 5784: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 5876: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 5975: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 6470: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 6513: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 6597: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 6611: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 6730: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 6800: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 6891: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 6905: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 7032: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 7102: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 7106: Name (_T_1, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_1)

dsdt.dsl 7344: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 7407: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 7575: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 7608: Name (_T_1, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_1)

dsdt.dsl 7649: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 7705: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 7875: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 7903: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 7956: Name (_T_1, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_1)

dsdt.dsl 9622: Method (VGET, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (VGET)

dsdt.dsl 9667: Method (TGET, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (TGET)

dsdt.dsl 9720: Method (FGET, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (FGET)

dsdt.dsl 9751: Store (VGET (Local0), Local1)
Warning 1092 - ^ Called method may not always return a value

dsdt.dsl 9793: Store (TGET (Local0), Local1)
Warning 1092 - ^ Called method may not always return a value

dsdt.dsl 9826: Store (FGET (Local0), Local1)
Warning 1092 - ^ Called method may not always return a value

dsdt.dsl 10075: Name (_T_0, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_0)

dsdt.dsl 10143: ShiftRight (BUF2, 0x04)
Warning 1105 - Result is not used, operator has no effect ^

dsdt.dsl 10211: Name (_T_1, Zero)
Remark 5110 - ^ Use of compiler reserved name (_T_1)

ASL Input: dsdt.dsl - 10315 lines, 332792 bytes, 4839 keywords
AML Output: dsdt.aml - 38527 bytes, 996 named objects, 3843 executable opcodes

Compilation complete. 0 Errors, 7 Warnings, 31 Remarks, 69 Optimizations

0 Warning, 0 Error occurred.
Done.

Attached Files



#266
koalala

koalala

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 196 posts

I was unable to flash the bios

Could you explain your problem ?
First rename your bios file extension to ROM.
I can't guess your problem ...

#267
pbt

pbt

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts
When triing to flash bios I get Boot block in file is not valid.
I changed the extension to rom and got the same error.
I was triing to create a bios that would boot osx86 and load the sound drivers for asus p5qc.

;)

Attached Files



#268
Farx

Farx

    InsanelyMac Protégé

  • Members
  • Pip
  • 35 posts

Farx

I got no assertion errors with old patched AppleHDA.


What version is the HDApatcher you use?
Is there any shown in Audio(Built In) of your system profiler?
Thanx!

#269
Dimarzio

Dimarzio

    InsanelyMac Protégé

  • Members
  • Pip
  • 25 posts
Farx

Old one patched with Taruga Patcher 1.20 and linux codec dump.

#270
Beerkex'd

Beerkex'd

    Content Provider

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,000 posts
  • Gender:Male
  • Location:Belo Horizonte - Brazil

Yes, you're right, but the "patched" ROM, is the original one when FATAL ERROR appeared. It would be better if no file were generated.
If the generated ROM isn't not working, tell me and use the attachement (manually patched).


Koalala;

Generated ROMs aren't working, neither is the manually patched one you posted.

EZ-Flash (Asus built-in BIOS flash tool) throws a 'boot block in file is not valid' error and refuses to flash.

I've successfully used this patched BIOS before:
http://www.osxcores....US-1406.ROM.zip

EZ-Flash won't let me downgrade by BIOS, so I can't go back to it now.
Maybe you can tell what's wrong by comparing the code.

#271
koalala

koalala

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 196 posts
Patcher 0.2 Beta 3 is out and fixes Bootblock error.
Generated BIOSes are flashable by AFUDOS and maybe EZ-FLASH.
I wanted to post it 5 hours ago but I forgotten.

#272
koalala

koalala

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 196 posts
The new name of the program is ACPI Patcher since it can patch and extract (not importing for the moment) SSDT too but buttons are hidden.
They will only appear in 0.3 version, when all tests will be done.

#273
Dimarzio

Dimarzio

    InsanelyMac Protégé

  • Members
  • Pip
  • 25 posts
koalala

could it by any chance solve the two beeps problem on gigabytes?

#274
koalala

koalala

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 196 posts

koalala

could it by any chance solve the two beeps problem on gigabytes?


For all those who have problem with real Dual BIOS Gigabyte, it's due to a corruption bug of cbrom. Try replacing cbrom with the attached file (rename it cbrom) and try patching. It will solve some problems but I don't know if it will solve Virtual Dual BIOS bug.

Attached Files



#275
Beerkex'd

Beerkex'd

    Content Provider

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,000 posts
  • Gender:Male
  • Location:Belo Horizonte - Brazil
Just for clarification, CBROM is only used when flashing AWARD BIOS, right?

#276
koalala

koalala

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 196 posts

Just for clarification, CBROM is only used when flashing AWARD BIOS, right?

Yes (for extracting AWARD DSDT.aml too) and AMIMMWIN is used for AMI BIOS.

#277
homepav

homepav

    InsanelyMac Protégé

  • Members
  • Pip
  • 22 posts
  • Location:moscow

The new name of the program is ACPI Patcher since it can patch and extract (not importing for the moment) SSDT too but buttons are hidden.
They will only appear in 0.3 version, when all tests will be done.


Version 0.3 release date ?

#278
koalala

koalala

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 196 posts
Don't know, maybe in 2 weeks.
0.2 is not released yet.
Interface will be re-written in 0.3 since SSDT buttons are placed in the output box actually.
And I will rewrite some functions for 0.2. (SplitDSDTAward() since in the actual state it won't found DSDT in some BIOS, I will merge AMI and Award functions in SplitwDelimiters (maybe I will publish an external program too, it will be a binary file cutter with delimiters)).

#279
Dimarzio

Dimarzio

    InsanelyMac Protégé

  • Members
  • Pip
  • 25 posts
koalala

Thanks for the effort, but attached CBROM 115 didn't solve the "2 long beeps problem" (although patched BIOS works correctly).
What this two long beeps before POST actually mean? Can I just ignore them or is it dangerous?

Plus your newly included ALC888-2 (address 2 I guess) doesn't work either - no audio devices present. So here is a DSDT for ALC888 address 2 that actually work:

Device (HDEF)

			{

				Name (_ADR, 0x001B0000)

				Method (_PRW, 0, NotSerialized)

				{

					Return (Package (0x02)

					{

						0x05, 

						0x05

					})

				}

			   

				Method (_DSM, 4, NotSerialized)

				{

					Store (Package (0x08)

						{

							"codec-id", 

							Buffer (0x04)

							{

								0x88, 0x08, 0xec, 0x10

							}, 

							"layout-id", 

							Buffer (0x04)

							{

								0x0c, 0x00, 0x00, 0x00

							}, 

							"device-type", 

							Buffer (0x0e)

							{

								"Realtek ALC888"

							}, 

							"PinConfigurations", 

							Buffer (0x28)

							{

								/* 0000 */	0x10, 0x40, 0x11, 0x01, 0x20, 0x40, 0x21, 0x02,

								/* 0008 */	0x30, 0x90, 0xa1, 0x02, 0x40, 0x30, 0x81, 0x01,

								/* 0010 */	0x50, 0x10, 0x01, 0x01, 0x60, 0x60, 0x01, 0x01,

								/* 0018 */	0x70, 0x20, 0x01, 0x01, 0x80, 0x11, 0x45, 0x01,

								/* 0020 */	0x90, 0x91, 0xc5, 0x01

							}

						}, Local0)

					DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))

					Return (Local0)

				}

			}

Also I attach the patched DSL, patched BIOS and original unpatched BIOS. Hope it will help you to solve the two beeps bug.
Thanks!

UPDATE:

1. I flash with Q-FLASH if it does matter.
2. The two long beeps sound resemles a signal when "Report CPU fan failure" feature enabled at startup.

Attached Files



#280
koalala

koalala

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 196 posts
Two beeps isn't a problem but for most people it's prevent from overclocking since FSB is reset.
CBROM115 is for persons who have real Dual BIOS mainboard. For those people, memory module was corrupted by CBROM and the mainboard wouldn't boot after patching.
I'm investigate but I think it's a checksum problem.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy