Jump to content

Error trying to compile DSDT in MaciASL

error compile dsdt maciasl extract from linux syntax error unexpected PARSEOP_NAMESEG unexpected PARSEOP_ARG0

Best Answer artur_pt, 16 April 2017 - 09:59 PM

hello

 

there u go

 

hdef device insert in PCIO with layout 3

 

 

and warnings is not a problem .. is generated by the compiler ..

 

if u have error .. that is a problem .. and u can't compile the file ..

 

usually the errors and warnings u get when u decompile the original file

 

and drop all ur ssdt files .. ur audio are in the ssdt files

 

good hack

Go to the full post


  • Please log in to reply
17 replies to this topic

#1
wesleycguirra

wesleycguirra

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:São Paulo, Brazil

Hello there, I know that exists another question about it, but I'm asking again because the first one don't helped me to solve my problem

 

 

I'm trying to patch the DSDT that I extracted from linux, for audio ALC255 that I asked for help in this post, I already dissasembled from DSDT.aml to DSDT.dsl

 

then I opened the DSDT.dsl in MaciASL and try to compile and get these two errors:

11288, 6126, syntax error, unexpected PARSEOP_ARG0

13018, 6126, syntax error, unexpected PARSEOP_NAMESEG, expecting '('

I apply the patch [syn] Remove _DSM Methods from RehabMan repository and try to compile again, then I get this error:

13018, 6126, syntax error, unexpected PARSEOP_NAMESEG, expecting '('

the clean DSDT.dsl from linux:

 

Attached File  DSDT.dsl.zip   48.8KB   7 downloads



#2
artur_pt

artur_pt

    InsanelyMac V.I.P.

  • Moderators
  • 6,279 posts
  • Gender:Male
  • Location:Portugal
  • Interests:TechManiaco

hello

 

use last maciasl from rehab repo

 

Attached File  DSDT.dsl.zip   48.78KB   6 downloads

 

Attached File  Screenshot 2017-04-16 09.55.59.png   638.06KB   13 downloads

 

good hack



#3
wesleycguirra

wesleycguirra

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:São Paulo, Brazil

Tried,

 

Attached File  Screen Shot 2017-04-16 at 18.29.47.png   567.48KB   1 downloads

 

hello

 

use last maciasl from rehab repo

 

attachicon.gifDSDT.dsl.zip

 

attachicon.gifScreenshot 2017-04-16 09.55.59.png

 

good hack

 

 

Getting this error now:

11289, 6126, syntax error, unexpected PARSEOP_ARG1


#4
artur_pt

artur_pt

    InsanelyMac V.I.P.

  • Moderators
  • 6,279 posts
  • Gender:Male
  • Location:Portugal
  • Interests:TechManiaco

hello

 

try to delete that line

 

if u are applying the right patch should not have any problems .. the dsl i send u before no error

 

so .. u are applying wrong patch

 

good hack



#5
wesleycguirra

wesleycguirra

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:São Paulo, Brazil

@artur_pt

 

I'm not applying any patch, just open the .dsl and press compile.

 

tried to delete line, get these two errors:

11289, 6126, syntax error, unexpected PARSEOP_ARG2
23394, 6126, syntax error, unexpected $end and premature End-Of-File

I'm trying to apply this patch:

Attached File  system_IRQ.txt   839bytes   7 downloads

Edited by wesleycguirra, 16 April 2017 - 09:30 PM.


#6
artur_pt

artur_pt

    InsanelyMac V.I.P.

  • Moderators
  • 6,279 posts
  • Gender:Male
  • Location:Portugal
  • Interests:TechManiaco

hello

 

send me the original aml file u extract

 

what layout id u want for applehda ?

 

good hack



#7
wesleycguirra

wesleycguirra

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:São Paulo, Brazil

I was able to get it down to 38 warnings. Although, I'm sure Mald0n could remove some these warnings (unfortunately, beyond my knowledge of DSDTs):

 

c6WSR4e.png

 

And 

teTB3o3.png

 

Otherwise, no errors.

 

How can I do the same?

 

 

hello

 

send me the original aml file u extract

 

what layout id u want for applehda ?

 

good hack

Attached File  DSDT.aml.zip   26.64KB   2 downloads

 

layout-id 3 (I think is the right one for laptops)



#8
mfc88

mfc88

    InsanelyMac Legend

  • Donators
  • 604 posts
  • Gender:Male
  • Location:San Jose, Calif.

How can I do the same?

 

 

attachicon.gifDSDT.aml.zip

 

layout-id 3 (I think is the right one for laptops)

Figured it out.

 

Only 15 warnings, no errors.

Attached Files



#9
artur_pt

artur_pt

    InsanelyMac V.I.P.

  • Moderators
  • 6,279 posts
  • Gender:Male
  • Location:Portugal
  • Interests:TechManiaco

Best Answer

hello

 

there u go

 

hdef device insert in PCIO with layout 3

 

Attached File  DSDT.aml.zip   26.62KB   5 downloads

 

and warnings is not a problem .. is generated by the compiler ..

 

if u have error .. that is a problem .. and u can't compile the file ..

 

usually the errors and warnings u get when u decompile the original file

 

and drop all ur ssdt files .. ur audio are in the ssdt files

 

good hack



#10
wesleycguirra

wesleycguirra

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:São Paulo, Brazil

Figured it out.

 

Only 15 warnings, no errors.

I Want to learn how to do, because I'll need to do others patches for power management.

 

hello

 

there u go

 

hdef device insert in PCIO with layout 3

 

attachicon.gifDSDT.aml.zip

 

and warnings is not a problem .. is generated by the compiler ..

 

if u have error .. that is a problem .. and u can't compile the file ..

 

usually the errors and warnings u get when u decompile the original file

 

and drop all ur ssdt files .. ur audio are in the ssdt files

 

good hack

https://drive.google...ZVk?usp=sharing

 

in this folder have all files extracted from linux, I not rename all yet.

 

If I understand well, I need to apply audio patch for all SSDT and DSDT files when patching? like DSDT, SSDT-1, SSDT-2...



#11
MaLd0n

MaLd0n

    ...filling veins with juice of chaos...

  • Moderators
  • 15,881 posts
  • Gender:Male
  • Location:Rio de Janeiro
  • Interests:HacksLikeMacs

What hardware? ur signature?



#12
wesleycguirra

wesleycguirra

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:São Paulo, Brazil

What hardware? ur signature?

Yes It's it!



#13
MaLd0n

MaLd0n

    ...filling veins with juice of chaos...

  • Moderators
  • 15,881 posts
  • Gender:Male
  • Location:Rio de Janeiro
  • Interests:HacksLikeMacs

if u use patches like remove _DSM or XDSM, u kill many things.

E.G. Smart HD... dont use it!



#14
wesleycguirra

wesleycguirra

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:São Paulo, Brazil

Understood!

 

how can I figure out this error:

11289, 6126, syntax error, unexpected PARSEOP_ARG1

and Need I patch all SSDT files?



#15
MaLd0n

MaLd0n

    ...filling veins with juice of chaos...

  • Moderators
  • 15,881 posts
  • Gender:Male
  • Location:Rio de Janeiro
  • Interests:HacksLikeMacs

u need only one SSDT, Pike SSDTS for Native Power Management

Just run it, open, save and compile

Attached File  ssdtPRGen.command.zip   782bytes   6 downloads

The best is drop SSDTs, speed up boot, not use many and many SSDTs

 

Check Line 11294

Attached File  DSDT.aml.zip   27.33KB   4 downloads



#16
wesleycguirra

wesleycguirra

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:São Paulo, Brazil

u need only one SSDT, Pike SSDTS for Native Power Management

Just run it, open, save and compile

attachicon.gifssdtPRGen.command.zip

The best is drop SSDTs, speed up boot, not use many and many SSDTs

 

Check Line 11294

attachicon.gifDSDT.aml.zip

 

I do exact what u say:

 

Run, then open and save, then opened in MaciASL compile and save as .aml, I'll test if it works.

 

But for DSDT I didn't understand, aml is compiled, and I never edit that just dissasembly the linux file, open it in MaciASL and click compile, then I get the errors.

 

What you mean as drop SSDT? put them into ACPI/patched CLOVER FOLDER?


Did not working.

I put only SSDT in ACPI/patched

Attached File  IMG_1600.JPG   1.18MB   2 downloads

 

hello

there u go

hdef device insert in PCIO with layout 3

attachicon.gifDSDT.aml.zip

and warnings is not a problem .. is generated by the compiler ..

if u have error .. that is a problem .. and u can't compile the file ..

usually the errors and warnings u get when u decompile the original file

and drop all ur ssdt files .. ur audio are in the ssdt files

good hack


Tried to copy it to ACPI/patched OSX booted but no audio

 



#17
artur_pt

artur_pt

    InsanelyMac V.I.P.

  • Moderators
  • 6,279 posts
  • Gender:Male
  • Location:Portugal
  • Interests:TechManiaco

hello

 

try to see in about this mac > audio > if it have layout 3

 

or try to use applealc

 

     AppleALC — dynamic AppleHDA patching    

 

good hack



#18
wesleycguirra

wesleycguirra

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:São Paulo, Brazil

The main question of this post was the edit of DSDT that I was having that error, fixed with DSDT that artur_pt posted.







Also tagged with one or more of these keywords: error, compile, dsdt, maciasl, extract, from linux, syntax error, unexpected PARSEOP_NAMESEG, unexpected PARSEOP_ARG0


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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