Code Monkey home page Code Monkey logo

xiaomi-notebook-air-12-5's Introduction

Support me and this project

Hi, this is Johnny, I'm an Engineering student. Life and university studies are expensive and the work is hard. My repositories are free, please consider rewarding me. Thank you.

4 ways to support me:

  1. Donate BTC: 3R13Ye85VwuzrBEJf32dZgREHsFsFpoG4m
  2. Donate ETH: 0x13f430523CAB662faA6924D6fbA4FdFA973A693b
  3. Please give me feedback: Open (or help with) issues or fork and send a pull request if you find some improvements to be made!

EFI Folder for the Xiaomi Notebook Air 2016 12.5"

MacOS Versions Supported:

  • macOS 10.13 High Sierra
  • macOS 10.14 Mojave
  • macOS 10.15 Catalina
  • macOS 11.00 Big Sur
  • macOS 12.00 Monterey

What do I need?

  • Xiaomi Notebook Air 2016 12.5" m3-6y30
  • macOS or windows PC to create the install USB
  • 8GB or larger USB stick (USB3 preferred for speed)
  • Latest copy of these files (https://github.com/johnnync13/EFI-Xiaomi-Notebook-air-12-5/releases)
  • (optional for multiboot) Second (M.2 SATA) SSD installed inside the laptop.
  • (possibly) USB mouse for install until trackpad is working
  • (possibly) For macOS 10.15: a natively supported (e.g. Apple) USB Ethernet adapter for installation

What is Working?

  • Native CPU Power Management
  • Sleep/Wake
  • Intel Graphics
  • Audio (AppleALC)
  • Trackpad (gestures)
  • HDMI Video and Audio
  • USB 3.0
  • NVMe / SATA SSD's
  • Battery Management
  • Brightness keys
  • Built-in camera
  • Built-in mic
  • Bluetooth Intel
  • FileVault Disk encryption (Always make a backup before switching on!!!)

Half working:

Not working:

  • Nvidia GPU (MX150/GP108) (Not supported under macOS and probably never will be)

Installation

Sounds good! Where do we start? You need a computer with macOS or Windows (scroll down)

Clover or OpenCore?

First let's figure out if we would like to use Clover or OpenCore. The pro's / con's listed:

Clover

Pro's (+)

Con's (-)

  • Might be less compatible with macOS updates in the future
  • Less secure (csr 67 flag needed to inject kext drivers, SIP, the macOS security system, is off)
  • Need to put kext files in /Library/Extensions/

OpenCore

Pro's (+)

  • Most secure (no csr 67 flag, SIP, the macOS security system, stays on)
  • Most compatible with future upgrades of macOS
  • No need to put kext files in /Library/Extensions/, therefore 'vanilla' macOS install
  • Faster than Clover

Con's (-)

Installing from macOS:

Clover method:

  • On your mac, create your macOS USB install media (e.g. https://support.apple.com/en-us/HT201372)
  • Mount the ESP (EFI System Partition) on your USB stick: (check that you mount the correct EFI partition, numbers will vary!!!)
diskutil list
sudo diskutil mount /dev/disk3s1
  • Copy and overwrite the contents of the EFI folder on your USB stick with the contents of the EFI folder from this website.
  • Eject the USB stick from your computer and insert in the Xiaomi laptop.
  • Now boot the Xiaomi laptop from the install media (if trackpad is not working, use USB mouse. If network connection needed, use a Apple compatible USB Ethernet adapter)
  • Open Disk Utility and format the builtin SSD or second SSD with APFS (will delete all your files!!!)
  • Install macOS
  • After install, boot from USB again but select SSD to boot from in the Clover Bootloader
  • Do initial macOS setup (use USB Ethernet adapter for internet)
  • Mount the ESP (EFI System Partition) on your SSD (check that you mount the correct EFI partition, numbers will vary!!!)
diskutil list
sudo diskutil mount /dev/disk0s1
  • Copy and overwrite the contents of the EFI folder from this website to the EFI folder on the ESP on your SSD.
  • Copy all the Kernel Extensions (kexts) from the EFI/CLOVER/kexts/Other to your system's /Library/Extensions folder (this is important, otherwise keyboard/trackpad and other devices might not work)
  • Execute these commands in Terminal to rebuild Kernel Extension Cache:
sudo chmod -R 755 /System/Library/Extensions/
sudo chown -R root:wheel /System/Library/Extensions/
sudo chmod -R 755 /Library/Extensions/
sudo chown -R root:wheel /Library/Extensions/
sudo touch /System/Library/Extensions/
sudo touch /Library/Extensions/
sudo kextcache -i / && sudo kextcache -u /
  • Remove the USB stick from the laptop
  • Done! Reboot to enable all the kexts. Enjoy your Hackintosh!

OpenCore method:

  • On your mac, create your macOS USB install media (e.g. https://support.apple.com/en-us/HT201372)
  • Mount the ESP (EFI System Partition) on your USB stick: (check that you mount the correct EFI partition, numbers will vary!!!)
diskutil list
sudo diskutil mount /dev/disk3s1
  • Copy and overwrite the contents of the EFI folder on your USB stick with the contents of the EFIOC (opencore) folder from this website.
  • Eject the USB stick from your computer and insert in the Xiaomi laptop.
  • Now boot the Xiaomi laptop from the install media (if trackpad is not working, use USB mouse. If network connection needed, use a Apple compatible USB Ethernet adapter)
  • Open Disk Utility and format the builtin SSD or second SSD with APFS (will delete all your files!!!)
  • Install macOS
  • After install, boot from USB again but select SSD to boot from in the OpenCore Bootloader
  • Do initial macOS setup (use USB Ethernet adapter for internet)
  • Mount the ESP (EFI System Partition) on your SSD (check that you mount the correct EFI partition, numbers will vary!!!)
diskutil list
sudo diskutil mount /dev/disk0s1
  • Copy and overwrite the contents of the EFIOC (opencore) folder from this website to the EFI folder on the ESP on your SSD.
  • Remove the USB stick from the laptop
  • Done! Reboot and enjoy macOS.

From Windows:

Clover method:

Downloading macOS:

  • Download gibMacOS from https://github.com/corpnewt/gibMacOS/
  • Extract it somewhere and run gibMacOS.bat
  • Choose your desired macOS version by entering the number and pressing the ENTER key.
  • macOS will now download, grab a coffee.
  • Once the download is finished you can exit the program with the keys Q then ENTER

Making the installer USB stick:

  • Insert your USB stick
  • Now run MakeInstall.bat as Administrator
  • IMPORTANT: In the next step it's important to choose the correct disk, the risk of deleting all the files on that pc are very high! Choose only your USB stick!
  • Enter the number of your USB stick and hit ENTER, then type Y and hit ENTER (All files on your USB stick will be deleted!)
  • Now go to the 'macOS Downloads\publicrelease' folder inside the 'gibMacOS' folder
  • Hold the Shift key and right-click the macOS folder that you want to install on the USB stick and click Copy as path
  • Go back to the MakeInstall.bat program and right-click in the window to paste the file path, then hit ENTER
  • Your USB stick will be created, have a second coffee.
  • When it's finished, close the program.

Making the USB stick Xiaomi compatible:

  • Download the latest version of the EFI folder from here
  • Extract it somewhere
  • Open the BOOT drive from the Windows explorer (usually drive D:, E: or F:)
  • Replace the EFI folder on the BOOT drive with the EFI folder you just downloaded from this website.
  • Eject the USB stick and insert into Xiaomi laptop.

Installing macOS:

  • Now boot the Xiaomi laptop from the install media (if trackpad is not working, use USB mouse. If network connection needed, use a Apple compatible USB Ethernet adapter)
  • Open Disk Utility and format the builtin SSD or second SSD with APFS (will delete all your files!!!)
  • Install macOS
  • After install, boot from USB again but select SSD to boot from in the Clover Bootloader
  • Do initial macOS setup (use USB Ethernet adapter for internet)
  • Mount the ESP (EFI System Partition) on your SSD (check that you mount the correct EFI partition, numbers will vary!!!)
diskutil list
sudo diskutil mount /dev/disk0s1
  • Copy and overwrite the contents of the EFI folder from this website to the EFI folder on the ESP on your SSD.
  • Copy all the Kernel Extensions (kexts) from the EFI/CLOVER/kexts/Other to your system's /Library/Extensions folder (this is important, otherwise keyboard/trackpad and other devices might not work)
  • Execute these commands in Terminal to rebuild Kernel Extension Cache:
sudo chmod -R 755 /System/Library/Extensions/
sudo chown -R root:wheel /System/Library/Extensions/
sudo chmod -R 755 /Library/Extensions/
sudo chown -R root:wheel /Library/Extensions/
sudo touch /System/Library/Extensions/
sudo touch /Library/Extensions/
sudo kextcache -i / && sudo kextcache -u /
  • Remove the USB stick from the laptop
  • Done! Reboot to enable all the kexts. Enjoy your Hackintosh!

OpenCore method:

Downloading macOS:

  • Download gibMacOS from https://github.com/corpnewt/gibMacOS/
  • Extract it somewhere and run gibMacOS.bat
  • Choose your desired macOS version by entering the number and pressing the ENTER key.
  • macOS will now download, grab a coffee.
  • Once the download is finished you can exit the program with the keys Q then ENTER

Making the installer USB stick:

  • Insert your USB stick
  • Now run MakeInstall.bat as Administrator
  • IMPORTANT: In the next step it's important to choose the correct disk, the risk of deleting all the files on that pc are very high! Choose only your USB stick!
  • Enter the number of your USB stick and hit ENTER, then type Y and hit ENTER (All files on your USB stick will be deleted!)
  • Now go to the 'macOS Downloads\publicrelease' folder inside the 'gibMacOS' folder
  • Hold the Shift key and right-click the macOS folder that you want to install on the USB stick and click Copy as path
  • Go back to the MakeInstall.bat program and right-click in the window to paste the file path, then hit ENTER
  • Your USB stick will be created, have a second coffee.
  • When it's finished, close the program.

Making the USB stick Xiaomi compatible:

  • Download the latest version of the EFI folder from here
  • Extract it somewhere
  • Open the BOOT drive from the Windows explorer (usually drive D:, E: or F:)
  • Replace the EFI folder on the BOOT drive with the EFIOC (opencore) folder you just downloaded from this website.
  • Eject the USB stick and insert into Xiaomi laptop.

Installing macOS:

  • Now boot the Xiaomi laptop from the install media (if trackpad is not working, use USB mouse. If network connection needed, use a Apple compatible USB Ethernet adapter)
  • Open Disk Utility and format the builtin SSD or second SSD with APFS (will delete all your files!!!)
  • Install macOS
  • After install, boot from USB again but select SSD to boot from in the Opencore Bootloader
  • Do initial macOS setup (use USB Ethernet adapter for internet)
  • Mount the ESP (EFI System Partition) on your SSD (check that you mount the correct EFI partition, numbers will vary!!!)
diskutil list
sudo diskutil mount /dev/disk0s1
  • Copy and overwrite the contents of the EFIOC (opencore) folder from this website to the EFI folder on the ESP on your SSD.
  • Remove the USB stick from the laptop
  • Done! Reboot to enable all the kexts. Enjoy your Hackintosh!

macOS is working! Next steps:

(optional) Fixing iMessage, FaceTime etc.

This can be a bit of a challenge, and outside of the scope of this repo, but if you want to, have a look here:
An iDiot's Guide To iMessage (clover)
Fixing iServices (OpenCore)

(optional) WiFi

Still very buggy, but improving fast. Have a look here

If your Intel Wifi not working, please be patient.

(optional) Hackintosh combojack how to

hackintosh-stuff thanks to his repository we can fix the headphone jack: https://github.com/hackintosh-stuff/ComboJack

(optional) High DPI display fix:

Since the text on the 13" display can be quite small for many people in 1920x1080 resolution, it's possible to use some of the High DPI scaling features of macOS. To enable those:

  • Boot into the Recovery partition (in Clover hit (Fn+)F3 to show all partitions)
  • We need to temporarily disable SIP. Run Terminal from the Utilities menu and run:
csrutil disable
  • Reboot into normal macOS
  • Open Terminal and run the hidpi.sh script:
bash -c "$(curl -fsSL https://github.com/johnnync13/Xiaomi-Mi-Air/raw/master/HighDPI/hidpi.sh)"
  • Choose (1) Enable, (3) MacBook Pro and (1) 1920x1080 Display.
  • Reboot and test your new Display settings in System Preferences.
  • When all set, reboot back into Recovery and enable SIP again:
csrutil enable
  • Reboot into macOS. Done!

Troubleshooting

Some device in my system is not working under macOS!

Using Clover:

  • Make sure all kexts are in /Library/Extensions/ then run:
sudo chmod -R 755 /System/Library/Extensions/
sudo chown -R root:wheel /System/Library/Extensions/
sudo chmod -R 755 /Library/Extensions/
sudo chown -R root:wheel /Library/Extensions/
sudo touch /System/Library/Extensions/
sudo touch /Library/Extensions/
sudo kextcache -i / && sudo kextcache -u /
  • Reboot.

Using OpenCore:

  • Make sure the kexts are in the EFI/OC/kexts folder on your SSD EFI system partition (ESP).
  • Reboot. If still not working, try resetting the NVRAM from OpenCore boot menu.

IMPORTANT:

  • It is really important on OpenCore, that the laptop have unlocked CFG Lock. It is important to CPU, sleep/wake and better behavior like native macOS. It is very easy on the most laptops because the BIOS has option in menu. But on Xiaomi Laptops, it is very simple with some steps on Windows. Maybe, make a video about it.

BIOS Modification

Tutorial to modify BIOS

  • I would like make a script or others methods but this tutorial is like OpenCore method.
  • Soon I upload a csv with all xiaomi laptops that I have on the github with hexadecimal variables to unlock CFG Lock, MC Lock, SpeedShift and more.
  • THIS TUTORIAL IS AN EXAMPLE, NOT GET THE VALUES AND VARIABLES

First of all, I am not responsible for what can happen to your laptop

1- Boot with OpenCore
2- Click on space key on keyboard.
3- Select partition Mod Grub Shell
4- Write a command method, for example to unlock cfg lock: setup_var 0x3C 0x00
Other example, SpeedShift to enable: setup_var 0xB 0x01
it is possible that for example, SpeedShift is enabled before.

  • Explanation:

setup_var is to call method function.
0x3C is the location memory on bios that is variable CFG Lock.
0x00 is to disable and 0x01 is to enable. I put the example here.
(default) is how the variable is when you install a BIOS, that is, by the manufacturer.

One Of: CFG Lock, VarStoreInfo (VarOffset/VarName): 0x3C, VarStore: 0x3, QuestionId: 0x146, Size: 1, Min: 0x0, Max 0x1, Step: 0x0 {05 91 8A 02 8B 02 46 01 03 00 3C 00 10 10 00 01 00}
0x149413 One Of Option: Disabled, Value (8 bit): 0x0 {09 07 04 00 00 00 00}
0x14941A One Of Option: Enabled, Value (8 bit): 0x1 (default) {09 07 03 00 30 00 01}
0x149421 End One Of {29 02}

5- You can set up more variables to modify Bios. If you want exit, you must write reboot and click enter on keyboard.

6- You can verify the CFG is unlocked or other parametres like SpeedShift is enabled in hackintool, section Utilities and press button Get AppleIntelInfo.

Disclaimer!

Use these files and this howto at your own risk. I'm not responsible in any way for lost data, damage to software or hardware or anything else that might go wrong. This works for me but might not for you.

Credits

xiaomi-notebook-air-12-5's People

Contributors

johnnynunez avatar koohoko avatar pparrilla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xiaomi-notebook-air-12-5's Issues

Touchpad does not work

The latest version of efi,oc mode,Tried 10.15.4, 10.15.3, 10.14.6, all have problems,Excuse me, which version fits best?air12.5

eternal logo at the beginning

i have the same laptop with 6y30 but can not boot up with the a09 bios, opencore, stuck after select the installer disk ,just a eternal white apple there! could u help!

No audio

There is no sound though I can change the volume.

Instructions

I'm new and I don't have much knowledge on hackintosh. I installed high sierra already using your EFI. I used Unibeast. I have a pretty bad problem with everything flickering. Can you give me a set of instructions to properly install this?

I2C Bus Device

The right button on the touchpad is not working properly.
Do you have this result too?
Is it possible that one of the other ssdt influences this function?

ASPI patches GFX0 and so on are no longer needed with WEG.

i can't install it

I need help ... I have been trying to install a hackintosh for a 12.5-inch Mi notebook Air with the m3-6y30 processor for several days. I have followed the guide, but after hundreds of attempts I cannot install it. The problem lies in the installation medium ... after creating hundreds of USB with different EFIs it never lets me install. It does not go beyond the Apple logo, sometimes it loads the bar and then a prohibited disc appears, (both with clover and with opencore) I am desperate, could you help me?
I already installed another one in my pro notebook that is going great

Internet issue

I can not access Internet neither using usb to network port nor using usb internet sharing in the phone.It says "an internet connection is required to install macos ", How can I access to the Internet . I wonder wether my usb port is broken.Thank you for your generous help。

No drag and drop

first of all, thank you so much for your work!

Everything is working perfectly with one small problem:
The touchpad does not drag and drop.

Any ideas?

Bios PWM xiaomi air 12.5

Hi, thanks for this project. It is working great. Everything is working perfectly but I have a problem with the flickering at half brightness caused by PWM. I modded the vbios to set PWM to 2000hz but I can’t write the full bios with fptw...can you help me with that? I am on bios A5, xiaomi air 12.5 6y30.

bluetooth: not available after sleep

After sleep (closing a lid) bluetooth not available.
System restart help and bluetooth available again, any ideas?
ps. mac os catalina 10.15.0

CFG problem

I've got the cfg address.

IMG_20200401_210314
But I used the setup_var command to find out that it was 0*0.
Is there any way you can unlock it?

HDMI Issue

Hi Johnnync13,

Thanks for your excelllent Hackintosh work!
Most things are working fine. However the HDMI is not working under Mojave.
Any ideas ?

Trackpad sometimes fail after boot

The keyboard is working, while the trackpad fails, the trackpad can get back to normal after manully sleep using the shutdown button.

I am not sure if it is only me or someone is also getting this problem.

HDMI does not work when booting with OpenCORE.

Thank you for your excellent work for Xiaomi notebook. When the computer was running at 10.14.6 clover boot, it was very stable, but when I booted Catalina with OpenCORE. Bluetooth is working. But the HDMI output does not work. The touchpad doesn't work either. The motherboard has unlocked the C F G according to the tutorial. BIOS A09。 The same problem occurs when I boot Mojave with OpenCORE. Do you have any suggestions? Thank you again

Mod Grub Shell

when i trying to modify the bios, after select partition Mod Grub Shell, nothing happened,what should i do? thanks

trackpad not working properly

Question 1
The touchpad's pressure touch is not working properly, and clicking the DESK's app icon on the desktop displays App Expose.
After shutting off the hard press and tactile feedback, it works fine, but occasionally fails.
OC and Clover performed consistently.
Question 2
The Chinese font under Clover is not working properly.
Thanks for giving.

Kexts Not Working

I'm on core m3 7y30
Tried both Clover and Open Core.
Installation was successful.
But trackpad, bluetooth,wifi,etc were not working, tried latest and old kext files.
I think the kext files not installing.
I'll share the message while building kext cache if required.
Please help me to install kexts
@johnnync13 , @Koohoko

Bios TR100A09.zip

Have you already done the BIOS TR100A09 update yourself on the Xiaomi? Does that work on the 12 "model? Do you have a source?

How to transfer for 7y30 Mi Air 12.5?

Hey man, is there a way to use your EFI for the 12.5 with the m3 7y30 CPU?
The original by influenzer is outdated, but your work is great and always up2date!

Thanks!

Problems with switching to OC boot

  1. switching to OC EFI and restart hackintosh,
  2. reset NVRAM in OC
  3. start hackintosh
  4. get stuck in a big apple logo......

What do I need to do?

NVMe Fix

Have you seen any improvement in power management with nvmefix?

Cannot start install - stop sign after apple logo

Hello, I'm trying to install 10.15.3 on my mi air 12.5.
Follow instructions and tried both clover and OC and got same issue:
After boot from usb and choose option to start (install) mac os apple logo appear with loading indicator below it, when it goes to the middle I got a stop sign and everything stops.
Same on Clover and OC version.
Any ideas?
image

No bootable Device

Hi!
I created my macOS Catalina USB install media with MacBook Air (Catalina) from terminal and i mounted EFI partition but it's empty (is it normal?).
I copied contents of EFI in a USB 2 device and EFIOC in a USB 3 device. My Mi air's bios is updated to TR100A09.zip and secure boot is disabled.
Unfortunately when i plug my usb devices in my Mi air and i press power button it shows me that there aren't bootable device.
What'd I do wrong?

Thanks :)

I 've totally follow the instructions but it dosen't work.

Every time I select to install mac os ,the white Apple logo will appears for just few seconds and then my computer will reboot.I am wondering if my bios is too old(A04).Should I update it into 0906? Thanks a lot for your help...:)

Touchpad and Bluetooth don't work

On macOS Mojave 10.14.6,Touchpad and Bluetooth don't work,oc mode,Power-on prompt OCS:no schema for shrinkmemorymap at 12 index,No problem on macOS Catalina,May I ask what is the reason?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.