Hi,
I am trying to used Wifi on my Cubietruck, but I cannot get it running. Running Armbian Jessie 4.2.3 (Armbian_4.5_Cubietruck_Debian_jessie_4.2.3 - freshly installed), I changed /etc/network/interfaces according to the comments.
# Wired adapter #1
auto eth0
iface eth0 inet dhcp
# hwaddress ether # if you want to set MAC manually
# pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838
#
# Wired adapter #2
#auto eth1
# iface eth1 inet dhcp
# hwaddress ether # if you want to set MAC manually
# pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838
#
# Wireless adapter #1
auto wlan0
iface wlan0 inet dhcp
wpa-ssid MyNetwork
wpa-psk 1234123123123123a324312241234a1234215342352352
# to generate proper encrypted key: wpa_passphrase yourSSID yourpassword
#
# Local loopback
auto lo
iface lo inet loopback
When trying "ifup wlan0" afterwards, I get:
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlan0.
Doing "service networking restart" reconnects eth0, but again I get an error for wifi:
root@cubietruck:~# service networking restart
[warn] Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
[....] Reconfiguring network interfaces...Killed old client process
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/02:49:00:00:00:00
Sending on LPF/eth0/02:49:00:00:00:00
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.220.2 port 67
Stopping NTP server: ntpd.
Starting NTP server: ntpd.
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/02:49:00:00:00:00
Sending on LPF/eth0/02:49:00:00:00:00
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.220.2
DHCPACK from 192.168.220.2
Stopping NTP server: ntpd.
Starting NTP server: ntpd.
bound to 192.168.221.236 -- renewal in 1549 seconds.
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlan0.
done.
What am I doing wrong?
Thanks for your help!