-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WiFi issues #3
Comments
Imcompatible models:
Wrong Broadcom fw load message:
|
@zhewang95 Your revision of WiFi chip probably uses different rambase address (Dunedan/mbp-2016-linux#112 (comment)) than my one. Are you able to recompile the kernel by yourself and check if removing that line fixes the issue for you? https://github.com/mikeeq/mbp-fedora-kernel/blob/v5.4-f31/patches/wifi.patch#L21 Also you can check if it will be printed in dmesg after adding
|
@mikeeq OK I will have a try |
Imcompatible models: MacbookAir 8,2 i5
A couple of notes... Here is what I named each file (MacOSX -> Fedora) C-4355__s-C1/hawaii.trx -> /lib/firmware/brcm/brcmfmac4355-pcie.bin I have used the latest ISO listed here: https://github.com/mikeeq/mbp-fedora Per these comments: Dunedan/mbp-2016-linux#112 (comment) and Dunedan/mbp-2016-linux#112 (comment) People have been successful in loading wifi on the MacBookAir8,2 and the BCM4355 driver. The particular kernel patch they are referencing was this: ppaulweber/linux-mba@80f9698. Unfortunately I am not quite skilled enough to recompile the linux kernel myself and apply this patch to see if it works. But I looked through the patches posted on this repository and saw that the wifi kernel patches seem pretty similar. The only conclusion I can reach is that I am doing something wrong but I cannot for the life of me figure out what I am doing wrong. Any help would be greatly appreciated! |
@ktb92677 Please check |
@mikeeq Hey, I am having trouble getting the CRTL+SHIFT+F10 trick to work on my mac... any other way to edit kernel args? EDIT: okay I got to the screen with CTRL_SHIFT+F10. I edited the kernel parameters but now I can't hit CTRL+X to save it! FURTHER EDIT: Doesn't hitting F10 boot with the modifications made in the grub interface? If so I hit F10 after making the modification and when it booted there was no reference to brcmf_chip_get_raminfo inside of dmesg.... I assume F10 means "disregard the changes and boot" LAST EDIT (I promise... read from here): Okay so you hit CTRL+SHIFT+F10 to get grub to take the kernel parameter. Got it. I can confirm via dmesg that the kernel parameter "brcmfmac.debug=2097150" was taken. However there is still no reference to "brcmf_chip_get_raminfo" inside of dmesg... what do I do from here? |
@mikeeq Thanks a lot for this project 👍 Incompatible model:
dmesg | grep brcmfmac:
I also tried adding BTW: |
Thanks @geovie on the suggestion. I tried adding "debug=2097150" after modprobe like you suggested with no changes for me as well. |
Same |
We need to find a solution to load |
@mikeeq Is |
I tried it on my current setup (when FW is loading correctly) and I don't have any additional logs in dmesg, i don't have time to test it further at the moment. |
@Xinkai @ktb92677 accordingly to one of the first issues the firmware loading address At the beginning I had a similar problem as reported above:
I recommend to check the following locations in the patch of the
Just to check, here is my firmware listing:
And my
|
@ppaulweber so here's the wifi patch that @mikeeq was using: https://github.com/mikeeq/mbp-fedora-kernel/blob/d8f5578d4fd9c9ee01c2a125dae30237aefcf391/patches/wifi.patch. I've taken a look at that and compared it to the wifi patch you posted (also carefully looking at those lines that you specified) and the patch seems pretty okay to me. One difference I did immediately notice though was that on my system I only copied over the .txt, clm_blob, and bin. Are the hexdump and txcb files required as well for this to work? |
@ktb92677 but accordingly to this patch from @mikeeq the mbp-fedora-kernel/patches/wifi.patch Lines 7 to 24 in d8f5578
no, I forgot to strip them, sry about that |
@ppaulweber Okay, with my very limited knowledge of this I am trying to recompile the kernel with that patch included... If you have any suggestions on how I might test to see if this is what is causing my problems short of rebuilding the kernel that would be appreciated. @mikeeq any chance you could include this fix into your repository sometime soon? Also instructions on how to build this from home. (e.g. do I just run the build.sh script on a Fedora machine?) |
Will do it in a minute ;) |
okay great! @mikeeq I am currently running a "sh build.sh" over here. As soon as the new kernel-5.4.8-200.mbp.fc31.x86_64.rpm file pops out I'll go ahead and install it to my mba8,2 and I'll let you know what happens |
@mikeeq okay well I just finally built it all and installed everything... for some reason my system doesn't get past the following screen: BCMDHD_ExitBootService: ENTER What have I done wrong.. EDIT: SO hitting return a bunch of times makes the thing boot at that screen. Anyways I got the same exact error after the kernel update (I verified that the new kernel is running via uname -a). The error is "FW failed to initialize". Not exactly sure what else to check here.. Did I also mention my mouse and keyboard don't work after the kernel upgrade? |
Hello, i have tested this update with mbp 15,2 i5 maui-x3. have same issue as in previous kernel
trying to set debug options but without any good results. |
@ppaulweber reboot to MacOSX? I over wrote MacOSX already though. Do I need to re-install it? |
@ktb92677 I hope you didn't erased the |
@ppaulweber I do not believe that I erased the EFI partition. I used the following repo to install linux on my Mac: https://github.com/mikeeq/mbp-fedora. So what are you suggesting? Should I go through the Apple recovery process and re-install MacOSX right now and then try to install Fedora again ontop of it? EDIT: And just as I was trying to use the new mbp-fedora image posted on https://github.com/mikeeq/mbp-fedora with the new kernel patch and it doesn't get past the spinning wheel screen on Fedora... mikeeq/mbp-fedora#13 |
@ktb92677 but README doesn't mention that you should remove all partitions :D You can always split your main macOS partition and then use left free space for other partitions ;) And yes I recommend to install macOS, i.e. for EFI/iBridge updates. Cheers |
Does anybody have any issue with the Function key with the last kernel 5.6.13-300.mbp.fc32.x86_64 ? My touchbar does not show function keys any longer... Everything has been working fine for the last three months and for every update_kernel_mbp up to 5.6.7-300.mbp.fc32.x86_64. |
@berrfred do not hijack issues. This is for WiFi only. Open a new one to discuss the Fn key problems you are seeing. |
I have MacBookPro15,4 with 5.6.13-300.mbp.fc32.x86_64
If I use The same command with the Mojave firmware gives
Any more ideas how to debug, or maybe somebody who's got newer firwmare which we can try? |
@atodorov I read in an Arch issue somewhere that Catalina firmware doesn't work yet with the latest kernel. I got it to work by downloading the Mojave firmware instead. |
Sorry, my mistake... I posted to the relevant project ( roadrunner2/macbook12-spi-driver#46 ) where there is already an open issue. |
Hi. I've a MacMini8,1.. I'm running the Fedora rawhide 5.7.0-0.rc6.20200522git051143e1602d.1.fc33.x86_64 kernel (as of this message).. I've one issue, for some WPA2 networks I have to "jump start" the module. Unload then reload the kernel module before it will associate . I've no issue with open networks. Firmware loads fine as per your instructions. I'm not sure if this is because of using the 5GHz band. If I'm able to test anything please let me know. I'm making the assumption all the great work you're doing is getting merged. |
I have a 15,2 MacBook Pro:
and I get the following error if I use the downloaded Mojave firmware:
If I try to run:
I get the following error: |
@folke how did you download the majove firmware? |
You can use the following to automate it if you have a MacBook Pro 15,2: https://github.com/stefanpartheym/mbp15-wifi-driver If you want to do it manually, got to the following repository that contains Mojave wifi firmware: https://packages.aunali1.com/apple/wifi-fw/18G2022/ To confirm exactly which wifi firmware you need, run the following in macOS Terminal:
|
@vinodhmoodley oh thanks |
I've a 16,2 using edit: the address seems to be |
Happily running Fedora 32 on my Macbook Pro 15,2 i5 (BCM4364/3) since almost a year, latest kernel 5.7.8, still using wpa_supplicant as a backend because my experience is that NetworkManager and iwd do not collaborate nicely with hidden networks. So the only little annoying thing is reloading brcmfmac at startup. I tried Fedora 33 beta on another laptop and it looks like NetworkManager 1.26.2 and iwd 1.9 now work properly also with hidden networks. Do you think upgrading mbp to Fedora 33 would be a bad idea or do you foresee any critical issue ? Thanks. |
... well I did it, now running fc33 and so far so good !
Now also wifi works fine, automatically connect to my hidden network... that was the point. As a final step I also installed the missing drivers for kernel-5.7.6-201.mbp.fc32.x86_64 by simply executing the last part of update_kernel_mbp (just remove the initial kernel update part and pass a cmdline parameter with "kernel-5.7.6-201.mbp.fc32.x86_64" for KERNEL_PACKAGE_NAME). |
No luck on my MBP 16,2 with "trinidad" either, getting always a Just in case it's important though, I don't have any So, I copied them like this: [EDIT-1/UPDATE]: from the [EDIT-2]: kept trying and got a slightly better result. I now get a
For the record, these are the files I'm using:
[EDIT-3]: two pieces of info and two questions I have to dig into further but I'd like to share:
Question 1) are there two brcmf_chip_get_raminfo messages because it's one message per core? Only (somehow) related info I could find is on https://patchwork.kernel.org/patch/11286575:
Any thoughts? EDIT-4: Posting above edit on Dunedan/mbp-2016-linux#112 too as I think it might make more sense to discuss it there. Please lemme know otherwise |
I have the same issue like @zappacor. Is someone has any ideas? |
I'm having a strange issue with firmware crashing...I was able to install the wifi firmware and it loads fine, I can even see wifi networks through network manager. However, when I try to connect to a network the firmware crashes according to dmesg. Weirdly sometimes it crashes and resets, other times (like the 174 timepoints) it just crashes the whole system.
Any idea here? I am a bit stumped...for context I was able to get the wifi up and running on ubuntu-mbp using a similar patch, but ubuntu had crashing problems on my macbook, so I switched over to fedora. So far, fedora-mbp has worked without a hitch...except wifi. |
are you using iwd as the wifi backend? https://github.com/mikeeq/mbp-fedora#known-issues has a guide on installing it. I'm not an expert so I really don't know what dmesg is saying there but the whole issue description sounds like a typical problem when not using iwd |
I checked that just now, and it crashes in the exact same way under iwd as well. I was using wpa_supplicant before with NetworkManager. I also tried to connect with a different front end (used iwctl) and that also crashed the driver. EDIT1: EDIT2 |
Greetings dear strugglers, developers and participants! I'm with Fedora 32 now and I do have MacbookPro 16,1 with
|
@sxiii I succeeded with MBP 16,1 (bali) and have the wifi working. Have a look at https://wiki.t2linux.org/guides/wifi/ - you will have to compile the kernel yourself with the right patches applied as documented in the linked wiki. |
@rieske wifi wasn't working even after following the t2linux wiki on F32. However, today I've updated F32 on MBP to F34 and kernel to 5.12.11, and wifi automatically get up. Neat! Works OK. |
Amazing, this guide works for me too with F34/5.12.11 on my MBP16. Good job! |
I would like to mention this for other people struggling with this that copying firmware files from macOS and then trying to load them in Ubuntu resulted in ( |
Fedora 35, kernel version |
Have you checked the changelog in the new kernel release? There's a new wifi driver which requires a different naming schema for firmware files. More details here: |
Since I have removed the MacOS partition long time ago, I downloaded the content of https://packages.aunali1.com/apple/wifi-fw/18G2022/C-4364__s-B2/ into a local wifi directory and tried to run the python script ... I would expect it to generate the firmware.tar with converted names but it gives an error ... same result if I keep only maui files into the wifi directory. Any idea of what I am missing ?
Update 1: I think I got it ... need to keep everything in a C-4364__s-B2 subfolder.
Update 2: untar firmware.tar under /lib/firmware and wifi is working with latest kernel (5.15.16) 👍 |
@berrfred |
@DavidDavidDavidDavidDavidDavidDavid Those files exist in macOS, you can extract them yourself. |
Hello everyone,
As many of us have problems with running WiFi under Linux on new Macs, I want to make a list of already compatible models/wifi chips here and track all issues in one thread. Sorry for closing other ones.
Compatible models:
How correct Broadcom fw load should look like in dmesg:
Please post here all WiFi related issues.
Related issues in other projects:
Historic issues:
The text was updated successfully, but these errors were encountered: