Debian / raspi3-image-spec

contains the files to build the https://wiki.debian.org/RaspberryPi3 image
127 stars 32 forks source link

Does WiFi work for anyone? #10

Closed mweinelt closed 6 years ago

mweinelt commented 6 years ago

I installed your image in november, when we still had to drop the .txt file into the firmware directory. I'm not sure if WiFi worked back then. At least it hasn't been working this year for me.

I have wpa-supplicant running, therefore the dmesg regularly shows scan errors:

[470588.124437] brcmfmac: brcmf_do_escan: error (-110)
[470588.143795] brcmfmac: brcmf_cfg80211_scan: scan error (-110)
[470591.708470] brcmfmac: brcmf_do_escan: error (-110)
[470591.727822] brcmfmac: brcmf_cfg80211_scan: scan error (-110)
[470595.292465] brcmfmac: brcmf_do_escan: error (-110)
[470595.311820] brcmfmac: brcmf_cfg80211_scan: scan error (-110)
[470598.876516] brcmfmac: brcmf_do_escan: error (-110)
[470598.895875] brcmfmac: brcmf_cfg80211_scan: scan error (-110)
[470602.460511] brcmfmac: brcmf_do_escan: error (-110)
[470602.479881] brcmfmac: brcmf_cfg80211_scan: scan error (-110)

Commands involving the wlan0 interface are sluggish and timeout

# ip link set up dev wlan0
# dmesg -c
[470798.558989] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[470798.594003] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[470801.117704] brcmfmac: _brcmf_set_multicast_list: Setting mcast_list failed, -110
[470806.237724] brcmfmac: brcmf_set_wpa_version: set wpa_auth failed (-110)
[470806.263071] brcmfmac: brcmf_cfg80211_connect: wl_set_wpa_version failed (-110)
[470808.797740] brcmfmac: _brcmf_set_multicast_list: Setting allmulti failed, -110
[470811.357752] brcmfmac: brcmf_cfg80211_set_power_mgmt: error (-110)
[470813.917761] brcmfmac: _brcmf_set_multicast_list: Setting BRCMF_C_SET_PROMISC failed, -110
[470816.477769] brcmfmac: _brcmf_set_multicast_list: Setting mcast_list failed, -110
# iwconfig wlan0 ESSID darmstadt.freifunk.net
Error for wireless request "Set ESSID" (8B1A) :
    SET failed on device wlan0 ; Connection timed out.
# dmesg -c
[470920.670390] brcmfmac: _brcmf_set_multicast_list: Setting mcast_list failed, -110
[470923.230398] brcmfmac: _brcmf_set_multicast_list: Setting allmulti failed, -110
[470925.790421] brcmfmac: _brcmf_set_multicast_list: Setting BRCMF_C_SET_PROMISC failed, -110
[470950.623194] brcmfmac: brcmf_set_wpa_version: set wpa_auth failed (-110)
[470950.649466] brcmfmac: brcmf_cfg80211_connect: wl_set_wpa_version failed (-110)
# dpkg -l | grep firmware
ii  firmware-brcm80211            20170823-1                     all          Binary firmware for Broadcom 802.11 wireless cards
ii  firmware-linux-free           3.4                            all          Binary firmware for various drivers in the Linux kernel
ii  raspi3-firmware               1.20171201-4                   arm64        Raspberry Pi 2 and 3 GPU firmware and bootloaders
# uname -rv
4.14.0-3-arm64 #1 SMP Debian 4.14.17-1 (2018-02-14)
stapelberg commented 6 years ago

It worked for me when I tested it.

Maybe try with a fresh copy of the most recent image to make sure there’s nothing funny going on in your installation?

eustas commented 6 years ago

Installed the fresh image few hours ago - works for me.

mweinelt commented 6 years ago

Okay, works like a charm after reinstalling. Thanks!

oxwivi commented 6 years ago

Hi there, I'm having no luck with WiFi. The first time I tried to compile an image myself but it didn't even boot, and now the following are from the latest image linked on the RaspberryPi3 Debian Wiki page.

# uname -rv
4.14.0-3-arm64 #1 SMP Debian 4,14,12-2 (2018-01-06)
~# wpa_cli
[...]
Interactive mode

Could not connect to wpa_supplicant: (nil) - re-trying
~# iwlist wlan0 scan
wlan0     Interface doesn't support scanning : Network is down
~# iwconfig wlan0 essid Network key secret123
Error for wireless request "Set Encode" (8B2A) :
    invalid argument "secret123".

Anything I'm doing wrong?

mweinelt commented 6 years ago

Is wlan0 actually up?

Are you sure you want to use WEP?

oxwivi commented 6 years ago

I'm completely unfamiliar with setting up WiFi via command prompts. Is wlan0 supposed to be up by default? This is a freshly dd'd card, but according to dmesg neither wlan0 nor eth0 are up.

~# ip link set up dev wlan0
[  195.390427] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
~# dmesg | grep eth0
[    9.444303] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:ce:64:a2
[   11.452093] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   11.452093] IPv6: ADDRCONF(NETDEV_UP): eht0: link is not ready
~# dmesg | grep wlan0
[  195.390427] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
oxwivi commented 6 years ago

... I dd'd the image again... And this time, it stops at this console output:

[    8.118189] random: crng init done]

Detaching and reattaching keyboard prints corresponding output, but keyboard itself is nonresponsive.

oxwivi commented 6 years ago

Okay, dd'd third time, logged in, but same error as before: ip link set up dev wlan0 gives link not ready error.

oxwivi commented 6 years ago

Never mind, I'm sorry for wasting your time. The issue is specific to wpa_cli, using wpa_supplicant worked perfectly. It's a shame iw and friends don't work and can't scan for networks though.