MaLd0n Posted January 15, 2018 Share Posted January 15, 2018 Oops. Yes I realised it, and I found that @vit9696 has changed the file structure, so I'll have to slightly modify the script, and will post the new one as an attachment [EDIT] HERE U GO AptioMemory_Builder.sh.zip thx work good Link to comment Share on other sites More sharing options...
Pavo Posted January 15, 2018 Share Posted January 15, 2018 thx work good How did you get it to work? Link to comment Share on other sites More sharing options...
MaLd0n Posted January 15, 2018 Share Posted January 15, 2018 How did you get it to work? Just run and done Link to comment Share on other sites More sharing options...
Pavo Posted January 15, 2018 Share Posted January 15, 2018 Just run and done MaLd0n 2018-01-14 às 22.35.03.png Yeah not working for me, when I do which mtoc I get /usr/local/bin/mtoc but get an error Missing mtoc or mtoc.NEW Link to comment Share on other sites More sharing options...
bronxteck Posted January 15, 2018 Share Posted January 15, 2018 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 Link to comment Share on other sites More sharing options...
Hackmac101 Posted January 15, 2018 Share Posted January 15, 2018 mtoc installed, macbuild.tool still doesn't find it. Link to comment Share on other sites More sharing options...
Pavo Posted January 15, 2018 Share Posted January 15, 2018 Yeah but the script is not working as it should. Link to comment Share on other sites More sharing options...
PMheart Posted January 15, 2018 Share Posted January 15, 2018 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-xcodeYou 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 2 Link to comment Share on other sites More sharing options...
Pavo Posted January 15, 2018 Share Posted January 15, 2018 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: AptioMemory_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 1 Link to comment Share on other sites More sharing options...
chris1111 Posted January 15, 2018 Share Posted January 15, 2018 is AptioMemoryFix-64.efi call to completely replace AptioFix and AptioFix2 Its work very well Link to comment Share on other sites More sharing options...
Pavo Posted January 15, 2018 Share Posted January 15, 2018 is AptioMemoryFix-64.efi call to completely replace AptioFix and AptioFix2 Its work very well I would hope so 1 Link to comment Share on other sites More sharing options...
chris1111 Posted January 15, 2018 Share Posted January 15, 2018 I would hope so I think I will replace in my build Package Link to comment Share on other sites More sharing options...
PMheart Posted January 15, 2018 Share Posted January 15, 2018 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. Glad to hear that it works. And I've slightly refactored your code again, I tested it myself and it worked flawlessly: AptioMemory_Builder.sh.zip Link to comment Share on other sites More sharing options...
Pavo Posted January 15, 2018 Share Posted January 15, 2018 Glad to hear that it works. And I've slightly refactored your code again, I tested it myself and it worked flawlessly: AptioMemory_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 2 Link to comment Share on other sites More sharing options...
PMheart Posted January 15, 2018 Share Posted January 15, 2018 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. 5 Link to comment Share on other sites More sharing options...
chris1111 Posted January 15, 2018 Share Posted January 15, 2018 @vit9696 just confirm the Drivers working well in Mac OS X 10.6 and 10.7 Question: is it working with a Old Clover ? 1 Link to comment Share on other sites More sharing options...
camillionario Posted January 15, 2018 Share Posted January 15, 2018 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. Link to comment Share on other sites More sharing options...
Pavo Posted January 15, 2018 Share Posted January 15, 2018 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 PMheart nice job, works very well. Its been awhile since I have done bash scripting. 1 Link to comment Share on other sites More sharing options...
PMheart Posted January 15, 2018 Share Posted January 15, 2018 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 Link to comment Share on other sites More sharing options...
vit9696 Posted January 15, 2018 Author Share Posted January 15, 2018 @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. 5 Link to comment Share on other sites More sharing options...
gujiangjiang Posted January 15, 2018 Share Posted January 15, 2018 I got a new problem. 从我的 iPhone 发送,使用 Tapatalk Link to comment Share on other sites More sharing options...
PMheart Posted January 15, 2018 Share Posted January 15, 2018 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...) Link to comment Share on other sites More sharing options...
gujiangjiang Posted January 15, 2018 Share Posted January 15, 2018 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 Link to comment Share on other sites More sharing options...
chris1111 Posted January 15, 2018 Share Posted January 15, 2018 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 Link to comment Share on other sites More sharing options...
Riley Freeman Posted January 15, 2018 Share Posted January 15, 2018 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. 1 Link to comment Share on other sites More sharing options...
Recommended Posts