Jump to content
JahStories

[Guide] XiaoMi Mi Notebook Air 13"

663 posts in this topic

Recommended Posts

usually good kexts installers clear the kernel cache after installation, dunno...

What's the name of the utility you used? 

the only files you need in driver64uefi are:

 

FSInject-64.efi

HFSPlus.efi

OsxAptioFix2Drv-64.efi

OsxFatBinaryDrv-64.efi

 

This is a download link for these files.

 

Everything else can be deleted.

 

I use the recommended tool: EasyKext Pro v2.1. I had the same files (and only these files) in my drivers64UEFI folder but I just overwrite them with yours and got the same behavior. Thanks anyway.

 

Need to know how many changes I have to do in CloudCloverEditor? I upload the config.plist included in the filepack. I generate the SMBIOS Serial Number only (Product Name is already set as MacBookPro13,1 by default) and then I download the modified config.plist. I use this modified config.plist in Clover in the installation usb flashdrive and in Clover in the sdd after installation. And the system boots ok by itself... until I install the patched kext. Then it doesn't boot anymore. I use the 0x123456789 fakeid in every boot but not in the boot after the modified kext installation.

 

 

What Clover version do you use? I use the last one r4049.

 

I am making a new usb installer from scratch again. Now with the filepack 2.0. Crossing fingers.

 

Edit:

 

This is the config.plist (modified by CCE) I will use: https://pastebin.com/4WVh2n3d Please make a "diff" with yours. The only different must be the Serial Number. Can you confirm this?

 

Edit:

 

With filepack 2.0 and my config.plist it doesn't boot the installation usb. I get "This version of MacOS is not supported in this platform!" It says "Reason: Mac-". I can see an entry in my config.plist:

 

<key>Board-ID</key> 

<string>Mac-</string>

 

Please, what should I put there?

 

Edit:

 

Had to set this boot flag "-no_compat_check", seems to start the installer but fails later with a beautiful kernel panic. 

 

I wonder why it fails me only. This is not the first hackintosh I build.

Share this post


Link to post
Share on other sites
Advertisement

I use the recommended tool: EasyKext Pro v2.1. I had the same files (and only these files) in my drivers64UEFI folder but I just overwrite them with yours and got the same behavior. Thanks anyway.

 

Need to know how many changes I have to do in CloudCloverEditor? I upload the config.plist included in the filepack. I generate the SMBIOS Serial Number only (Product Name is already set as MacBookPro13,1 by default) and then I download the modified config.plist. I use this modified config.plist in Clover in the installation usb flashdrive and in Clover in the sdd after installation. And the system boots ok by itself... until I install the patched kext. Then it doesn't boot anymore. I use the 0x123456789 fakeid in every boot but not in the boot after the modified kext installation.

 

 

What Clover version do you use? I use the last one r4049.

 

I am making a new usb installer from scratch again. Now with the filepack 2.0. Crossing fingers.

 

Edit:

 

This is the config.plist (modified by CCE) I will use: https://pastebin.com/4WVh2n3d Please make a "diff" with yours. The only different must be the Serial Number. Can you confirm this?

 

Edit:

 

With filepack 2.0 and my config.plist it doesn't boot the installation usb. I get "This version of MacOS is not supported in this platform!" It says "Reason: Mac-". I can see an entry in my config.plist:

 

<key>Board-ID</key>

<string>Mac-</string>

 

Please, what should I put there?

 

Edit:

 

Had to set this boot flag "-no_compat_check", seems to start the installer but fails later with a beautiful kernel panic.

 

I wonder why it fails me only. This is not the first hackintosh I build.

Not to be condescending or anything. But your issue is still that you don't read. The board ID is the serial you've got to generate! And it's empty in your file. Also, don't use flags you know little/nothing about.

 

 

Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

 

 

Dunno if I'll post a video, maybe later possibly, about three finger gestures keep in mind that you can assign them to specific task that are addressable to keyboard shortcuts, such opening exposè, running an app, closing windows etc...

No way to drag windows with three fingers, that would require a true multitouch driver, and voodooPS2 (the one that we are using) and the others ps2 kexts you can find on other boards, aren't multitouch...

The only "true" multitouch gesture is two finger vertical and horizontal scrolling.

Share this post


Link to post
Share on other sites

I use the recommended tool: EasyKext Pro v2.1. I had the same files (and only these files) in my drivers64UEFI folder but I just overwrite them with yours and got the same behavior. Thanks anyway.

 

Need to know how many changes I have to do in CloudCloverEditor? I upload the config.plist included in the filepack. I generate the SMBIOS Serial Number only (Product Name is already set as MacBookPro13,1 by default) and then I download the modified config.plist. I use this modified config.plist in Clover in the installation usb flashdrive and in Clover in the sdd after installation. And the system boots ok by itself... until I install the patched kext. Then it doesn't boot anymore. I use the 0x123456789 fakeid in every boot but not in the boot after the modified kext installation.

 

 

What Clover version do you use? I use the last one r4049.

 

I am making a new usb installer from scratch again. Now with the filepack 2.0. Crossing fingers.

 

Edit:

 

This is the config.plist (modified by CCE) I will use: https://pastebin.com/4WVh2n3d Please make a "diff" with yours. The only different must be the Serial Number. Can you confirm this?

 

Edit:

 

With filepack 2.0 and my config.plist it doesn't boot the installation usb. I get "This version of MacOS is not supported in this platform!" It says "Reason: Mac-". I can see an entry in my config.plist:

 

<key>Board-ID</key> 

<string>Mac-</string>

 

Please, what should I put there?

 

Edit:

 

Had to set this boot flag "-no_compat_check", seems to start the installer but fails later with a beautiful kernel panic. 

 

I wonder why it fails me only. This is not the first hackintosh I build.

 

I've had the same issue as you. CloudCloverEditor doesn't seem to generate Board ID. Don't know why. I've edited config.plist and added it manually with value Mac-473D31EABEB93F9B that corresponds to MacBookPro13,1. Then I managed to boot and install macOS following the guide. Note I'm using file pack 2.0 and macOS 10.12.3. 

Share this post


Link to post
Share on other sites

I've had the same issue as you. CloudCloverEditor doesn't seem to generate Board ID. Don't know why. I've edited config.plist and added it manually with value Mac-473D31EABEB93F9B that corresponds to MacBookPro13,1. Then I managed to boot and install macOS following the guide. Note I'm using file pack 2.0 and macOS 10.12.3.

It does generate it, but you've got to fill out some of the necessary variables first.

 

 

Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

I install the modified kext, reboot without fakeid and I get this error, again.

 

OsxAptioFix2Drv: Starting overrides for \System\Library\CoreServices\boot.efi

Using reloc block: no, hibernate wake: no

Error loading kernel cache (0x1)

Boot failed, sleeping for 10 seconds before exiting...

 

FilePack 2.0, MacOS 10.12.4, SIP disabled, Assessment subsystem disabled, Board-ID set, SerialNumber set.

 

I give up.

 

Bye.

 

Edit:

 

Just find out why I cannot install macOS. My Samsung SATA SSD is faulty. The drive just failed the SMART test. I am asking for a refund. 

Share this post


Link to post
Share on other sites

I install the modified kext, reboot without fakeid and I get this error, again.

 

OsxAptioFix2Drv: Starting overrides for \System\Library\CoreServices\boot.efi

Using reloc block: no, hibernate wake: no

Error loading kernel cache (0x1)

Boot failed, sleeping for 10 seconds before exiting...

 

FilePack 2.0, MacOS 10.12.4, SIP disabled, Assessment subsystem disabled, Board-ID set, SerialNumber set.

 

I give up.

 

Bye.

This seems to be nvram related. Clear it again and report. Also, you're showing a tendency to do steps on your own, without being told by us nor the guide to do so. No one has told you to touch SIP. It could be that the nvram has been set to restricted. Our systems are 99.9% identical. You're the one messing up. That being said, clear the nvram and test again. And if that doesn't work, start from scratch and follow the guide 100%, without messing with other options.

 

 

Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

I think that is not related to nvram!

But the app is probably not cleaning the kernel cache...

Do a manual install from the terminal... (if you already installed the kext do only the last four steps)

sudo -s
cp -R ~/"kextname".kext /System/Library/Extensions/
chmod -R 755 /System/Library/Extensions/"kextname"
chown -R 0:0 /System/Library/Extensions/"kextname"
/usr/libexec/repair_packages --repair --standard-pkgs --volume /
rm -R /System/Library/Caches/com.apple.kext.caches
touch /System/Library/Extensions
kextcache -update-volume /

Share this post


Link to post
Share on other sites

 

I think that is not related to nvram!

But the app is probably not cleaning the kernel cache...

Do a manual install from the terminal... (if you already installed the kext do only the last four steps)

sudo -s
cp -R ~/"kextname".kext /System/Library/Extensions/
chmod -R 755 /System/Library/Extensions/"kextname"
chown -R 0:0 /System/Library/Extensions/"kextname"
/usr/libexec/repair_packages --repair --standard-pkgs --volume /
rm -R /System/Library/Caches/com.apple.kext.caches
touch /System/Library/Extensions
kextcache -update-volume /

I can't mount the partition. The file system has been messed up. That's why clover can't load the kernel. When I try to mount by hand the macos partition it says "invalid secondary volume header" "unable to find HFS+ superblock". The SATA drive is faulty. And this is the reason why I am not able to install the OS.

Share this post


Link to post
Share on other sites

This seems to be nvram related. Clear it again and report. Also, you're showing a tendency to do steps on your own, without being told by us nor the guide to do so. No one has told you to touch SIP. It could be that the nvram has been set to restricted. Our systems are 99.9% identical. You're the one messing up. That being said, clear the nvram and test again. And if that doesn't work, start from scratch and follow the guide 100%, without messing with other options.

 

 

Sent from my iPhone using Tapatalk

"No one has told you to touch SIP" That's wrong. The EasyKext Pro developer clearly asks for disabling SIP when running the tool in MacOS Sierra.

I can't install the OS because my SSD was faulty. The drive can't even complete the SMART test (fails at 20%). I already asked for a refund. And I'm sure I will install macos with no problem on my brand new SSD. I am not a noob. 

Btw I am cancelling the account.

Share this post


Link to post
Share on other sites

If you want to cancel your account you are free to do whatever you want, but Kevin is right, there is no need to touch SIP...

If you knew how SIP really works you should even now that it have to be disabled on a hack to be able to use kexts... Thats why it's already partially disabled and that is made by the csractiveconfig flag on the config.plist

Many use 67 that totally disable SIP, but since I prefer a more clean way, I use 3 for the pack, that disables just the kext signature and file system verification.

To check just use this command on a terminal window

csrutil status

 

have fun.

Share this post


Link to post
Share on other sites

Hello guys. I found this thread today while was searching for any info about hackintosh for my daily driver laptop. Thank you Claudes for such a great job!

 

Anyway I just get stuck with macOS installation on my Xiaomi MNA 13'. I am catching a fancy kernel panic when trying to boot from created pen drive and start installation, so my laptop immediately reboot right at the point a loading bar appears under Apple logo. Using the latest macOS Siera installation app, latest Clover, and filepack 2.0.

 

 

Did someone get the same issue? There is a pretty big possibility that I just a dumb man and I can't realize what I did wrong. :)

 

Any help would be appreciated.

Share this post


Link to post
Share on other sites

Hi ClaudesTech, my Mi Notebook Air 13 comes with BIOS version A06 instead of the A05 (I bought it on March 2017). Do you know if all the kext and SSDT / DSDT patches from your package are compatible with the new BIOS?

 

For now, I managed to install macOS 10.12.3 successfully with FilePack v2.0. Basic things seems to be working (Intel GPU, CPU multiplier, audio, headphones, brightness control). But I'm not sure if all patches and injections are being applied correctly. For example, HiDPI is not working and TrackPad scroll seems a little unresponsive.

Share this post


Link to post
Share on other sites

Hi ClaudesTech, my Mi Notebook Air 13 comes with BIOS version A06 instead of the A05 (I bought it on March 2017). Do you know if all the kext and SSDT / DSDT patches from your package are compatible with the new BIOS?

 

For now, I managed to install macOS 10.12.3 successfully with FilePack v2.0. Basic things seems to be working (Intel GPU, CPU multiplier, audio, headphones, brightness control). But I'm not sure if all patches and injections are being applied correctly. For example, HiDPI is not working and TrackPad scroll seems a little unresponsive.

HiDPI doesn't have anything to do with that. Be sure that you've copied the file as root. Check the permissions and apply the correct ones with chmod if needed.

 

The trackpad is a little unresponsive due to the drivers. It's just the way it is, for all Hackbooks. It be just as fast, just a little quirky at times.

 

 

Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

Since, apparently, people are having a really hard time following the guide correctly, I've made a bash script that installs all files for you. It is very simple to use. You only have to copy the script to the FilePack folder, open up Terminal and type "sudo [drag the installer here]". That's it.
The one remaining thing to do is to reboot and install the AppleIntelSKLGraphicsFramebuffer.kext from the Backup folder with a kext tool of your choice and reboot again.

I intend to integrate that last step as well. With a slightly more "sophisticated" script.

BEFORE anyone tries it though, I'd like @ClaudesTech to have a look at it first. I haven't even tried it myself yet since I've written this on my phone. I'll probably be able to test it out later today.

 

LINK

 

 

Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

nice!

I took a look the script seems correct.

but oh, I can't try it, don't want to reinstall again to test it, lets wait for someone else feedback...


Hi ClaudesTech, my Mi Notebook Air 13 comes with BIOS version A06 instead of the A05 (I bought it on March 2017). Do you know if all the kext and SSDT / DSDT patches from your package are compatible with the new BIOS?

 

For now, I managed to install macOS 10.12.3 successfully with FilePack v2.0. Basic things seems to be working (Intel GPU, CPU multiplier, audio, headphones, brightness control). But I'm not sure if all patches and injections are being applied correctly. For example, HiDPI is not working and TrackPad scroll seems a little unresponsive.

 

Would be nice is you can extract your bios from windows for us to use it...

Btw I don't thinks there should be any problem with it and the filespack.

Share this post


Link to post
Share on other sites

My Mi Notebook Air 13 comes with BIOS version A06 instead of the A05 (I bought it on March 2017). Do you know if all the kext and SSDT / DSDT patches from your package are compatible with the new BIOS? For example, HiDPI is not working.

HiDPI doesn't have anything to do with that. Be sure that you've copied the file as root. Check the permissions and apply the correct ones with chmod if needed.

 

According to the output of ioreg -l my DisplayProductID and DisplayVendorID is different from yours, so I edited "DisplayProductID-1447" file from the package and copied to "/System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-4c83/DisplayProductID-4259". I've had to mkdir DisplayVendorID-4c83 folder because it didn't exists.

 

Now after restart I can select custom resolutions with HiDPI with RDM, like 936p. I attached the file in case is helpful for anyone.

 

 

+-o AppleBacklightDisplay {

"IOClass" = "AppleBacklightDisplay"

"CFBundleIdentifier" = "com.apple.iokit.IOGraphicsFamily"

"IOProviderClass" = "IODisplayConnect"

"DisplayProductID" = 16985

"IODisplayEDID" = <00ffffffffffff004c83594200000000001a0104a51d11780a9f65a2574c9b261250540000000101010101010101$

"IODisplayPrefsKey" = "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IGPU@2/AppleIntelFramebuffer@0/di$

"IODisplayParameters" = {"commit"={"reg"=0},"fade-time2"={"min"=0,"max"=10000,"value"=4000},"ggsc"={"min"=0,"ma$

"IOProbeScore" = 3000

"IOPowerManagement" = {"DevicePowerState"=3,"CapabilityFlags"=49152,"CurrentPowerState"=3,"MaxPowerState"=3}

"IOMatchCategory" = "IODefaultMatchCategory"

"IODisplayAttributes" = {"IODisplayAttributes"=<676174760000000073676c6600000000726c6f6301000000637062200200000$

"IODisplayConnectFlags" = <00080000>

"DisplayVendorID" = 19587

"DisplaySerialNumber" = 0

}

 

 

@Claude can you give me a link or some info on how to extract the BIOS?

DisplayProductID-4259.txt

Share this post


Link to post
Share on other sites

@nayzebo

The only way to check, its testing it, maybe it could work!

@albertalpha

I don't remember the tool to dump the bios, I'll let you know!

 

This is Bios A5 if someone needs it:

Xiaomi_A5.rom.zip

Share this post


Link to post
Share on other sites

Hi guys!

 

What do you think about BCM94352HMB and this adapter

https://ru.aliexpress.com/item/Hot-Sale-mSATA-Mini-PCI-E-3-0-SSD-to-NGFF-M-2-B-SATA-interface/32443066472.html

 

Can it work?

It won't work, i tried it already with a key M to key A adapter (you'll need A/E key for WLAN) in the first SSD slot (PCIe slot): http://www.delock.de/produkte/G_65699/merkmale.html

Windows did not recognize it (same after installing drivers), neither did macOS after all kext installs and config edits.

 

The only possible solution i can think of is this which i have not tried: http://www.bplus.com.tw/Adapter/M2E.html

Share this post


Link to post
Share on other sites

@dodvip123

You tried BCM94352Z card with adapter into first SSD slot.

But I speak about BCM94352HMB (miniPCIe) with another adapter into second SSD slot.

Share this post


Link to post
Share on other sites

the adapter does not support MiniPCIe (read description), also the second SSD slot is a B key SATA slot and the first SSD slot is a M key PCIe slot

 

@dodvip123

You tried BCM94352Z card with adapter into first SSD slot.

But I speak about BCM94352HMB (miniPCIe) with another adapter into second SSD slot.

Share this post


Link to post
Share on other sites

there is no way we could use a sata port to connect a wireless card our only possibility is using the pci-e slot (the one with the stock drive in it)

 

@dodvip

please remove the link to that forum, it's against forum's rules!

Share this post


Link to post
Share on other sites

the adapter does not support MiniPCIe (read description), also the second SSD slot is a B key SATA slot and the first SSD slot is a M key PCIe slot

The adapter he's mentioning is in fact for a mSata B. It could actually work with the card he mentioned.

 

EDIT: Scratch that, the card itself is pcie. Nevermind. lol

 

Sent from my iPhone using Tapatalk

(...)

The only possible solution i can think of is this which i have not tried: http://www.bplus.com.tw/Adapter/M2E.html

That would fix Wifi, but BT would still be an issue since we don't have any internal usb to connect the card to, that I know of. Although there should be some hub somewhere on the mainboard we could solder it to.

 

One solution would be to finally build an injector for the existing bluetooth module, which isn't completely undoable (compared to writing a wifi driver). And use that in conjunction with the separate wifi card.

 

 

Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

I mean, wifi is the main issue, I've no problem running a vm to inject the bt firmware when I need it!

Tbh I don't have problems with usb wifi, but would be cool to use an internal one!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By MardukPVP
      Hello guys,

      recently I have tried to install macOS mojave on my Mi Notebook pro (i5 - 8250u model) but have faced one big problem.
      My guide was from Razorkey (https://www.tonymacx86.com/threads/guide-xiaomi-mi-notebook-pro-high-sierra-10-13-6.242724/). As a newbie I have almost no experience in installing macOS on a PC / Laptop... so I hope you can help me .

      But first things first I configurated the BIOS settings on my Mi - Notebook Pro. Therein I just disabled secure boot (because there are quite few options to tick).

      After that I headed over to my secondary Windows - PC and installed a High Sierra virtual machine (thanks to this tutorial: https://techsviewer.com/install-macos-high-sierra-vmware-windows-pc/). At that point everything worked fine.

      Then I downloaded the Mojave patcher and downloaded the full 6GB macOS Installer, put it into applications and formatet my 16GB USB Stick into the journaled + GUID with the name USB meanwhile.
      Next I typed 
      sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/USB 
      into the terminal and at that point everything looked like it would work pretty fine. I downloaded Clover Config, mountet the EFI partition and pushed the EFI folder from this site: https://github.com/daliansky/XiaoMi-Pro to the EFI partition on my 16GB USB drive.

      In the folloing I restarted my Notebook, selected the MacOS installer and it bootet into the MacOS installer. By doing that I only noticed that the progress bar turned green at a certain time (attatchment). Even though everything bootet pretty fine, i formattet my only ssd (Samsung) into APFS + GUID and startet the installation.
      At the point of two minutes my notebook suddenly rebootet and it brang me into the same clover selection menue as before (with only one method [macOS Installation]). Unfortunately there was no further installation method.

      When I was trying to reboot the laptop into the installer i got a error [your computer restarted because of a problem...] and i would have to do everything again.


      I hope someone can help me fixing this problem  . Thanks in advance.




    • By ltooz_audis
      I got the perfect working macBook Air 7,2 working with Mojave - Everything is working - I do mean even the SD card reader - audio - backlight controlled with keyboards... I'll write up the full tutorial and video how to soon. Love the Mojave, High Sierra was nothing compared to this.
      Cheers,
      Louis
       
       
       
    • By Cerv4nteZ
      Hi,
       
      i just let my sierra installation on a skylake xiaomi air laptop update. after the obligatory reboot i was greeted with a kernel panic regarding com.apple.iokit.IOAHCIBlockStorage. Now booting into osx doesnt work anymore
       
      Anyone else run into this? Is there a way to make clover save the boot log on this or do you guys salvage the logs from the hfs volume osx resides on?
    • By JahStories
      Files Package For Xiaomi Mi Notebook Air 13” 2.1
      Bios vers A05 — CPU i5 6200U (confirmed working even on A06 bios)
       
      2.1 PACK FOR HIGH SIERRA ONLY, FOR SIERRA USE 2.0
       
      Discussion's thread.
       
      Not working:
      Wi-fi / Bluetooth. (Bluetooth works if using a VM to inject the FW)
      Nvidia Optimus 940MX GPU. (Optimus does not work on macOS at all)
       
      Issues:
      Excessive battery draining while on sleep.
       
      For 2.0 Steps check the discussion thread
      Steps:
       
       
       
      When updating to new versions of the filepack:
      Remove all old files and install the new ones following the ReadMIs.
      Just remember to use the same serials you used before.
       
      Don't use bios mods, other files with different patches or you'll get no help.
      Special thanks to:
      Jolly, gengik84, and RehabMan.
       
      By Jahstories on InsanelyMac a.k.a. EliJah on macos86.com
       

      HELP NEEDED?



      Please don't post a comment, use
      this thread !


      Thanks!


×