Discussion:
Planned Support for BCM 43162 [14e4:43ae] rev 02 ?
Jan Sobotka
2016-04-30 08:38:51 UTC
Permalink
Hello,

is planned to add support for BCM 43162 [14e4:43ae] to b43 in near future? Unfortunately I bought the notebook with this WLAN card. Bug reported here https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1576815 I'm willing to help, for example with testing.

Regards.

Jan
Rafał Miłecki
2016-05-04 18:42:00 UTC
Permalink
Hi,
Post by Jan Sobotka
is planned to add support for BCM 43162 [14e4:43ae] to b43 in near future? Unfortunately I bought the notebook with this WLAN card. Bug reported here https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1576815 I'm willing to help, for example with testing.
Noone is working on new hw support right now, but essential question
is what PHY is used in this chipset. Can you load bcma for this card
and get us bcma (and potentially b43) logs?
modprobe bcma
echo "14e4 43ae" > /sys/bus/pci/drivers/bcma-pci-bridge/new_id
dmesg | egrep "bcma|b43"
--
Rafał
Rafał Miłecki
2016-05-05 15:37:20 UTC
Permalink
Don't drop ML from To/Cc. It's a bad habit and there are other ppl who
are interested in this and may be able to help as well.
Hi,
sudo echo "14e4 43ae" > /sys/bus/pci/drivers/bcma-pci-bridge/new_id
bash: /sys/bus/pci/drivers/bcma-pci-bridge/new_id: Permission denied
lsmod | egrep bcma
bcma 53248 0
than dmesg | egrep "bcma|b43" produce no output.
Do you have some advice for echo "14e4 43ae"... command modification?
Not sure why it happens. Could you try
sudo su
echo "14e4 43ae" > /sys/bus/pci/drivers/bcma-pci-bridge/new_id
instead?
Jan Sobotka
2016-05-05 16:22:56 UTC
Permalink
Sorry, I used reply instead reply to all. It was not intention.

Great, now it works. Output:

***@chobot-lenovo-laptop:/home/chobot# echo "14e4 43ae" > /sys/bus/pci/drivers/bcma-pci-bridge/new_id
***@chobot-lenovo-laptop:/home/chobot# dmesg | egrep "bcma|b43"
[ 5295.114902] bcma: bus0: Found chip with id 0x4335, rev 0x02 and package 0x01
[ 5295.114950] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2E, class 0x0)
[ 5295.114974] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x2E, class 0x0)
[ 5295.115026] bcma: bus0: Core 2 found: ARM CR4 (manuf 0x4BF, id 0x83E, rev 0x04, class 0x0)
[ 5295.115073] bcma: bus0: Core 3 found: PCIe Gen2 (manuf 0x4BF, id 0x83C, rev 0x04, class 0x0)
[ 5295.115096] bcma: bus0: Core 4 found: USB 2.0 Device (manuf 0x4BF, id 0x81A, rev 0x14, class 0x0)
[ 5295.115119] bcma: bus0: Core 5 found: SDIO Device (manuf 0x4BF, id 0x829, rev 0x15, class 0x0)
[ 5295.115170] bcma: bus0: Bridge found
[ 5295.115221] bcma-pci-bridge: probe of 0000:02:00.0 failed with error -84

---------- Původní zpráva ----------
Od: Rafał Miłecki
Komu: Jan Sobotka , b43-dev
Datum: 5. 5. 2016 17:37:24
Předmět: Re: Planned Support for BCM 43162 [14e4:43ae] rev 02 ?

Don't drop ML from To/Cc. It's a bad habit and there are other ppl who
are interested in this and may be able to help as well.
Hi,
sudo echo "14e4 43ae" > /sys/bus/pci/drivers/bcma-pci-bridge/new_id
bash: /sys/bus/pci/drivers/bcma-pci-bridge/new_id: Permission denied
lsmod | egrep bcma
bcma 53248 0
than dmesg | egrep "bcma|b43" produce no output.
Do you have some advice for echo "14e4 43ae"... command modification?
Not sure why it happens. Could you try
sudo su
echo "14e4 43ae" > /sys/bus/pci/drivers/bcma-pci-bridge/new_id
instead?
Rafał Miłecki
2016-05-06 00:03:06 UTC
Permalink
Post by Jan Sobotka
[ 5295.114902] bcma: bus0: Found chip with id 0x4335, rev 0x02 and package 0x01
[ 5295.114950] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2E, class 0x0)
[ 5295.114974] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x2E, class 0x0)
[ 5295.115026] bcma: bus0: Core 2 found: ARM CR4 (manuf 0x4BF, id 0x83E, rev 0x04, class 0x0)
[ 5295.115073] bcma: bus0: Core 3 found: PCIe Gen2 (manuf 0x4BF, id 0x83C, rev 0x04, class 0x0)
[ 5295.115096] bcma: bus0: Core 4 found: USB 2.0 Device (manuf 0x4BF, id 0x81A, rev 0x14, class 0x0)
[ 5295.115119] bcma: bus0: Core 5 found: SDIO Device (manuf 0x4BF, id 0x829, rev 0x15, class 0x0)
[ 5295.115170] bcma: bus0: Bridge found
[ 5295.115221] bcma-pci-bridge: probe of 0000:02:00.0 failed with error -84
So this is device with BCM4335 chipset which is a FullMAC one AFAIK.
It may be supported by brcmfmac. There is already support for BCM4335
in brcmfmac but it was developed for SDIO devices only. I don't think
we ever met BCM4335 on PCIe device.

You may try:
sudo su
rmmod bcma
echo "14e4 43ae" > /sys/bus/pci/drivers/brcmfmac/new_id
dmesg | grep brcmfmac

However I think brcmfmac may need some extra changes to support
BCM4335 on PCIe. Lets also see if Broadcom team can help us with this.
Jan Sobotka
2016-05-06 11:19:40 UTC
Permalink
Post by Jan Sobotka
Post by Rafał Miłecki
sudo su
rmmod bcma
echo "14e4 43ae" > /sys/bus/pci/drivers/brcmfmac/new_id
dmesg | grep brcmfmac
Output:
[14054.947644] usbcore: registered new interface driver brcmfmac

Full command history:
***@chobot-lenovo-laptop:~# lsmod | grep bcma
***@chobot-lenovo-laptop:~# rmmod bcma
rmmod: ERROR: Module bcma is not currently loaded
***@chobot-lenovo-laptop:~# echo "14e4 43ae" > /sys/bus/pci/drivers/brcmfmac/new_id
-bash: /sys/bus/pci/drivers/brcmfmac/new_id: No such file or directory
***@chobot-lenovo-laptop:~# modprobe brcmfmac
***@chobot-lenovo-laptop:~# lsmod | grep brcmfmac
brcmfmac 290816 0
brcmutil 16384 1 brcmfmac
cfg80211 565248 2 brcmfmac,mac80211
***@chobot-lenovo-laptop:~# echo "14e4 43ae" > /sys/bus/pci/drivers/brcmfmac/new_id
***@chobot-lenovo-laptop:~# dmesg | grep brcmfmac
[14054.947644] usbcore: registered new interface driver brcmfmac


---------- Původní zpráva ----------
Od: Rafał Miłecki
Komu: Jan Sobotka , brcm80211 development
Datum: 6. 5. 2016 2:03:08
Předmět: Re: Planned Support for BCM 43162 [14e4:43ae] rev 02 ?
Post by Jan Sobotka
[ 5295.114902] bcma: bus0: Found chip with id 0x4335, rev 0x02 and package 0x01
[ 5295.114950] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2E, class 0x0)
[ 5295.114974] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x2E, class 0x0)
[ 5295.115026] bcma: bus0: Core 2 found: ARM CR4 (manuf 0x4BF, id 0x83E, rev 0x04, class 0x0)
[ 5295.115073] bcma: bus0: Core 3 found: PCIe Gen2 (manuf 0x4BF, id 0x83C, rev 0x04, class 0x0)
[ 5295.115096] bcma: bus0: Core 4 found: USB 2.0 Device (manuf 0x4BF, id 0x81A, rev 0x14, class 0x0)
[ 5295.115119] bcma: bus0: Core 5 found: SDIO Device (manuf 0x4BF, id 0x829, rev 0x15, class 0x0)
[ 5295.115170] bcma: bus0: Bridge found
[ 5295.115221] bcma-pci-bridge: probe of 0000:02:00.0 failed with error -84
So this is device with BCM4335 chipset which is a FullMAC one AFAIK.
It may be supported by brcmfmac. There is already support for BCM4335
in brcmfmac but it was developed for SDIO devices only. I don't think
we ever met BCM4335 on PCIe device.

However I think brcmfmac may need some extra changes to support
BCM4335 on PCIe. Lets also see if Broadcom team can help us with this.
Arend Van Spriel
2016-05-09 09:40:51 UTC
Permalink
Post by Rafał Miłecki
Post by Jan Sobotka
[ 5295.114902] bcma: bus0: Found chip with id 0x4335, rev 0x02 and package 0x01
[ 5295.114950] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2E, class 0x0)
[ 5295.114974] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x2E, class 0x0)
[ 5295.115026] bcma: bus0: Core 2 found: ARM CR4 (manuf 0x4BF, id 0x83E, rev 0x04, class 0x0)
[ 5295.115073] bcma: bus0: Core 3 found: PCIe Gen2 (manuf 0x4BF, id 0x83C, rev 0x04, class 0x0)
[ 5295.115096] bcma: bus0: Core 4 found: USB 2.0 Device (manuf 0x4BF, id 0x81A, rev 0x14, class 0x0)
[ 5295.115119] bcma: bus0: Core 5 found: SDIO Device (manuf 0x4BF, id 0x829, rev 0x15, class 0x0)
[ 5295.115170] bcma: bus0: Bridge found
[ 5295.115221] bcma-pci-bridge: probe of 0000:02:00.0 failed with error -84
So this is device with BCM4335 chipset which is a FullMAC one AFAIK.
It may be supported by brcmfmac. There is already support for BCM4335
in brcmfmac but it was developed for SDIO devices only. I don't think
we ever met BCM4335 on PCIe device.
It does have an ARM core, but for fullmac we need RAM as well and I
don't see that listed. So I guess it is a 43162 and needs softmac
driver. Also could not find any fullmac firmware for it. The only thing
I found was a hybrid wl driver release for it.

Regards,
Arend
Post by Rafał Miłecki
sudo su
rmmod bcma
echo "14e4 43ae" > /sys/bus/pci/drivers/brcmfmac/new_id
dmesg | grep brcmfmac
However I think brcmfmac may need some extra changes to support
BCM4335 on PCIe. Lets also see if Broadcom team can help us with this.
Stuart Longland
2016-05-05 18:11:40 UTC
Permalink
Post by Rafał Miłecki
sudo echo "14e4 43ae" > /sys/bus/pci/drivers/bcma-pci-bridge/new_id
bash: /sys/bus/pci/drivers/bcma-pci-bridge/new_id: Permission denied
Not sure why it happens
echo "14e4 43ae" | sudo tee /sys/bus/pci/drivers/bcma-pci-bridge/new_id

That should work. The reason why the other didn't work is because you
were running the 'echo' command as root, but then the re-direction was
being done by a shell that was running as a user.

`sudo` is not a magic shell built-command, it's just a suid-root binary,
and merely passes on the arguments the shell gives it.
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
...it's backed up on a tape somewhere.
Loading...