AppleIntelWifi / device-logs

Repository for logging output from the kext
16 stars 2 forks source link

Intel(R) Wireless-AC 9560 #1

Open lvs1974 opened 4 years ago

lvs1974 commented 4 years ago

Hello, tried this driver, here is an log output: dmesg.txt

Everything looks ok, but there is no available wi-fi device in mac os.

hatf0 commented 4 years ago

Looks like I need to revert one of the changes I made earlier- the log shows a regression. Thank you!

lvs1974 commented 4 years ago

@hatf0: I will be glad if my log can help somehow. Thank you!

lvs1974 commented 4 years ago

With the latest commit (8ef98774e9b8d1f69139373511540c3bb84cb619) the driver works a bit better: Wi-Fi device is available in the system (and in Network preferences pane). I also tried to turn on/off wifi using menu bar icon, but it seems to be inconsistent with the current status in Network preferences pane. The problem is that device is displayed as "Turned off", and when I try to press this button, nothing happens. dmesg.txt Screenshot 2020-02-25 at 21 22 43

Thank you!

vladdenisov commented 4 years ago

Same for me on Intel Wireless-AC 8265. Thank you!

vladdenisov commented 4 years ago

Still I don't really know how to make logs. But I managed to get some part of it. dmesg.txt Maybe it can help you somehow.

hatf0 commented 4 years ago

@lvs1974 It seems that the Wi-Fi card still existing is an issue from running the other intel wifi kext- but otherwise your hardware does initialize properly.

hatf0 commented 4 years ago

@vladdenisov That dmesg file doesn’t contain anything relating to the kext. But if it’s the same- be patient as change will come soon

lvs1974 commented 4 years ago

@vladdenisov: dmseg it is a cyclic buffer, it has a size 4096 bytes by default. In order to increase this size, you should add a boot-arg: msgbuf=1048576 (maximum size). @hatf0: I will try to remove these files from /Library/Preferences/SystemConfiguration/ and repeat: com.apple.airport.preferences.plist com.apple.network.identification.plist com.apple.wifi.message-tracer.plist NetworkInterfaces.plist

tikscr commented 4 years ago

I also have Intel AC-9560, but i get kernel panic instead with this kext (built a few minutes ago). Could it be conflict between usb wi-fi and this or .kext for intel bt? log.panic.zip panic_after_load.txt

@lvs1974 can you share your kext?

lvs1974 commented 4 years ago

@tikscr: try to put your kext into /Library/Extensions, or load it in terminal via kextutil. I also had the same exception. It seems to be sporadic.

tikscr commented 4 years ago

@lvs1974 i've put kext into /L/E - and system boots OK, kext is mentioned a lot of times in boot log, but it's missing from loaded kexts as well as wi-fi is still missing from my laptop. Loading via kextutil causes kernel panic a few seconds later. Also, kexutil mentions issue with sign of kext, maybe it's the main problem? btw, i've tried both release and debug configurations of build.

vladdenisov commented 4 years ago

I don't really know if this log is helpful, but i've tried to follow lvs1974 instructions :/ dmesg.txt

Intel(R) Dual Band Wireless AC 8265.

dhinakg commented 4 years ago

You can use the following command for a cleaner log. log show --last boot --predicate 'process == "kernel"' | grep -i intel > ~/Desktop/log.txt @tikscr Signing shouldn't be a problem as long as you have SIP for unsigned kexts off. The kext isn't up to the point where it'll show up as a network interface yet. Back when I built it, (xcodebuild from Terminal) I had to use the release version, not the debug version, for the proper code to run. Haven't built it recently so I don't know whether hatf0 has fixed the issue.

tikscr commented 4 years ago

@dhinakg well, in my case (dell g5, ac-9560) release version ( i built it by xcodebuild) causes kernel panic in every case i've tried (kextutil, kextload, l/e and clover/kexts/other). Debug version seems to be not working at all. Release version without last commit acts the same way. All comands i do are:

I think, that either my kext is not 100% correct or there might be some conflict with other kexts.

hatf0 commented 4 years ago

@tikscr I know why. The problem with developing this is that there’s not a clear distinction between memory which has been allocated through allocatePacket and memory that’s been allocated with IOAlloc, and I assume I missed a place where memory is actually allocated from such- your panic log shows this. Sadly it’s not as simple as calling free() for everything :(

I’ll take a look and see where it’s panicking though.

tran-steve commented 4 years ago

how about AC 3160? whare can I get kext file and how to install it?

taina0407 commented 4 years ago

I'm also having trouble with AC 9560 (M2 Key E/M intergrated)

  1. First try is to install kext in EFI/OC/Kexts (OpenCore) => Kernel Panic Kernel_2020-02-29-000555_XXX.panic.txt

  2. Second try with kextload -v => Its create new Ethernet en2 interface AppleIntelWifiAdapter-log-try2.txt

  3. Third try with kextload : after using kext unload and remove plists in SystemConfiguration as @lvs1974 mention (other files not found so I've only removed two files: com.apple.airport.preferences.plist & NetworkInterfaces.plist) => Its create new Ethernet en2 interface again AppleIntelWifiAdapter-log-try3.txt

Hope these information will be helpful

Timothybas commented 4 years ago

Same here it's creating Ethernet en1 interface. I tried to unload kext and reloaded again but still, the problem persists.

Here my log. log.txt

vladdenisov commented 4 years ago

Same here even with latest commits. Tried to load and unload kext 3 times.

Intel(R) Dual Band Wireless AC 8265. log.txt

Timothybas commented 4 years ago

@vladdenisov is that worked with earlier commits?

vladdenisov commented 4 years ago

@Timothybas nope. It didn't.

hatf0 commented 4 years ago

@vladdenisov @Timothybas This is intended behavior. I'm still decently within the card initialization phase and have to continually unload and reload the kext in order to develop. This isn't possible with the IO80211Controller, as there's a release loop or something within CoreWLAN. My bet is that Apple wouldn't even attempt to fix it either, and we're probably going to build two different versions of the kext.

Timothybas commented 4 years ago

@hatf0 Great improvement. Now it's listed as WiFI in network settings but not searching any devices here is my log.txt (May help you to debug the issue)

tikscr commented 4 years ago

Latest version of kext doesn't load on AC-9560. OS version - 10.15.4 log.txt It says, that library kext com.apple.iokit.IO80211Family not found. But OS doesn't have this kext neither in S/L/E or L/E/ @hatf0 UPDATE: Somehow, on my hackintosh SIP was enabling on it's own and i couldn't load that kext. But as of now (27.03.20),after correctly disabled SIP, kext doesn't load on boot (i put it in clover). The only way to load it is to use kextutil in terminal.

Timothybas commented 4 years ago

Preference unknown state issue fixed but not searching WiFi networks around (Tested with 2G)
Screenshot 2020-03-27 at 1 31 30 PM [Uploading log.txt…]()

lvs1974 commented 4 years ago

I have the same (yellow) state (the latest revision 5526d3ba0546fc6690fec19b130e8dbe184c98a1). And I don't see any SSID names neither in Wi-Fi menu nor in log. dmesg.txt.zip

vladdenisov commented 4 years ago

Hello! That's good a progress! Can now see networks around me in log, but not in preferences. Intel(R) Wireless-AC 8265 Thank you! log.txt

lvs1974 commented 4 years ago

@hatf0, could you have a look at my log, please? With the latest commit 9297292d57516266239aa02f4549fa7502bd70b9 still there are no network names. log.txt

Timothybas commented 4 years ago

unknown state issue is back with the recent commit and as @lvs1974 told no networks in both panel and logs.

hatf0 commented 4 years ago

Your card unfortunately crashes while scanning... I’ll make an issue for this, but this is a known issue and @1Revenger1 has brought this to my attention as well. There’s sadly a variety of things it could be.. ERR: Microcode SW error detected. Restarting 0x2000000

1Revenger1 commented 4 years ago

Diff.txt Logs.txt

I've just got it to scan but it's throwing errors when returning data from the MPDU. ...

... It also crashes if you try to scan a second time... Edit - I've gotten it to not crash - likely need to implement iwl_mvm_rx_mpdu_mq Diff2.txt Logs2.txt

lvs1974 commented 4 years ago

@hatf0, I got a log for the latest version 8a4d9faed506fa095e226d207affef2525f8153c (with fixes from @1Revenger1), and there is line "Microcode SW error detected. Restarting 0x2000000". log.txt

1Revenger1 commented 4 years ago

I've sent a new set of patches to @hatf0 with more changes. I just got scanning to work without it crashing the card, so it is now listing devices appropriately.

That is weird your card seemed to crash there though - should've gotten some responses back from the card. I'll take a closer look at it. I would appreciate if you could test again after my next set of patches goes in.

lvs1974 commented 4 years ago

@1Revenger1, thank you very much for contribution! Hopefully you will manage to fix this issue! Usually I test immediately as soon as I see new commits here.

Timothybas commented 4 years ago

Still, device search is not working here is my log. log.txt

lvs1974 commented 4 years ago

Yes, I still have the same error with the latest version: Microcode SW error detected. Restarting 0x2000000 log.txt

larson-carter commented 4 years ago

Can someone please tag me when they want me to test this for the AC 9560?

lvs1974 commented 4 years ago

Revision d4b3b735687fc92ef00a9e8d3872c842ea2778f6, error "Microcode SW error detected. Restarting 0x2000000" still can be found. log.txt

1Revenger1 commented 4 years ago

Scanning for the 9560 should be merged into master now.

pytason commented 4 years ago

Thanks for all the excellent work. I have a 9650 card, macOS 10.15.4 Once I load the kext, I can see all network, but the problem is that somehow it clashes with my Bluetooth. Has anyone experienced a similar issue?

1Revenger1 commented 4 years ago

I definitely notice a giant clash with bluetooth - I haven't really looked into it and I don't think @hatf0 has either.

tikscr commented 4 years ago

I ran into an issue: i've clicked on "show wifi status in menu bar", and rebooted. Now this icon is stuck in menu bar despite kext isn't loaded. And even if i load the kext - icon becomes interactive (doesn't show scan results), but in network preferences i still don't see wi-fi entry (it used to be present before i removed it and deleted networkpreferences.plist with reboot). How can i make system create wi-fi entry in preferences? OS version is 10.15.4

vladdenisov commented 4 years ago

@tikscr You can try pressing the + button at the left corner and see if the Wifi interface is there.

tikscr commented 4 years ago

@vladdenisov i've tried it - it's not present there.

vladdenisov commented 4 years ago

Strange, I've faced a similar problem, and the solution was simple as that.

hatf0 commented 4 years ago

@tikscr Probably means that the firmware isn’t loading correctly on your device (and is failing right around the enable callback). Can you provide me logs?

tikscr commented 4 years ago

@hatf0 if i knew how to get log from manually loaded kext. It doesn't load on boot.

vladdenisov commented 4 years ago

@tikscr If I understood correctly, there is a special script in scripts folder called logs.sh. It will create log.txt in scripts folder.

tikscr commented 4 years ago

@hatf0 this? log.txt

hatf0 commented 4 years ago

@tikscr Yes, but this clearly shows you’re trying to load the kext again. Please try to load the KEXT when you’re on the desktop (and do not try to load it through your boot loader) and then run the logging script.