Eddie L Posted February 12, 2024 Share Posted February 12, 2024 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 Quote Link to comment https://www.insanelymac.com/forum/topic/358710-dsdt-error-during-compile/ Share on other sites More sharing options...
Slice Posted February 12, 2024 Share Posted February 12, 2024 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 1 1 Quote Link to comment https://www.insanelymac.com/forum/topic/358710-dsdt-error-during-compile/#findComment-2816822 Share on other sites More sharing options...
Eddie L Posted February 12, 2024 Author Share Posted February 12, 2024 Thats amazing, thank you, so you added "//" in front of each line? Quote Link to comment https://www.insanelymac.com/forum/topic/358710-dsdt-error-during-compile/#findComment-2816827 Share on other sites More sharing options...
Slice Posted February 12, 2024 Share Posted February 12, 2024 9 minutes ago, Eddie L said: Thats amazing, thank you, so you added "//" in front of each line? It means "commented out" so excluded from codes. I also may recommend to read https://github.com/CloverHackyColor/CloverBootloader/wiki/Fixing-DSDT Quote Link to comment https://www.insanelymac.com/forum/topic/358710-dsdt-error-during-compile/#findComment-2816828 Share on other sites More sharing options...
Eddie L Posted February 12, 2024 Author Share Posted February 12, 2024 (edited) 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 February 12, 2024 by Eddie L Quote Link to comment https://www.insanelymac.com/forum/topic/358710-dsdt-error-during-compile/#findComment-2816829 Share on other sites More sharing options...
Slice Posted February 12, 2024 Share Posted February 12, 2024 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? Quote Link to comment https://www.insanelymac.com/forum/topic/358710-dsdt-error-during-compile/#findComment-2816830 Share on other sites More sharing options...
Eddie L Posted February 12, 2024 Author Share Posted February 12, 2024 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 Quote Link to comment https://www.insanelymac.com/forum/topic/358710-dsdt-error-during-compile/#findComment-2816838 Share on other sites More sharing options...
Slice Posted February 13, 2024 Share Posted February 13, 2024 These devices will free 100 bytes. Is it enough? Quote Link to comment https://www.insanelymac.com/forum/topic/358710-dsdt-error-during-compile/#findComment-2816852 Share on other sites More sharing options...
Eddie L Posted February 15, 2024 Author Share Posted February 15, 2024 Yes, that should be enough, thank you Quote Link to comment https://www.insanelymac.com/forum/topic/358710-dsdt-error-during-compile/#findComment-2816967 Share on other sites More sharing options...
Slice Posted February 17, 2024 Share Posted February 17, 2024 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 Quote Link to comment https://www.insanelymac.com/forum/topic/358710-dsdt-error-during-compile/#findComment-2817027 Share on other sites More sharing options...
Recommended Posts
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.