Jump to content

WiFi on BPI M2 plus


Dmitriy Zhuk

Recommended Posts

        Hello, guys.

I use debian server version for my board.

But I can't use WiFi to connect my router.

I have tried wpa_supplicat, but no result.

I used many resources for information, such as

https://www.blackmoreops.com/2014/09/18/connect-to-wifi-network-from-command-line-in-linux/

https://unix.stackexchange.com/questions/283722/how-to-connect-to-wifi-from-command-line

Maybe, I do something wrong.

Can you help me please?

Link to comment
Share on other sites

We are not clairvoyant or mind readers :P Please describe your setup as best as possible so we know what your operating environment is like.

 

  1. Name of your board:
  2. Name of the image you installed:
  3. Logs, when you can boot the board: armbianmonitor -u (paste URL to your forum post)
  4. If your board does not boot, provide a log from serial console (UART) or at least make and attach a picture, where it stops.
  5. Describe the problem the best you can and provide all necessary info that we can reproduce the problem.
Link to comment
Share on other sites

Thank you for answer and help in advance.

 

My board is Banana Pi M2 Plus.

Name of image is ARMBIAN 5.33 user-built Debian GNU/Linux 8 (jessie) 3.4.113-sun8i

There is log link: http://sprunge.us/fFSg

About my problem.

I try to connect board to my WiFi router.

My steps are following:

1.

root@bananapim2plus:~# wpa_passphrase Home MY_PASSWORD > /etc/wpa_supplicant.conf

2.

I modified /etc/network/interfaces for enabling WiFi:

 

 

source /etc/network/interfaces.d/*
# Wired adapter #1

allow-hotplug eth0

#no-auto-down eth0

iface eth0 inet dhcp

#address 192.168.0.100

#netmask 255.255.255.0

#gateway 192.168.0.1

#dns-nameservers 8.8.8.8 8.8.4.4

# 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

# Armbian ships with network-manager installed by default. To save you time

# and hassles consider using 'sudo nmtui' instead of configuring Wi-Fi settings

# manually. The below lines are only meant as an example how configuration could

# be done in an anachronistic way:

#

#allow-hotplug wlan0

auto wlan0

iface wlan0 inet dhcp

#address 192.168.0.100

#netmask 255.255.255.0

#gateway 192.168.0.1

#dns-nameservers 8.8.8.8 8.8.4.4

wpa-conf /etc/wpa_supplicant.conf

# Disable power saving on compatible chipsets (prevents SSH/connection dropouts over WiFi)

#wireless-mode Managed

#wireless-power off


# Local loopback

auto lo

iface lo inet loopback

3.

Rebooting the device.

 

After it, my device is obtaining IP address, for example 169.254.11.71

But a result, there is no internet connection.

I made ping 8.8.8.8

But answer is “Destination Host Unreachable”

How can I connect my board to the internet?

Link to comment
Share on other sites

37 minutes ago, Dmitriy Zhuk said:

How can I connect my board to the internet?

 

Normally I would say: by following our documentation and that's using 'nmtui-connect' and stop to fiddle around with weird files and configurations. The log you provided (thank you) though looks a bit suspicious. So I would advise to revert all changes you did to /etc/network/interfaces (at least remove everything wlan0 related), reboot, check your AP whether it tried to play 'security by obscurity' (MAC address filter) and then simply use nmtui-connect and use Wi-Fi.

 

BTW: You connected an antenna already?

Link to comment
Share on other sites

2 minutes ago, Dmitriy Zhuk said:

But I need method without any dialogues.

 

Easy, just accept that the way primitive SBC distros do all their stuff is weird/anachronistic. Check /etc/NetworkManager/system-connections -- you define stuff with NM and then deploy profiles.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines