Unable to activate wifi on Linux - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32) +---- Forum: Wifi/BT Module (https://forum.pine64.org/forumdisplay.php?fid=33) +---- Thread: Unable to activate wifi on Linux (/showthread.php?tid=2119) Pages:
1
2
|
Unable to activate wifi on Linux - smouton - 08-30-2016 Hello everyone I installed Ubuntu distribution from Pine64 site. Everything worked fine until I tried to get wifi running: I'm unable to activate it
Code: dmesg |grep wlan Any idea of what I could check (or where I went wrong)? Best Regards RE: Unable to activate wifi on Linux - pfeerick - 08-30-2016 I don't have my pine64 running atm, so I can't check on that wifi message, which may or may not be normal. On the premise that it's not normal, I would check if the module is plugged in the right way around... it isn't symetrial... the row of pins on one side is longer than the other, so there is a 'right way around' and 'wrong way around'. Other than that, it may be worth running the uboot and kernel update scripts to make sure everything is up to date there. As a root user (eg. sudo -i) run the following commands to grab and run the lastest version of longsleeps update scripts: Code: bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_uboot.sh) Have you enabled wlan0 in /etc/network/interfaces, and configured it yet? RE: Unable to activate wifi on Linux - smouton - 08-31-2016 Well in fact it works ... Simply iwconfig tool is not installed by default in Ubuntu longsleep image Here is the way to activate wifi: sudo apt-get install wireless-tools iwconfig sudo ifup wlan0 sudo iwconfig wlan0 essid "Use this one Mom" # wpa_passphrase essid pwd > /etc/wpa_supplicant.conf sudo wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant.conf sudo dhclient wlan0 Hope it may help others RE: Unable to activate wifi on Linux - pfeerick - 08-31-2016 Glad it's all working now! I never bother with iwconfig unless there is something wrong that needs diagnosing... I just make sure the /etc/network/interfaces has something like this in it... Code: auto wlan0 and in /etc/wpa_supplicant/wpa_supplicant.conf I have (at a minimum) Code: network={ and wireless comes up on reboot or with 'sudo ifup wlan0' ... but there's more than one way to skin a cat. Thanks for posting the steps for other people. More ways you know how to do it the better... then you can pick which way you prefer! Pete (08-31-2016, 01:48 PM)smouton Wrote: Well in fact it works ... RE: Unable to activate wifi on Linux - cr2016 - 09-17-2016 (08-31-2016, 01:48 PM)smouton Wrote: Well in fact it works ... I would like to try that! Could you please confirm that the only 2 parameters are: 1. "Use this one Mom" for the essid name, 2. 'pwd' in the 5th line for the wpa password RE: Unable to activate wifi on Linux - MarkHaysHarris777 - 09-17-2016 These are the commands you'll find useful with manual wifi config : ip link set wlan0 up ip link show wlan0 iw dev wlan0 scan | less iw dev wlan0 link wpa_supplicant -D nl80211 -i wlan0 -c <(wpa_passphrase "the ssid" "the passphrase" ) & dhcpcd wlan0 (hope you find these useful) RE: Unable to activate wifi on Linux - dkebler - 02-19-2018 I'm running auyufan latest stable with updated kernal. on a Rev B board
wlan0 Link encap:Ethernet HWaddr 34:c3:d2:e4:38:ce UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wlan1 Link encap:Ethernet HWaddr 36:c3:d2:e4:38:ce UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Showing two (with different MAC addresses) is pretty weird considering there is only one adaptor in the module. BTW I disconnected the module to confirm the two only appear together when the module is connected. This weirdness seems related to my woes. Also the BT part of the module is working fine. So whichever of the the two is the "real" adapter neither of these can I get working (with Network Manager). I do get the same "missing power" for both. Ifup doesn't give any error and Network Manager is set to "managed=true" but still the wlan(s) is greyed in NM. So I tried doing things manually ip link set wlan0 up returns no error ip link show wlan0 wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000 link/ether 34:c3:d2:e4:38:ce brd ff:ff:ff:ff:ff:ff wpa_supplicant -D nl80211 -i wlan0 -c <(wpa_passphrase "" "" ) & dhcpcd wlan0 Successfully initialized wpa_supplicant nl80211: deinit ifname=wlan0 disabled_11b_rates=0 wlan0: Failed to initialize driver interface ----------------- more suggestions please. I've tried all on this thread and also those related to gettting WIFI on network manager working. http://thesave.altervista.org/2014/02/network-manager-applet-for-mate-desktop-installing-it-right/ RE: Unable to activate wifi on Linux - dkryder - 02-19-2018 i think the MAC addresses are generated by the system and as such neither is the actual board. but are you concerned about wifi not showing or 2 ethernet ? RE: Unable to activate wifi on Linux - dkebler - 02-19-2018 So turns out the module does have two adapters. The default solution was to disable one (wlan1)which was done in the interfaces.d folder But this via the old (pre systemd) networking service which one disables when using NetworkManger or systemd-networkd. So when I did that I saw the second one wlan1. So I did disable wlan1 (unmanage it) in network manager but I still can't get wlan0 (via network manager) to look for available networks so I can connect. Code: pine64@pine64:~$ nmcli dev So either my wifi module is bad or I am missing some settings in network manager. using 'ip' I get this Code: pine64@pine64:~$ sudo ip link set wlan0 up the NM applet shows for wlan0 just "disconnected" instead of available networks Anyone been down the wifi module, ayufan latest stable, network manager rabbit hole and know what I am missing here. I'm going with a bad radio (sadly) at this point as adaptor itself seems ok and "up" --------------------- btw now I don't see wlan1 since it's unmanaged (down) Code: eth0 Link encap:Ethernet HWaddr 3e:b6:98:a9:76:df RE: Unable to activate wifi on Linux - dkebler - 02-19-2018 Well, it's not a hardware/radio issue as I burned an android version and booted that and I can connect via wifi no issue. So that brings it down to ayufan's image/kernal and/or the settings for network manger/linux as creating my issue. |