Difference between revisions of "Template:Allwinner-APmode"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(Setup Wi-Fi AP)
Line 1: Line 1:
===Setup Wi-Fi AP===
+
===Setup Wi-Fi Hotspot===
Follow the steps below. Since our OS image by default already has the NetworkManager utility you will be prompted to uninstall it first:<br />
+
If your board has an onboard AP6xxx IC run the following command to enter AP mode:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo turn-wifi-into-apmode yes
 
sudo turn-wifi-into-apmode yes
 
</syntaxhighlight>
 
</syntaxhighlight>
After you uninstall the NetworkManager reboot your board.<br />
+
You will be prompted to type your WiFi hotspot's name and password and then proceed with default prompts.<br />
After your board is rebooted run the above commands again and you will be prompted to type in a WIFI's name and password. Type in your wanted name and password<br />
+
After this is done you will be able to find this hotspot in a neadby cell phone or PC. You can login to this board at 192.168.8.1:
<br />
+
If this is successful you will be able to find and connect your board to a WIFI. Login to your board at 192.168.8.1:
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
ssh root@192.168.8.1
 
ssh root@192.168.8.1
 
</syntaxhighlight>
 
</syntaxhighlight>
Type in a password. In our system the password is "fa".<br />
+
When asked to type a password you can type "fa".<br />
 
<br />
 
<br />
To login smoothly via SSH we recommend you turning off WIFI's power save mode by running the following commands:
+
To speed up your ssh login you can turn off your wifi by running the following command:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo iwconfig wlan0 power off
 
sudo iwconfig wlan0 power off
 
</syntaxhighlight>
 
</syntaxhighlight>
You can check your WiFi's mode by running the following command:<br />
+
To switch back to Station mode run the following command:<br />
<syntaxhighlight lang="bash">
+
sudo cat /sys/module/bcmdhd/parameters/op_mode
+
</syntaxhighlight>
+
Number 2 means your WiFi is in AP mode. You can switch to the Station mode by running the following command:<br />
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo turn-wifi-into-apmode no
 
sudo turn-wifi-into-apmode no
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 06:10, 30 January 2018

Setup Wi-Fi Hotspot

If your board has an onboard AP6xxx IC run the following command to enter AP mode:

sudo turn-wifi-into-apmode yes

You will be prompted to type your WiFi hotspot's name and password and then proceed with default prompts.
After this is done you will be able to find this hotspot in a neadby cell phone or PC. You can login to this board at 192.168.8.1:

ssh root@192.168.8.1

When asked to type a password you can type "fa".

To speed up your ssh login you can turn off your wifi by running the following command:

sudo iwconfig wlan0 power off

To switch back to Station mode run the following command:

sudo turn-wifi-into-apmode no