<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.radxa.com/mw/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.radxa.com/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Edent</id>
		<title>Radxa Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.radxa.com/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Edent"/>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Special:Contributions/Edent"/>
		<updated>2026-06-15T12:29:37Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://wiki.radxa.com/RockpiS/Ubuntu</id>
		<title>RockpiS/Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/RockpiS/Ubuntu"/>
				<updated>2020-07-25T13:38:05Z</updated>
		
		<summary type="html">&lt;p&gt;Edent: Package has been replaced&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rockpiS_header}}&lt;br /&gt;
&lt;br /&gt;
{{Languages|rockpiS/Ubuntu}}&lt;br /&gt;
&lt;br /&gt;
    [[rockpiS | ROCK Pi S]] &amp;gt; [[rockpiS/Ubuntu | Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Work with ROCK Pi S Ubuntu ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction to ROCK Pi S Ubuntu ===&lt;br /&gt;
&lt;br /&gt;
ROCK Pi S Ubuntu  is an easy to use system. While working with ROCK Pi S Ubuntu, you will find it do well on playing music, Internet, Bluetooth and so on.&lt;br /&gt;
&lt;br /&gt;
ROCK Pi S Ubuntu uses '''systemd''' to manage system.&lt;br /&gt;
&lt;br /&gt;
=== Access from the Host PC/Laptop ===&lt;br /&gt;
&lt;br /&gt;
==== Option 1: USB access(adb) ====&lt;br /&gt;
By default, the ROCK Pi S Linux image enables adbd services, which is a debug bridge from Android now ported on Linux. With one USB A to C cable you can power and access the board, very handy.&lt;br /&gt;
&lt;br /&gt;
To use adb, you need to install adb tool on the PC/Laptop. Check instructions for [[Rock/windows_adb | Windows]] and [[Rock/linux_adb | Linux]].&lt;br /&gt;
&lt;br /&gt;
After you have adb installed successfully, run the following command on console to login the shell of ROCK Pi S:&lt;br /&gt;
&lt;br /&gt;
    adb shell&lt;br /&gt;
&lt;br /&gt;
Check [[rockpiS/dev/adb | Using adb]].&lt;br /&gt;
&lt;br /&gt;
==== Option 2: Serial console ====&lt;br /&gt;
&lt;br /&gt;
Check [[rockpiS/dev/serial-console | Serial Console]]&lt;br /&gt;
&lt;br /&gt;
==== Option 3: SSH ====&lt;br /&gt;
SSH server  is enabled on port 22 of ROCK Pi S default image. &lt;br /&gt;
&lt;br /&gt;
Please use [https://angryip.org/ angryip] to find your board IP address.&lt;br /&gt;
&lt;br /&gt;
To access ROCK Pi S by SSH, try &lt;br /&gt;
  &lt;br /&gt;
    ping rockpis.local&lt;br /&gt;
    ssh rock@rockpis.local&lt;br /&gt;
&lt;br /&gt;
or if your router/network doesn't support Local Domain, you need to check your network/router administrator page and look for the ROCK Pi S ip address.&lt;br /&gt;
&lt;br /&gt;
    ping ip-of-device&lt;br /&gt;
    ssh rock@ip-of-device&lt;br /&gt;
&lt;br /&gt;
Note: You can also get the IP of ROCK Pi S from option 1 or option 2 if you can not access network administrator page.&lt;br /&gt;
&lt;br /&gt;
=== Default User Account ===&lt;br /&gt;
&lt;br /&gt;
Non-root User:&lt;br /&gt;
    User Name : rock&lt;br /&gt;
    Password  : rock&lt;br /&gt;
&lt;br /&gt;
=== Update  necessary packages ===&lt;br /&gt;
&lt;br /&gt;
Add Radxa APT, see [[rockpiS/radxa-apt | Radxa APT]].&lt;br /&gt;
&lt;br /&gt;
Install packages:&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get update&lt;br /&gt;
  $ sudo apt-get install -y apt-utils # without this, the adb connection might break during installation of rockchip-adb&lt;br /&gt;
  $ sudo apt-get install -y rockchip-overlay&lt;br /&gt;
  $ sudo apt-get install -y linux-4.4-rockpis-latest rockpis-dtbo&lt;br /&gt;
  $ sudo apt-get install -y rtl8723ds-firmware rockchip-adbd resize-assistant&lt;br /&gt;
  $ sudo apt-get install -y rockpis-dtbo # For those ROCK Pi S system images released before March 1st, 2020&lt;br /&gt;
&lt;br /&gt;
=== Network Connection ===&lt;br /&gt;
&lt;br /&gt;
There are two methods for network connection. One is Ethernet and the other is WIFI.&lt;br /&gt;
&lt;br /&gt;
==== Ethernet Connection ====&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===== To test the Ethernet, we need to follow the steps: =====&lt;br /&gt;
* Switch to super user mode by command&lt;br /&gt;
  $ sudo su&lt;br /&gt;
&lt;br /&gt;
* 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. &lt;br /&gt;
&lt;br /&gt;
  $ ifconfig&lt;br /&gt;
  $ ping www.baidu.com&lt;br /&gt;
&lt;br /&gt;
* If failed to connect to a normal domain. , try &lt;br /&gt;
&lt;br /&gt;
  $ sudo dhclient eth0&lt;br /&gt;
&lt;br /&gt;
==== WIFI Connection ====&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
=====To test the WIFI performance, we need to follow the steps:=====&lt;br /&gt;
&lt;br /&gt;
* Switch to super user mode&lt;br /&gt;
  $ sudo su&lt;br /&gt;
&lt;br /&gt;
* Open the WIFI&lt;br /&gt;
  $ nmcli r wifi on&lt;br /&gt;
&lt;br /&gt;
* Scan WIFI&lt;br /&gt;
  $ nmcli dev wifi&lt;br /&gt;
&lt;br /&gt;
* Connect to WIFI network&lt;br /&gt;
  $ nmcli dev wifi connect &amp;quot;wifi_name&amp;quot; password &amp;quot;wifi_password&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Test WIFI perpormance by tool iperf.&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth ===&lt;br /&gt;
&lt;br /&gt;
Update necessary packages&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get update&lt;br /&gt;
  $ sudp apt-get install -y rockchip-overlay&lt;br /&gt;
  $ sudo apt-get install -y linux-4.4-rockpis-latest # kernel version(&amp;gt;=4.4.143.27)&lt;br /&gt;
  $ sudo apt-get install -y rtl8723ds-firmware bluez&lt;br /&gt;
&lt;br /&gt;
Check Bluetooth service&lt;br /&gt;
&lt;br /&gt;
  $ systemctl status bluetooth&lt;br /&gt;
&lt;br /&gt;
Run Bluetooth service if the Bluetooth service is inactive.&lt;br /&gt;
&lt;br /&gt;
  $ systemctl start bluetooth&lt;br /&gt;
&lt;br /&gt;
Check Bluetooth device&lt;br /&gt;
&lt;br /&gt;
  $ hciconfig&lt;br /&gt;
  hci0:   Type: Primary  Bus: UART&lt;br /&gt;
          BD Address: 22:22:AA:25:49:1E  ACL MTU: 1021:8  SCO MTU: 255:12&lt;br /&gt;
          UP RUNNING &lt;br /&gt;
          RX bytes:4424 acl:0 sco:0 events:81 errors:0&lt;br /&gt;
          TX bytes:3820 acl:0 sco:0 commands:52 errors:0&lt;br /&gt;
&lt;br /&gt;
Example: Connect to Bluetooth Speaker.&lt;br /&gt;
&lt;br /&gt;
Change to root mode.&lt;br /&gt;
&lt;br /&gt;
  $ sudo su&lt;br /&gt;
&lt;br /&gt;
Install pulseaudio packages&lt;br /&gt;
&lt;br /&gt;
  # apt-get install -y pulseaudio-module-bluetooth pulseaudio&lt;br /&gt;
&lt;br /&gt;
Run pulseaudio&lt;br /&gt;
&lt;br /&gt;
  # pulseaudio --start&lt;br /&gt;
&lt;br /&gt;
Connect using bluetoothctl&lt;br /&gt;
&lt;br /&gt;
  # bluetoothctl&lt;br /&gt;
  [bluetooth]# default-agent &lt;br /&gt;
  [bluetooth]# power on&lt;br /&gt;
  [bluetooth]# scan on&lt;br /&gt;
  [bluetooth]# trust 77:EC:79:4F:6B:AC&lt;br /&gt;
  [bluetooth]# pair 77:EC:79:4F:6B:AC&lt;br /&gt;
  [bluetooth]# connect 77:EC:79:4F:6B:AC&lt;br /&gt;
&lt;br /&gt;
Play songs and enjoy it.&lt;br /&gt;
&lt;br /&gt;
=== Common Hardware Interfaces, I2C, PWM, SPI, UART, etc ===&lt;br /&gt;
&lt;br /&gt;
The ROCK Pi S system images released before March 1st, 2020 use hw_intfc.conf to configure interfaces while those which released after March 1st, 2020 use uEnv.txt. We suggest that you use [[RockpiS/downloads | the latest system images]].&lt;br /&gt;
&lt;br /&gt;
'''Warning: Remember there is only one line including item &amp;quot;overlays=&amp;quot; in file /boot/uEnv.txt.'''&lt;br /&gt;
&lt;br /&gt;
For more details about device tree overlays, see [[Device-tree-overlays | Device Tree Overlays]] and [[RockpiS/dev/libmraa | ROCK Pi S Libmraa]].&lt;br /&gt;
&lt;br /&gt;
==== I2C ====&lt;br /&gt;
&lt;br /&gt;
To enable I2C-0 (/dev/i2c-0), add item &amp;quot;rk3308-i2c0&amp;quot; to the &amp;quot;overlays=&amp;quot; line. &lt;br /&gt;
&lt;br /&gt;
  overlays=rk3308-i2c0&lt;br /&gt;
&lt;br /&gt;
To enable I2C-1 (/dev/i2c-1), add item &amp;quot;rk3308-i2c1&amp;quot; to the &amp;quot;overlays=&amp;quot; line. &lt;br /&gt;
&lt;br /&gt;
  overlays=rk3308-i2c1&lt;br /&gt;
&lt;br /&gt;
To enable I2C-2 (/dev/i2c-2), add item &amp;quot;rk3308-i2c2&amp;quot; to the &amp;quot;overlays=&amp;quot; line. &lt;br /&gt;
&lt;br /&gt;
  overlays=rk3308-i2c2&lt;br /&gt;
&lt;br /&gt;
To enable I2C-2 (/dev/i2c-3), add item &amp;quot;rk3308-i2c3&amp;quot; to the &amp;quot;overlays=&amp;quot; line. &lt;br /&gt;
&lt;br /&gt;
  overlays=rk3308-i2c3&lt;br /&gt;
&lt;br /&gt;
==== PWM ====&lt;br /&gt;
&lt;br /&gt;
To enable PWM1, add item &amp;quot;rk3308-pwm1&amp;quot; to the &amp;quot;overlays=&amp;quot; line.&lt;br /&gt;
&lt;br /&gt;
  overlays=rk3308-pwm1&lt;br /&gt;
&lt;br /&gt;
To enable PWM2, add item &amp;quot;rk3308-pwm2&amp;quot; to the &amp;quot;overlays=&amp;quot; line.&lt;br /&gt;
&lt;br /&gt;
  overlays=rk3308-pwm2&lt;br /&gt;
&lt;br /&gt;
To enable PWM3, add item &amp;quot;rk3308-pwm3&amp;quot; to the &amp;quot;overlays=&amp;quot; line.&lt;br /&gt;
&lt;br /&gt;
  overlays=rk3308-pwm3&lt;br /&gt;
&lt;br /&gt;
==== SPI ====&lt;br /&gt;
&lt;br /&gt;
To enable SPI2, add item &amp;quot;rk3308-spi-spidev&amp;quot; to the &amp;quot;overlays=&amp;quot; line.&lt;br /&gt;
&lt;br /&gt;
  overlays=rk3308-spi-spidev&lt;br /&gt;
  param_spidev_spi_bus=2&lt;br /&gt;
  param_spidev_spi_cs=0&lt;br /&gt;
  param_spidev_max_freq=10000000&lt;br /&gt;
&lt;br /&gt;
==== UART ====&lt;br /&gt;
&lt;br /&gt;
The debugger console baud rate options: 1500000n8 and 115200n8.&lt;br /&gt;
&lt;br /&gt;
To disable debugger console, just need to delete &amp;quot;console=&amp;quot; line in file /boot/uEnv.txt.&lt;br /&gt;
&lt;br /&gt;
To set ttyS0 as debugger console, add item &amp;quot;rk3308-uart0&amp;quot; to the &amp;quot;overlays=&amp;quot; line. Also need to set console value.&lt;br /&gt;
&lt;br /&gt;
  console=ttyS0,1500000n8&lt;br /&gt;
  overlays=rk3308-uart0&lt;br /&gt;
&lt;br /&gt;
To set ttyS1 as debugger console, add item &amp;quot;rk3308-uart1&amp;quot; to the &amp;quot;overlays=&amp;quot; line. Also need to set console value.&lt;br /&gt;
&lt;br /&gt;
  console=ttyS1,1500000n8&lt;br /&gt;
  overlays=rk3308-uart1&lt;br /&gt;
&lt;br /&gt;
To set ttyS2 as debugger console, add item &amp;quot;rk3308-uart2&amp;quot; to the &amp;quot;overlays=&amp;quot; line. Also need to set console value.&lt;br /&gt;
&lt;br /&gt;
  console=ttyS2,1500000n8&lt;br /&gt;
  overlays=rk3308-uart2&lt;br /&gt;
&lt;br /&gt;
To set ttyS0, ttyS1 and ttyS2 as common serial communication devices, add these items &amp;quot;rk3328-uart0&amp;quot;, &amp;quot;rk3328-uart1&amp;quot; and &amp;quot;rk3328-uart2&amp;quot;  to the &amp;quot;overlays=&amp;quot; line. The device /dev/ttyS0, /dev/ttyS1, /dev/ttyS2, are available.&lt;br /&gt;
&lt;br /&gt;
  overlays=rk3308-uart0 rk3308-uart1 rk3308-uart2&lt;br /&gt;
&lt;br /&gt;
=== USB ===&lt;br /&gt;
&lt;br /&gt;
USB port, working in host mode, enables the attachment of peripherals such U Disk, keyboards, mice, USB dongle like USB camera, etc.&lt;br /&gt;
&lt;br /&gt;
USB port, working in OTG mode, supports USB gadget function including adb, USB RNDIS, USB subnet etc.&lt;br /&gt;
&lt;br /&gt;
There are two USB ports on ROCK Pi S. One is Type-A port and the other is Type-C port. By default, on Ubuntu system Type-A port is working in host mode. Type-C port is configured in OTG mode. With software configuration, Type-C port can also work in host mode.&lt;br /&gt;
&lt;br /&gt;
==== Use USB Camera ====&lt;br /&gt;
&lt;br /&gt;
Check [[RockpiS/hardware/camera/ | ROCK Pi S Camera module]].&lt;br /&gt;
&lt;br /&gt;
==== Use USB Device Network ====&lt;br /&gt;
&lt;br /&gt;
Check [[rockpiS/dev/usbnet | ROCK Pi S USB Device Network]].&lt;br /&gt;
&lt;br /&gt;
==== Type-C port in host mode ====&lt;br /&gt;
&lt;br /&gt;
To configure Type-C port in host mode, add item &amp;quot;rk3308-usb20-host&amp;quot; to the &amp;quot;overlays=&amp;quot; line in file /boot/uEnv.txt.&lt;br /&gt;
&lt;br /&gt;
Kernel version: &amp;gt;=4.4.143.51&lt;br /&gt;
&lt;br /&gt;
  overlays=rk3308-usb20-host&lt;br /&gt;
&lt;br /&gt;
=== Display ===&lt;br /&gt;
&lt;br /&gt;
See [[rockpiS/hardware/display | ROCK Pi S Display]].&lt;br /&gt;
&lt;br /&gt;
=== Use Array Microphones with ROCK Pi S PoE ===&lt;br /&gt;
&lt;br /&gt;
=== Storage Device ===&lt;br /&gt;
&lt;br /&gt;
* uSD Card: /dev/mmcblk0&lt;br /&gt;
&lt;br /&gt;
* SD Nand: /dev/mmcblk1&lt;br /&gt;
&lt;br /&gt;
=== Boot Device Order ===&lt;br /&gt;
&lt;br /&gt;
SD Nand -&amp;gt; uSD Card&lt;br /&gt;
&lt;br /&gt;
=== Changelogs ===&lt;br /&gt;
&lt;br /&gt;
====2020.06.16 ====&lt;br /&gt;
&lt;br /&gt;
'''rockpis_ubuntu_bionic_minimal_arm64_20200615_1227-gpt.img'''&lt;br /&gt;
&lt;br /&gt;
* Fix the issue of failing to find root device. System boot log may show like this.&lt;br /&gt;
&lt;br /&gt;
  [    1.478059] RAMDISK: gzip image found at block 0&lt;br /&gt;
  [    1.581744] RAMDISK: incomplete write (23864 != 32768)&lt;br /&gt;
  [    1.581801] write error&lt;br /&gt;
  [    1.581895] Waiting for root device UUID=37055840-4ec4-444f-979b-9e47ee4bd848...&lt;br /&gt;
&lt;br /&gt;
* Kernel version: 4.4.143-52-rockchip-g7ed61b60d176&lt;br /&gt;
&lt;br /&gt;
==== 2020.05.28 ====&lt;br /&gt;
&lt;br /&gt;
'''rockpis_ubuntu_bionic_minimal_arm64_20200528_1230-gpt.img'''&lt;br /&gt;
&lt;br /&gt;
* Kernel version: 4.4.143-48-rockchip-geacd15ae244f&lt;br /&gt;
* Rename rockchip-adb package to rockchip-adbd.&lt;br /&gt;
* U-boot version: 2017.09-02378-g6de46245e6&lt;br /&gt;
* Update uEnv and boot.scr.&lt;br /&gt;
* Use ttySx as debuger console instead of ttyFIQ0.&lt;br /&gt;
&lt;br /&gt;
==== 2020.03.16 ====&lt;br /&gt;
&lt;br /&gt;
'''rockpis_debian_buster_minimal_arm64_20200315_1123-gpt.img'''&lt;br /&gt;
&lt;br /&gt;
* Available for at least 256 MB DDR SDRAM&lt;br /&gt;
* Kernel version: 4.4.143-39-rockchip-gdaf243b9655a&lt;br /&gt;
* Support uEnv and boot.scr&lt;br /&gt;
* The version of systemd: 237&lt;br /&gt;
* U-boot version: 2017.09-02377-gc3d3bc84be&lt;br /&gt;
&lt;br /&gt;
==== 2019.12.19 ====&lt;br /&gt;
&lt;br /&gt;
'''rockpis_ubuntu_bionic_minimal_arm64_191219_0410-gpt.img'''&lt;br /&gt;
&lt;br /&gt;
* U-boot version: 2017.09-02370-g6d65a50f1e&lt;br /&gt;
* Kernel version: 4.4.143-34-rockchip-g3c9d2019dba7&lt;br /&gt;
* System partitions: boot and rootfs&lt;br /&gt;
* Default serial console: UART0&lt;br /&gt;
* Default non-root user: rock (password: rock)&lt;br /&gt;
* Hostname: rockpis&lt;br /&gt;
* Support adb by default.&lt;br /&gt;
* Support SSH by default.&lt;br /&gt;
* Resize root filesystem to fit available disk space for the first boot&lt;br /&gt;
* Automatically load Bluetooth firmware after system startup.&lt;/div&gt;</summary>
		<author><name>Edent</name></author>	</entry>

	</feed>