Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "RockpiS/Debian"

(Changelogs)
(Bluetooth)
Line 82: Line 82:
  
 
   $ sudo apt-get update
 
   $ sudo apt-get update
   $ sudp apt-get install -y rockchip-fstab rockchip-overlay
+
   $ sudp apt-get install -y rockchip-overlay
 
   $ sudo apt-get install -y linux-4.4-rockpis-latest # kernel version(>=4.4.143.27)
 
   $ sudo apt-get install -y linux-4.4-rockpis-latest # kernel version(>=4.4.143.27)
 
   $ sudo apt-get install -y rtl8723ds-firmware bluez
 
   $ sudo apt-get install -y rtl8723ds-firmware bluez
  
Check bluetooth service
+
Check Bluetooth service
  
 
   $ systemctl status bluetooth
 
   $ systemctl status bluetooth
  
Run bluetooth service
+
Run Bluetooth service if the Bluetooth service is inactive.
  
   $ etc/init.d/bluetooth start
+
   $ systemctl start bluetooth
  
Load bluetooth firmware
+
Check Bluetooth device
 
+
  $ sudo bt_load_rtk_firmware
+
 
+
Check bluetooth device
+
  
 
   $ hciconfig
 
   $ hciconfig
 
   hci0:  Type: Primary  Bus: UART
 
   hci0:  Type: Primary  Bus: UART
           BD Address: 22:22:AA:8C:2F:93 ACL MTU: 1021:8  SCO MTU: 255:12
+
           BD Address: 22:22:70:B2:10:6F ACL MTU: 1021:8  SCO MTU: 255:12
 
           UP RUNNING  
 
           UP RUNNING  
 
           RX bytes:1399 acl:0 sco:0 events:45 errors:0
 
           RX bytes:1399 acl:0 sco:0 events:45 errors:0
           TX bytes:3441 acl:0 sco:0 commands:45 errors:0
+
           TX bytes:3458 acl:0 sco:0 commands:45 errors:0
  
Example: Connect to Bluetooth Speaker
+
Example: Connect to Bluetooth Speaker.
  
Install pulseaudio packages
+
Change to root mode.
  
   $ sudo apt-get install -y pulseaudio-module-bluetooth pulseaudio
+
   $ sudo su
  
Add non-root user (here rock) to bluetooth and pluse-access group in file /etc/group
+
Install pulseaudio packages
  
   $ cat /etc/group
+
   # apt-get install -y pulseaudio-module-bluetooth pulseaudio
  ...
+
  '''bluetooth''':x:113:'''rock'''
+
  '''pulse-access''':x:115:'''rock'''
+
  ...
+
  
 
Run pulseaudio
 
Run pulseaudio
  
   $ pulseaudio --start
+
   # pulseaudio --start
  
 
Connect using bluetoothctl
 
Connect using bluetoothctl
  
   $ bluetoothctl
+
   # bluetoothctl
 
   [bluetooth]# default-agent  
 
   [bluetooth]# default-agent  
 
   [bluetooth]# power on
 
   [bluetooth]# power on

Revision as of 03:22, 19 December 2019

    ROCK Pi S >  Debian


Work with ROCK Pi S Debian

Introduction to ROCK Pi S Debian

ROCK Pi S Debian is an easy to use desktop system. While working with ROCK Pi S Debian, you will find it do well on playing music, playing video, Internet, Bluetooth and so on.

Here Need a USB to TTL serial cable, or use SSH or ADB.

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 rockchip-fstab
 $ sudo apt-get install -y linux-4.4-rockpis-latest rockpis-dtbo

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

You can use a network cable (one end connected to the external network port or route) to connect your ROCK Pi S to the network. The ROCK Pi S 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 a network card, eth0, and the Ethernet IP address. Also, use tool, ping, to connect to a normal domain.
 $ ifconfig
 $ ping www.baidu.com
  • If failed to connect to a normal domain. , try
 $ sudo dhclient eth0

WIFI Connection

When there is not a network cable for your ROCK Pi S the WIFI connection is another good choice. ROCK Pi S 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-rockpis-latest # kernel version(>=4.4.143.27)
 $ sudo apt-get install -y rtl8723ds-firmware bluez

Check Bluetooth service

 $ systemctl status bluetooth

Run Bluetooth service if the Bluetooth service is inactive.

 $ systemctl start bluetooth

Check Bluetooth device

 $ hciconfig
 hci0:   Type: Primary  Bus: UART
         BD Address: 22:22:70:B2:10:6F  ACL MTU: 1021:8  SCO MTU: 255:12
         UP RUNNING 
         RX bytes:1399 acl:0 sco:0 events:45 errors:0
         TX bytes:3458 acl:0 sco:0 commands:45 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.

Resize root filesystem to fit available disk space

Execute command resize-helper

 $ sudo /usr/sbin/resize-helper                                                                   

Type Yes

 Yes/No? Yes

Type -1M

 End?  [1010MB]?-1M

Poweroff

Once login, click button: Suspend

Storage device

  • uSD card: /dev/mmcblk0
  • SD Nand: /dev/mmcblk1

Changelogs

2019.12.19

rockpis_debian_buster_minimal_arm64_191219_0304-gpt.img

  • U-boot version: 2017.09-02370-g6d65a50f1e
  • Kernel version: 4.4.143-34-rockchip-g3c9d2019dba7
  • System partitions: boot and rootfs
  • Default serial console: UART0
  • Default non-root user: rock (password: rock)
  • Hostname: rockpis
  • Support adb by default.
  • Support SSH by default.
  • Resize root filesystem to fit available disk space for the first boot
  • Automatically load Bluetooth firmware after system startup.

2019.11.18

rockpis_debian_buster_minimal_arm64_191118_1217-gpt.img

  • U-boot version: 2017.09-02370-g6d65a50f1e
  • Kernel version: 4.4.143-34-rockchip-g3c9d2019dba7
  • Default serial console: UART0
  • Default non-root user: rock (password: rock)
  • Hostname: rockpis
  • Support adb by default.

2019.10.29

rockpis_debian_buster_minimal_arm64_191029_1055-gpt.img

  • U-boot version updated to 2017.09-02370-g6d65a50f1e
    • Add patch to make LAN MAC address stable based on CPUID
  • Kernel version updated to 4.4.143-28-rockchip-g8dbafd783043
  • Default serial console: UART0
  • Default non-root user: rock (password: rock)
  • Hostname: rockpis
  • Support SSH
  • Do not need to install rockchip-fstab package since /boot partition is auto mounted by systemd.


2019.08.06

rockpis_debian_stretch_minimal_arm64_190806_0115-gpt.img

  • Kernel version updated to 4.4.143-23-rockchip-g394d86b2b38b
    • Support 3.5inch waveshare model B and C LCD
  • Default serial console: UART0
  • Default non-root user: rock (password: rock)
  • Hostname: rockpis
  • Support SSH