Contribute
Register

Unable to compile DSDT (syntax error, unexpected $end and premature End-Of-File)

Status
Not open for further replies.
Joined
Jan 3, 2015
Messages
6
Motherboard
Dell Inspiron 7737 (Clover)
CPU
i7-4500U
Graphics
HD Graphics 4400 + GeForce 750M GT
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. 0
I have tried dumps from Windows, Linux, Clover and the latest IASL (20141107_64) in both Windows and Macintosh apart from the above mentioned error i get the following during compilation:

Compiler aborting due to parser-detected syntax error(s)
/Users/xxxxxx/Desktop/dsl/dsdt.dsl 5844: }
Error 6126 - syntax error, unexpected '}' ^


/Users/xxxxxx/Desktop/dsl/dsdt.dsl 5875: OperationRegion (HRPE, SystemMemory, \_GPE.MMTB (0x04), Field (HRPE, DWordAcc, Lock, Preserve)
Error 6126 - syntax error, unexpected PARSEOP_FIELD ^


/Users/xxxxxx/Desktop/dsl/dsdt.dsl 15183:
Error 6126 - syntax error, unexpected $end and premature End-Of-File

I used the -da parameter to disassemble DSDT.aml and all the DSDTs using a single namespace.


View attachment acpi.zip
 
I have tried dumps from Windows, Linux, Clover and the latest IASL (20141107_64) in both Windows and Macintosh apart from the above mentioned error i get the following during compilation:

Compiler aborting due to parser-detected syntax error(s)
/Users/xxxxxx/Desktop/dsl/dsdt.dsl 5844: }
Error 6126 - syntax error, unexpected '}' ^


/Users/xxxxxx/Desktop/dsl/dsdt.dsl 5875: OperationRegion (HRPE, SystemMemory, \_GPE.MMTB (0x04), Field (HRPE, DWordAcc, Lock, Preserve)
Error 6126 - syntax error, unexpected PARSEOP_FIELD ^


/Users/xxxxxx/Desktop/dsl/dsdt.dsl 15183:
Error 6126 - syntax error, unexpected $end and premature End-Of-File

I used the -da parameter to disassemble DSDT.aml and all the DSDTs using a single namespace.


View attachment 120210

Remove the HRPR method:
Code:
into method label HRPR remove_entry;

That should get you closer... (the other errors are obvious)
 
What does this method do??
 
What does this method do??

No idea. But there is no possible way for it to work since MMTB is not defined anywhere.

It is probably something specifically for Windows.
 
After removing HRPR I also removed the following lines killing every syntax error:

Return (MDBG)
Arg0

Now the following names already exist in scope (error):

External (_SB_.PCI0.PEG0, UnknownObj)
External (_SB_.PCI0.PEG0.PEGP, UnknownObj)
External (_SB_.PCI0.RP05.PEGP, UnknownObj)

Can I just delete them? (Removes the errors)
 
Apparently MaciASL is unable to enumerate devices and methods beyond a certain line and I cannot apply automated patches to devices beyond it (such as XHC). Is there something I can do but applying them manually??
 
After removing HRPR I also removed the following lines killing every syntax error:

Return (MDBG)
Arg0

Yes, the error in ADBG is so common I have a patch for it: https://github.com/RehabMan/Laptop-DSDT-Patch, "Fix ADBG Error"

Now the following names already exist in scope (error):

External (_SB_.PCI0.PEG0, UnknownObj)
External (_SB_.PCI0.PEG0.PEGP, UnknownObj)
External (_SB_.PCI0.RP05.PEGP, UnknownObj)

Can I just delete them? (Removes the errors)

Yes.
 
Well being bad or not it works now I have brightness control at fresh boot thanks to your idea of adding the wake code to the PNLF device.
 
Well being bad or not it works now I have brightness control at fresh boot thanks to your idea of adding the wake code to the PNLF device.

Please provide complete details in your profile/signature
(Profile/Settings link in upper right corner of this site)

System: manufacturer/model + bootloader(Clover/Chameleon/Chimera)
CPU: detailed CPU model + motherboard chipset
Graphics: all graphics devices + laptop internal screen resolution

For example, typical Ivy laptop:
System: HP ProBook 4540s (Clover)
CPU: i5-3320m/HM76
Graphics: HD4000, 1366x768

Use CPU-Z on Windows to find CPU (Core iX-xxx) and motherboard chipset (HMxx), and graphics capabilities. For a laptop, these details are important and affect critical installation procedures.
 
Status
Not open for further replies.
Back
Top