daliansky / XiaoMi-Pro-Hackintosh

XiaoMi NoteBook Pro Hackintosh
BSD Zero Clause License
2.61k stars 477 forks source link

Intel WiFi Driver working #330

Closed johnnynunez closed 4 years ago

johnnynunez commented 4 years ago

I share with you. Put on in your EFI @stevezhengshiqi @daliansky http://bbs.pcbeta.com/forum.php?mod=viewthread&tid=1838489&extra=page%3D1&page=1&mobile=yes

It’s amazing! Other projects: https://github.com/zxystd/AppleIntelWifiAdapter

https://github.com/Champ-Goblem/IntelWiFiDriver---Voodoo80211

gplast commented 4 years ago

Hello @johnnync13,

I'm trying to access the website but it seems that i need and invitation code to register. Can you please share the file with us here. I will really appreciate it, since this is great news!! :)

Thank you very much

johnnynunez commented 4 years ago

@gplast i don’t have account, but I believe that they have

shew4uck commented 4 years ago

http://bbs.pcbeta.com/viewthread-1838489-1-1.html

gplast commented 4 years ago

@shew4uck do you access to the attachment, can you share it with us?

Okay then, l hope that someone that has an account we share the attachment :)

johnnynunez commented 4 years ago

AppleIntelWiFi.0131-1.kext.zip IO80211Family.kext.zip

@gplast https://github.com/zxystd/AppleIntelWifiAdapter/issues/6

johnnynunez commented 4 years ago

Works on 10.15.2 in Xiaomi pro but you have to changes ucode. Better work in Mojave. You must delete SSDT-DRP08.aml

Method: enter kext and delete iwm-8265-34 en / Contents / Resource. Go to https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi and download iwlwifi-8265-ucode-22.361476.0.tgz Unzip it to get iwlwifi-8265-22.ucode and rename it to iwm-8265-34 and place it in the first deleted location. Use kextload to load the kext.

kext system 10.15: Place IO80211Family.kext on the first floor / Library / Extensions, repair permissions, rebuild Cache Do not open the system configuration, otherwise it will restart automatically.

gplast commented 4 years ago

@johnnync13 Thank you very much for that !!

I will test it now and let you know :)

Cr0wTom commented 4 years ago

Hey man, nice job. I am trying to follow your instructions I change the file in the kext, fix the permissions and try to use kextload, but when I hit enter the command is executed and the system immediately restarts. What is happening? :/

gplast commented 4 years ago

@johnnync13 same here. At one point i manage to see the devices, but immediately the computer restarts. I will test it more a see whether there is a way to fix this issue.

Do you have any suggestions? Can you confirm that you can use the WIFI without restarts?

Thank you again.

stevezhengshiqi commented 4 years ago

It's a great project, but not stable enough for release so far. I will keep an eye on it.

johnnynunez commented 4 years ago

AppleIntelWiFi-8265.zip IO80211Family-10.14.6.zip

gplast commented 4 years ago

@johnnync13 I don't know if something is messing up with the driver but unfortunately i cannot avoid the restart.

I tried everything, different files, i followed your tutorials and then one here but i was able at some point to search for WIFIs and select one, but then i immediately got a restart.

There is a kernel trap every time the wifi drivers load. But i can confirm that this is really promising since i can see that the drivers are loaded.

If you have something in mind that i can try, please let me know.

Cr0wTom commented 4 years ago

Hello again everyone,

I managed to get some progress and decipher some parts out of the Chinese forum

  1. First of all fix permissions with sudo chown -Rf 0:0 /L/E AppleIntelWiFi.0131-1.kext/
  2. Rebuild kext cache with sudo kextcache -i /
  3. Reboot
  4. Load kext with sudo kextload -v AppleIntelWiFi.0131-1.kext/

This helped me see the WiFi in the settings menu and even scan for networks, but after 1 minute I get a restart which is common and affects everybody in the Chinese forum. So, it is progress but as @stevezhengshiqi said it is far from stable from now. I will keep following the topic and give any updates here.

p.s. @johnnync13 please when you use the work of others, use quotes or give a mention. The process you wrote is a translation from the Chinese forum, which is not bad but let's be kind with the community :)

Screenshot 2020-02-05 at 1 12 58 PM

kvn1351 commented 4 years ago

Wow, this is amazing. Maybe we'll have stable wifi and bluetooth within 6 months :)

gplast commented 4 years ago

Hello again,

So i've been following the forum for the past few days just to see whether there is something new. At the same time i tried everything in order to load the kext and avoid the restart.

As i was reading the comments i notice someone saying that you need to specify inside the kext the Wifi name and password. After trying several attempts, indeed i was able to connect but after a few seconds the laptop restarts.

Following that i saw a link posted by xinyang686: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/ . Inside this link there are several version of intel wifi ucodes. After trying again several of those i found a version(iwlwifi-8265-31.ucode) that it seems that is not causing restarts :)

I've been using the wifi for 30 minutes now and i'm able to access the internet. It seems that is not 100% responsive, the internet is slow most of the times, but this is really promising!!

Use the attached kext and follow the steps in order to test also on your system and let me know.

Please let me know if you are able to make it work like me. AppleIntelWiFi.kext.zip

gplast commented 4 years ago

Drivers_loaded

wonhee0410 commented 4 years ago

Hello again,

So i've been following the forum for the past few days just to see whether there is something new. At the same time i tried everything in order to load the kext and avoid the restart.

As i was reading the comments i notice someone saying that you need to specify inside the kext the Wifi name and password. After trying several attempts, indeed i was able to connect but after a few seconds the laptop restarts.

Following that i saw a link posted by xinyang686: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/ . Inside this link there are several version of intel wifi ucodes. After trying again several of those i found a version(iwlwifi-8265-31.ucode) that it seems that is not causing restarts :)

I've been using the wifi for 30 minutes now and i'm able to access the internet. It seems that is not 100% responsive, the internet is slow most of the times, but this is really promising!!

Use the attached kext and follow the steps in order to test also on your system and let me know.

  • Download AppleIntelWiFi.kext.zip
  • Unzip it
  • Open AppleIntelWiFi.kext/Contents/Info.plist with your favorite editor
  • Find and Change the following lines based on your wifi (line 58, 60) BSSID NAMEOFWIFI PWD PASSWORD
  • sudo chown -R root:wheel AppleIntelWiFi.kext
  • sudo kextload -v AppleIntelWiFi.kext/
  • Check if the message is : AppleIntelWiFi.kext loaded successfully (or already loaded).
  • Enjoy your buggy internet :)

Please let me know if you are able to make it work like me. AppleIntelWiFi.kext.zip

I've followed your instruction but on the command kextload, it shows an error "Requesting load of AppleIntelWifi.kext failed to load - (libkern/kext) dependency load failed; check the system/kernel log for errors or try kextutil(8)." Do you know how to fix it ? Sorry for not capturing the screenshot, thanks.

shew4uck commented 4 years ago

I tried your method and it really works, but it worked only with 3 attempts the first two times I got an instant reboot, but for the third time everything started up successfully but the method is still not very stable since even after a successful download there are reboots But this already suggests that soon we will get a full-fledged MacOS Снимок экрана 2020-02-07 в 9 45 36 Снимок экрана 2020-02-07 в 9 48 00

shew4uck commented 4 years ago

Снимок экрана 2020-02-07 в 10 14 24 I would like to add that although the wifi can be launched, it works extremely unstably

Cr0wTom commented 4 years ago

Did anyone try with the new update? There is an update with stability fixes for 7265ac which may help with our card too, but I do not have access to the forum as there is a mandatory invite to make an account. Anyone willing to invite us? :)

kostaskas commented 4 years ago

Hello again,

So i've been following the forum for the past few days just to see whether there is something new. At the same time i tried everything in order to load the kext and avoid the restart.

As i was reading the comments i notice someone saying that you need to specify inside the kext the Wifi name and password. After trying several attempts, indeed i was able to connect but after a few seconds the laptop restarts.

Following that i saw a link posted by xinyang686: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/ . Inside this link there are several version of intel wifi ucodes. After trying again several of those i found a version(iwlwifi-8265-31.ucode) that it seems that is not causing restarts :)

I've been using the wifi for 30 minutes now and i'm able to access the internet. It seems that is not 100% responsive, the internet is slow most of the times, but this is really promising!!

Use the attached kext and follow the steps in order to test also on your system and let me know.

  • Download AppleIntelWiFi.kext.zip
  • Unzip it
  • Open AppleIntelWiFi.kext/Contents/Info.plist with your favorite editor
  • Find and Change the following lines based on your wifi (line 58, 60) BSSID NAMEOFWIFI PWD PASSWORD
  • sudo chown -R root:wheel AppleIntelWiFi.kext
  • sudo kextload -v AppleIntelWiFi.kext/
  • Check if the message is : AppleIntelWiFi.kext loaded successfully (or already loaded).
  • Enjoy your buggy internet :)

Please let me know if you are able to make it work like me. AppleIntelWiFi.kext.zip

You are working on Mojave or Catalina? Which IO80211 you used? (

gplast commented 4 years ago

I'm working on Catalina and i used the IO80211 which is attached from @johnnync13.

kostaskas commented 4 years ago

I'm working on Catalina and i used the IO80211 which is attached from @johnnync13.

Good, i'm on Catalina also, but I have another WiFi card, Intel 3165, think it will work Will report

Goshin commented 4 years ago

@gplast AppleIntelWiFi.kext catalina.zip

I think it is more appropriate for us to discuss this work here.

Note that this kext is only for Catalina, and If you've installed an old IO80211Family, you need to remove it first.

gplast commented 4 years ago

@Goshin Yeah its better here :)

Thank you very much, i will test it now :)

gplast commented 4 years ago

@Goshin Is there a new IO80211Family attached?

Goshin commented 4 years ago

@Goshin Is there a new IO80211Family attached?

If you are on Catalina, it is no longer needed. The old kext was built with the Mojave's IO80211 stack, so they installed the Mojave's IO80211Family.kext to make it work on Catalina.

gplast commented 4 years ago

Okay @Goshin , thank you, it was my bad, i also removed the IO80211 from /System/Library/Extensions and it was cause an error, i put it back and now is okay. With the original kext that you send me the laptop restarted immediately. After replacing the ucode with version 31, not restart is happening as i suggested on my previous message.

The problem is that i'm always connected to a network called UPC5424297 which is strange. Also there is an exclamation mark on the wifi icon.

I will test it further and see if can find something, but if you have a clue about this problem please let me know.

Goshin commented 4 years ago

Never mind. I didn't realize you guys can't see the attachment list and pictures in the post.

For the UPC5424297 network, it is the dummy network for IO80211 testing. You need to edit the info.plist for your own WiFi network.

115616yanj8cugv0v2lijd

gplast commented 4 years ago

Yeah, i did change it but is seems that something is stuck :p I will delete everything a do it again then because something is going wrong.

Cr0wTom commented 4 years ago

So in the end do we need IO80211 or not? Because @Goshin said that there is no need for it in Catalina but @gplast said he used it, and also from my testing not using it results in reboot.

gplast commented 4 years ago

Okay @Goshin i managed to make it work correctly. I know about the packet loss, but it seems that if you are close to the rooter is not so serious.

I would like to ask you, if there is a chance to invite me on the website in order to make a registration. I would like to add this work around with the ucode version which is working good for 8265 cards and also help with the testings.

I hope that you can and thank you again for providing the files.

Here is also the ucode file that i use and i'm able to make WIFI work and access internet. iwm-8265-34.zip

P.S. This message and attachment was send from my Intel Wireless 8265 without an issue :) :)

gplast commented 4 years ago

@Cr0wTom You need the original IO80211Family which is already pre-install in /System/Library/Extensions.

Its not stable so there is a big chance to get kernel panic. I did get one after 20 minutes.

Goshin commented 4 years ago

Okay @Goshin i managed to make it work correctly. I know about the packet loss, but it seems that if you are close to the rooter is not so serious.

I would like to ask you, if there is a chance to invite me on the website in order to make a registration. I would like to add this work around with the ucode version which is working good for 8265 cards and also help with the testings.

I hope that you can and thank you again for providing the files.

Here is also the ucode file that i use and i'm able to make WIFI work and access internet. iwm-8265-34.zip

P.S. This message and attachment was send from my Intel Wireless 8265 without an issue :) :)

Well, I can't help. Only senior users in the forum have permission to invite people, and I am not. As the author mentioned, the kext is only intended for his 7265ac. Perhaps he will add some other ucodes in the future.

kostaskas commented 4 years ago

Catalina driver works ok with my 3165 wifi, but after 10-15 it crashes

joeytky commented 4 years ago

I wonder why every time I input the codes into terminal, it shows chown: AppleIntelWiFi.kext: No such file or directory The question is I have already downloaded the zip and unzipped it on my desktop. It is sure there is a AppleIntelWiFi.kext file on desktop. why does it show No such file or directory anyway? Could anyone help me ? I am a such a freshman about this. I feel so upset... 截屏2020-02-08下午9 02 42

zjkyz8 commented 4 years ago

I wonder why every time I input the codes into terminal, it shows chown: AppleIntelWiFi.kext: No such file or directory The question is I have already downloaded the zip and unzipped it on my desktop. It is sure there is a AppleIntelWiFi.kext file on desktop. why does it show No such file or directory anyway? Could anyone help me ? I am a such a freshman about this. I feel so upset... 截屏2020-02-08下午9 02 42

you use incorrect working directory, please execute cd ~/Desktop before execute chown

joeytky commented 4 years ago

I wonder why every time I input the codes into terminal, it shows chown: AppleIntelWiFi.kext: No such file or directory The question is I have already downloaded the zip and unzipped it on my desktop. It is sure there is a AppleIntelWiFi.kext file on desktop. why does it show No such file or directory anyway? Could anyone help me ? I am a such a freshman about this. I feel so upset... 截屏2020-02-08下午9 02 42

you use incorrect working directory, please execute cd ~/Desktop before execute chown

Thanks buddy. It works. However, when i click "turn wifi on" button in wifi settings, there is no response. I have restarted many times, but it still doesn't response. Is this a bug? Screen Shot 2020-02-08 at 10 01 09 PM

WraithWinterly commented 4 years ago

Probably. I have the Intel Wireless-AC 9462 and it's an instant reboot - not even sure if there's support for it. However this is really good for the future as this is the first time Intel WiFi has somewhat worked on macOS, and it shocked a lot of people who have seen this, even if it's in it's early stages. @Goshin ask the developer if he can make a GitHub Repository for it, that can add tremendous development if it is.

Edoardo001 commented 4 years ago

Probably. I have the Intel Wireless-AC 9462 and it's an instant reboot - not even sure if there's support for it. However this is really good for the future as this is the first time Intel WiFi has somewhat worked on macOS, and it shocked a lot of people who have seen this, even if it's in it's early stages. @Goshin ask the developer if he can make a GitHub Repository for it, that can add tremendous development if it is.

Can be a great opportunity to get some help. Can't wait to make my Matebook 13 guide completely bug free :D

johnnynunez commented 4 years ago

@aspring14 This developer is rewriting all iwlwifi driver, the idea is better https://github.com/zxystd/AppleIntelWifiAdapter

kvn1351 commented 4 years ago

@aspring14 This developer is rewriting all iwlwifi driver, the idea is better https://github.com/zxystd/AppleIntelWifiAdapter

Isn't this the very kext we're using?

hatf0 commented 4 years ago

really hope the guy who developed this kext open-sources it... though the code base looks to be severely fragmented (uses parts of my black80211 fixup, intelmausiethernet, intelwifi, and iwm/ieee80211)... would love to help with HW initialization

mn19941219 commented 4 years ago

if u need a account of PCBETA,i can share u one

joeytky commented 4 years ago

if u need a account of PCBETA,i can share u one

Could you share one with me? I really need an account of it. Thank you very much!

gplast commented 4 years ago

@mn19941219 i would also like an invitation if you please. Please use this mail: theundertakerg@gmail.com

mn19941219 commented 4 years ago

ID:mn19941219@126.com Password:Aa123456 no security question

dont change password pcbeta intel wifi :http://bbs.pcbeta.com/viewthread-1838489-1-2.html


this account only 45PB,means u can download 45 Attachment

mn19941219 commented 4 years ago

@mn19941219 i would also like an invitation if you please. Please use this mail: theundertakerg@gmail.com ID:mn19941219@126.com Password:Aa123456 dont change password

yllwfsh commented 4 years ago

If there's any progress in the Wifi driver, can someone upload the files here as well please? I'm all for open source and sharing. Everyone should have a benefit of this :) Thx!

dhinakg commented 4 years ago

Latest one as of the 7th. Thanks to @mn19941219 for the account. AppleIntelWiFi.kext catalina.zip Please don't download with the account unless there's an update, and if there is, repost here. The download amount is dwindling, there's only about 20 left from when I'm writing this.