You are not logged in.
Currently having issues with Arch, Broadcom, and WiFi playing nicely together. I'm fairly positive I have the right driver (brcmsmac) for my card (BCM43224) running, but wifi-menu fails and dhcpcd times out. What else should I look at to get things up and running?
Last edited by natar (2013-07-29 00:39:07)
Offline
Can you please post the output of
lspci -nn -vv |grep Broadcom?
Offline
Sure. It's
02:00.0 Network controller [0280]: Broadcom Corporation BCM43224 802.11a/b/g/n [14e4:4353] (rev 01) I've generated a netctl config with wifi-menu, tried manual setup with wpa_supplicant, etc. as well but still no network connection. I feel like I'm missing out on something basic but I've been unable to figure out what.
Offline
Your card is supported by the b43 module as well I think. Maybe you should try using that instead. Others have told me that it works pretty well.
I have a brcm43228, and unfortunately it is only supported by the wl module. I mean, it works really well with it, but I wish I didn't have to rely on the proprietary module for my card. Though using the b43 module means that you end up using the b43-firmware package (in the AUR). So you are using the same binary blob as the wl module... so I guess that solution is partially proprietary as well. But at least the b43 module itself is an in-tree module.
Offline
I also tried blacklisting the bcma module, but then wlp2s0 wasn't available with
ip addrAnd when I ran
modprobe brcmsmacbcma was loaded as the kernel module for the broadcom card(??)
lspci -k
...
Network controller: Broadcom Corporation BCM43224
Subsystem: Apple Inc. AirPort Extreme
Kernel driver in use: bcma-pci-bridge
Kernel modules: bcmaSame thing with b43, as well. Is there any way to manually load the brcmsmac module instead?
Last edited by natar (2013-07-27 02:58:50)
Offline
Like most things, modules have dependencies. So if you check out the output of "modinfo brcmsmac | grep depends" you will see that the bcma module is included. If you specify the module in the blacklist, it will not load the module explicity, but that doesn't mean that it cannot be loaded whatsoever. It can be overridden by another module being loaded which depends on it, or by the administrator (you) doing it manually.
If you want to ensure that a module will never get loaded, you can alias it to /dev/null. But this is not at all what you want in this case. I believe you do want it to be blacklisted so that it is not loaded automatically before the other... but I am not positive on that.
Offline
I understand that bcma is a dependency of brcmsmac, but what I'm not getting is why, when I manually load brcmsmac, bcma is the module used to drive the broadcom card.
After more detailed trial and error, I'm getting a timeout error when running dchpcd ("waiting for carrier"). I tried clearing the dchpcd leases in /var/lib/dhcpcd/ too. The error when I run wifi-menu is this:
network[1359]: Line 8: failed to parse network block
network[1359]: Failed to read or parse configuration '/run/network/wpa_supplicant_wlp2s0.conf'.
network[1350]: The WPA supplicant did not start for interface 'wlp2s0'
network[1359]: Failed to bring the network up for profile 'wlp2s0-Claremont-ETC'
systemd[1]: netctl@wlp2s0\x2dClaremont\x2dETC.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Failed to start Automatically generated profile by wifi-menu.
-- Subject: Unit netctl@wlp2s0\x2dClaremont\x2dETC.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit netctl@wlp2s0\x2dClaremont\x2dETC.service has failed.
--
-- The result is failed.What's weird is that the generated config file from wifi-menu is actually living in /etc/netctl/, not /run/network/ ...any ideas?
Offline
Have you tried the b43 module like I suggested earlier? As a broadcom user, you have three choices (also as I pointed out earlier), so maybe you shold try the others.
The netctl profiles (generated by wifi-menu) are supposed to be in /etc/netctl... I'm not sure why you would have thought they should be in /run/network. This is clearly outlined in the netctl.profile man page, as well is in our wiki.
Offline
Yes, I tried that to the same error message as above. Also, you misunderstood my last post. I'm confused as to why the ERROR is looking for a .conf file in /run/network. It's been generated to /etc/netctl and I've verified that it's there. I think this is the source of my problem, but I don't know how to tell wifi-menu to stop looking there.
Offline
Oh it is because netctl uses wpa_supplicant. So it creates a temporary wpa_supplicant.conf in the /run/network directory by parsing the config, which it uses to run the wpa_supplicant daemon. Sorry about my confusion there. This is normal and it is supposed to be looking there.
Have you tried a different method of connecting? I think it would be good to see if you can get a connection going manually. That is, by using wpa_passphrase to create a config, then running that config with wpa_supplicant. Then once that is going and the access point is associated, then use dhcpcd to get an IP (or set a static address if that is what your network calls for). When you think you have issues with a given tool, it is always a good idea to either try a different tool, or resort to the most basic of tools to see if you can get it working.
Offline
Ah, that makes sense.
I also tried...
# ip link set wlp2s0 up
# iw config wlp2s0 essid "XXXXXX" key s:xxxxxx
# dhcpcd wlp2s0...but still time out when dhcpcd is waiting for a carrier. Huh. I don't think it's a driver issue at this point but I don't know what else the problem could be.
Offline
Wait, so are you using WPA or WEP? With WEP, you are able to use iw or iwconfig to associate. But if you are using WPA (or WPA2 of course) you will need to use wpa_supplicant. So first you would need to create a wpa_supplicant.conf (it can be named anything really) with wpa_passphrase.
Offline
WEP. I've even tried manually connecting to an unencrypted network with the same results. Both time out with waiting for carrier at the dhcpcd step. If I understand correctly, this means I'm failing to obtain a dhcp lease? And using wpa_supplicant is no better, unfortunately. I'm pretty stymied.
Offline
Okay, well if you have WEP, there is the possibility that you are using a hex passkey. In that case you have to use a totally different format with netctl at least. Take a look at /etc/netctl/examples/wireless-wep file. I think since WEP is so uncommon (and so totally insecure), netctl's wifi-menu has not been fixed to handle these hex keys. Though I am not sure if there is even a practical way to detect if a string or hex is in use, so it may not even be possible (apart from allowing a configuration option/flag).
Edit: Unless it is either a) not your choice, or b) something you use is really really old and requires WEP, you should really stop using WEP and switch to WPA2. In fact, unless you use WPA2-psk personal, then you can't even achieve the higher throughput levels that your machine can handle. I think that it gets throttled at 54Mb/s (unless it is using Super-G, which is just plain uncommon).
Last edited by WonderWoofy (2013-07-29 00:09:43)
Offline
WOW. Thank you for your insight. Turned out the automatically generated profile had created an incorrect key, and that the network uses a hex passkey. Editing the .conf file to reflect the netctl/examples file was the solution.
And I'm spending the summer at a school dorm, so it's either WEP or nothing if I want internet access, unfortunately.
Offline
Yeah, that is unfortunate... in any case, I'm glad you got this worked out. Please mark the thread as [Solved] which can be done by editing the first post.
Enjoy your internets!
Offline