View previous topic :: View next topic |
Author |
Message |
ankh2054 n00b
Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Wed Mar 16, 2016 8:56 am Post subject: Mac Pro 2015 - Kernel 4.1.15 - Braodcom Wireless |
|
|
Hi All,
Device: Broadcom Corporation BCM43602 802.11ac Wireless LAN SoC [14e4:43ba] (rev 01)
I'm hoping someone could steer me in the right direction. I'm busy configuring the linux kernel (4.1.5) according to instructions here - https://wiki.gentoo.org/wiki/Apple_Macbook_Pro_Retina_%28early_2013%29
Instructions request to disable Broadcom IEEE 802.11n WLAN driver, but with that disabled I don't seem to have any other supported wireless in my kernel.
Should this not be enabled? Maybe I should loads as a module instead.
thanks
Charles |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Wed Mar 16, 2016 9:23 am Post subject: |
|
|
Is your PCI device ID listed on wireless.wiki.kernel.org?
Is this the driver you were told to disable?
The wiki article is about BCM 4331 and it does not say anything about the kernel version not supporting 802.11n. |
|
Back to top |
|
|
ankh2054 n00b
Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Wed Mar 16, 2016 12:11 pm Post subject: |
|
|
Hi Charles
Right you are, reading further i've now realised you need to disable if you want 802.11n support, but that also relates to a older kernel so hopefully will work.
thanks for the help |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Wed Mar 16, 2016 12:23 pm Post subject: |
|
|
For [14e4:43ba]
set CONFIG_BRCMFMAC=m
and CONFIG_BRCMFMAC_PCIE=y
And don't forget the firmware. |
|
Back to top |
|
|
ankh2054 n00b
Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Wed Mar 16, 2016 1:03 pm Post subject: |
|
|
thank you sir |
|
Back to top |
|
|
ankh2054 n00b
Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Fri Mar 18, 2016 9:29 am Post subject: Broadcom wireless - module canot load |
|
|
Hi all,
I'm not entirely sure what do do here, im still trying to understand how modules are compiled etc...
I've installed the broadcom wireless packagee using emerge sys-kernel/linux-firmware.
My conf.d/modules file
Code: | etc/conf.d/modules
# You can define a list modules for a specific kernel version,
# a released kernel version, a main kernel version or just a list.
# The most specific versioned variable will take precedence.
#modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
#modules_2_6_23="tun ieee1394"
#modules_2_6="tun"
#modules_2="ipv6"
#modules="ohci1394"
# You can give modules a different name when they load - the new name
# will also be used to pick arguments below.
#modules="dummy:dummy1"
# Give the modules some arguments if needed, per version if necessary.
# Again, the most specific versioned variable will take precedence.
#module_ieee1394_args="debug"
#module_ieee1394_args_2_6_23_gentoo_r5="debug2"
#module_ieee1394_args_2_6_23="debug3"
#module_ieee1394_args_2_6="debug4"
#module_ieee1394_args_2="debug5"
# You should consult your kernel documentation and configuration
# for a list of modules and their options.
modules="brcmfmac"
|
Upon kernel boot it fails to load bcrmfmac & using modprobe -a brcmfmac it cannot din the module to load.
I have done a search and cannot find a brcmfmac.ko file, which I assume is the driver.
I can how ever see the following brcmfmac directories exist.
./usr/src/linux-4.1.15-gentoo-r1/firmware/brcmfmac
./usr/src/linux-4.1.15-gentoo-r1/drivers/net/wireless/brcm80211/brcmfmac _________________ www.bommachine.co.uk |
|
Back to top |
|
|
ankh2054 n00b
Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Fri Mar 18, 2016 10:29 am Post subject: |
|
|
Got it to load the module, by redoing make modules_install whilst logged into Gentoo and not from lived chroot env.
lspci shows that the device is not associated with the mode, so onto that. _________________ www.bommachine.co.uk |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Fri Mar 18, 2016 10:33 am Post subject: |
|
|
Have a look at the recent thread.
Hopefully you compiled the driver as a module. Did you? Will you please post your output of modinfo brcmfmac or what the module's name is.
The CONFIG_BRCMFMAC_<subtype> like PCIe, USB and SDIO needed depends on the (PCI) Device ID listed on https://wireless.wiki.kernel.org/en/users/drivers/brcm80211. |
|
Back to top |
|
|
schorsch_76 Guru
Joined: 19 Jun 2012 Posts: 452
|
|
Back to top |
|
|
frankenputer n00b
Joined: 09 Mar 2016 Posts: 26
|
Posted: Fri Mar 18, 2016 10:59 am Post subject: |
|
|
In make menuconfig press / to start searching and type brcmfmac
this will give you a hint what you should enable and where to find the particular option(s).
If you've done everything correctly you'll get the module compiled. |
|
Back to top |
|
|
ankh2054 n00b
Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Fri Mar 18, 2016 11:22 am Post subject: |
|
|
frankenputer wrote: | In make menuconfig press / to start searching and type brcmfmac
this will give you a hint what you should enable and where to find the particular option(s).
If you've done everything correctly you'll get the module compiled. |
thanks that did the trick, as I using lspci I can see the device is now using brcmfmac. _________________ www.bommachine.co.uk |
|
Back to top |
|
|
ankh2054 n00b
Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Fri Mar 18, 2016 11:23 am Post subject: |
|
|
Code: |
filename: /lib/modules/4.1.15-gentoo-r1/kernel/drivers/net/wireless/brcm80211/brcmfmac/brcmfmac.ko
license: Dual BSD/GPL
description: Broadcom 802.11 wireless LAN fullmac driver.
author: Broadcom Corporation
firmware: brcm/brcmfmac4354-sdio.txt
firmware: brcm/brcmfmac4354-sdio.bin
firmware: brcm/brcmfmac43455-sdio.txt
firmware: brcm/brcmfmac43455-sdio.bin
firmware: brcm/brcmfmac43430-sdio.txt
firmware: brcm/brcmfmac43430-sdio.bin
firmware: brcm/brcmfmac4339-sdio.txt
firmware: brcm/brcmfmac4339-sdio.bin
firmware: brcm/brcmfmac43362-sdio.txt
firmware: brcm/brcmfmac43362-sdio.bin
firmware: brcm/brcmfmac4335-sdio.txt
firmware: brcm/brcmfmac4335-sdio.bin
firmware: brcm/brcmfmac43340-sdio.txt
firmware: brcm/brcmfmac43340-sdio.bin
firmware: brcm/brcmfmac4334-sdio.txt
firmware: brcm/brcmfmac4334-sdio.bin
firmware: brcm/brcmfmac4330-sdio.txt
firmware: brcm/brcmfmac4330-sdio.bin
firmware: brcm/brcmfmac4329-sdio.txt
firmware: brcm/brcmfmac4329-sdio.bin
firmware: brcm/brcmfmac43241b4-sdio.txt
firmware: brcm/brcmfmac43241b4-sdio.bin
firmware: brcm/brcmfmac43241b0-sdio.txt
firmware: brcm/brcmfmac43241b0-sdio.bin
firmware: brcm/brcmfmac43143-sdio.txt
firmware: brcm/brcmfmac43143-sdio.bin
alias: sdio:c*v02D0d4354*
alias: sdio:c*v02D0d4345*
alias: sdio:c*v02D0dA9A6*
alias: sdio:c*v02D0d4335*
alias: sdio:c*v02D0dA962*
alias: sdio:c*v02D0dA94D*
alias: sdio:c*v02D0dA94C*
alias: sdio:c*v02D0d4334*
alias: sdio:c*v02D0d4330*
alias: sdio:c*v02D0d4329*
alias: sdio:c*v02D0d4324*
alias: sdio:c*v02D0dA887*
depends: brcmutil
intree: Y
vermagic: 4.1.15-gentoo-r1 SMP mod_unload
parm: txglomsz:maximum tx packet chain size [SDIO] (int)
parm: firmware_path:string
parm: debug:level of debug output (int)
parm: fcmode:mode of firmware signalled flow control (int)
parm: roamoff:do not use internal roaming engine (int)
|
Above is the output Charles and thanks for the help. Recompiling the kernel with some additional features did the trick and now the device is associated with the module.
I however still cannot see the device using ifconfig, so any ideas welcome. _________________ www.bommachine.co.uk |
|
Back to top |
|
|
ankh2054 n00b
Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Fri Mar 18, 2016 11:34 am Post subject: |
|
|
Running on a MAC Pro early 2015. _________________ www.bommachine.co.uk |
|
Back to top |
|
|
ankh2054 n00b
Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Fri Mar 18, 2016 11:40 am Post subject: |
|
|
sit0 and lo are the only interfaces listed via ifconfig -a.
ls /sys/class/net
show sit0 and lo. _________________ www.bommachine.co.uk |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Fri Mar 18, 2016 11:40 am Post subject: |
|
|
Will you please post your output of lspci -nnkv | sed -n '/Network/,/^$/p' | head -n -1
After rebooting check dmesg like dmesg | grep -i '08:00.0\|brcmfmac\' but replace 08:00.0 with the exact device's bus ID from lspci. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Mar 18, 2016 11:49 am Post subject: |
|
|
ankh2054 ...
from the modinfo I don't see the 43602 firmware listed (which from the above linked post seems to be your chipset). Also, those listed are *.sdio firmware. I suspect you are missing firmware (dmesg should provide some clue ITR), perhaps the brcm80211 page on linux wireless can provide some idea of where you can aquire it.
HTH & best ... khay |
|
Back to top |
|
|
frankenputer n00b
Joined: 09 Mar 2016 Posts: 26
|
Posted: Fri Mar 18, 2016 12:13 pm Post subject: |
|
|
Networking support->Wireless image
Device Drivers->Networking device support->Wireless LAN image
qlist linux-firmware|grep 43602
make -jX;make -jX modules_install;make -jX install; update boot && modprobe da module && modinfo brcmfmac|grep 43602
You had to mention from the very beginning what hardware you are using.
Last edited by frankenputer on Fri Mar 18, 2016 12:20 pm; edited 1 time in total |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Fri Mar 18, 2016 12:19 pm Post subject: |
|
|
frankenputer wrote: | Device Drivers->Networking device support->Wireless LAN image |
Would one really, say for a pcie device, need 43xx-legacy and SoftMAC? |
|
Back to top |
|
|
frankenputer n00b
Joined: 09 Mar 2016 Posts: 26
|
Posted: Fri Mar 18, 2016 12:25 pm Post subject: |
|
|
charles17 wrote: | frankenputer wrote: | Device Drivers->Networking device support->Wireless LAN image |
Would one really, say for a pcie device, need 43xx-legacy and SoftMAC? |
I honestly didn't knew what hardware ankh2054 was using. He had to mention from the very beginning what hardware he has, right after my reply saw that you've provided a link to earlier conversation where he said what hardware he has. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Mar 18, 2016 12:47 pm Post subject: |
|
|
charles17 wrote: | Will you please post your output of lspci -nnkv | sed -n '/Network/,/^$/p' | head -n -1 |
charles ... or keep your 'head' and use something which provides 'record seperator' ;)
Code: | # lspci -nnkv | awk -v RS= '/Network/{print $0}' |
best ... khay |
|
Back to top |
|
|
ankh2054 n00b
Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Fri Mar 18, 2016 12:58 pm Post subject: |
|
|
How both thanks for the help it is really appreciated. I'm slowing learning more. Gentoo folk are very helpful and I'm very glad to have switched.
LSPCI
Code: |
04:00.0 0280: 14e4:43ba (rev 01)
Subsystem: 106b:0152
Flags: fast devsel, IRQ 18
Memory at b0800000 (64-bit, non-prefetchable) [size=32K]
Memory at b0400000 (64-bit, non-prefetchable) [size=4M]
Capabilities: [48] Power Management version 3
Capabilities: [58] MSI: Enable- Count=1/16 Maskable- 64bit+
Capabilities: [68] Vendor Specific Information: Len=44 <?>
Capabilities: [ac] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Device Serial Number 9a-45-9b-ff-ff-13-a0-99
Capabilities: [150] Power Budgeting <?>
Capabilities: [160] Virtual Channel
Capabilities: [1b0] Latency Tolerance Reporting
Capabilities: [220] #15
Capabilities: [240] L1 PM Substates
Kernel modules: brcmfmac
|
DMESG
Code: |
[ 2.470643] brcmfmac 0000:04:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.bin failed with error -2
|
_________________ www.bommachine.co.uk |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Fri Mar 18, 2016 1:22 pm Post subject: |
|
|
ankh2054 wrote: | Code: |
[ 2.470643] brcmfmac 0000:04:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.bin failed with error -2
|
|
Please check if /lib/firmware/brcm/brcmfmac43602-pcie.bin exists and also include 04:00.0 in grep from dmesg like dmesg | grep -i '04:00.0\|brcmfmac\'
Last edited by charles17 on Fri Mar 18, 2016 1:25 pm; edited 1 time in total |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Mar 18, 2016 1:23 pm Post subject: |
|
|
ankh2054 wrote: | Code: | [ 2.470643] brcmfmac 0000:04:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.bin failed with error -2 |
|
ankh2054 ... please check for the presence of /lib/firmware/brcm/brcmfmac43602-pcie.bin ... if it's not there can you provide the output of the following:
Code: | # emerge -pvq linux-firmware
# equery -NC files linux-firmware | grep brcm |
Also, this user seems to have the same, or similar, macbook, perhaps something of use there.
frankenputer wrote: | I honestly didn't knew what hardware ankh2054 was using. He had to mention from the very beginning what hardware he has, right after my reply saw that you've provided a link to earlier conversation where he said what hardware he has. |
@frankenputer ... I find that hard to believe, if this was the case then why grep for 43602?
best ... khay |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Fri Mar 18, 2016 1:33 pm Post subject: |
|
|
ankh2054 wrote: | Code: |
filename: /lib/modules/4.1.15-gentoo-r1/kernel/drivers/net/wireless/brcm80211/brcmfmac/brcmfmac.ko
license: Dual BSD/GPL
description: Broadcom 802.11 wireless LAN fullmac driver.
author: Broadcom Corporation
firmware: brcm/brcmfmac4354-sdio.txt
firmware: brcm/brcmfmac4354-sdio.bin
firmware: brcm/brcmfmac43455-sdio.txt
firmware: brcm/brcmfmac43455-sdio.bin
firmware: brcm/brcmfmac43430-sdio.txt
firmware: brcm/brcmfmac43430-sdio.bin
firmware: brcm/brcmfmac4339-sdio.txt
firmware: brcm/brcmfmac4339-sdio.bin
firmware: brcm/brcmfmac43362-sdio.txt
firmware: brcm/brcmfmac43362-sdio.bin
firmware: brcm/brcmfmac4335-sdio.txt
firmware: brcm/brcmfmac4335-sdio.bin
firmware: brcm/brcmfmac43340-sdio.txt
firmware: brcm/brcmfmac43340-sdio.bin
firmware: brcm/brcmfmac4334-sdio.txt
firmware: brcm/brcmfmac4334-sdio.bin
firmware: brcm/brcmfmac4330-sdio.txt
firmware: brcm/brcmfmac4330-sdio.bin
firmware: brcm/brcmfmac4329-sdio.txt
firmware: brcm/brcmfmac4329-sdio.bin
firmware: brcm/brcmfmac43241b4-sdio.txt
firmware: brcm/brcmfmac43241b4-sdio.bin
firmware: brcm/brcmfmac43241b0-sdio.txt
firmware: brcm/brcmfmac43241b0-sdio.bin
firmware: brcm/brcmfmac43143-sdio.txt
firmware: brcm/brcmfmac43143-sdio.bin
alias: sdio:c*v02D0d4354*
alias: sdio:c*v02D0d4345*
alias: sdio:c*v02D0dA9A6*
alias: sdio:c*v02D0d4335*
alias: sdio:c*v02D0dA962*
alias: sdio:c*v02D0dA94D*
alias: sdio:c*v02D0dA94C*
alias: sdio:c*v02D0d4334*
alias: sdio:c*v02D0d4330*
alias: sdio:c*v02D0d4329*
alias: sdio:c*v02D0d4324*
alias: sdio:c*v02D0dA887*
depends: brcmutil
intree: Y
vermagic: 4.1.15-gentoo-r1 SMP mod_unload
parm: txglomsz:maximum tx packet chain size [SDIO] (int)
parm: firmware_path:string
parm: debug:level of debug output (int)
parm: fcmode:mode of firmware signalled flow control (int)
parm: roamoff:do not use internal roaming engine (int)
|
|
That only shows sdio firmware. Looks like you forgot to activate CONFIG_BRCMFMAC_PCIE=y .
Please post your output of grep CONFIG_BRCMFMAC .config when you are in the correct /usr/src/<kernel-version> directory. |
|
Back to top |
|
|
ankh2054 n00b
Joined: 15 Mar 2016 Posts: 33 Location: London UK
|
Posted: Fri Mar 18, 2016 2:28 pm Post subject: |
|
|
f /lib/firmware/brcm/brcmfmac43602-pcie.bin did not exist, so I copied from /usr/src/linux-4.1.15-gentoo-r1/firmware/brcmfmac/brcmfmac43602-pcie.bin.
After rebooting I can now see wlp4s0 as a device using ifconfig -a.
Although I still get the following errors.
Code: |
[ 0.270771] pci 0000:04:00.0: [14e4:43ba] type 00 class 0x028000
[ 0.270839] pci 0000:04:00.0: reg 0x10: [mem 0xb0800000-0xb0807fff 64bit]
[ 0.270866] pci 0000:04:00.0: reg 0x18: [mem 0xb0400000-0xb07fffff 64bit]
[ 0.271014] pci 0000:04:00.0: supports D1 D2
[ 0.271016] pci 0000:04:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.271060] pci 0000:04:00.0: System wakeup disabled by ACPI
[ 25.858823] brcmfmac 0000:04:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.txt failed with error -2
[ 26.487278] brcmfmac 0000:04:00.0 wlp4s0: renamed from wlan0
|
equery -NC files linux-firmware | grep brcm
Code: |
!!! No installed packages matching 'linux-firmware'
|
emerge -pvq linux-firmware
Looks like two packages are working against each other.
Code: |
emerge -pvq linux-firmware
* IMPORTANT: config file '/etc/portage/package.use/iputils' needs updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.
[ebuild N ] sys-kernel/linux-firmware-20151207 USE="-savedconfig"
[blocks B ] sys-kernel/linux-firmware[-savedconfig] ("sys-kernel/linux-firmware[-savedconfig]" is blocking sys-firmware/radeon-ucode-20150511)
[blocks B ] sys-firmware/radeon-ucode ("sys-firmware/radeon-ucode" is blocking sys-kernel/linux-firmware-20151207)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(sys-kernel/linux-firmware-20151207:0/0::gentoo, ebuild scheduled for merge) pulled in by
linux-firmware
(sys-firmware/radeon-ucode-20150511:0/0::gentoo, installed) pulled in by
sys-firmware/radeon-ucode required by @selected
* IMPORTANT: 9 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
|
.config
Code: |
CONFIG_BRCMFMAC=m
CONFIG_BRCMFMAC_PROTO_BCDC=y
CONFIG_BRCMFMAC_PROTO_MSGBUF=y
CONFIG_BRCMFMAC_SDIO=y
CONFIG_BRCMFMAC_USB=y
CONFIG_BRCMFMAC_PCIE=y
|
DMESG
Code: |
04:00.0 Network controller [0280]: Broadcom Corporation BCM43602 802.11ac Wireless LAN SoC [14e4:43ba] (rev 01)
Subsystem: Apple Inc. BCM43602 802.11ac Wireless LAN SoC [106b:0152]
Flags: bus master, fast devsel, latency 0, IRQ 51
Memory at b0800000 (64-bit, non-prefetchable) [size=32K]
Memory at b0400000 (64-bit, non-prefetchable) [size=4M]
Capabilities: [48] Power Management version 3
Capabilities: [58] MSI: Enable+ Count=1/16 Maskable- 64bit+
Capabilities: [68] Vendor Specific Information: Len=44 <?>
Capabilities: [ac] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Device Serial Number 9a-45-9b-ff-ff-13-a0-99
Capabilities: [150] Power Budgeting <?>
Capabilities: [160] Virtual Channel
Capabilities: [1b0] Latency Tolerance Reporting
Capabilities: [220] #15
Capabilities: [240] L1 PM Substates
Kernel driver in use: brcmfmac
|
_________________ www.bommachine.co.uk |
|
Back to top |
|
|
|