Jump to content

OpenCore General Discussion


dgsga
8,888 posts in this topic

Recommended Posts

OpenCore now can hide (or make auxiliary) boot entries

 

We know that OpenCore hides its own EFI, it means that the EFI of the booting macOS system isn't shown in the picker.

But other EFI of not booting macOS systems are always shown in the picker, despite of many users don't like this behaviour and prefer to hide all EFI partitions.

 

Last commit of OpenCore 0.8.8 has added .contentVisibility to hide boot entries: exclude entries if there is a .contentVisibility file near the bootloader or inside the boot directory with Disabled content (ASCII). The entry will become auxiliary if its .contentVisibility file contains Auxiliary.

 

Spoiler

contentVisibility.thumb.jpg.ed11bf5df816aee3337662ddb2ad729a.jpg

 

By default the .contentVisibility file containing the text Disabled is already placed next to the BOOTx64.efi file. So, you don't have to do anything extra if you want to hide the macOS EFI partitions.

 

Spoiler

hidden-efi.jpg.e4c45b06ae782afab410589ca0223d92.jpg

 

 

Edited by miliuco
  • Like 5
Link to comment
Share on other sites

On 12/24/2022 at 2:55 PM, nerox said:

Hi Guys, 

 

I'm trying to install Ventura on a bootable USB with OPENCORE 0.8.7, but it crashes on this screen. Can anybody help me?

 

 

 

 

Are you reset your NVRAM before boot? Checked your config.plist with ocvalidate? Don't use 2 EFI (like one on SSD/HD AND on USB). Choose only one method. Backup your files. 

Link to comment
Share on other sites

Hi all

 

I can't build latest commit ca9a501 (Opencorepkg). Maybe there is something new in ocbuild with mtoc ! My system is under Catalina.

 

Processing meta-data .
Architecture(s)  = X64
Build target     = DEBUG
Toolchain        = XCODE5

Active Platform          = /Users/mathieu/OC/OpenCorepkg/UDK/OpenCorePkg/OpenCorePkg.dsc


build.py...
/Users/mathieu/OC/OpenCorepkg/UDK/OpenCorePkg/OpenCorePkg.dsc(54): error 000E: File/directory not found in workspace
	/Users/mathieu/OC/OpenCorepkg/UDK/MdePkg/Library/BaseOverflowLib/BaseOverflowLib.inf

EDIT: I remove UDK to have a clean directory. Then new message: Finished building BaseTools C Tools with HOST_ARCH=X64

 

SOLVED: Remove both mtoc and nasm in /usr/local/bin. Using build_oc.tool, I reinstall this two files automatically. I can build now 😅

 

See txt file

Résultat de Terminal

Edited by Matgen84
  • Like 2
Link to comment
Share on other sites

On 12/29/2022 at 2:45 PM, Matgen84 said:

Hi all

 

I can't build latest commit ca9a501 (Opencorepkg). Maybe there is something new in ocbuild with mtoc ! My system is under Catalina.

 

Processing meta-data .
Architecture(s)  = X64
Build target     = DEBUG
Toolchain        = XCODE5

Active Platform          = /Users/mathieu/OC/OpenCorepkg/UDK/OpenCorePkg/OpenCorePkg.dsc


build.py...
/Users/mathieu/OC/OpenCorepkg/UDK/OpenCorePkg/OpenCorePkg.dsc(54): error 000E: File/directory not found in workspace
	/Users/mathieu/OC/OpenCorepkg/UDK/MdePkg/Library/BaseOverflowLib/BaseOverflowLib.inf

EDIT: I remove UDK to have a clean directory. Then new message: Finished building BaseTools C Tools with HOST_ARCH=X64

 

SOLVED: Remove both mtoc and nasm in /usr/local/bin. Using build_oc.tool, I reinstall this two files automatically. I can build now 😅

 

See txt file

Résultat de Terminal 269.01 kB · 4 downloads

On systems where I use xcode-14.2 the compilation succeeds. On systems with Xcode-11.3.1 - there are problems with compiling open core from the master

LogSuccessfulCompileOC-ca9a501__Xcode14.2.zip LogErrorCompile_XC113.1-Os10.14.6:11.7.3.zip

  • Sad 2
Link to comment
Share on other sites

Clarification about ReservedMemory properties…

 

Quote

3. Size
Type: plist integer
Failsafe: 0
Description: Size of the reserved memory region, must be page-aligned (4 KBs).


Is size the total number of bytes reserved or the number of 4KB pages to reserve ?

 

General question : Can numbers be expressed in hexadecimal in config.plist ?

 

Thanks.

Link to comment
Share on other sites

On 12/29/2022 at 9:45 AM, Matgen84 said:

Hi all

 

I can't build latest commit ca9a501 (Opencorepkg). Maybe there is something new in ocbuild with mtoc ! My system is under Catalina.

 

Processing meta-data .
Architecture(s)  = X64
Build target     = DEBUG
Toolchain        = XCODE5

Active Platform          = /Users/mathieu/OC/OpenCorepkg/UDK/OpenCorePkg/OpenCorePkg.dsc


build.py...
/Users/mathieu/OC/OpenCorepkg/UDK/OpenCorePkg/OpenCorePkg.dsc(54): error 000E: File/directory not found in workspace
	/Users/mathieu/OC/OpenCorepkg/UDK/MdePkg/Library/BaseOverflowLib/BaseOverflowLib.inf

EDIT: I remove UDK to have a clean directory. Then new message: Finished building BaseTools C Tools with HOST_ARCH=X64

 

SOLVED: Remove both mtoc and nasm in /usr/local/bin. Using build_oc.tool, I reinstall this two files automatically. I can build now 😅

 

See txt file

Résultat de Terminal 269.01 kB · 9 downloads

 

 

I am on BS 11.7.2 with Xcode 10.3 (10G8) and have the same problem compiling since latest commit.

I tried what solved it for you ( even tried various mtoc / nasm versions ) but unfortunately Terminal always stops with "Finished building BaseTools C Tools with HOST_ARCH=X64"

 

I hope one of the developers may find some time and have a look into it...

 

Problem solved with latest commit !

Thanks

 

Terminal-output

Edited by polkaholga
typos
Link to comment
Share on other sites

1 hour ago, polkaholga said:

 

 

I am on BS 11.7.2 with Xcode 10.3 (10G8) and have the same problem compiling since latest commit.

I tried what solved it for you ( even tried various mtoc / nasm versions ) but unfortunately Terminal always stops with "Finished building BaseTools C Tools with HOST_ARCH=X64"

 

I hope one of the developers may find some time and have a look into it...

 

 

Terminal-output 248.37 kB · 1 download

 

Hi @polkaholga I used nasm and mtoc from ocbluid/external. How? After  I remove previous version, the script build_oc.tool proposes to install automatically (from ocbuild/extrnal) by answering with Y

  • Like 1
Link to comment
Share on other sites

1 hour ago, Matgen84 said:

 

Hi @polkaholga I used nasm and mtoc from ocbluid/external. How? After  I remove previous version, the script build_oc.tool proposes to install automatically (from ocbuild/extrnal) by answering with Y

 

@Matgen84

 

Thanks for suggesting but I have already tried all options...

Manual installation and automatic from script build_oc.tool

  • Sad 1
Link to comment
Share on other sites

29 minutes ago, pananning said:

Hi all, how can I use .contentVisibility to hide and disable boot entries?

 

Hi @pananning

Configuration.pdf page 41

• Exclude entries if there is a .contentVisibility file near the bootloader or inside the boot directory with
Disabled contents (ASCII).

 

Link to comment
Share on other sites

30 minutes ago, Matgen84 said:

 

Hi @pananning

Configuration.pdf page 41

• Exclude entries if there is a .contentVisibility file near the bootloader or inside the boot directory with
Disabled contents (ASCII).

 

Thanks for your reply, how do I do it exactly?
I created the .contentVisibility file and put it in the \EFI\Microsoft\Boot directory, but it didn't block the Windows startup items

Link to comment
Share on other sites

37 minutes ago, pananning said:

Thanks for your reply, how do I do it exactly?
I created the .contentVisibility file and put it in the \EFI\Microsoft\Boot directory, but it didn't block the Windows startup items

 

I don't use it. I think that you have to write Disabled inside the .contentvisibility file.

Link to comment
Share on other sites

EDIT: I determined that the LegacyBoot utility included with OC0.8.8 does not load HFSPlusLegacy.efi.  Reverting to the LegacyBoot included with OC0.8.7 resolves the issue.  For now, I have upgraded to OC0.8.8 while retaining the LegacyBoot provided with OC0.8.7.

 

EDIT2: This problem has been reported here.

============================================

 

I tried upgrading my HackBookPro6,2 to OC0.8.8, but found that OC0.8.8 claims incompatibility with HFSPlusLegacy.efi.  For now, I have reverted to OC0.8.7.

 

Has anyone else experienced this and if so, how did you resolve the incompatibility?  Thank you.

Edited by deeveedee
  • Like 2
Link to comment
Share on other sites

Can Anyone Give Me A Working OC 0.8.8 EFI, Had A Huge Computer Crash and LOST Everything.

Typing This on ONE Of My MacBook Air

Link to comment
Share on other sites

6 hours ago, Stefanalmare said:

HP xw4600, Intel(R) Core(TM)2 Extreme CPU X9650  @ 3.00GHz, AMD Radeon HD 7750 1 GB, OC 0.8.8, HfsPlusLegacy.efi, no issue.

 

If you are not experiencing any issues with OC 0.8.8 LegacyBoot and HfsPlusLegacy.efi, it might help the Acidanthera developers if you post your configuration here.

Link to comment
Share on other sites

1 hour ago, STLVNUB said:

Can Anyone Give Me A Working OC 0.8.8 EFI, Had A Huge Computer Crash and LOST Everything.

Typing This on ONE Of My MacBook Air

I'm not sure how this could possibly help you unless you have the identical hack, but my posted EFIs for OC 0.8.8 are here and here.  

  • Like 1
Link to comment
Share on other sites

Just now, deeveedee said:

I'm not sure how this could possibly help you unless you have the identical hack, but my posted EFIs for OC 0.8.8 are here and here.  

thanks, i'm just lazy and can tinker it to my system

Link to comment
Share on other sites

I am blown away by the amount of debugging info provided by OpenCore to help diagnose boot issues.  For those who are interested, this is good reading.  If you haven't tried it, it's worth an experiment just to see the incredible detail provided in the debug reporting.

 

 

EDIT: The OpenCore 0.8.8 LegacyBoot issue with HfsPlusLegacy.efi has been resolved here.  Many thanks to Vit9696 and others who implemented the fix.

Edited by deeveedee
  • Like 4
Link to comment
Share on other sites

×
×
  • Create New...