Difference between revisions of "Template:Allwinner-APmode"

From FriendlyELEC WiKi
Jump to: navigation, search
(配置WiFi无线热点)
(updated by API)
Line 1: Line 1:
<!--待翻译为英文-->
+
===Setup Wi-Fi AP===
===Setup WiFi 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 onboard AP6xxx WiFi IC you can enter AP mode by running the following commands:<br />
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo turn-wifi-into-apmode yes
 
sudo turn-wifi-into-apmode yes
 
</syntaxhighlight>
 
</syntaxhighlight>
You will be prompted to enter your WiFi hotspot's name and password. Follow the prompt to proceed.<br />
+
After you uninstall the NetworkManager reboot your board.<br />
After it succeeds you will be able to find this hotspot and login to your board at 192.168.8.1:
+
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 />
 +
<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>
The password is fa <br />
+
Type in a password. In our system the password is "fa".<br />
 
<br />
 
<br />
To speed up SSH login you can turn off WiFi by running the following command:
+
To login smoothly via SSH we recommend you turning off WIFI's power save mode by running the following commands:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo iwconfig wlan0 power off
 
sudo iwconfig wlan0 power off
 
</syntaxhighlight>
 
</syntaxhighlight>
To switch back to Station mode run the following command:<br />
+
You can check your WiFi's mode by running 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 07:32, 29 January 2018

Setup Wi-Fi AP

Follow the steps below. Since our OS image by default already has the NetworkManager utility you will be prompted to uninstall it first:

sudo turn-wifi-into-apmode yes

After you uninstall the NetworkManager reboot your board.
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

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:

ssh root@192.168.8.1

Type in a password. In our system the password is "fa".

To login smoothly via SSH we recommend you turning off WIFI's power save mode by running the following commands:

sudo iwconfig wlan0 power off

You can check your WiFi's mode by running the following command:

sudo cat /sys/module/bcmdhd/parameters/op_mode

Number 2 means your WiFi is in AP mode. You can switch to the Station mode by running the following command:

sudo turn-wifi-into-apmode no