WonderWoofy wrote:prakharsingh95 wrote:How do I get broadcom-wl to work in linux-pf. I found broadcom-wl-ck, which is excellent for working with linux-ck, but the one for linux-pf is available only in CCR (http://chakraos.org/ccr/packages.php?ID=6519), which is outdated.
Check out one of the other broadcom-wl PKGBUILDs and then adjust from there. I am pretty sure that the broadcom-wl-ck AUR package is pretty well maintained, so that would probably be a good one to go off of. It is just a bash script, so it is fairly easy to read.
You will need to adjust the pkgname, the depends, makedepends, _kernelver, and probably a couple more things. But it shouldn't be too difficult. It will also probably be a good way to learn how Arch's build scripts work.
Actually, I familiarized myself with ABS when I built my custom kernel. I had assumed that broadcom-wl needed to be patched to work with linux-ck, hence I was looking for a similar one for linux-pf.
But now that you mention it, I read both PKGBUILDs and indeed, the only difference is in package names.
I am lazy and I don't want to go through the whole package. Can I build the wl for linux-pf myself, just by diffing the PKGBUILDs for wl and wl-ck, editing the patch and replacing all instances of wl-ck with wl-pf (not for dependencies, but for the rest) and then patching the original PKGBUILD?
Just go through and edit the PKGBUILD. It is really not that hard. The kernel PKGBUILD is terribly complex, so in comparison the broadcom-wl script should be a piece of cake for you. Seriously, it will take you just a couple minutes.
Then once you make those changes, you can upload it to the AUR and benefit the rest of the community. Even if you don't want to keep it, I am sure that there is probably someone else out there who would be willing to adopt a package like that.
]]>prakharsingh95 wrote:How do I get broadcom-wl to work in linux-pf. I found broadcom-wl-ck, which is excellent for working with linux-ck, but the one for linux-pf is available only in CCR (http://chakraos.org/ccr/packages.php?ID=6519), which is outdated.
Check out one of the other broadcom-wl PKGBUILDs and then adjust from there. I am pretty sure that the broadcom-wl-ck AUR package is pretty well maintained, so that would probably be a good one to go off of. It is just a bash script, so it is fairly easy to read.
You will need to adjust the pkgname, the depends, makedepends, _kernelver, and probably a couple more things. But it shouldn't be too difficult. It will also probably be a good way to learn how Arch's build scripts work.
Actually, I familiarized myself with ABS when I built my custom kernel. I had assumed that broadcom-wl needed to be patched to work with linux-ck, hence I was looking for a similar one for linux-pf.
But now that you mention it, I read both PKGBUILDs and indeed, the only difference is in package names.
I am lazy and I don't want to go through the whole package. Can I build the wl for linux-pf myself, just by diffing the PKGBUILDs for wl and wl-ck, editing the patch and replacing all instances of wl-ck with wl-pf (not for dependencies, but for the rest) and then patching the original PKGBUILD?
]]>How do I get broadcom-wl to work in linux-pf. I found broadcom-wl-ck, which is excellent for working with linux-ck, but the one for linux-pf is available only in CCR (http://chakraos.org/ccr/packages.php?ID=6519), which is outdated.
Check out one of the other broadcom-wl PKGBUILDs and then adjust from there. I am pretty sure that the broadcom-wl-ck AUR package is pretty well maintained, so that would probably be a good one to go off of. It is just a bash script, so it is fairly easy to read.
You will need to adjust the pkgname, the depends, makedepends, _kernelver, and probably a couple more things. But it shouldn't be too difficult. It will also probably be a good way to learn how Arch's build scripts work.
]]>Device is:
02:00.0 Network Controller [0280]: Broadcm Corporation BCM43228 802.11a/b/g/n [14e4:4359]
which has, according to this list, no native support in Linux 3.16, so I'm kind of forced to use wl until 3.17 lands in [core].
Which, as you might guess, doesn't work. The interface shows up in iwconfig with the module loaded:
wlo1 IEEE 802.11abg ESSID:off/any
Mode: Managed Access Point: Not-Associated Tx-Power=200 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
However, when trying to run a scan:
wl01 No scan results
Nothing, when it should show about four different networks. Of course, connecting to a network doesn't work either.
dmesg is full of those:
[981.095141] wl 0000:02:00.0: no hotplug settings from platform
[981.095876] wl 0000:02:00.0: no hotplug settings from platform
[981.096819] wl 0000:02:00.0: no hotplug settings from platform
I really don't have the slightest idea what's wrong here. Any ideas what I could try?
-----------------
Problem solved:
Installed latest GIT kernel, disabled hardware IOMMU support (which caused some trouble with the b43 driver, issuing some INVALID_DEVICE_REQUESTs) and that thing is up and running. Screw the official drivers.
-----------------
Problem solved even better:
Replaced Broadcom card by the Atheros card from my old netbook due to Broadcom's horrible performance and stability issues on both Linux and Windows. Seriously...
On AC I get a maximum of 30Mbps download( OS X: 5-600 Mbps, still lower than 1000Mbps) with 106Mbps upload( this is around the maximum upload speed expected from the ISP).
I have a 15" Retina MacBook Pro with a BCM4360 chip. I have also posted this in the rMBP support thread.
Some relevant info:
Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)
ip addr:
2: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 78:31:c1:c9:36:f8 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.4/24 brd 192.168.1.255 scope global wlp2s0
valid_lft forever preferred_lft forever
inet6 fe80::7a31:c1ff:fec9:36f8/64 scope link
valid_lft forever preferred_lft forever
iwconfig:
wlp2s0 IEEE 802.11abg ESSID:"Home5GHz"
Mode:Managed Frequency:5.24 GHz Access Point: E0:3F:49:F2:76:F4
Bit Rate=360 Mb/s Tx-Power=200 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=61/70 Signal level=-49 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ifconfig:
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.4 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::7a31:c1ff:fec9:36f8 prefixlen 64 scopeid 0x20<link>
ether 78:31:c1:c9:36:f8 txqueuelen 1000 (Ethernet)
RX packets 9612992 bytes 334446820 (318.9 MiB)
RX errors 0 dropped 233 overruns 0 frame 173887
TX packets 11175221 bytes 2833758446 (2.6 GiB)
TX errors 2074 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18
dmesg | grep wl:
[ 3.680970] systemd[1]: Expecting device sys-subsystem-net-devices-wlp2s0.device...
[ 3.908544] wl: module license 'Mixed/Proprietary' taints kernel.
[ 3.910220] wl 0000:02:00.0: enabling device (0000 -> 0002)
[ 3.937637] INFO @wl_cfg80211_attach : Registered CFG80211 phy
[ 3.962765] systemd-udevd[175]: renamed network interface eth0 to wlp2s0
[17435.434025] ERROR @wl_dev_intvar_get : error (-1)
[17435.434028] ERROR @wl_cfg80211_get_tx_power : error (-1)
Edit: it's now error free after blacklisting b43, bcma and ssb manually.
iw dev wlp2s0 link:
Connected to e0:3f:49:f2:76:f4 (on wlp2s0)
SSID: Home5GHz
freq: 5240
signal: -50 dBm
tx bitrate: 400.0 MBit/s
Any idea where I should start debugging or how to get the expected wireless speeds? Thank you.
EDIT: I have failed. It was a router setting. I can confirm that now I have similar wireless speeds to OS X. Please delete this post.
]]>I can confirm the same issues with broadcom-wl -- except for the kernel warnings. I have no clue where you find those. is that with 'journalctl -xn'?
Does anyone have a solution to this issue?
Edit: I have similar kernel warnings
Apr 17 13:04:14 thinker kernel: ------------[ cut here ]------------
Apr 17 13:04:14 thinker kernel: WARNING: CPU: 0 PID: 279 at net/wireless/sme.c:797 cfg80211_roamed+0x8c/0x90 [cfg80211]()
Apr 17 13:04:14 thinker kernel: Modules linked in: uinput nls_cp437 vfat fat lib80211_crypt_tkip wl(PO) snd_hda_codec_hdmi intel_rapl x86_pkg_temp_thermal intel_powerclamp joydev coretemp moused
Apr 17 13:04:14 thinker kernel: xts gf128mul dm_crypt dm_mod sr_mod cdrom sd_mod mmc_block atkbd libps2 rtsx_pci_sdmmc mmc_core crct10dif_pclmul crct10dif_common crc32_pclmul crc32c_intel ghash
Apr 17 13:04:14 thinker kernel: CPU: 0 PID: 279 Comm: wl_event_handle Tainted: P W O 3.13.8-1-ARCH #1
Apr 17 13:04:14 thinker kernel: Hardware name: LENOVO 3254CTO/3254CTO, BIOS H0ET35WW (1.17 ) 07/25/2012
Apr 17 13:04:14 thinker kernel: 0000000000000009 ffff8800d66e7d88 ffffffff81513754 0000000000000000
Apr 17 13:04:14 thinker kernel: ffff8800d66e7dc0 ffffffff81061a3d ffff8800d775d000 ffff880116e9f780
Apr 17 13:04:14 thinker kernel: 0000000000000052 ffff8800d5c62dd0 0000000000000001 ffff8800d66e7dd0
Apr 17 13:04:14 thinker kernel: Call Trace:
Apr 17 13:04:14 thinker kernel: [<ffffffff81513754>] dump_stack+0x4d/0x6f
Apr 17 13:04:14 thinker kernel: [<ffffffff81061a3d>] warn_slowpath_common+0x7d/0xa0
Apr 17 13:04:14 thinker kernel: [<ffffffff81061b1a>] warn_slowpath_null+0x1a/0x20
Apr 17 13:04:14 thinker kernel: [<ffffffffa07ef94c>] cfg80211_roamed+0x8c/0x90 [cfg80211]
Apr 17 13:04:14 thinker kernel: [<ffffffffa0e33d88>] wl_bss_connect_done.isra.22+0x98/0x1a0 [wl]
Apr 17 13:04:14 thinker kernel: [<ffffffffa0e343cc>] wl_notify_connect_status+0x1fc/0x410 [wl]
Apr 17 13:04:14 thinker kernel: [<ffffffffa0e30ab5>] wl_event_handler+0x55/0x1f0 [wl]
Apr 17 13:04:14 thinker kernel: [<ffffffffa0e30a60>] ? wl_deinit_priv_mem+0xa0/0xa0 [wl]
Apr 17 13:04:14 thinker kernel: [<ffffffff810835b2>] kthread+0xd2/0xf0
Apr 17 13:04:14 thinker kernel: [<ffffffff810834e0>] ? kthread_create_on_node+0x180/0x180
Apr 17 13:04:14 thinker kernel: [<ffffffff81521abc>] ret_from_fork+0x7c/0xb0
Apr 17 13:04:14 thinker kernel: [<ffffffff810834e0>] ? kthread_create_on_node+0x180/0x180
Apr 17 13:04:14 thinker kernel: ---[ end trace 848b7ef733d07086 ]---
RTNETLINK answers: Too many open files in system
and using macchanger:
[ERROR] Could not change MAC: interface up or insufficient permissions: Too many open files in system
although the interface is definitely not up.
The new, changed MAC address is shown by ip and ifconfig afterwards, but if I try to associate with an AP I get the following kernel warning:
[ 100.205560] ------------[ cut here ]------------
[ 100.205577] WARNING: CPU: 0 PID: 250 at net/wireless/sme.c:797 cfg80211_roamed+0x8c/0x90 [cfg80211]()
[ 100.205579] Modules linked in: uhid bnep btusb bluetooth nls_cp437 vfat fat intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm iTCO_wdt
iTCO_vendor_support lib80211_crypt_tkip applesmc input_polldev wl(PO) microcode pcspkr joydev lib80211 mousedev bcm5974 cfg80211 i2c_i801 rfkill lpc_ich
snd_hda_codec_hdmi snd_hda_codec_cirrus snd_hda_intel snd_hda_codec snd_hwdep spi_pxa2xx_platform snd_pcm mei_me snd_page_alloc mei apple_bl snd_timer evdev battery ac
snd shpchp soundcore processor loop ext4 crc16 mbcache jbd2 hid_generic usb_storage hid_apple hid_roccat_pyra hid_roccat hid_roccat_common usbhid hid dm_crypt dm_mod
sd_mod crct10dif_pclmul crct10dif_common crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd ahci libahci
[ 100.205624] libata xhci_hcd scsi_mod usbcore usb_common i915 video button i2c_algo_bit intel_agp intel_gtt drm_kms_helper drm i2c_core
[ 100.205635] CPU: 0 PID: 250 Comm: wl_event_handle Tainted: P W O 3.13.6-1-ARCH #1
[ 100.205637] Hardware name: Apple Inc. MacBookAir6,2/Mac-7DF21CB3ED6977E5, BIOS MBA61.88Z.0099.B07.1311121319 11/12/2013
[ 100.205638] 0000000000000009 ffff88025ed8fdd0 ffffffff81513274 0000000000000000
[ 100.205641] ffff88025ed8fe08 ffffffff81061a3d ffff88007fd77000 ffff880261e1d480
[ 100.205644] 0000000000000097 ffff88025fa8bb00 ffff88007fd709f8 ffff88025ed8fe18
[ 100.205647] Call Trace:
[ 100.205654] [<ffffffff81513274>] dump_stack+0x4d/0x6f
[ 100.205659] [<ffffffff81061a3d>] warn_slowpath_common+0x7d/0xa0
[ 100.205663] [<ffffffff81061b1a>] warn_slowpath_null+0x1a/0x20
[ 100.205669] [<ffffffffa072494c>] cfg80211_roamed+0x8c/0x90 [cfg80211]
[ 100.205682] [<ffffffffa0945c6c>] wl_notify_roaming_status+0xac/0x130 [wl]
[ 100.205691] [<ffffffffa0942ab5>] wl_event_handler+0x55/0x1f0 [wl]
[ 100.205700] [<ffffffffa0942a60>] ? wl_deinit_priv_mem+0xa0/0xa0 [wl]
[ 100.205705] [<ffffffff810835b2>] kthread+0xd2/0xf0
[ 100.205709] [<ffffffff810834e0>] ? kthread_create_on_node+0x180/0x180
[ 100.205712] [<ffffffff815215fc>] ret_from_fork+0x7c/0xb0
[ 100.205715] [<ffffffff810834e0>] ? kthread_create_on_node+0x180/0x180
[ 100.205717] ---[ end trace 5404056d00cab03d ]---
Scanning works however.
Is this a known issue with the broadcom-wl driver?
]]>That said, the broadcom-wl package installs the wl.ko to the extramodules directory, so it can potentially be used by by the kernel for the entire minor version. So you shouldn't have to rebuild absolutely every time.
I have taken the broadcom-wl PKGBUILD and supporting file and changed the source path to point to the file in the same directory (rather than downloading it from the site). Then I just pack it up into a src.tar.gz with 'makepkg -S' and keep that. That way, if I reboot and realize that the wl.ko is no longer compatible, I have all that I need to rebuild without network connectivity.
]]>Ephexeve wrote:Is it normal when updating linux/linux-headers broadcom-wl won't work? Everytime after an update I restart the system and broadcom-wl doesn't work, so I have o re-install broadcom-wl from aur!
This is the reason why I had to stop using Arch in my notebook.:\ This driver tired me.
Any news about this?
Thanks in advance.
]]>cfg80211: Calling CRDA to update world regulatory domain
and shortly after that:
[ 1092.582046] WARNING: at net/wireless/sme.c:631 cfg80211_roamed+0x9a/0xa0 [cfg80211]()
[ 1092.582050] Hardware name: Aspire V3-571G
[ 1092.582052] Modules linked in: fuse michael_mic arc4 ecb nvram bbswitch(O) bnep bluetooth uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media snd_hda_codec_hdmi snd_hda_codec_realtek coretemp joydev nvidia(PO) kvm_intel kvm snd_hda_intel snd_hda_codec lib80211_crypt_tkip wl(PO) iTCO_wdt snd_hwdep snd_pcm snd_page_alloc snd_timer snd i915 soundcore iTCO_vendor_support crc32c_intel ghash_clmulni_intel i2c_i801 acer_wmi lib80211 cfg80211 aesni_intel tg3 intel_agp intel_gtt drm_kms_helper drm sparse_keymap mei libphy lpc_ich aes_x86_64 i2c_algo_bit aes_generic i2c_core psmouse rfkill ablk_helper evdev ac battery video serio_raw button wmi cryptd microcode loop acpi_cpufreq mperf processor ext4 crc16 jbd2 mbcache sd_mod sr_mod cdrom ahci xhci_hcd libahci libata ehci_hcd sdhci_pci
[ 1092.582134] sdhci scsi_mod usbcore mmc_core usb_common
[ 1092.582145] Pid: 280, comm: wl_event_handle Tainted: P W O 3.6.2-1-ARCH #1
[ 1092.582148] Call Trace:
[ 1092.582161] [<ffffffff81055c2f>] warn_slowpath_common+0x7f/0xc0
[ 1092.582167] [<ffffffff81055c8a>] warn_slowpath_null+0x1a/0x20
[ 1092.582183] [<ffffffffa039565a>] cfg80211_roamed+0x9a/0xa0 [cfg80211]
[ 1092.582202] [<ffffffffa050d8a4>] wl_notify_roaming_status+0xb4/0x130 [wl]
[ 1092.582216] [<ffffffffa050e375>] wl_event_handler+0x55/0x1f0 [wl]
[ 1092.582229] [<ffffffffa050e320>] ? wl_cfg80211_scan+0x490/0x490 [wl]
[ 1092.582236] [<ffffffff81079693>] kthread+0x93/0xa0
[ 1092.582242] [<ffffffff81490dc4>] kernel_thread_helper+0x4/0x10
[ 1092.582248] [<ffffffff81079600>] ? kthread_freezable_should_stop+0x70/0x70
[ 1092.582252] [<ffffffff81490dc0>] ? gs_change+0x13/0x13
[ 1092.582255] ---[ end trace 65c0b2386e064731 ]---cfg80211
Maybe somebody will find it useful. I solved the problem by disabling cfg80211 wireless configuration api and enabling wext api by adding "API=WEXT" just after make command in broadcom-wl PKGBUILD from AUR.
Actually it's still unreliable and keeps loosing connection. Maybe just not as often as before and there are no errors at all in dmesg but i's still not good at all.
SOLVED
Solved by disabling N capabilities on the router (Huawei hg523a).
I never had problems with broadcom-wl until now after I have upgraded the package with the latest version from AUR.
Some info:
# lspci |grep Broadcom 04:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01) # # modprobe wl # dmesg|tail -2 [90014.533187] INFO @wl_cfg80211_attach : Registered CFG80211 phy [90014.533352] wlan0: Broadcom BCM4727 802.11 Hybrid Wireless Controller 5.100.82.112 # # lsmod|grep wl wl 2558087 0 cfg80211 177058 1 wl lib80211 3949 2 wl,lib80211_crypt_tkip # # rfkill list 2: phy0: Wireless LAN Soft blocked: no Hard blocked: no # # ifconfig wlan0 wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether 60:d8:19:a8:fc:1f txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 16 # # iwconfig wlan0 wlan0 IEEE 802.11abg ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=200 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:off # # iwlist wlan0 scan wlan0 Interface doesn't support scanning : Invalid argument # # dmesg|tail -1 [90094.001050] ERROR @__wl_cfg80211_scan : WLC_SCAN error (-22) #
As you can see scanning does not work for some reason. I have googled this error, but did not find anything useful.
The native drivers (b43,brcmsmac etc.) are also all disabled. I have also tried downgrading kernel for several versions, but the result is the same. Hence I think it is not kernel related. Also tried to find any older broadcom-wl package, but was unsucessful.