Jump to content
iFabio

Open Core 0.6.8 utility ACPIe

Recommended Posts

  • Administrators

check manual for that

  • Like 1

-Donations-

PayPal HERE - Stripe HERE - Ko-Fi HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 - BNB 0x10D1d656eCa00bD521f9b4A43B83098B8142e115 - USDT BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9 - USDT TRC20 TUR6Z9AVS4AYzqPnULoHrfFvppRbhXmNbZ - KASPA kaspa:qpxzufgfj8p6r0krg58yzvs0009h2mwqgvcawa0xc2pth7sgzpv56j4f6dtvk - PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Sign up for a Bybit account and claim exclusive rewards HERE

New ways to earn money with Linkvertise HERE

Link to comment
Share on other sites

  • Administrators

i dont use it

-Donations-

PayPal HERE - Stripe HERE - Ko-Fi HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 - BNB 0x10D1d656eCa00bD521f9b4A43B83098B8142e115 - USDT BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9 - USDT TRC20 TUR6Z9AVS4AYzqPnULoHrfFvppRbhXmNbZ - KASPA kaspa:qpxzufgfj8p6r0krg58yzvs0009h2mwqgvcawa0xc2pth7sgzpv56j4f6dtvk - PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Sign up for a Bybit account and claim exclusive rewards HERE

New ways to earn money with Linkvertise HERE

Link to comment
Share on other sites

Hey iFabio, I had a similar question today and saw that this is (currently) the topmost Google result. I figured I'd put my findings here to help future visitors. Here's my mini-tutorial:

acpie is a utility that accepts a binary ACPI dump and a path within and will report the offset, if any, where that path occurs. I haven't looked at the repo but I have to imagine this is probably just logic OpenCore already uses internally for things like ACPI patching that's being exposed via this single-purpose utility. In my case, I'd seen the note below while reviewing the documentation and figured I'd give it a try.

Link

Quote

Use with care, not all OEM tables can be parsed. Use ACPIe utility to debug. ACPIe compiled with DEBUG=1 make command produces helpful ACPI lookup tracing.

 

Anyway, the syntax of the command is:

acpie.exe -f (filename of a binary ACPI dump) (ACPI path) [optional: occurrence, if none specified will assume the first]

You can see here that my first command failed because I was trying to use the textual tables, not the compiled one. The successful invocation shows the offset within the file where \_SB occurs, so we know that our path exists within ACPI (as it should for \_SB).

spacer.png

 

In my case I wanted to verify that the path I'd found for my HPET entry was valid. I manually 'walked up' the nested braces within the .dsl file, but wasn't sure if my understanding of the syntax was correct (I'm honestly still a little confused why sometimes it's _SB and other times _SB_, but that's another story...). Anyway, the path I'd found was

\_SB.PCI0.PX40.HPET

and if I enter it...

spacer.png

You can see that I get an offset, so I think I've at least got the proper path in mind. You can also see what happens if you specify a value that couldn't be found (I can assure you that replacing an O for a 0 was totally not a mistake I made and definitely completely intentional 😊).

Just to double-check, if I grab a copy of the opcode list, open the .aml and go to decimal offset 9280 (hex 2440), I can see the opcode info combined with the textual name:

spacer.png

82 DEVICE OP
46 ('F', apparently? Maybe this means something different in this context?)
08 NAME_OP
48 H
50 P
45 E
54 T
08 NAME_OP

As mentioned, you can also specify an optional 'occurrence' value after the path, so like in this case if you wanted to find the nth Current Resource Settings value, you can do so (which would be useful for the 'Skip' parameter in the OpenCore configuration file)

spacer.png

Anyway, hope that was helpful.

Edited by daturaio
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
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.





×
  • Create New...