Syntax error unexpected parseop zero

I changed to a new notebook and installed Mavericks with Clover using the excellent tutorials on this site. However, when I try to edit the dsdt I ran into problems. The dsdl von MacIASL had 6 error messages. Therfore I have extracted DSDT with ahcidump on Ubuntu 14.04.1 LTS and de-compiled with...

  • #1

I changed to a new notebook and installed Mavericks with Clover using the excellent tutorials on this site. However, when I try to edit the dsdt I ran into problems. The dsdl von MacIASL had 6 error messages. Therfore I have extracted DSDT with ahcidump on Ubuntu 14.04.1 LTS and de-compiled with iasl from ACPICA version 20141107. I used the following command:

iasl -e ssd*.dat -d dsdt.dat

When I try to compile the dsdt.dat file I still get the following errors:
4323: Error 6126 — syntax error, unexpected PARSEOP_ZERO
5048: Error 6126 — syntax error, unexpected PARSEOP_ZERO
17219: Error 6126 — syntax error, unexpected ‘}’
22771: Error 6126 — syntax error, unexpected $end and premature End-Of-File

What can I do to fix these errors?

Enclosed the output of ahcidump and the dsdt.dsl

  • dump.zip

    124.5 KB

    · Views: 515

  • dsdt.zip

    61.8 KB

    · Views: 484

  • #2

Haswell DSDT compile error

I changed to a new notebook and installed Mavericks with Clover using the excellent tutorials on this site. However, when I try to edit the dsdt I ran into problems. The dsdl von MacIASL had 6 error messages. Therfore I have extracted DSDT with ahcidump on Ubuntu 14.04.1 LTS and de-compiled with iasl from ACPICA version 20141107. I used the following command:

iasl -e ssd*.dat -d dsdt.dat

When I try to compile the dsdt.dat file I still get the following errors:
4323: Error 6126 — syntax error, unexpected PARSEOP_ZERO
5048: Error 6126 — syntax error, unexpected PARSEOP_ZERO
17219: Error 6126 — syntax error, unexpected ‘}’
22771: Error 6126 — syntax error, unexpected $end and premature End-Of-File

What can I do to fix these errors?

Enclosed the output of ahcidump and the dsdt.dsl

dsdt.zip is an endless loop of .zip->.zip.cpgz->.zip, etc.

You will get a better disassembly if you disassemble all at once…

You will need to extract all DSDT/SSDT from Linux. They are available in /sys/firmware/acpi/tables and /sys/firmware/acpi/tables/dynamic. Place them on USB or otherwise transfer to OS X.

It is not necessary to install Linux. Simply run it from USB: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows

In Linux Terminal:

Code:

# substitute DEST with the mountpoint of a FAT32 formatted USB stick
sudo cp -R /sys/firmware/acpi/tables DEST

Place all SSDT/DSDT in a single directory and use a recent build of iasl to disassemble:
https://bitbucket.org/RehabMan/acpica/downloads

Code:

cd "to directory where you placed all SSDT/DSDT"
iasl -da -dl *.aml

Then work with the resulting *.dsl. You’ll find you have less errors to deal with.

  • #3

Haswell DSDT compile error

Thank you for your quick reply!

dsdt.zip is an endless loop of .zip->.zip.cpgz->.zip, etc.

Then work with the resulting *.dsl. You’ll find you have less errors to deal with.

I followed your instructions. However, the resulting file (enclosed as attachment without endless loop) still has the same errors:

Code:

4243: Error 6126 - syntax error, unexpected PARSEOP_ZERO
4323: Error 6126 - syntax error, unexpected PARSEOP_ZERO
5048: Error 6126 - syntax error, unexpected PARSEOP_ZERO
17219: Error 6126 - syntax error, unexpected '}'
22771: Error 6126 - syntax error, unexpected $end and premature End-Of-File

Do you have any ideas?

  • DSDT.zip

    76.2 KB

    · Views: 457

  • #4

Haswell DSDT compile error

Thank you for your quick reply!

I followed your instructions. However, the resulting file (enclosed as attachment without endless loop) still has the same errors:

Code:

4243: Error 6126 - syntax error, unexpected PARSEOP_ZERO
4323: Error 6126 - syntax error, unexpected PARSEOP_ZERO
5048: Error 6126 - syntax error, unexpected PARSEOP_ZERO
17219: Error 6126 - syntax error, unexpected '}'
22771: Error 6126 - syntax error, unexpected $end and premature End-Of-File

Do you have any ideas?

If you disassemble with the ‘iasl’ I linked you’ll get a result that is friendlier for MaciASL…

Employ this simple process for fixing all the errors: remove the lines causing the errors. This includes the lines that consist of just ‘Zero’.

And make ADBG read:

Code:

    Method (ADBG, 1, Serialized)
    {


        Return (Zero)
    }

There are actually patches in the repo for some of the errors you have: https://github.com/RehabMan/Laptop-DSDT-Patch

But MaciASL can’t deal with the file dissembled with the wrong version of iasl.

  • #5

Haswell DSDT compile error

If you disassemble with the ‘iasl’ I linked you’ll get a result that is friendlier for MaciASL…

Employ this simple process for fixing all the errors: remove the lines causing the errors. This includes the lines that consist of just ‘Zero’.

There are actually patches in the repo for some of the errors you have: https://github.com/RehabMan/Laptop-DSDT-Patch

But MaciASL can’t deal with the file dissembled with the wrong version of iasl.

I followed your advice and did the decompile with the compiler from your link. I also edited the file to remove the errors. The most relevant changes I did have been that I had to comment out:
1) all ToPld values for device CAM0: lines 18094ff (does that mean I will not be able to use the WebCAM?)
2) all IFS in the System State: lines 22783ff (does that mean PowerSave will not work?)

However, I am still stuck with 1 error:

Code:

22851 6126 syntax error, unexpected $end and premature End-Of-File

Any ideas on how to remove that last remaining error? Any help would be appreciated!

Also one more question: Once DSDT is fixed, which patches should I apply from the various patch repositories? System Info gives the following hardware:

Code:

Intel 8 Series SMBus Controller 
Intel 8 Series SATA Controller 1 (AHCI mode)
Intel 8 Series LPC Controller
Intel 8 Series USB EHCI #1
Realtek TTL8111/8168/8411 PCI Express Gigabit Ethernet
Intel 8 Series PCI Express
Intel 8 Series HD Audio Controller
Intel 8 Series HECI
Intel 8 Series USB xHCI HC
Haswell-ULT HD Audio Controller
Haswell-ULT Integrated Graphics Controller

  • DSDT.zip

    64.1 KB

    · Views: 329

  • #6

Haswell DSDT compile error

deleted duplicate message

  • #7

Haswell DSDT compile error

I followed your advice and did the decompile with the compiler from your link. I also edited the file to remove the errors. The most relevant changes I did have been that I had to comment out:
1) all ToPld values for device CAM0: lines 18094ff (does that mean I will not be able to use the WebCAM?)

The ToPLD macros are fine if you use the latest iasl. Keep in mind there is an iasl inside of MaciASL: https://github.com/RehabMan/OS-X-MaciASL-patchmatic

2) all IFS in the System State: lines 22783ff (does that mean PowerSave will not work?)

I have no idea what you’re referring to. Perhaps you should post your native files as extracted from Linux.

However, I am still stuck with 1 error:

Code:

22851 6126 syntax error, unexpected $end and premature End-Of-File

It is likely some of your edits were incorrect. Post your native files.

Any ideas on how to remove that last remaining error? Any help would be appreciated!

Also one more question: Once DSDT is fixed, which patches should I apply from the various patch repositories? System Info gives the following hardware:

Code:

Intel 8 Series SMBus Controller 
Intel 8 Series SATA Controller 1 (AHCI mode)
Intel 8 Series LPC Controller
Intel 8 Series USB EHCI #1
Realtek TTL8111/8168/8411 PCI Express Gigabit Ethernet
Intel 8 Series PCI Express
Intel 8 Series HD Audio Controller
Intel 8 Series HECI
Intel 8 Series USB xHCI HC
Haswell-ULT HD Audio Controller
Haswell-ULT Integrated Graphics Controller

It depends on what, specifically, you’re trying to fix.

  • #8

Haswell DSDT compile error

I have no idea what you’re referring to. Perhaps you should post your native files as extracted from Linux. It is likely some of your edits were incorrect. Post your native files.

Thank you very much for your reply! Native files below. Can you see anything? Should I also post the unchanged DSDT?

BTW. My IASL is from 20131218-64bit. I have used the update button in MacIASL.

  • Linux-Extract.zip

    45.4 KB

    · Views: 225

  • #9

Haswell DSDT compile error

Thank you very much for your reply! Native files below. Can you see anything? Should I also post the unchanged DSDT?

BTW. My IASL is from 20131218-64bit. I have used the update button in MacIASL.

I applied this patch to DSDT.dsl (after ‘iasl -da -dl DSDT.aml SSDT*.aml’)

Code:

into_all all code_regex (s+Zero){2,} removeall_matched;
into_all all code_regex (s+Zero){2,} removeall_matched;
into method label ADBG replace_content begin Return(0) end;

Then removed the remaining 4 lines causing errors (not needed since they do nothing).

Result: DSDT.dsl compiles error free.

I’m using iasl here: https://bitbucket.org/RehabMan/acpica/downloads

  • #10

Haswell DSDT compile error

I applied this patch to DSDT.dsl (after ‘iasl -da -dl DSDT.aml SSDT*.aml’)

Code:

into_all all code_regex (s+Zero){2,} removeall_matched;
into_all all code_regex (s+Zero){2,} removeall_matched;
into method label ADBG replace_content begin Return(0) end;

Then removed the remaining 4 lines causing errors (not needed since they do nothing).

Result: DSDT.dsl compiles error free.

I’m using iasl here: https://bitbucket.org/RehabMan/acpica/downloads

I am really sorry but I seem to be to stupid and I am still stuck with a lot of errors. Here is what I did:
1) downloaded IASL.zip from 2014-11-13 from your file and put the extracted iasl in my home directory (13 Nov 2014, 1MB)
2) put the Linux extract files that are in the posted zip file in the sub-directory tables
3) ../iasl -da -dl dsdt.aml ssdt*.aml
4) Opened with MaciASL
5) MaciASL preferences: ACPI 5.0, Updated iASL (compiler version 20131218-64 (Jan 8 2014))
5) First compile 36 errors
6) Applying your patch: Still 32 errors (and not 4 as in your post)

What am I doing wrong? I am really desperate now. May I ask you to share the error-free DSDL that you generated? I know that this is a big ask but this seems to be too much science for me…

Содержание

  1. Помогите починить dsdt
  2. Syntax error unexpected parseop zero
  3. Comments
  4. Laptop-DSDT-Patch / syntax / fix_PARSEOP_ZERO.txt
  5. Users who have contributed to this file
  6. mipnope

Помогите починить dsdt

Помогите собрать dsdt без ошибок. Сам уже замучился разбираться в этом asl, жутко странный язык, на русском ничего по нему не нашел, а по-английски не готов читать. Ошибки какие-то не типичные. Также не понятно, как asus собрал dsdt интеловским компилятором 2012 года, если у меня он выдает 5 ошибок (может декомпилируется с ошибками?).

здесь уже было достаточно тем по DSDT, используй поиск

Не особо они помогают. Вы не в курсе ssdt тоже нужно править для исправления проблем (пытаюсь решить проблемы с гибернацией и предупреждениями в dmesg)?

Я вкурсе что всем лень возвращаться к этой теме. См. изъяснения init6.

Сначала из жлобства купить асус, а потом ныть на форумах, что асус — дерьмо. Это типично для среднестатистического посетителя этого ресурса.

нет, ssdt править (для заявленных проблем) — не нужно.

пытаюсь решить проблемы с гибернацией и предупреждениями в dmesg

Если всё остальное работает, то предупреждения просто игнорируй.

Гибернация же унылое ненужно говно. Просто научись выключать свой ноут. С сегодняшними SSD загрузка к полностью работоспособному окружению проходит очень оперативно. И при этом не нужно юзать недоработанное поделие и еще и свопа ему выделять.

Сначала из жлобства купить анус, а потом ныть на форумах, что анус — дерьмо. Это типично для среднестатистического посетителя этого ресурса.

Тупица открой для себя эпичнейшие баги dsdt у apple! Некоторые модели есть так асус будет героем на фоне яббла.

Мало того в данном вопросе производитель и/или цена изделия не играет никакой роли ибо чаще как повезет.

Всегда твой, С любовью — капитан Очевидность.

юзеры апла заморочились и создали приложение для фикса типичных багов dsdt 😉

init6? Что или кто это?

Гибернация же унылое ненужно говно.

Не согласен. Лично для меня удобная и нужная (особенно с hdd). Предлагаю больше не спорить на эту тему.

Написал в поддержку асуса с просьбой обновить биос и исправить ошибки в dsdt. Как думаете что ответят?

нет, ssdt править (для заявленных проблем) — не нужно.

юзер, собрал типичные ошибки решения траблов dsdt в кучу, за что ему благодарочка
не писал его юзером, т.к. это его кастанет, а ему тоже лень разбираться в чужих проблемах
изпользуй поиск, я ж намекнул в своем первом посте

Дааа. Эти ошибки кое-как убрал появилось 3 новых (которые тоже исправил) и 109 warnings, 205 Remarks, 196 Optimizations, 8 Constants Folded. Предупреждения от dmesg никуда не делись.

Что-то править без малейшего понимания что я делаю, желания нет. Может кто знает какие либо статьи по этому языку (asl). Желательно на русском, но на английском не сильно раздутые тоже пойдут.

Спасибо, посмотрю. (Посмотрите мой пост выше)

т.к. это его кастанет, а ему тоже лень разбираться в чужих проблемах

в результате меня всё-равно кастануло но по тэгу.

опиши для начала свои проблемы по пунктам, чтоб два раза не перечитывать
типо
* жму кнопку такую-то и не уходит в сон
* и т.д.
(ну т.е. я счтаю что передал тебя в руки мастера, если только он спать не ушел)

Главная проблема одна: гибернация работает не стабильно. Когда система относительно свежая (перезагрузка была недавно, много программ не запускал) система может восстановиться после гибернации нормально, но если я открываю смотреть фильм, копаюсь в файловом менеджере и открываю браузер с десяткой вкладок, то зависание при восстановлении обеспечено. После добавления к параметрам ядра

Dmesg при штатной загрузке показывает несколько конфликтов в озу, связанных с apic. (было на 4 больше, пока не отключил дискретную видеокарту).

Simarc

  • Если хочешь чтоб починили/помогли починить dsdt/ssdt отдавай dsdt.dat полученный из cat /sys/firmware/acpi/tables/DSDT > dsdt.dat либо cat /proc/acpi/dsdt > dsdt.dat
  • Всегда пользуйся самым свежим доступным софтом.

Так вот а с тем что ты дал:

А это ^ говорит о том что либо dsdt снят криво, либо asus таки полный asnus и dsdt настолько упорот что. в общем ну ты понял.

Конечно, http://rgho.st/6RR7FQZZg . Как я понял premature End-Of-File из-за неправильно расставленных < и >.

Продолжаем. продолжать. Как это делается по уму. Сперва делаем небольшой файлик:

Затем повторяем декомпиляцию но уже из *.dat:

Переводить не буду. Но в паре слов — радостный iasl сообщил нам что он смог решить 9 из 27 внешних контрольных методов.

Штука в том что вон ^ там выше где было Compilation complete. 201 Errors, 0 Warnings, 0 Remarks, 0 Optimizations так вот эта строчка намекает на то DSDT неполный.

Теперь об этом предупреждает и сам iasl собственно вон там Additional ACPI tables may be required to properly disassemble the code. The resulting disassembler output file may not compile because the disassembler did not know how many arguments to assign to the unresolved methods.

Скорее всего нужн <а/ы>ssdt. Живут они там же /sys/firmware/acpi/tables/SSDT и их количество тоже может быть разное от одной до нескольких. И и они могут быть либо статическими, как и dsdt , либо динамическими, и в этом случае все еще хуже.

В любом случае чтоб что-то сказать нужны все ssdt потому-что они могут отличатся.

Исправил только dsdt.dsl

Дальше неплохо бы исправлять ssdt*.dsl там тоже ад.

Simarc как заберешь отпишись.

Спасибо за старания, но не помогло. Гибернация не работает, конфликты, ошибки, предупреждения висят в dmesg. Новый dmesg http://pastebin.com/YJXzFNPM . По строчке ACPI: Override [DSDT-Notebook], this is unsafe: tainting kernel видно, что dsdt переопредилилась.

Недавно появилась тема http://archlinux.org.ru/forum/topic/16311 с точно такой же проблемой как у меня, тоже asus (но другой очень похожий), тоже нет гибернации, dmesg ошибки, конфликты. Причем ошибки похожи вплоть до адресов конфликтов.

Кстати, обратился в поддержку асуса с просьбой обновить bios (описал проблемы) — послали использовать окна. Сказали: «К сожалению, у нас нет данных по Linux, поскольку мы не поддерживаем эту систему. Для Windows нужно было бы переустанавливать драйверы АТК, ВТ и Wi-Fi. Но для Linux у нас их нет.»

У твоей железки образцово показательное уг в acpi причем не только в dsdt но и в ssdt. К то-же еще и в зависимости от того как именно снимать dsdt и результат, как ты мог сам убедится, тоже будет разный.

На твоём месте я бы добил до конца ещё и все ssdt. Зачем? Ну во первых ошибок в ssdt у тебя там не меньше и решать их надо таким же макаром как и в случае dsdt а как быть дальше вон почитай к примеру там и всё поймешь. Во вторых точнее вычисляй и локализуй свои проблемы так можно быстрее найти именно тот баг который за это ответственен. Как это сделать?

Скрипты там Ими можно сгенерировать дерево методов по твоим таблицам. Дальше тупо в спецификации acpi есть описание каждого элемента. Ну к примеру _PR_ это проц. Так вот вспоминаешь что конкретно у тебя не работает либо работает не так как обязано. По спекам acpi находишь как оно обзывается в dsdt/ssdt ищешь этот элемент в дереве методов. И вот ты локализовал место поисков в тоннах текстов dsdt/ssdt.

Это самое забавное. Чаще гораздо проще найти работающий кусок и разобраться как же оно должно быть на самом деле.

И да вообще acpi в linux тот ещё лагодром. Так что не жди что вот так просто сразу всё исправится и станет просто хорошо. В acpi есть костыли на разных уровнях от BIOS/EFI, ядра до юзерспейса и глючить может в разных местах. И баги соответственно тоже могут быть от абсолютно разного да и ещё и от сочетаний этого разного в разных местах.

Источник

Syntax error unexpected parseop zero

Result is not used, possible operator timeout will be missed Use of compiler reserved name (_T_1) Not all control paths return a value Effective AML package length is zero syntax error, unexpected PARSEOP_ARG0 Statement is unreachable ResourceTag larger than Field (Tag: 16 bits, Field: 8 bits) ResourceTag larger than Field (Tag: 64 bits, Field: 32 bits) Object does not exist (GOST) Object not found or not accessible from scope Name already exists in scope (TNOT) _HID suffix must be all hex digits Reserved method should not return a value

Underbeat: Кто может подсказать, как эту убрать?
local variable is not initialized (local0)

Dr.Prokhor: Привет подскажи как исправить ошибку, object does not exist (RMKB)

Евгений Алейников: помогите пожалуйста одна осталась
13253 Warning Unknown reserved name (_CFG)

Wagner MEDEIROS: Fantastic! How I fix parseop internet error? Thx.

Контр Адмирал: цукме

Роман Андреев: у меня почему то ничего не появляется при нажатии на Compile !! почему ? в чем может быть причина?

Murad Akhmedov: Здравствуйте. Ни как не могу завершить свой DSDT, ноутбук HP PAVILION n058sr.Вы не встречали warning Q80 и Q81 Temperature up и down?Добавил в конце этих методов Return(Zero).Но потом Появился другой Warning Q91, который возвращает либо 0x80 либо 0x81. Его вообще не получилось исправить.
Если я пришлю свой DSDT файл не могли бы вы посмотреть его? Ну и на ютуб можно было бы выложить 🙂

RepublicanMug: Раскрыл pci шину на ноутбуке с вашим гайдом.
Спасибо.

Serj anonim: Мужик большое спасибо тебе, очень выручил этим видео.

Dreamtheater: Hello my dear friend, I hope you are well .

I need your help please, to solve the audio, in my laptop, I install captitan 10.11.5 and my specifications are:

Dell Inspiron 14 5000 series (5458)

— Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz

— Intel HD Graphics 5500

Intel Dual Band Wireless-AC 3160 AC HMC WiFi Adapter

Realtek RTL8139/810x Fast Ethernet Adapter

Intel Broadwell HDMI @ Intel Broadwell — Mini HD Audio

Realtek ALC255 @ Intel Wildcat Point-LP PCH High defi.

The problem is that when reviewing the file AppleHDA.kext appears as not loaded, I do not know why, if the .app is original.

I extracted my original .dsdt and upon compiling, it results in an error and several warning .

12011 6126 syntax error, unexpected PARSEOP_ARG0

How can i fix this,
And enable the audio completely.

Please help me, my dear friend.

I would thank you infinitely
God bless you

Игорь Сергеевич: Спасибо чувак. Не знал что скобки полсвечиваются.

Умный дом Pro:Mobile: Привет, посмотрел твое видео про исправление ошибок в DSDT. Спасибо. Но не могу справится со своим DSDT. Можешь помочь? Если да скину тебе файлы. Спасибо.

Алексей Демшин: Приветствую подскажи знаешь что нибудь,
не могу найти никакой информации по предупреждению
Statement is unreachable

Женя Овсяников: Здравствуйте! Подскажите, как исправить ошибку 6126 в телефоне LG X135. Комп не видит телефон, потому что не могу включить отладку по ЮСБ. Пытаюсь прошить, всё прошивает, а в конце ошибка BROM ERROR : S_SECURITY_SECRO_HASH_INCORRECT (6126) , MSP ERROE CODE : 0x00

pavlinux: Device (SBRG)

Name (ECIN, Zero)
Mutex (ECMU, 0x00)
Mutex (MLMU, 0x00)
If (ECEN)

Compiling «dsdt.dsl»
Compiler aborting due to parser-detected syntax error(s)
dsdt.dsl 3726: If (ECEN)
Error 6126 — ^ syntax error, unexpected PARSEOP_IF

pavlinux: Автор, откуда уверенность, что все методы возвращают Zero? Откуда уверенность, что Byte на Word можно менять?

KIDS FAMILY: 3526 Warning ResourceTag smaller than Field (Tag: 1 bit, Field: 8 bits) привет помоги исправить вот эту ошибку я загуглил ничего не нашел полезного

Юрий Иванов: Здравствуйте, можете помочь через скайп?

Serg XYZ: Not a control method, cannot invoke (PS0X is a Untyped). Помогите, пожалуйста.

Kolya mehanik: очень полезное видео! спасибо)

Редактирование и патч DSDT — MaciASL Часть 3

Редактирование и патч DSDT — MaciASL Часть 3 www.Hackintosh-amd.ru http://my-files.ru/9s5yjp.

Редактирование и патч DSDT через MaciASL – Урок 2

Редактирование и патч DSDT – Урок 2 http://www.hackintosh-amd.ru http://www.hackintosh-intel.ru http://sourceforge.net/projects/maciasl/ .

Патч и редактирование DSDT

Три способа как извлечь DSDT – Hackintosh MaciASL Clover Ubuntu Patchmatic

Три способа как извлечь DSDT – Hackintosh MaciASL www.hackintosh-amd.ru https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/

Исправление ошибок DSDT – Hackintosh

Исправление ошибок DSDT – Hackintosh www.hackintosh-intel.ru www.hackintosh-amd.ru DSDT Editor http://dfiles.ru/files/ablku96gd.

Ошибки DSDT и способы их исправления

Result is not used, possible operator timeout will be missed Use of compiler reserved name (_T_1) Not all control paths return a value Effective AML package .

филиалы: Москва | Санкт-Петербург | Екатеринбург | Нижний Новгород | Самара | Уфа | Челябинск | Тюмень | Новосибирск | Владивосток | Хабаровск

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Laptop-DSDT-Patch / syntax / fix_PARSEOP_ZERO.txt

Users who have contributed to this file

#Maintained by: RehabMan for: Laptop Patches
#fix_PARSEOP_ZERO.txt
# credit toleda: http://www.tonymacx86.com/dsdt/89727-maciasl-patch-repository-thread.html#post574047
into device label PCI0 code_regex (s+Zero) removeall_matched;
# if you need something more agressive.
#into_all all code_regex (s+Zero) removeall_matched;
#into device label PCI0 code_regex (s+Zero) removeall_matched;
  • © 2020 GitHub, Inc.
  • Terms
  • Privacy
  • Security
  • Status
  • Help

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

mipnope

I am trying to fix my native DSDTs and SSDTs. Unfortunately without any luck. Files where extracted according to guide with
Linux. Clover gave trouble.

on DSDT
11807, 6126, syntax error, unexpected PARSEOP_ARG0
25123, 6126, syntax error, unexpected PARSEOP_ZERO

on SSDT2
221, 6126, syntax error, unexpected PARSEOP_PACKAGE

on SSDT4
221, 6126, syntax error, unexpected PARSEOP_PACKAGE
5324, 6126, syntax error, unexpected PARSEOP_SLEEP, expecting ‘,’ or ‘)’
5324, 6126, syntax error, unexpected PARSEOP_SLEEP, expecting ‘,’ or ‘)’
5329, 6126, syntax error, unexpected ‘)’
5382, 6126, syntax error, unexpected ‘>’, expecting $end and premature End-Of-File

Trying to fix with MaciASL but can’t get MaciASL Rehabman to work (Very strange, see my previous post). So tried apply Patches for Parseop Zero on MaciASL 1.4 from SourceForge. But it will not give me the option to apply. I have no clue where to insert the code manually.

Источник

  • Become a Premium Member for $25/year with no ads to improve your community experience.

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

biglibigli

Joined
Nov 29, 2019
Messages
47
Motherboard

ASUSTeK X556UQK — laptop

CPU

Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz, 2904 Mhz, 2 Core(s), 4 Logical Processor(s)

Graphics

Intel(R) HD Graphics 620 — NVIDIA GeForce 940MX

OS X/macOS

10.14.x

Bootloader
  1. Clover (UEFI)
Mobile Phone
  1. Android


  • #121

Hi, I have Catalina on my laptop as shown in my profile.
I disassembled origin with no error.
Open dsdt with MaciASL and just press complie btn to see are there any errors and there was 3. I attached photo of them. How can I fix them ?

5863, 6126, syntax error, unexpected PARSEOP_ZERO
5908, 6126, syntax error, unexpected PARSEOP_ZERO
10320, 6126, syntax error, unexpected PARSEOP_NAME, expecting $end and premature End-Of-File

Attachments

EliteMacx86

Joined
Jul 22, 2018
Messages
4,420
Motherboard

Supermicro X11SPA-T

CPU

Intel Xeon W-3275 28 Core

Graphics

2xAMD RX 580 8GB

OS X/macOS

12.0.x

Bootloader
  1. OpenCore (UEFI)
Mac
  1. Mac mini
  2. MacBook Pro
Mobile Phone
  1. Android
  2. iOS


  • #123

Hi, I have Catalina on my laptop as shown in my profile.
I disassembled origin with no error.
Open dsdt with MaciASL and just press complie btn to see are there any errors and there was 3. I attached photo of them. How can I fix them ?

5863, 6126, syntax error, unexpected PARSEOP_ZERO
5908, 6126, syntax error, unexpected PARSEOP_ZERO
10320, 6126, syntax error, unexpected PARSEOP_NAME, expecting $end and premature End-Of-File

Apply «[syn] Fix PARSEOP_ZERO Error (aggresive) patch from the error. It should be error free.

biglibigli

Joined
Nov 29, 2019
Messages
47
Motherboard

ASUSTeK X556UQK — laptop

CPU

Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz, 2904 Mhz, 2 Core(s), 4 Logical Processor(s)

Graphics

Intel(R) HD Graphics 620 — NVIDIA GeForce 940MX

OS X/macOS

10.14.x

Bootloader
  1. Clover (UEFI)
Mobile Phone
  1. Android


  • #125

Apply «[syn] Fix PARSEOP_ZERO Error (aggresive) patch from the error. It should be error free.

thanks, All errors gone by deleting zeros causing error. :)
I used these patches on DSDT :

audio Layout ID 3
Rename GFX0 to IGPU
Fix _WAK Arg0 v2
Fix Mutex with non-zero SyncLevel
HPET Fix
IRQ Fix
OS Check Fix
RTC Fix
SMBUS Fix
Haswell LPC
6-series USB
7-series/8-series USB

and not used these :
——Rename B0D3 to HDAU
——Fix PNOT/PPNT (use only if you’re dropping CPU related SSDTs)
——Add IMEI (do not use if your DSDT or SSDTs already have IMEI/HECI/MEI device)

result :

Audio worked. (y)
Wireless AC Atheros ATH9565 NOT work (how can I be sure this is my exact wifi model ?)
touchpad NOT work. (must be I2C again not sure)
Battery icon showed but always 0% and when I unplug adapter says no battery connect adapter

How can I fix these ? :unsure:
I didn’t patch any SSDTs because there is many and I don’t know which one should I open and patch !!!

Attachments

biglibigli

Joined
Nov 29, 2019
Messages
47
Motherboard

ASUSTeK X556UQK — laptop

CPU

Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz, 2904 Mhz, 2 Core(s), 4 Logical Processor(s)

Graphics

Intel(R) HD Graphics 620 — NVIDIA GeForce 940MX

OS X/macOS

10.14.x

Bootloader
  1. Clover (UEFI)
Mobile Phone
  1. Android


  • #127

Haswell LPC
6-series USB
7-series/8-series USB
These are not intended for your Laptop. Looks like you forgot to read the notes.
Your WiFi is Qualcomm Atheros QCA9377 as per the Device ID which is incompatible. Replace with a compatible one

my mistake ,should I undo these ? also don’t know how !

You need to patch DSDT for it. Read here:
Documentation

I will do it

Did you applied the battery patch?

yes I did. I also had ACPIBatteryManager.kext in clover kext

Patching SSDTs is a full configuration which i recommend. You need to follow the guide.

does it have a full guide thread ? can you mention it ?

EliteMacx86

Joined
Jul 22, 2018
Messages
4,420
Motherboard

Supermicro X11SPA-T

CPU

Intel Xeon W-3275 28 Core

Graphics

2xAMD RX 580 8GB

OS X/macOS

12.0.x

Bootloader
  1. OpenCore (UEFI)
Mac
  1. Mac mini
  2. MacBook Pro
Mobile Phone
  1. Android
  2. iOS


  • #128

my mistake ,should I undo these ? also don’t know how !

Notes were there. Probably, you didn’t read or didn’t understood.

yes I did. I also had ACPIBatteryManager.kext in clover kext

Which battery patch you applied?

does it have a full guide thread ? can you mention it ?

Yes, of course. Read here:

Scroll down to SSDT patch.

Chucksmmadu

Joined
Nov 8, 2019
Messages
98
Motherboard

HP Pavilion 15 cc178cl

CPU

Intel® Core™ i7-8550U kabylake R

Graphics

Nvidia geforce 940Mx

OS X/macOS

10.15.x

Bootloader
  1. Clover (UEFI)
Mac
  1. MacBook Pro
Mobile Phone
  1. Android


Similar threads

  • This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.

Dell Inspiron 3×37-5×37-7×37 Clover Install Guide

dell-inspiron-15-7000-series.jpg

New Dell Inspiron 7000 series are very beautiful laptops with reasonable price, and it will shine more with latest version of OS X inside. The system runs smoothly with Mavericks, cool and long battery time.

Known Issues

— Dell 7537 with FullHD display may not work (get black screen at boot).

— Headphone port does not work.
— Sound does not work after sleep.
— Wifi will not work, consider replacing by a BCM43225HMB or BCM4352HMB(Bluetooth + Wifi)
— System can’t sleep/shutdown properly with «strange» USB devices (like USB Wifi).

— HDMI only works with 10.9.1->10.9.3.

Install OS X Mavericks/Yosemite

1. Prepare a USB with 8GB or more, format by Disk Utility:

— Partition Layout: 2 Partitions
— 1st Partition: Name CLOVER, Format: MS-DOS (FAT), Size: >300MB
— 2nd Partition: Name Untitled, Format: Mac OS Extended (Journaled), Size: >7GB
— Options: Master Boot Record

USB_Installer.jpg

2. Download Clover.zip, extract then copy EFI folder to CLOVER partition.

— Download Config.zip, extract then select right config.plist and copy to /EFI/Clover/

3a. For OS X Mavericks
— Download Mavericks Install app from AppStore.
— Launch terminal and run the following script:

sudo /Applications/Install OS X Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install OS X Mavericks.app --nointeraction

— Your Mavericks Installer partition will be renamed «Install OS X Mavericks»

3b. For OS X Yosemite
— Download Yosemite Install app
— Right click to Yosemite Install app > Show Package Contents > Contents > Shared Support, open InstallESD.dmg.
— Open OS X Install ESD partition, open BaseSystem.dmg (hidden file)
— Use Disk Utility to clone OS X Base System to MacUSB partition.
Ub9sEsy.png
— Go to System/Installation of USB and delete the alias “Packages”, then go to “OS X Install ESD” partition, copy the “Packages” to the folder System/Installation of your USB
— Copy BaseSystem.dmg and BaseSystem.chunklist (hidden files) from OS X Install ESD to OS X Base System (on your USB)

4. Restart with USB plugged in, select these options in BIOS:

— Function keyboard: Function mode
— Disk: AHCI
— Intel Rapid Storage: Disabled
— UEFI Boot: Enabled
— Secure Boot: Disabled
— Legacy Rom: Disabled
— Add boot option: Add /EFI/Boot/Bootx64.efi in USB, then move the boot entry to top.

Save settings and restart.

5. Clover bootloader screen will show up (if not, add Clover in USB in BIOS again), select «Boot OS X Install from xxxxxxx» (your OS X Installer partition).

6. Press spacebar if a nagging screen about Mouse/keyboard appears. Install screen will appear, use Disk Utility to format your drive as GPT, create a Mac OS X Extended (Journaled) partition and install Mavericks to your formatted partition. The installer will extract necessary files to «Install OS X Mavericks» (not your target partition). This takes a lot of time at the end, though you only see «a minute remaining». This will end PHASE 1. If you are installing Yosemite, jump to step 9

7. Restart and Clover bootloader screen (from USB) shows up, select «Boot OS X Install from Install OS X Mavericks» (your Mavericks Installer partition, not your install target partition).

8. Install screen will appear and continue installation. This time, installer will install files to your target partition and create Recovery HD partition. This will end PHASE 2.

9. Restart, Clover bootloader screen shows up, press F4, then select «Boot OS X from YourPartition».

10. If everything goes well, you can boot straight to Mavericks desktop.

 11.Download HVT here, run the tool and select those:

— CloverUEFI
— RTL8111 (for 7×37) or RTL8100 Ethernet (for 3×37-5×37)

— Kexts > Graphics > HD4400/4600 DP/HDMI Freeze (Only on Mavericks 10.9.1 -> 10.9.3)

— Tools > IASL

— Tools > MacIASL.

— Tools > Clover Configurator.

— Tools > SSDTGenerator.

— Fixes > Hibernate Mode > Disable Hibernate

Use kext wizard to install those kexts http://www.osx86.net/files/file/3832-alc283-applehda/

https://osxlatitude.com/index.php?/topic/6371-guide-dell-inspiron-3×37-5×37-7×37-clover-installation/page-23&do=findComment&comment=39286

12. Download https://www.dropbox.com/s/xbdm3jm6lmj3gln/Kexts%20Dell%20Exx37.zip, unzip and copy .kext files to /EFI/Clover/kexts/10.9 and /EFI/Clover/kexts/10.10 of EFI partition

 13. Copy config.plist from USB to /EFI/Clover/ of EFI partition, then use Clover Configurator to IMPORT config.plist (in EFI partition) and edit those values:

ACPI > GeneratePStates/CStates: uncheck
SMBIOS: create your new SMBIOS (Macbook Air 6,2) with random Serial Number

Then EXPORT config.plist to /EFI/Clover/ of EFI partition

 14. Copy /Extra/ssdt.aml to /EFI/Clover/ACPI/patched/ (of HDD EFI partition)

15. Go to /EFI/Clover/ACPI/origin/ of USB, you will see lots of files (dumped by F4 at Clover screen). Create a «DSDT» folder on desktop then copy DSDT.aml, SSDT-*.aml files to DSDT folder. Go to terminal and type these:

cd ~/Desktop/DSDT
iasl -da DSDT.aml SSDT*.aml
 

The decompiled *.dsl files will be created in DSDT folder. If you don’t see .dsl files, check the errors in terminal, delete the last file that show up in error and run again. Don’t worry, not all ssdt are necessary.

16. Run MacIASL in Tools folder on desktop, open DSDT.dsl in DSDT folder by MacIASL
— Go to Preferences, set Compiler options to ACPI 5.0
— Go to Sources tab then add this:

Name: Laptop patches
URL: http://raw.github.com/RehabMan/Laptop-DSDT-Patch/master

Close Preferences window, click Patch button, paste the code then apply:

# Syntax errors
into definitionblock code_regex Externals+(_SB_.PCI0.PEG0) remove_matched;
into definitionblock code_regex Externals+(_SB_.PCI0.PEG0.PEGP) remove_matched;
into definitionblock code_regex Externals+(_SB_.PCI0.RP05.PEGP) remove_matched;
into definitionblock code_regex Externals+(_SB_.PCI0.PEG0,sUnknownObj) remove_matched;
into definitionblock code_regex Externals+(_SB_.PCI0.PEG0.PEGP,sUnknownObj) remove_matched;
into definitionblock code_regex Externals+(_SB_.PCI0.RP05.PEGP,sUnknownObj) remove_matched;
into method label _L69 code_regex Notifys(\_SB.PCI0.PEG0.PEGP,s0x02) remove_matched;
into method label ADBG replace_content begin Return(0) end;

into method label HRPR code_regex (OperationRegion.*)\_GPE.MMTBs+(0x04), replace_matched begin %1\_GPE.MMTB, 0x04)n end;
into method label HRPR code_regex (Fields+(HRPE.*n.*n.*n.*})) replace_matched begin %1 end;
into method label _WAK code_regex Stores(\_GPE.MMTBs(Local2,s\_GPE.OSUPs(Local2)),sStores(Local1,sREG6)) remove_matched;
into method label _INI code_regex Stores(\_GPE.MMTBs(Local3,s\_GPE.OSUPs(Local3)),sStores(Local2,sREG6)) remove_matched;

into method label _INI parent_label _SB.PCI0 code_regex (Stores(\_GPE.MMTB.*) replace_matched begin // %1 end;                                                                        
into method label _WAK code_regex (Stores(\_GPE.MMTB.*) replace_matched begin // %1 end;


# Prevent freeze caused by WMI
into method label WMIA replace_content begin // nothing end;

# Force BAT0 device
into method label _STA parent_label BAT0 replace_content begin Return (0x1F) end;

# Fix PNOT method
into method label PNOT replace_content begin // nothing end;

#     Enable functions keys
#     Override DSDT oemId (for Clover, since it patches with "Apple ")
into method label _DSM parent_label PS2K remove_entry;
into device label PS2K insert
begin
Method (_DSM, 4, NotSerialized)n
{n
    If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }n
    Return (Package()n
    {n
        // Note: Function key part seems to not be necessary
        // "AAPL,has-embedded-fn-keys", Buffer() { 0x01, 0x00, 0x00, 0x00 },n
        "RM,oem-id", "DELL",n
    })n
}n
end;

#   Inject Audio info
into method label _DSM parent_label HDEF remove_entry;
into device label HDEF insert
begin
Method (_DSM, 4, NotSerialized)n
{n
    If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }n
    Return (Package()n
    {n
        "layout-id", Buffer() { 0x03, 0x00, 0x00, 0x00 },n
        "hda-gfx", Buffer() { "onboard-1" },n
        "PinConfigurations", Buffer() { },n
    })n
}n
end;

Click Compile to check for errors. If you get «syntax error, unexpected PARSEOP_ZERO», select the last error, you will see many continuous Zeros. Delete all of Zero, then click compile and select the next error, until you have no «syntax error, unexpected PARSEOP_ZERO».

Click Patch again, then apply extra patches from Laptop patches (Require Internet connection):

[2.12] Rename GFX0 to IGPU
[3.2] 7-series USB
[7.01] IRQ Fix
[7.02] SMBUS Fix
[7.03] RTC Fix
[7.05] Shutdown Fix 2
[7.06] HPET Fix
[7.07] OS Check Fix
[7.08] AC Adapter Fix
[7.09] Add MCHC
[7.11] Fix _WAK arg0 2
[7.14] Add IMEI

Click Compile to check for errors, if no error, you can save the file with File Format: ACPI Machine Language Library, name DSDT.aml to /EFI/Clover/ACPI/patched/ (of HDD EFI partition).

17. Go to DSDT folder on desktop, find SSDT-7.dsl, open by MacIASL, click Patch, select

[2.12] Rename GFX0 to IGPU
[2.05] Haswell HD4400/HD4600/HD5000
[2.11] Brightness fix (Haswell)

Click Compile to check for errors, if no error, you can save the file with File Format: ACPI Machine Language Library, name SSDT-1.aml to /EFI/Clover/ACPI/patched/ (of HDD EFI partition).

18. [FOR MODEL WITH NVIDIA/AMD] Go to DSDT folder on desktop, find SSDT-8.dsl, open MacIASL and apply the patch

into scope label _SB.PCI0.GFX0 remove_entry;

into definitionblock code_regex Externals+((.*_SB_.PCI0.GFX0.DD02._BCM),s+IntObj) replace_matched begin External(%1, MethodObj) end;
into method label _BCM parent_label DD02 code_regex Returns+(([^)]*))n.*Arg0 replace_matched begin %1(Arg0) end;
into method label _BCM parent_label DD02 code_regex Returns+(([^)]*))[^n]*n.*Arg0 replace_matched begin %1(Arg0) end;
into method label WMMX code_regex Ifs(CondRefOfs(\_SB.PCI0.GFX0._DSM[^}]*} replace_matched begin //nothing end;


# rename GFX0
into_all all code_regex .GFX0 replaceall_matched begin .IGPU end;
into_all all label _SB.PCI0.GFX0 set_label begin _SB.PCI0.IGPU end;

# call _OFF from _SB.PCI0.RP05.PEGP
into method label _INI parent_label _SB.PCI0.RP05.PEGP code_regex . insert begin _OFF()n end;

Click Compile to check for errors, If no error, you can save the file with File Format: ACPI Machine Language Library, name SSDT-2.aml to /EFI/Clover/ACPI/patched/ (of HDD EFI partition), then go to next step 18.

 Otherwise, if you have 1 error related to _OFF(), apply the extra patch to SSDT-8.dsl

into definitionblock code_regex . insert
begin
External(_SB_.PCI0.RP05.PEGP._OFF, MethodObj)n
end;

Click Compile, If no error, you can save the file with File Format: ACPI Machine Language Library, name SSDT-2.aml to /EFI/Clover/ACPI/patched/ (of HDD EFI partition).

 Open SSDT-9.dsl, apply this patch then save as SSDT-3.aml:

into definitionblock code_regex Externals+((.*_SB_.PCI0.GFX0.DD02._BCM),s+IntObj) replace_matched begin External(%1, MethodObj) end;
into method label _BCM parent_label DD02 code_regex Returns+(([^)]*))n.*Arg0 replace_matched begin %1(Arg0) end;
into method label _BCM parent_label DD02 code_regex Returns+(([^)]*))[^n]*n.*Arg0 replace_matched begin %1(Arg0) end;
into method label WMMX code_regex Ifs(CondRefOfs(\_SB.PCI0.GFX0._DSM[^}]*} replace_matched begin //nothing end;
 
 
# rename GFX0
into_all all code_regex .GFX0 replaceall_matched begin .IGPU end;
into_all all label _SB.PCI0.GFX0 set_label begin _SB.PCI0.IGPU end;

19. Recheck if config.plist, dsdt.aml, ssdt.aml, ssdt-1.aml, ssdt-2.aml, ssdt-3.aml (if you have) are placed correctly in EFI partition of internal drive.

20. To fix headphone port, open Audio MIDI, and mute one of two channels:

2609790_14.jpg

21. Restart, go to BIOS, add Boot entry of /EFI/Clover/Cloverx64.efi in your EFI partition, move it to the top, save and restart, you should see Clover screen and option to boot to Mavericks. Enjoy!

Clear Network Settings to Fix iCloud/AppStore

 

If you use any USB Wifi device, or use Mobile Phones to connect to Internet before completing the guide, you won’t be able to access to AppStore or iCloud. You must reset your network settings:

 — Go to /Library/Preferences/SystemConfiguration/ and delete these files:

  • CaptiveNetworkSupport
  • com.apple.airport.preferences.plist
  • com.apple.network.eapolclient.configuration.plist
  • NetworkInterfaces.plist

— Go to System Preferences > Network, delete all connection. Then restart
— Go to System Preferences > Network, add your connection again.
 

Update from Mavericks to Yosemite

If you followed the old guide (without Yosemite mentioned), do extra steps:

— Download latest HVT, run and select Clover UEFI, Clover Configurator > finish.

— Go to /EFI/Clover/kexts/, create 10.10 folder and copy kexts here https://www.dropbox.com/s/xbdm3jm6lmj3gln/Kexts%20Dell%20Exx37.zip to 10.10 folder.

— Use Clover Configurator to IMPORT /EFI/Clover/config.plist, go to Boot section and select kext-dev-mode=1. Then EXPORT config.plist to /EFI/Clover/.

Run the OS X Yosemite installer and follow the guide.

Done!

Windows 8 UEFI Dual Boot

 

— Use Disk Utility to prepare a Mac OS X Extended partition (don’t ever use Fat32, Disk Utility will mess up your drive)
— Create a FAT32 usb drive, extract Windows 8 64-bit iso there
— Boot to usb drive, format the new partition to NTFS, install Windows there.
— Go to BIOS, move the Clover boot entry to top.

 Done!

Понравилась статья? Поделить с друзьями:
  • Syntax error unexpected main expecting
  • Syntax error unexpected integer number
  • Syntax error unexpected expecting как исправить
  • Syntax error unexpected expecting yii
  • Syntax error unexpected expecting name