Jump to content

DSDT Error during compile


Eddie L
 Share

10 posts in this topic

Recommended Posts

Hi, I am trying to patch DSDT file to enable resizable bar, and i am getting the following errors if someone can please help

 

Intel ACPI Component Architecture
ASL+ Optimizing Compiler/Disassembler version 20230628
Copyright (c) 2000 - 2023 Intel Corporation

Error    6126 -  Compiler aborting due to parser-detected syntax error(s)


DSDTMod.dsl  10720:         }
Error    6126 -            ^ syntax error, unexpected '}'

DSDTMod.dsl  14117:
Error    6126 - syntax error, unexpected $end and premature End-Of-File

Error    6126 -  Compiler aborting due to parser-detected syntax error(s)


DSDTMod.dsl  10720:         }
Error    6126 -            ^ syntax error, unexpected '}'

DSDTMod.dsl  14117:
Error    6126 - syntax error, unexpected $end and premature End-Of-File

Input file:    DSDTMod.dsl - Compilation aborted due to parser-detected syntax error(s)

Compilation failed. 3 Errors, 0 Warnings, 0 Remarks
No AML files were generated due to syntax error(s)

DSDTMod.dsl

Link to comment
Share on other sites

No problem

ASL Input:     DSDTMod.dsl -  491379 bytes   5865 keywords  14113 source lines
AML Output:    DSDTMod.aml -   55029 bytes   4360 opcodes    1505 named objects
Hex Dump:      DSDTMod.hex -  502459 bytes

Compilation successful. 0 Errors, 60 Warnings, 152 Remarks, 184 Optimizations

See my correction near 10720

 

DSDTMod.dsl

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

I am now getting another error when using this file with AmiBoardInfo using AmiBoardInfoTool -a AmiBoardInfo.efi -d DSDTMod.aml -o AmiBoardInfoMod.efi. I am getting error ERROR: PE32 has .ROM but not DYNAMIC_BASE set -> Unpatchable atm..

 

In the wiki, it says toRemove unneeded ACPI _OSI entries to reduce DSDT size. 

 

Which i did, but i still get same error, it also says i can remove the following entries, if you can help me removing them.

 

The link below is details the patching guidelines https://github.com/xCuri0/ReBarUEFI/wiki/DSDT-Patching

 

 

If DSDT still isn't small enough you can try

  • Remove all ADBG lines
  • Remove device BAT0 / BAT1 / BAT2
  • Remove device DOCK
  • Remove device LID0
Edited by Eddie L
Link to comment
Share on other sites

How many bytes you have to remove? Is there any sense to remove or not some devices? Some code branches? 

_OSI means Operation System Identificator: "Windows 2001", "Linux" or "Darwin". Which one you need?

What is AmiBoardInfoTool? Any sense to use it if we have Clover?

Link to comment
Share on other sites

I just need for windows 11 and windows 10 only

 

but that was not enough removed to run AmiBoardInfoTool -a AmiBoardInfo.efi -d DSDTMod.aml -o AmiBoardInfoMod.efi, can you help me remove 

  • Remove all ADBG lines
  • Remove device BAT0 / BAT1 / BAT2
  • Remove device DOCK
  • Remove device LID0
Link to comment
Share on other sites

On 2/13/2024 at 1:15 AM, Eddie L said:

I just need for windows 11 and windows 10 only

 

but that was not enough removed to run AmiBoardInfoTool -a AmiBoardInfo.efi -d DSDTMod.aml -o AmiBoardInfoMod.efi, can you help me remove 

  • Remove all ADBG lines
  • Remove device BAT0 / BAT1 / BAT2
  • Remove device DOCK
  • Remove device LID0

OK, If it is still actual I did this

DSDT_mod.zip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...