Ubuntu 20.04
To make my WiFi happy I enter the following modprobe via the terminal;
modprobe -r brcmfmac
Then wait 5 seconds and modprobe brcmfmac
Can I add this to a startup process so that I don't have to manually execute it each time?
I have tried adding it to my GRUB_CMDLINE_LINUX_DEFAULT but after I grub-update and reboot my wireless still hangs untill I manually enter the commands as aboove.
Is my syntax wrong? Can someone advise the proper way to add it?
Or should I not be adding this to the boot image?
I get the same result when I boot to my fallback 5.4.0-40 kernel image.
darth_epoxy's questions
I can now turn on and off the WiFi Adapter from the desktop menu. When it's on I can see all the WiFi networks around me, however I cannot establish a connection.
Here is the most useful output I can get.
$ lspci -knn | grep Network -A3
03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4364 802.11ac Wireless Network Adapter [14e4:4464] (rev 03)
Subsystem: Apple Inc. BCM4364 802.11ac Wireless Network Adapter [106b:07bf]
Kernel driver in use: brcmfmac
Kernel modules: brcmfmac
04:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme BCM57766 Gigabit Ethernet PCIe [14e4:1686] (rev 01)
$ rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
$ iwconfig
lo no wireless extensions.
enp4s0 no wireless extensions.
wlp3s0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
enxd6f46f983b7a no wireless extensions
$ nmcli dev wifi
Cell 02 - Address: 2C:30:33:73:96:2E
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=63/70 Signal level=-47 dBm
Encryption key:on
ESSID:"Telstra2D55"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 56ms ago
IE: Unknown: 000B54656C7374726132443535
IE: Unknown: 010882848B962430486C
IE: Unknown: 030101
IE: Unknown: 0706415520010D24
IE: Unknown: 200100
IE: Unknown: 23021500
IE: Unknown: 2A0104
IE: Unknown: 2F0104
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Can anyone spot anything? I see the network, I connect as usual, enter the password and after 10 seconds or so it just keeps asking me again for my password.
Edit:
sudo dmesg | grep brcm
[ 6.862585] usbcore: registered new interface driver brcmfmac
[ 6.862614] brcmfmac 0000:03:00.0: enabling device (0000 -> 0002)
[ 6.969173] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4364-pcie for chip BCM4364/3
[ 7.589183] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2
[ 7.589185] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found
[ 7.590453] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4364-pcie for chip BCM4364/3
[ 7.740463] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4364/3 wl0: Oct 23 2019 08:32:36 version 9.137.11.0.32.6.36 FWID 01-671ec60c
[ 7.780405] brcmfmac 0000:03:00.0 wlp3s0: renamed from wlan0
:)
I am running Ubuntu on a Mac Mini 8,1. "No WiFi Adapter Found" I started on 20.04 and only upgraded to get the latest Linux firmware in the hope of getting the wifi working. I also updated the kernel version to 5.7.1 because in the hope of getting the firmware sorted for this BCM4364.
$ lspci -vvnn | grep -A 9 Network
03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4364 802.11ac Wireless Network Adapter [14e4:4464] (rev 03)
Subsystem: Apple Inc. BCM4364 802.11ac Wireless Network Adapter [106b:07bf]
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort+ <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 16
Region 0: Memory at 81400000 (64-bit, non-prefetchable) [size=32K]
Region 2: Memory at 81000000 (64-bit, non-prefetchable) [size=4M]
Capabilities: <access denied>
Kernel modules: brcmfmac
Then I checked if it was loading, and I can see that the firmware is trying to load after the boot which may be the problem.
$ dmesg | grep brcmfmac
[ 6.373544] usbcore: registered new interface driver brcmfmac
[ 6.392893] brcmfmac 0000:03:00.0: enabling device (0000 -> 0002)
[ 6.501153] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4364-pcie for chip BCM4364/3
[ 6.560328] brcmfmac 0000:03:00.0: Direct firmware load for brcm/brcmfmac4364-pcie.bin failed with error -2
[ 6.576825] Modules linked in: snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device mei_hdcp snd_timer intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp brcmfmac coretemp snd brcmutil hci_uart btqca cfg80211 btrtl kvm_intel btbcm applesmc(+) kvm btintel intel_cstate intel_rapl_perf joydev efi_pstore input_leds soundcore 8250_dw intel_pch_thermal bluetooth mei_me mei ecdh_generic ecc acpi_tad mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq libcrc32c hid_logitech_hidpp hid_logitech_dj hid_generic usbhid uas hid usb_storage crct10dif_pclmul crc32_pclmul ghash_clmulni_intel i915 aesni_intel crypto_simd cryptd glue_helper i2c_algo_bit drm_kms_helper syscopyarea sysfillrect nvme sysimgblt fb_sys_fops intel_lpss_pci cec intel_lpss i2c_i801 idma64 rc_core virt_dma nvme_core tg3 drm thunderbolt video
[ 6.576866] brcmf_fweh_detach+0x19/0x70 [brcmfmac]
[ 6.576871] brcmf_detach+0x78/0x100 [brcmfmac]
[ 6.576877] brcmf_pcie_remove+0x78/0x110 [brcmfmac]
[ 6.576888] brcmf_pcie_setup+0x25/0x490 [brcmfmac]
[ 6.576892] brcmf_fw_request_done+0x71/0x100 [brcmfmac]
[ 6.576914] WARNING: CPU: 1 PID: 158 at drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c:309 brcmf_fweh_detach+0x60/0x70 [brcmfmac]
[ 6.576915] Modules linked in: snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device mei_hdcp snd_timer intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp brcmfmac coretemp snd brcmutil hci_uart btqca cfg80211 btrtl kvm_intel btbcm applesmc(+) kvm btintel intel_cstate intel_rapl_perf joydev efi_pstore input_leds soundcore 8250_dw intel_pch_thermal bluetooth mei_me mei ecdh_generic ecc acpi_tad mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq libcrc32c hid_logitech_hidpp hid_logitech_dj hid_generic usbhid uas hid usb_storage crct10dif_pclmul crc32_pclmul ghash_clmulni_intel i915 aesni_intel crypto_simd cryptd glue_helper i2c_algo_bit drm_kms_helper syscopyarea sysfillrect nvme sysimgblt fb_sys_fops intel_lpss_pci cec intel_lpss i2c_i801 idma64 rc_core virt_dma nvme_core tg3 drm thunderbolt video
[ 6.576932] RIP: 0010:brcmf_fweh_detach+0x60/0x70 [brcmfmac]
[ 6.576942] brcmf_detach+0x78/0x100 [brcmfmac]
[ 6.576946] brcmf_pcie_remove+0x78/0x110 [brcmfmac]
[ 6.576954] brcmf_pcie_setup+0x25/0x490 [brcmfmac]
[ 6.576958] brcmf_fw_request_done+0x71/0x100 [brcmfmac]
I think it has everything loaded to do the job but needs to be kick-started maybe? I tried modprobe, but it does not change anything I can see. Please don't suggest any of the old broadcom b43 drivers/fixes as none of them relate to this chip.
I have a brand new 2020 Mac mini (Intel i3 quad core chip). My install (dedicated Ubuntu NO dual boot) fails with the famous;
Executing 'grub-install /dev/nvme0n1' failed. This is a fatal error.
I have bypassed the T2 chip by booting into recovery mode and selecting "No Security" and "Allow booting from external drive". So when I turn on the Mac mini and hit the Alt key it shows me the two icons to select boot, the hard drive and the flash drive. My flash drive has the ubuntu-20.04-desktop-amd64.iso that has been made into a bootable USB by the startup disk creator on my working Ubuntu 14.04 LTS laptop.
No matter what I do the install fails and the Mac mini subsequently boots into an old Grub 2.04 with limited capabilities.
I am unable to follow this good advice Install ubuntu 18.04 on mac mini 2018 as I cannot install rEFInd in that manner.
I have tried several of the Matt Gadient (legend) bootable iso versions.
I have reformatted the entire drive as gpt using gparted and basically started from scratch but cannot find any partition combination that will let the installer complete (other than forcing it to install when there is no EFI partition in which case the installer does NOT fail but obviously the Mac mini fails to boot to anything).
I have tried several manual grub-install options from these pages but the most common error then is /cow is busy and it cannot be unmounted.
When I boot up with boot-repair the program runs but it does not detect anything. From that program if I terminal and lsblk it does not even show the nvme0n1 drive.
So, any ideas how I can get the installer to work or how I can manually install a grub?