It took me some time to figure how to make it work, so I decided to save it for some poor soul who would need it in future. (I am a Windows guy so this stuff is a bit alien for me).
Plug your Orange PI PC into LAN. Open terminal (or SSH) with root access.
First, make sure that all packages on your board are up-to-date and install few additional ones (not sure if it is necessary, though, but it won't hurt):
tar -jxvf DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2
cd DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/
Some recipes suggest editing the file "os/linux/config.mk" in the source of the driver, but it looks like MediaTek have made the necessary changes already.
Run commands and grab some coffee while it compiles.
make
make install
Then run
modprobe mt7601Usta
Reboot. Make sure that the command:
iwconfig
now displays new network interface:
lo no wireless extensions.
tunl0 no wireless extensions.
ra0 Ralink STA
eth0 no wireless extensions.
and running
lsmod
outputs the mention of "mt7601Usta".
Now you can connect your Orange PI to WiFi network. Run
and save the generated passphrase (long string of numbers and characters that will look like this: "ebb09a6794c2500d74e433b9de4da493c......").
Make sure that neither your WiFi network's name or password contain characters which Linux bash considers "special". My password contained exclamation point, which is, and determining the cause of the problem was quite tricky. I had to "escape" it by prefixing it with backslash, like this:
password! => password\!
Edit file "/etc/network/interfaces":
editor /etc/network/interfaces
Unlike it is said in many manulas, your newly created interface will not be called "wlan0". Its name in your (our) case will be "ra0".
Add these lines on top of "/etc/network/interfaces" file:
Save the file by pressing Strl+S followed by "Y" and Ctrl+X.
Activate WiFi by running:
ifup ra0
You wll get something like this as an output:
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/ra0/00:36:76:22:b1:59
Sending on LPF/ra0/00:36:76:22:b1:59
Sending on Socket/fallback
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 9
DHCPREQUEST on ra0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.100.1
DHCPACK from 192.168.100.1
bound to 192.168.100.209 -- renewal in 11858 seconds.
If you'd run:
ifconfig -a
you will see that both wired and wireless links work simultaneously:
Now you can unplug LAN cable and reconnect your SSH to an IP address that belongs to the WiFi link you have just created.
Additionally you can remove all IPv6 functionality if your home network doesn't use it. Edit the file "/etc/sysctl.conf" and add the following lines to the bottom of it:
Question
sanja
It took me some time to figure how to make it work, so I decided to save it for some poor soul who would need it in future. (I am a Windows guy so this stuff is a bit alien for me).
I bought <$2 WiFi dongle for my new Orange PI PC from here: http://www.aliexpress.com/snapshot/7899695282.html?orderId=76846564349160
I am running latest "ARMBIAN jessie 3.4.112-sun8i". The chip was detected by the OS but didn't work: lsusb gave me this:
I tried several solutions:
Here is how to make it work.
Plug your Orange PI PC into LAN. Open terminal (or SSH) with root access.
First, make sure that all packages on your board are up-to-date and install few additional ones (not sure if it is necessary, though, but it won't hurt):
Download the driver to your Orange PI from the official MediaTek site (http://www.mediatek.com/en/downloads1/downloads/) using this command:
Unpack it with command:
Some recipes suggest editing the file "os/linux/config.mk" in the source of the driver, but it looks like MediaTek have made the necessary changes already.
Run commands and grab some coffee while it compiles.
Then run
Reboot. Make sure that the command:
now displays new network interface:
and running
outputs the mention of "mt7601Usta".
Now you can connect your Orange PI to WiFi network. Run
and save the generated passphrase (long string of numbers and characters that will look like this: "ebb09a6794c2500d74e433b9de4da493c......").
Make sure that neither your WiFi network's name or password contain characters which Linux bash considers "special". My password contained exclamation point, which is, and determining the cause of the problem was quite tricky. I had to "escape" it by prefixing it with backslash, like this:
Edit file "/etc/network/interfaces":
Unlike it is said in many manulas, your newly created interface will not be called "wlan0". Its name in your (our) case will be "ra0".
Add these lines on top of "/etc/network/interfaces" file:
Save the file by pressing Strl+S followed by "Y" and Ctrl+X.
Activate WiFi by running:
You wll get something like this as an output:
If you'd run:
you will see that both wired and wireless links work simultaneously:
Now you can unplug LAN cable and reconnect your SSH to an IP address that belongs to the WiFi link you have just created.
Additionally you can remove all IPv6 functionality if your home network doesn't use it. Edit the file "/etc/sysctl.conf" and add the following lines to the bottom of it:
Once you reboot your Orange PI, you won't see any mentions of IPv6 addresses in the output of "ifconfig -a" command.
Link to comment
Share on other sites
26 answers to this question
Recommended Posts