Difference between revisions of "RockpiE/Debian"
(→WIFI Connection) |
|||
Line 76: | Line 76: | ||
* Test WIFI perpormance by tool iperf. | * Test WIFI perpormance by tool iperf. | ||
+ | |||
+ | === Bluetooth === | ||
+ | |||
+ | Update necessary packages | ||
+ | |||
+ | $ sudo apt-get update | ||
+ | $ sudp apt-get install -y rockchip-overlay | ||
+ | $ sudo apt-get install -y linux-4.4-rockpie-latest # kernel version(>=4.4.194-7-rockchip) | ||
+ | $ sudo apt-get install -y realtek-bt-firmware bluez | ||
+ | |||
+ | Check Bluetooth service | ||
+ | |||
+ | $ systemctl status bluetooth | ||
+ | |||
+ | Run Bluetooth service if the Bluetooth service is inactive. | ||
+ | |||
+ | $ systemctl start bluetooth | ||
+ | |||
+ | Start realtek-btfw-load service | ||
+ | |||
+ | $ systemctl start realtek-btfw-load | ||
+ | |||
+ | Check Bluetooth device | ||
+ | |||
+ | $ hciconfig | ||
+ | hci0: Type: Primary Bus: USB | ||
+ | BD Address: 74:EE:2A:55:23:F7 ACL MTU: 1021:8 SCO MTU: 255:12 | ||
+ | UP RUNNING | ||
+ | RX bytes:40357 acl:34 sco:0 events:814 errors:0 | ||
+ | TX bytes:216782 acl:379 sco:0 commands:101 errors:0 | ||
+ | |||
+ | Example: Connect to Bluetooth Speaker. | ||
+ | |||
+ | Change to root mode. | ||
+ | |||
+ | $ sudo su | ||
+ | |||
+ | Install pulseaudio packages | ||
+ | |||
+ | # apt-get install -y pulseaudio-module-bluetooth pulseaudio | ||
+ | |||
+ | Run pulseaudio | ||
+ | |||
+ | # pulseaudio --start | ||
+ | |||
+ | Connect using bluetoothctl | ||
+ | |||
+ | # bluetoothctl | ||
+ | [bluetooth]# default-agent | ||
+ | [bluetooth]# power on | ||
+ | [bluetooth]# scan on | ||
+ | [bluetooth]# trust 77:EC:79:4F:6B:AC | ||
+ | [bluetooth]# pair 77:EC:79:4F:6B:AC | ||
+ | [bluetooth]# connect 77:EC:79:4F:6B:AC | ||
+ | |||
+ | Play songs and enjoy it. | ||
=== Changelogs === | === Changelogs === |
Revision as of 09:14, 29 February 2020
ROCK Pi E > Debian
Contents
Work with ROCK Pi E Debian
Introduction to ROCK Pi E Debian
ROCK Pi E Debian is an easy to use desktop system. While working with ROCK Pi E Debian, you will find it do well on playing music, playing video, Internet, Bluetooth and so on.
ROCK Pi E Debian uses systemd to manage system.
Here Need a USB to TTL serial cable. Or use SSH.
Debian Default User Account
Non-root User:
User Name : rock Password : rock
Install and update necessary packages
Add Radxa APT, see Radxa APT.
Install packages;
$ sudo apt-get update $ sudo apt-get install -y rockchip-overlay $ sudo apt-get install -y linux-4.4-latest
Install xfce4 desktop
$ sudo apt-get install -y xfce4 $ sudo apt-get install -y xfce4-goodies task-xfce-desktop lightdm dialog tango-icon-theme
Network Connection
There are two methods for network connection. One is Ethernet and the other is WIFI.
Ethernet Connection
ROCK Pi E provides dual ethernets. You can use two network cables at the same time to connect your ROCK Pi E to the network. The ROCK Pi E will automatically configure the network for your surfing on the Internet.
To test the Ethernet, we need to follow the steps:
- Switch to super user mode by command
$ sudo su
- Check whether the Ethernet is normal by command, ifconfig, which would show us two network cards, eth0 and eth1, and the Ethernet IP address. Also, use tool, ping, to connect to a normal domain.
$ ifconfig $ ping -I eth0 www.baidu.com $ ping -I eth1 www.baidu.com
WIFI Connection
When there is not a network cable for your ROCK Pi E the WIFI connection is another good choice. ROCK Pi E supports 2.4G WIFI wireless network.
To test the WIFI performance, we need to follow the steps:
- Switch to super user mode
$ sudo su
- Open the WIFI
$ nmcli r wifi on
- Scan WIFI
$ nmcli dev wifi
- Connect to WIFI network
$ nmcli dev wifi connect "wifi_name" password "wifi_password"
- Test WIFI perpormance by tool iperf.
Bluetooth
Update necessary packages
$ sudo apt-get update $ sudp apt-get install -y rockchip-overlay $ sudo apt-get install -y linux-4.4-rockpie-latest # kernel version(>=4.4.194-7-rockchip) $ sudo apt-get install -y realtek-bt-firmware bluez
Check Bluetooth service
$ systemctl status bluetooth
Run Bluetooth service if the Bluetooth service is inactive.
$ systemctl start bluetooth
Start realtek-btfw-load service
$ systemctl start realtek-btfw-load
Check Bluetooth device
$ hciconfig hci0: Type: Primary Bus: USB BD Address: 74:EE:2A:55:23:F7 ACL MTU: 1021:8 SCO MTU: 255:12 UP RUNNING RX bytes:40357 acl:34 sco:0 events:814 errors:0 TX bytes:216782 acl:379 sco:0 commands:101 errors:0
Example: Connect to Bluetooth Speaker.
Change to root mode.
$ sudo su
Install pulseaudio packages
# apt-get install -y pulseaudio-module-bluetooth pulseaudio
Run pulseaudio
# pulseaudio --start
Connect using bluetoothctl
# bluetoothctl [bluetooth]# default-agent [bluetooth]# power on [bluetooth]# scan on [bluetooth]# trust 77:EC:79:4F:6B:AC [bluetooth]# pair 77:EC:79:4F:6B:AC [bluetooth]# connect 77:EC:79:4F:6B:AC
Play songs and enjoy it.