Replies: 3 comments 8 replies
-
|
Hello there, I am using opencore legacy patcher on a device that has bad ram. i was about to use the efi file using refind until i found this thread. I ran memtest86 and i got the following: So I edited my config.plist as you have shown above, with the Address being 8791700968 and the Size being 33558528. However, when I shut the computer down and reboot, I initially got a blank screen with the Apple logo screen that just stalled. and then I tried resetting NVRAM which now leads me to this screen every time i boot. To be honest, I am unfamiliar with the process of determining the size and ensuring that it is page-aligned. I just subtracted the two addresses, divided by 4096, got the ceiling and then multiplied by 4096 to get the size. Are you able to verify the process? Any help would be appreciated 🙏🏻 |
Beta Was this translation helpful? Give feedback.
-
|
My AI-Slave wrote this Python script for you: def calculate_memory_reservation(A_low, A_high, page_size=4096):
if isinstance(A_low, str):
A_low = int(A_low, 0)
elif not isinstance(A_low, int):
raise ValueError("A_low must be a string or an integer")
if isinstance(A_high, str):
A_high = int(A_high, 0)
elif not isinstance(A_high, int):
raise ValueError("A_high must be a string or an integer")
if A_low > A_high:
raise ValueError("A_low must be less than or equal to A_high")
# Calculate page-aligned start address
page_low = A_low // page_size
A_start = page_low * page_size
# Calculate number of pages and total size
page_high = A_high // page_size
num_pages = page_high - page_low + 1
S = num_pages * page_size
return A_start, S
A_low_dec = 8791700968
A_high_dec = 8825256200
A_start_dec, S_dec = calculate_memory_reservation(A_low_dec, A_high_dec)
print(f"Page-aligned start address: {A_start_dec} (decimal), {hex(A_start_dec)} (hexadecimal)")
print(f"Size of the memory region: {S_dec} bytes (decimal), {hex(S_dec)} (hexadecimal)")You can run it here: The error in your calculation was that you also have to page-align the Start address. Please tell me if this worked for you :-) |
Beta Was this translation helpful? Give feedback.
-
|
This is amazing work. I’m trying to deal with the same thing right now and I am currently running Memtest86 on a 2019 MacBook Pro with 32GB that has memory issues. How exactly do you find the lowest and highest error address. Any help will be much appreciated! |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using the Open Core Bootmanager (or Projects like OpenCore Legacy Patcher) there is no need to use the EFI-Binary provided here.
Simply identify your faulty RAM-Area and change the config.plist File accordingly:
The Address (12884901888 here) is the Start-Address and Size (167772160 here) is the Area to disable.
Please keep in mind that these two values must be Page-Aligned.
For details see https://dortania.github.io/docs/latest/Configuration.html#reservedmemory-properties.
Update:
The two Values must be provided in decimal-notation! Please go here to check out on how to calculate these two Values.
Beta Was this translation helpful? Give feedback.
All reactions