Android 7.1 (Pinebook) 0.3.10-66 [Sep 19] | Android 7.1 (PINE A64(+)) 0.3.10-66 [Sep 19] | Android 7.1 (SOPINE) 0.3.10-66 [Sep 19] | Linux Images (ROCK64) 0.5.9-104 [Sep 13] | Android Images (ROCK64) 0.3.4-86 [Sep 13] | PINE64 Installer v2.0.0-beta.3 [Sep 12] | Android Images (ROCK64) 20170809 [Aug 24] | Debian Jessie LXDE (ROCK64) 20170809 [Aug 16]

Getting Started | Visit the WIKI | IRC Logs | Forum Rules/Policy


Unable to activate wifi on Linux
#1
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
  • ifconfig only displays eth0 and lo
  • lsmod shows that cfg80211 is there
In addition dmesg returns a strange message about power:

Code:
dmesg |grep wlan
[    8.267425] sunxi-wlan wlan.26: wlan_busnum (1)
[    8.272474] sunxi-wlan wlan.26: Missing wlan_power.
[    8.277918] sunxi-wlan wlan.26: wlan_power_name ((null))
[    8.283839] sunxi-wlan wlan.26: io_regulator_name (vcc-wifi-io)
[    8.290464] sunxi-wlan wlan.26: wlan_regon gpio=354  mul-sel=1  pull=-1  drv_level=-1  data=0
[    8.300002] sunxi-wlan wlan.26: wlan_hostwake gpio=355  mul-sel=6  pull=-1  drv_level=-1  data=0
[    8.309821] sunxi-wlan wlan.26: clk not config
[   13.706002] sunxi-wlan wlan.26: bus_index: 1
[   13.716752] sunxi-wlan wlan.26: check wlan io_regulator voltage: 1800000
[   14.103278] RTL871X: rtw_ndev_init(wlan0)
[   14.104519] RTL871X: rtw_ndev_init(wlan1)

Any idea of what I could check (or where I went wrong)?

Best Regards
Reply
#2
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)
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_kernel.sh)

Have you enabled wlan0 in /etc/network/interfaces, and configured it yet?
Reply
#3
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
Reply
#4
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
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

and in /etc/wpa_supplicant/wpa_supplicant.conf I have (at a minimum)

Code:
network={
ssid="YOUR_NETWORK_NAME"
psk="YOUR_NETWORK_PASSWORD"
}

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 ...
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
Reply
#5
(08-31-2016, 01:48 PM)smouton Wrote: 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

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

Blush
Reply
#6
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)
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Create a WiFi hotspot on Debian 8 JulianM 1 2,602 09-11-2017, 12:53 AM
Last Post: alex17pat
  Pine64 doesn't recognize Wifi/BT Module clobeca 3 131 07-13-2017, 08:58 PM
Last Post: MarkHaysHarris777
  Better WiFi/BT module? fonix232 17 1,053 02-13-2017, 04:38 AM
Last Post: xalius
Sad wifi direct bj_jung 2 704 12-29-2016, 10:26 AM
Last Post: happytuna
  Enabling wifi c4tich 10 1,847 12-28-2016, 02:22 PM
Last Post: workaccountbro
  WIFI & Bluetooth? 7777777 14 5,661 12-24-2016, 05:01 AM
Last Post: Toriless
  RF connector on wifi\bt board kb1qzh 1 343 12-15-2016, 06:36 PM
Last Post: tllim
  Wifi module able to share ethernet connection? Connection is unstable! cr2016 12 1,051 10-12-2016, 04:16 AM
Last Post: cr2016
  Losing WiFi Connection on Android Everytime mribunal 4 651 10-10-2016, 06:38 PM
Last Post: mribunal
  Trouble getting Wifi board to work with Remix OS Seussman71 6 3,278 07-17-2016, 11:47 PM
Last Post: grantos

Forum Jump:


Users browsing this thread: 1 Guest(s)