Jump to content

(Guide) Insert Ozmosis into UEFI BIOS


  • Please log in to reply
173 replies to this topic

#1
Pavo

Pavo

    InsanelyMac Sage

  • Developers
  • 454 posts
  • Gender:Male
  • Location:Fort Gordon, GA
  • Interests:MacPro 5,1, 2x Xeon X5650 12 Cores 2.66Ghz, 48Gb 1333Mhz ram, Sapphire NITRO+ 8Gb RX 480 OC, 4x...

WARNING: Flashing your BIOS is dangerous use with caution:

 

This guide is to show a much simpler way to inject the Ozmosis files into your own UEFI BIOS using MMTool. (Note: You must do this in either Windows or in a VM of Windows)

 

1. Download the attached files : 

 

2. You need to download your own UEFI BIOS from your motherboard website (example shown is Z97X-SLI F6 BIOS)

 

3. Extract the Ozmosis.zip file and you will see 3 more zipped files inside that, also extract those files.

This is what you should see after everything is extracted:

lS1EqVh.png

4. Open MMTool and Click Load Image, find your UEFI BIOS that you downloaded earlier  (change Files of type to All Files)

kZCMhe7.png

5. Click the Extract tab and under Extract FFS Options click Extract UnCompressed, in the lower window look for CORE_DXE and select it (see below)

3qrfW83.png

6. Click Browse and select the extracted folder that you unzipped earlier and in the File Name portion Type CORE_DXE and click Save then Click Extract.

FNMhXE8.png

7. Next click the Delete Tab and again select the CORE_DXE in the lower window and click Delete

vvIzj4t.png

8. Next select the FileSystem in the lower window and click Delete

HA1SYRq.png

9. Next click the Insert Tab and in the Vol. Index make sure you are using 02:01-00, under Insert FFS Options select Insert Compressed, click Browse and select CORE_DXE that you extracted earlier and click Open the click Insert

pJR6VGs.png

10. Repeat Step 9 for EnhancedFat, HfsPlus, PartitionDxe, Ozmosis, HermitShellX64, OzmosisDefaults, SmcEmulatorKext, (Optional: VoodooHdaKext, OzmosisBlackTheme)

11. Once you have completed Step 10 scroll down in the lower window and look to make sure you have everything inserted

EHoLrAp.png

12. Click Create Report

UBp8RyR.png

13. GoTo the folder where your BIOS was and find the report file with a .rpt extension and open with NotePad

hrhQs8G.png

14. Scroll down under Firmware Volume : 02 and find the section in the previous screenshot and make sure you have plenty of free space

rsDNe5k.png

15. Close NotePad and click Save Image in MMTool

16. Now pick your favorite flashing tool of your choice and enjoy Ozmosis :P

 

Attached Files



#2
Pavo

Pavo

    InsanelyMac Sage

  • Developers
  • 454 posts
  • Gender:Male
  • Location:Fort Gordon, GA
  • Interests:MacPro 5,1, 2x Xeon X5650 12 Cores 2.66Ghz, 48Gb 1333Mhz ram, Sapphire NITRO+ 8Gb RX 480 OC, 4x...

Continued for Ozmosis ESP folder structure:

 

Ok now that you have Ozmosis injected into your UEFI BIOS you have probably figured out that your BIOS doesn't have lot of space to be able to inject all your needed kexts or DSDT or SSDT. This is were the ESP folder that Ozmosis automatically makes upon first boot comes in. (Note: The Oz folder structure will be made on the first HDD with GUID partitioning scheme, so select your HDD placement on your board correctly) After the first boot of Ozmosis you will see a folder structure created as a hidden EFI partition see below:

AsRCtjL.png

I have expanded every folder so you can see everything :P

DSDT and SSDT go in the Efi/Oz/Acpi/Load/ folder

Kext go into the Efi/Oz/Darwin/Extensions/Common/ folder

 

As you can see the pic above I have a Theme.bin file located under Efi/Oz, this is because my BIOS didn't have enough space for me to inject the ozmosisblacktheme into my BIOS. You can also put Defaults.plist file here and this is recommended until you have the correct Defaults.plist settings but once you have the correct Default.plist settings you can convert it into a .ffs and inject it into your BIOS.

 

Attached is the a example of iMac14,2 SMBIOS w/ iMessage and FaceTime settings fix and Theme.bin if you do not inject the theme into you BIOS.

Attached Files



#3
Pavo

Pavo

    InsanelyMac Sage

  • Developers
  • 454 posts
  • Gender:Male
  • Location:Fort Gordon, GA
  • Interests:MacPro 5,1, 2x Xeon X5650 12 Cores 2.66Ghz, 48Gb 1333Mhz ram, Sapphire NITRO+ 8Gb RX 480 OC, 4x...

Continued: Adding your own needed Kexts and putting your Defaults.plist into your firmware

 

(Note: Your firmware only has so much space, use the Oz folder structure if your firmware can not handle all the your kexts)

 

Now that you have inserted everything needed for Ozmosis and learned how the Oz folder structure works the next guide teaches you how to convert your own needed kexts and converting Clover config over to Defaults.plist.

 

Converting your own kexts to .ffs to be injected into firmware:

 

Tools need:

kexts2ffs which is attached

 

Step 1. Extract the attached kext2ffs and you will see these folders and files:

W0l4SXE.png

Step 2. Add your own kexts to the Kexts folder in Kext2Ffs like this:

cZf7Cwi.png

Step 3. Open the Ozm Folder and open the OzmosisDefaults.plist with either Xcode or PlistEdit Pro (DO NOT OPEN WITH a TextEditior)

cslp7Xy.png

Step 4. Open your Clover config.plist again with either Xcode or PlistEdit Pro

FqvD8YX.png

Now this is where you have to look and see what can be carried over from Clover config.plist to OzmosisDefaults.plist that Ozmosis uses, I have attached a full list of settings that Ozmosis uses in its OzmosisDefaults.plist. The only things that can be moved from Clover config.plist to OzmosisDefaults.plist are:
Graphics in Clover config.plist:
<key>FBName</key>
<string>Macaque</string>
In OzmosisDefaults.plist:
<key>AtiFramebuffer</key>
<string>ReplaceMe</string>
Intel GFX in Clover config.plist:
<key>ig-platform-id</key>
<string>0x01620005</string>
In OzmosisDefaults.plist:
<key>AAPL,ig-platform-id</key>
<integer>0xDEADBEAF</integer>
If you want to inject anything for graphics you need to make sure DisableNvidaInjection, DisableAtiInjection and DisableIntelInjection are set to false like this:
Ati:
<key>DisableAtiInjection</key>
<false/>
Nvidia:
<key>DisableNvidaInjection</key>
<false/>
Intel:
<key>DisableIntelInjection</key>
<true/>
The SMBIOS section self explanitory so I am not going to go over that except how to fix iMessage and FaceTime if you currently have it working with using Clover
(Remember ROM must be 12 digits HEX and MLB must be 17 digits)
ROM:
Clover config.plist:
<key>ROM</key>
<data>xxxxxxxxxxx</data>
OzmosisDefaults.plist:
<key>HardwareAddress</key>
<string>xx:xx:xx:xx:xx:xx</string>
MLB(which is located in the SMBIOS as BoardSerialNumber):
Clover config.plist:
<key>BoardSerialNumber</key>
<string>xxxxxxxxxxxxxxxxx</string>
OzmosisDefaults.plist:
<key>BaseBoardSerial</key>
<string>xxxxxxxxxxxxxxxxx</string>
The only other thing that you can use from Clover config.p;its in OzmosisDefaults.plist is the boot-args
Clover config.plist:
<key>Arguments</key>
<string>kext-dev-mode=1</string>
OzmosisDefaults.plist:
<key>boot-args</key>
<string>kext-dev-mode=1</string>
 
Now once you have done everything you want in the OzmosisDefaults.plist save and close and run the KextToFfs.command.
You will see a terminal windows open and showing what is being converted. Close the terminal windows once converted is complete and find your converted kexts and OzmosisDefaults located in:
Kexts:
Kext2Ffs/Ffs/Kext/ (Note: if you want to use the compressed versions they are located in Kext2Ffs/Ffs/Kext/Compress/ which is recommended to save space in the firmware)
OzmosisDefaults:
Kext2Ffs/Ffs/Ozm/ (Note: if you want to use the compressed versions they are located in Kext2Ffs/Ffs/Ozm/Compress/ which is recommended to save space in the firmware)
 
Now you have the required .ffs files you need to inject into your firmware with MMtool.

Common MMTool Errors:

 

Ran out of space in firmware when trying to inject a .ffs

mbblNo5.png

 

Injecting something that has the same GUID that your firmware already has:

WNhsdma.png

Attached Files



#4
midi ッ

midi ッ

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 864 posts
  • Gender:Male
  • Location:Earth

WEW! Good guide :D



#5
thedubiousdubber

thedubiousdubber

    InsanelyMac Protégé

  • Donators
  • 62 posts
  • Gender:Male
  • Location:Minnesota

Awesome guide! I've been looking for something like this. I did get a little confused by post #3. Specifically step 3. I've been using chameleon bootloader thus far as the tonymac way of doing things was relatively easy, and I was unaware of the other (and apparently better) way of doing things. In any case this guide assumes the previous use of clover (or at least it seems so) in step 3. I don't have a Clover config.plist, so I'm not sure of what is supposed to be copied over. Is there any additional steps that one needs to take if they were starting from scratch? Blank SSD, no prior files or .plists, etc.?



#6
Pavo

Pavo

    InsanelyMac Sage

  • Developers
  • 454 posts
  • Gender:Male
  • Location:Fort Gordon, GA
  • Interests:MacPro 5,1, 2x Xeon X5650 12 Cores 2.66Ghz, 48Gb 1333Mhz ram, Sapphire NITRO+ 8Gb RX 480 OC, 4x...

Awesome guide! I've been looking for something like this. I did get a little confused by post #3. Specifically step 3. I've been using chameleon bootloader thus far as the tonymac way of doing things was relatively easy, and I was unaware of the other (and apparently better) way of doing things. In any case this guide assumes the previous use of clover (or at least it seems so) in step 3. I don't have a Clover config.plist, so I'm not sure of what is supposed to be copied over. Is there any additional steps that one needs to take if they were starting from scratch? Blank SSD, no prior files or .plists, etc.?

I never used Chameleon, but I am assuming there is a SMBIOS section in the config for it, thats the info you need to xfer to Defaults.plist so you have same settings i.e.... iMessage, FaceTime. If you want to start from scratch you can take your system specs and match them to a Apple product then use either Chameleon Wizard or Clover Configurator and select the SMBIOS that best match your system specs and fill in Defaults.plist with those settings.



#7
thedubiousdubber

thedubiousdubber

    InsanelyMac Protégé

  • Donators
  • 62 posts
  • Gender:Male
  • Location:Minnesota

I never used Chameleon, but I am assuming there is a SMBIOS section in the config for it, thats the info you need to xfer to Defaults.plist so you have same settings i.e.... iMessage, FaceTime. If you want to start from scratch you can take your system specs and match them to a Apple product then use either Chameleon Wizard or Clover Configurator and select the SMBIOS that best match your system specs and fill in Defaults.plist with those settings.

 

iMessage no longer works, and I'd kind of like to start from scratch so it sounds like Clover configurator is the way to go. Thanks!

 

And just to clarify, if you can fit all necessary kexts into bios, you can basically reinstall or update via the appstore, etc. as if it were an actual mac correct? otherwise if you need to use the oz folder for kexts, is that the only thing that needs to be reloaded upon installing or updating via traditional apple methods?



#8
MacUser2525

MacUser2525

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,677 posts
  • Gender:Male
  • Location:Canada

And just to clarify, if you can fit all necessary kexts into bios, you can basically reinstall or update via the appstore, etc. as if it were an actual mac correct? otherwise if you need to use the oz folder for kexts, is that the only thing that needs to be reloaded upon installing or updating via traditional apple methods?

 

Only if you re-partition the disk if you just format the install partition during install the EFI partition on it will not be wiped/re-created so all the files you already have in it will still be there for use by Ozmosis.



#9
treyboy484

treyboy484

    InsanelyMac Protégé

  • Members
  • Pip
  • 49 posts
  • Gender:Male
  • Interests:Hackintoshing, Photography, and Modern Architecture

Thank you for this awesome guide! But I have one question: I have a Z87i-DELUXE from ASUS and the only volume with enough storage (and the one that has the CORE_DXE ffs in it) is Vol. Index 4.  Do I insert all the needed ffs"s into there?

 

Thanks!

 

~ T



#10
Pavo

Pavo

    InsanelyMac Sage

  • Developers
  • 454 posts
  • Gender:Male
  • Location:Fort Gordon, GA
  • Interests:MacPro 5,1, 2x Xeon X5650 12 Cores 2.66Ghz, 48Gb 1333Mhz ram, Sapphire NITRO+ 8Gb RX 480 OC, 4x...

Thank you for this awesome guide! But I have one question: I have a Z87i-DELUXE from ASUS and the only volume with enough storage (and the one that has the CORE_DXE ffs in it) is Vol. Index 4.  Do I insert all the needed ffs"s into there?

 

Thanks!

 

~ T

The one with Core_Dxe is the volume you want to inject the other modules, Volume 2 in the example was a GA board, make sure you lookup how to patch PM on the ASUS BIOS or you may have ACIPM issues



#11
treyboy484

treyboy484

    InsanelyMac Protégé

  • Members
  • Pip
  • 49 posts
  • Gender:Male
  • Interests:Hackintoshing, Photography, and Modern Architecture

@Pavo

 

Yes I have PMPatch'd BIOS currently, but I will add the necessary ffs's to Vol 4 and then PMPatch the BIOS.  Thanks for the clarification!

 

~ T



#12
treyboy484

treyboy484

    InsanelyMac Protégé

  • Members
  • Pip
  • 49 posts
  • Gender:Male
  • Interests:Hackintoshing, Photography, and Modern Architecture

So I successfully added all the needed files into the CAP bios file and flashed it to my motherboard, but I'm not sure how to boot using Ozmosis or how to test to see if it worked properly.  Could you give me a little info on that?

 

Thank you!

 

~ T



#13
Pavo

Pavo

    InsanelyMac Sage

  • Developers
  • 454 posts
  • Gender:Male
  • Location:Fort Gordon, GA
  • Interests:MacPro 5,1, 2x Xeon X5650 12 Cores 2.66Ghz, 48Gb 1333Mhz ram, Sapphire NITRO+ 8Gb RX 480 OC, 4x...
Easiest way is to hit the alt+windows key+p+r combo continuously and see if it resets nvram, the screen will flash different colors or create a USB installer using the createinstallmedia method and boot directly off of it by using your BIOS boot menu hot key

#14
treyboy484

treyboy484

    InsanelyMac Protégé

  • Members
  • Pip
  • 49 posts
  • Gender:Male
  • Interests:Hackintoshing, Photography, and Modern Architecture

Easiest way is to hit the alt+windows key+p+r combo continuously and see if it resets nvram, the screen will flash different colors or create a USB installer using the createinstallmedia method and boot directly off of it by using your BIOS boot menu hot key 

 

Okay, I tried what you've said above, but it still seems to not be working.  Here's a link to the stock BIOS for my board and the one patched with CodeRush's tool and Ozmosis injected into it.  Can you either patch the stock one or check the patched one to make sure I didn't miss anything?

 

http://1drv.ms/1wjctOW

 

Thank you,

 

~ T



#15
Pavo

Pavo

    InsanelyMac Sage

  • Developers
  • 454 posts
  • Gender:Male
  • Location:Fort Gordon, GA
  • Interests:MacPro 5,1, 2x Xeon X5650 12 Cores 2.66Ghz, 48Gb 1333Mhz ram, Sapphire NITRO+ 8Gb RX 480 OC, 4x...

Okay, I tried what you've said above, but it still seems to not be working.  Here's a link to the stock BIOS for my board and the one patched with CodeRush's tool and Ozmosis injected into it.  Can you either patch the stock one or check the patched one to make sure I didn't miss anything?

 

http://1drv.ms/1wjctOW

 

Thank you,

 

~ T

I added the missing stuff, at a minimum you have to have EnhancedFat, HfsPlus, Ozmosis, and OzmosisDefaults. You was missing all of those, you had your ethernet, genericusb and partitiondxe those are optional. I used a iMac13,2 SMBIOS for your Defaults

Attached Files



#16
treyboy484

treyboy484

    InsanelyMac Protégé

  • Members
  • Pip
  • 49 posts
  • Gender:Male
  • Interests:Hackintoshing, Photography, and Modern Architecture

I added the missing stuff, at a minimum you have to have EnhancedFat, HfsPlus, Ozmosis, and OzmosisDefaults. You was missing all of those, you had your ethernet, genericusb and partitiondxe those are optional. I used a iMac13,2 SMBIOS for your Defaults


Hmm... I thought I added them in just like your tutorial stated... oh well. It seems to be working now, as I have new boot entries labeled "Macintosh HD" and "Recovery HD". I can select "Macintosh HD" and the Yosemite Apple logo loads up, but the progress bar doesn't move.. and a few seconds later, the computer reboots. Any ideas? Or do I need to adjust my own settings? {I've been using an iMac14,2 SMBIOS... does this matter?)

EDIT: Never mind! It's just a KP because I forgot to delete my old FakeSMC kext out of /S/L/E. Booted up an installer and clean installed just fine. Thank you so much Pavo!

~ T

#17
joe75

joe75

    Renegade

  • Retired
  • 2,488 posts
  • Gender:Male
  • Location:Rochester, NY

PartitionDXE should be considered a required file and i would have it added before defaults 



#18
Pavo

Pavo

    InsanelyMac Sage

  • Developers
  • 454 posts
  • Gender:Male
  • Location:Fort Gordon, GA
  • Interests:MacPro 5,1, 2x Xeon X5650 12 Cores 2.66Ghz, 48Gb 1333Mhz ram, Sapphire NITRO+ 8Gb RX 480 OC, 4x...

PartitionDXE should be considered a required file and i would have it added before defaults 

Thanks for the clarification Joe



#19
fbifido

fbifido

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 153 posts
  • Gender:Male
  • Location:Jamaica

Hi,

 

my new system:

 

msi H61M-P31/w8 (ms-7788) mother board

    Website:   http://www.msi.com/p.../H61MP31W8.html

    Bios:        http://download.msi....exe/7788v36.zip

 

intel Core i3-3250 Ivy-Bridge-D 3.50GHz cpu

   Website:    http://ark.intel.com...-Cache-3_50-GHz

 

this is a 3rd-Gen cpu with Intel HD 2500 video card.

 

Can this motherboard be mod with ozmosis ?

 

 

Thanks.



#20
Pavo

Pavo

    InsanelyMac Sage

  • Developers
  • 454 posts
  • Gender:Male
  • Location:Fort Gordon, GA
  • Interests:MacPro 5,1, 2x Xeon X5650 12 Cores 2.66Ghz, 48Gb 1333Mhz ram, Sapphire NITRO+ 8Gb RX 480 OC, 4x...

 

Hi,

 

my new system:

 

msi H61M-P31/w8 (ms-7788) mother board

    Website:   http://www.msi.com/p.../H61MP31W8.html

    Bios:        http://download.msi....exe/7788v36.zip

 

intel Core i3-3250 Ivy-Bridge-D 3.50GHz cpu

   Website:    http://ark.intel.com...-Cache-3_50-GHz

 

this is a 3rd-Gen cpu with Intel HD 2500 video card.

 

Can this motherboard be mod with ozmosis ?

 

 

Thanks.

 

Here you go, has iMac13,2 Defaults already in firmware, you will need to add any other needed kext to the Efi/Oz/Darwin/Extensions/Common folder once its been created

Attached Files







1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

© 2016 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy