Jump to content

AptioMemoryFix


604 posts in this topic

Recommended Posts

according to the script it pulls it for you

curl https://sourceforge.net/p/cloverefiboot/code/4372/tree/BuildTools/usr/local/bin/mtoc.NEW.zip?format=raw -o /tmp/mtoc.zip
  unzip -qu /tmp/mtoc.zip -d /tmp
  sudo cp /tmp/mtoc.NEW /usr/local/bin/mtoc

 

This doesn't work

Cloning into 'AptioFix'...
remote: Counting objects: 168, done.
remote: Compressing objects: 100% (110/110), done.
remote: Total 168 (delta 83), reused 141 (delta 56), pack-reused 0
Receiving objects: 100% (168/168), 221.55 KiB | 4.82 MiB/s, done.
Resolving deltas: 100% (83/83), done.
Missing mtoc or mtoc.NEW!
To build mtoc follow: https://github.com/tianocore/tianocore.github.io/wiki/Xcode#mac-os-x-xcode
You may also use one in external directory.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2262k  100 2262k    0     0  2489k      0 --:--:-- --:--:-- --:--:-- 2488k
Missing mtoc or mtoc.NEW!
To build mtoc follow: https://github.com/tianocore/tianocore.github.io/wiki/Xcode#mac-os-x-xcode
You may also use one in external directory.
cp: ./edk2/Build/AptioFixPlatform/RELEASE_XCODE*/X64/*.efi: No such file or directory

According to

Missing mtoc or mtoc.NEW!

To build mtoc follow: https://github.com/tianocore/tianocore.github.io/wiki/Xcode#mac-os-x-xcode

You may also use one in external directory.

Looks like you're using macbuild.tool.

 

[EDIT]:

Anyway, I seem to find the exact problem, that is, seemingly both mtoc and mtoc.NEW are required although they're actually identical, thus we can simply let the script copy those two, and here's the fixed one:

 

[EDIT 2]:

REMOVED, PLEASE SEE             #90            

  • Like 2

According to

Looks like you're using macbuild.tool.

 

[EDIT]:

Anyway, I seem to find the exact problem, that is, seemingly both mtoc and mtoc.NEW are required although they're actually identical, thus we can simply let the script copy those two, and here's the fixed one:

attachicon.gifAptioMemory_Builder.sh_v2.zip

That script also didn't work but I took what you had and fixed somethings with it and now it works. Need others to test please.

AptioMemory_Builder.sh.zip

  • Like 1

Glad to hear that it works. And I've slightly refactored your code again, I tested it myself and it worked flawlessly:

attachicon.gifAptioMemory_Builder.sh.zip

I can not get your way of installing nasm to work, refactored the code again and using Homebrew to install the latest nasm if missing.

Updated the script to check if the git repo has changed or not if you have already ran the script before.

 

Updated the script to include what macbuild.tool does without the need to call that script inside another script.

AptioMemory_Builder.sh.zip

  • Like 2

I can not get your way of installing nasm to work, refactored the code again and using Homebrew to install the latest nasm if missing.

Updated the script to check if the git repo has changed or not if you have already ran the script before.

 

Nice job, I updated your script again for the following enhancements:

- We're supposed to exit immediately when encountering fatal errors. (e.g. Xcode not installed or Download failure, etc)

- @vit9696 has included the mtoc binaries (see here), therefore we don't have to download it from Clover.

- Minor other improvements.

 

By the way, as claimed here, are you sure that the version of nasm you downloaded from brew is correct?

EDIT: Oh yes, I tried it myself, and it's 2.13.02, which is correct.

 

EDIT 2: Corrected some logics, sorry for my previous mistakes.

 

EDIT 3: Debug mode is disabled by default now.

 

EDIT 4: Fixed a bug that mtoc is not extracted to the correct directory.

AptioMemory_Builder.sh.zip

 

EDIT 5: Here's another script for those who DON'T want to use HomeBrew:

AptioMemory_Builder.sh.zip

 

EDIT 6: Now that @vit9696 has added a workaround to AptioFix, so I think the scripts above should not be used anymore.

  • Like 5

I can not get your way of installing nasm to work, refactored the code again and using Homebrew to install the latest nasm if missing.

Updated the script to check if the git repo has changed or not if you have already ran the script before.

 

Updated the script to include what macbuild.tool does without the need to call that script inside another script.

Works!! Thank you. I have installed both files and everything is fine, except that I have noticed image blackouts for seconds in HDMI.

Nice job, I updated your script again for the following enhancements:

- We're supposed to exit immediately when encountering fatal errors. (e.g. Xcode not installed or Download failure, etc)

- @vit9696 has included the mtoc binaries (see here), therefore we don't have to download it from Clover.

- Minor other improvements.

 

By the way, as claimed here, are you sure that the version of nasm you downloaded from brew is correct?

EDIT: Oh yes, I tried it myself, and it's 2.13.02, which is correct.

 

EDIT 2: Corrected some logics, sorry for my previous mistakes.

 

EDIT 3: Debug mode is disabled by default now.

 

EDIT 4: Fixed a bug that mtoc is not extracted to the correct directory.

attachicon.gifAptioMemory_Builder.sh.zip

PMheart nice job, works very well. Its been awhile since I have done bash scripting. 

  • Like 1

PMheart nice job, works very well. Its been awhile since I have done bash scripting. 

Well, I think installing the large Homebrew could not really be a nice idea, so I updated a new script for those who don't tend to use it.

In this case, we'll just download nasm from it's release page through curl, I can confirm that it does work here:

 

$ curl http://www.nasm.us/pub/nasm/releasebuilds/2.13.02/macosx/nasm-2.13.02-macosx.zip -o nasm.zip

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100 2262k  100 2262k    0     0   228k      0  0:00:09  0:00:09 --:--:--  371k

@vit9696 just confirm the Drivers working well in Mac OS X 10.6 and 10.7  ;)

Question: is it working with a Old Clover ?

It should be compatible with an older clover, but I have no idea.

Great to hear that it works with older macOS too (if you are booting in UEFI mode of course).

 

 

I included some of the "user-friendly" changes here to macbuild.tool. Never thought that building a simple thing could be THAT problematic. EDK2 wiki is quite exact and descriptive.

  • Like 5

46574548958cf8b1b8291c60b5ad27e7.jpg

 

I got a new problem.

 

 

从我的 iPhone 发送,使用 Tapatalk

This should be its origin: https://sourceforge.net/p/cloverefiboot/code/4376/tree/rEFIt_UEFI/Platform/kext_inject.c#l519

 

Try a cold boot, that is, force powering off your hack, then wait for several seconds and start it up, see if it makes a difference. (Note that you may even have to try for many times due to the messy memory map...)

This should be its origin: https://sourceforge.net/p/cloverefiboot/code/4376/tree/rEFIt_UEFI/Platform/kext_inject.c#l519

 

Try a cold boot, that is, force powering off your hack, then wait for several seconds and start it up, see if it makes a difference. (Note that you may even have to try for many times due to the messy memory map...)

I had never seen this ever until I update clover to r4369.

 

And when I changed to AptioMemFix and the problem still have and now it can’t boot up into the macOS.

 

I cold boot many times and restore the bios setting or reset the nvram but still.

 

 

 

从我的 iPhone 发送,使用 Tapatalk

It should be compatible with an older clover, but I have no idea.

Great to hear that it works with older macOS too (if you are booting in UEFI mode of course).

 

 

I included some of the "user-friendly" changes here to macbuild.tool. Never thought that building a simple thing could be THAT problematic. EDK2 wiki is quite exact and descriptive.

Yea Yea UEFI Boot  :)

its work on both UEFI and Legacy;  for my part its more fast then the old Drivers

I see your new change, thanks a lot for the work

Edit****

Reedit after more test

Snow boot only in Legacy mode with AptioMemoryFix.efi ☞ Drivers64

sorry for saying that snow boots in UEFI but I do a lot of tests on several SSD

 

Attaching Boot Log  Mac OS X Lion Boot UEFI

Clover Boot Log.txt.zip

For the sake of testing older Mac versions, I built the latest version from source and tried it out with my old 10.6.8 X79 install but it failed to boot using the old Clover version (4114) and my current one (4369).

 

I can't use AptioFix2 with SL, only AptioFix will work.

 

12uspeb.jpg

 

 

  • Like 1
  • Slice pinned this topic
×
×
  • Create New...