Difference between revisions of "Template:FriendlyCoreGeneral"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
Line 76: Line 76:
  
 
===WiFi===
 
===WiFi===
 +
无论是SD WiFi还是USB WiFi, 它们的连接方式都是一样的。正基科技的APXX系列芯片属于SD WiFi,另外系统默认也已经支持市面上众多常见的USB WiFi,已测试过的USB WiFi型号如下:
 +
::{| class="wikitable"
 +
|-
 +
|序号||型号     
 +
|-
 +
|1  ||  RTL8188CUS/8188EU 802.11n WLAN Adapter   
 +
|-
 +
|2  ||  RT2070 Wireless Adapter   
 +
|-
 +
|3  ||  RT2870/RT3070 Wireless Adapter
 +
|-
 +
|4  ||  RTL8192CU Wireless Adapter
 +
|-
 +
|5  ||  mi WiFi mt7601
 +
|}
 +
 
You can use the NetworkManager utility in FriendlyCore to manage its network. You can run "nmcli" in the commandline utility to start it. Here are the commands to start a WiFi connection:
 
You can use the NetworkManager utility in FriendlyCore to manage its network. You can run "nmcli" in the commandline utility to start it. Here are the commands to start a WiFi connection:
 
* Check device list
 
* Check device list
Line 102: Line 118:
 
For more details about NetworkManager refer to this link: [[Use NetworkManager to configure network settings]]<br />
 
For more details about NetworkManager refer to this link: [[Use NetworkManager to configure network settings]]<br />
  
* Use USB WiFi
+
<!--带WiFi和BT的APXX芯片的板子-->
Our OS system has support for popular USB WiFi drivers. Many USB WiFi modules are plug and play with our system. Here is a list of models we tested;
+
::{| class="wikitable"
+
|-
+
|Number||Model     
+
|-
+
|1  ||  RTL8188CUS 802.11n WLAN Adapter   
+
|-
+
|2  ||  RT2070 Wireless Adapter   
+
|-  
+
|3  ||  RT2870/RT3070 Wireless Adapter
+
|-
+
|4  ||  RTL8192CU Wireless Adapter
+
|-
+
|5  ||  mi WiFi mt7601
+
|}
+
 
+
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
  | NanoPi-M1-Plus = {{Allwinner-APmode}}<br>
+
  | NanoPi-M1-Plus =
  | NanoPi-NEO-Air = {{Allwinner-APmode}}<br>
+
{{Allwinner-APmode}}
  | NanoPi-NEO-Plus2 = {{Allwinner-APmode}}<br>
+
{{Linux-Bluetooth}}
  | NanoPC-T2 = {{S5Pxx18-APmode}}<br>
+
  | NanoPi-NEO-Air =
  | NanoPC-T3 = {{S5Pxx18-APmode}}<br>
+
{{Allwinner-APmode}}
  | NanoPC-T3-Plus = {{S5Pxx18-APmode}}<br>
+
{{Linux-Bluetooth}}
  | NanoPi2 = {{S5Pxx18-APmode}}<br>
+
  | NanoPi-NEO-Plus2 =
  | NanoPi_K2 = {{S5Pxx18-APmode}}<br>
+
{{Allwinner-APmode}}
  | NanoPi_M3 = {{S5Pxx18-APmode}}<br>
+
{{Linux-Bluetooth}}
 +
  | NanoPC-T2 =
 +
{{S5Pxx18-APmode}}
 +
{{Linux-Bluetooth}}
 +
  | NanoPC-T3 =
 +
{{S5Pxx18-APmode}}
 +
{{Linux-Bluetooth}}
 +
  | NanoPC-T3-Plus =
 +
{{S5Pxx18-APmode}}
 +
{{Linux-Bluetooth}}
 +
  | NanoPi2 =
 +
{{S5Pxx18-APmode}}
 +
{{Linux-Bluetooth}}
 +
  | NanoPi_K2 =
 +
{{S5Pxx18-APmode}}
 +
{{Linux-Bluetooth}}
 +
  | NanoPi_M3 =
 +
{{S5Pxx18-APmode}}
 +
{{Linux-Bluetooth}}
 
}}
 
}}
  

Revision as of 08:20, 9 April 2018

1 Work with FriendlyCore

1.1 Introduction

FriendlyCore is a light Linux system without X-windows, based on ubuntu core, It uses the Qt-Embedded's GUI and is popular in industrial and enterprise applications.

Besides the regular Ubuntu core's features our FriendlyCore has the following additional features:

  • it supports our LCDs with both capacitive touch and resistive touch(S700, X710, HD702, S430, HD101 and S70)
  • it supports WiFi
  • it supports Ethernet
  • it supports Bluetooth and has been installed with bluez utilities
  • it supports audio playing
  • it supports Qt5.9 EGLES and OpenGL ES1.1/2.0 (Only for S5P4418/S5P6818)

1.2 FriendlyCore's User Accounts

  • If your board is connected to an HDMI monitor you need to use a USB mouse and keyboard.
  • If you want to do kernel development you need to use a serial communication board, ie a PSU-ONECOM board, which will allow you to operate the board via a serial terminal.Here is a setup where we connect a board to a PC via the PSU-ONECOM and you can power on your board from either the PSU-ONECOM or its MicroUSB:

For example, NanoPi-M1:
PSU-ONECOM-M1.jpg
You can use a USB to Serial conversion board too.
Make sure you use a 5V/2A power to power your board from its MicroUSB port:
For example, NanoPi-M1:
USB2UART-NEO2.jpg

  • FriendlyCore User Accounts:

Non-root User:

   User Name: pi
   Password: pi

Root:

   User Name: root
   Password: fa

The system is automatically logged in as "pi". You can do "sudo npi-config" to disable auto login.

  • Update packages
$ sudo apt-get update

1.3 Configure System with npi-config

The npi-config is a commandline utility which can be used to initialize system configurations such as user password, system language, time zone, Hostname, SSH switch , Auto login and etc. Type the following command to run this utility.

$ sudo npi-config

Here is how npi-config's GUI looks like:
npi-config

1.4 Develop Qt Application

Please refer to: How to build Qt application

1.5 Setup Program to AutoRun

You can setup a program to autorun on system boot with npi-config:

sudo npi-config

Go to Boot Options -> Autologin -> Qt/Embedded, select Enable and reboot.

1.6 Extend TF Card's Section

When FriendlyCore is loaded the TF card's section will be automatically extended.You can check the section's size by running the following command:

$ df -h

1.7 WiFi

无论是SD WiFi还是USB WiFi, 它们的连接方式都是一样的。正基科技的APXX系列芯片属于SD WiFi,另外系统默认也已经支持市面上众多常见的USB WiFi,已测试过的USB WiFi型号如下:

序号 型号
1 RTL8188CUS/8188EU 802.11n WLAN Adapter
2 RT2070 Wireless Adapter
3 RT2870/RT3070 Wireless Adapter
4 RTL8192CU Wireless Adapter
5 mi WiFi mt7601

You can use the NetworkManager utility in FriendlyCore to manage its network. You can run "nmcli" in the commandline utility to start it. Here are the commands to start a WiFi connection:

  • Check device list
sudo nmcli dev

Note: if the status of a device is "unmanaged" it means that device cannot be accessed by NetworkManager. To make it accessed you need to clear the settings under "/etc/network/interfaces" and reboot your system.

  • Start WiFi
sudo nmcli r wifi on
  • Scan Surrounding WiFi Sources
sudo nmcli dev wifi
  • Connect to a WiFi Source
sudo nmcli dev wifi connect "SSID" password "PASSWORD"

The "SSID" and "PASSWORD" need to be replaced with your actual SSID and password.If you have multiple WiFi devices you need to specify the one you want to connect to a WiFi source with iface
If a connection succeeds it will be automatically setup on next system reboot.

For more details about NetworkManager refer to this link: Use NetworkManager to configure network settings


1.8 Ethernet Connection

If a board is connected to a network via Ethernet before it is powered on it will automatically obtain an IP with DHCP activated after it is powered up. If you want to set up a static IP refer to: Use NetworkManager to configure network settings

1.9 Bluetooth

If your board has an onboard bluetooth module you can search for surrounding bluetooth devices by running the following command:

hcitool scan

You can run "hciconfig" to check bluetooth's status.

1.10 Set Audio Device

If your system has multiple audio devices such as HDMI-Audio, 3.5mm audio jack and I2S-Codec you can set system's default audio device by running the following commands.

  • After your board is booted run the following commands to install alsa packages:
$ apt-get update
$ apt-get install libasound2
$ apt-get install alsa-base
$ apt-get install alsa-utils
  • After installation is done you can list all the audio devices by running the following command. Here is a similar list you may see after you run the command:
$ aplay -l
card 0: HDMI
card 1: 3.5mm codec
card 2: I2S codec

"card 0" is HDMI-Audio, "card 1" is 3.5mm audio jack and "card 2" is I2S-Codec. You can set default audio device to HDMI-Audio by changing the "/etc/asound.conf" file as follows:

pcm.!default {
    type hw
    card 0
    device 0
}
 
ctl.!default {
    type hw
    card 0
}

If you change "card 0" to "card 1" the 3.5mm audio jack will be set to the default device.
Copy a .wav file to your board and test it by running the following command:

$ aplay /root/Music/test.wav

You will hear sounds from system's default audio device.
If you are using H3/H5/H2+ series board with mainline kernel, the easier way is using npi-config