I had trouble connecting wifi with Bela board. I don't really understand what happened after run the comment: id down wlan0; ifup wlan0, It shows in its report as follows:
root@bela:~# ifdown wlan0; ifup wlan0
Killed old client process
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlan0/44:a5:6e:53:b9:6d
Sending on LPF/wlan0/44:a5:6e:53:b9:6d
Sending on Socket/fallback
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlan0/44:a5:6e:53:b9:6d
Sending on LPF/wlan0/44:a5:6e:53:b9:6d
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
root@bela:~#
Here is the content in my /etc/network/interfaces:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# USB RNDIS gadget (Windows / Linux compatible)
auto usb0
iface usb0 inet static
address 192.168.6.2
netmask 255.255.255.0
network 192.168.6.0
# USB NCM gadget (macOS / Linux compatible)
auto usb1
iface usb1 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
# The loopback network interface
auto lo
iface lo inet loopback
# Ethernet
allow-hotplug eth0
iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE
# WiFi Example
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
# The lines above should work if you have a wifi interface called wlan0.
# To see the actual name of your interface, run
# ip a
# and identify it among the ones listed then replace `wlan0` above with the name of your interface
# To provide credentials to your network, run the following at the command line:
# wpa_passphrase YourNetworkName YourNetworkPassword >>/etc/wpa_supplicant/wpa_supplicant.conf
# then:
# ifdown wlan0; ifup wlan0
# where `wlan0` is the name of your interface as found above.