Quantcast
Channel: Astr0baby's not so random thoughts _____ rand() % 100;
Viewing all articles
Browse latest Browse all 183

Customizing the Clover.iso Mojave loader

$
0
0

Short howto on how to build a custom Clover.iso for your VirtualBox Mojave emulation. You will need an existing macOS system either real or virtual (VirtualBox) for the script to prepare the clove.iso

Below is an example script that will produce a 1980×1080 resolution Clover.iso which you then need to use in the Virtual Box emulation to load Mojave.

Please read the previous howtos on how to do this here https://astr0baby.wordpress.com/2018/08/03/installing-mojave-10-14-beta-in-virtualbox-5-2-16-on-linux-x86_64/

Updated clover.sh script (chmod +x clover.sh)

#!/bin/bash

curl -Lk https://raw.githubusercontent.com/AlexanderWillner/runMacOSinVirtualBox/master/config.plist -o config.plist

# We will set a custom resolution here 1980x1080 
sed -i -e 's/1680x1050/1980x1080/g' config.plist

#### Please replace your path to the apfs.efi on your macOS installation #####
cp "/Volumes/Macintosh HD/usr/standalone/i386/apfs.efi" "./apfs.efi"
#### Please replace your path to the apfs.efi on your macOS installation #####


curl -Lk https://sourceforge.net/projects/cloverefiboot/files/Bootable_ISO/CloverISO-4533.tar.lzma/download -o clover.tar.lzma
sleep 1
xz -d clover.tar.lzma
tar xf clover.tar
hdiutil detach /Volumes/Clover-v2.4k-4533-X64/ 2>/dev/null || true
hdiutil attach Clover-v2.4k-4533-X64.iso
hdiutil create -megabytes 16 -fs MS-DOS -volname MojaveClover -o ./clover.dmg
hdiutil detach /Volumes/NO\ NAME/ 2>/dev/null || true
hdiutil attach ./clover.dmg
cp -r /Volumes/Clover-v2.4k-4533-X64/* /Volumes/NO\ NAME/
cp ./config.plist /Volumes/NO\ NAME/EFI/CLOVER/
cp ./apfs.efi /Volumes/NO\ NAME/EFI/CLOVER/drivers64UEFI/


hdiutil detach /Volumes/Clover-v2.4k-4533-X64/
hdiutil detach /Volumes/NO\ NAME/
hdiutil makehybrid -iso -joliet -o ./clover.iso ./clover.dmg

Also we could use the above example to modify other things (this I leave to the reader to experiment with) For example these SIP  security settings in the default clover – disabled completely.

CsrActiveConfig
0x67

We could change it to match what you want -> 0x0

csr-active-config 0x0 = SIP Enabled (Default)
csr-active-config 0x3 = SIP Partially Disabled (Loads unsigned kexts)
csr-active-config 0x67 = SIP Disabled completely

Here is the mandatory VirtualBox 1980×1080 script that needs to be executed prior to loading Mojave

#!/bin/bash
readonly VM_RES="1980x1080"
readonly NAME="Mojave"

VBoxManage modifyvm "$NAME" --usbxhci on --firmware efi --chipset ich9 --mouse usbtablet --keyboard usb
VBoxManage setextradata "$NAME" "CustomVideoMode1" "${VM_RES}x32"
VBoxManage setextradata "$NAME" VBoxInternal2/EfiGraphicsResolution "$VM_RES"
VBoxManage modifyvm "$NAME" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

Once you have all in place – you will get the 1980×1080 resolution working in the VirtualBox Mojave emulation

Also for the hasty you can get the clove4k.iso here -> https://drop.me/M3pZW7


Viewing all articles
Browse latest Browse all 183

Trending Articles