Difference between revisions of "Rock3/Ubuntu"
(→To test the Ethernet, we need to follow the steps:) |
|||
Line 88: | Line 88: | ||
* Test WIFI perpormance by tool iperf. | * Test WIFI perpormance by tool iperf. | ||
+ | === Check DDR size === | ||
+ | *ROCK 3 has several different DDR sizes, such as 2G, 4G, 8G. | ||
+ | rock@rock3a:~$ free -h | ||
+ | total used free shared buff/cache available | ||
+ | Mem: 7.4Gi 85Mi 7.2Gi 8.0Mi 168Mi 7.2Gi | ||
+ | Swap: 0B 0B 0B | ||
+ | *For example, the size of DDR on this board is 8G. | ||
+ | === Storage device === | ||
+ | * eMMC: /dev/mmcblk0 | ||
+ | * uSD Card: /dev/mmcblk1 | ||
+ | * NVME M.2 SDD: /dev/nvme0n1 | ||
+ | |||
+ | === Test RTC Device === | ||
+ | *First, plug in RTC battery and power on.Check the rtc device: | ||
+ | |||
+ | rock@rock3a:~$ dmesg | grep rtc | ||
+ | [ 0.878676] rk808-rtc rk808-rtc: registered as rtc0 | ||
+ | [ 0.880447] rk808-rtc rk808-rtc: setting system clock to 2017-08-04 09:00:04 UTC (1501837204) | ||
+ | |||
+ | *Second, use the follow commands to set the system time and synchronization to the rtc clock. | ||
+ | |||
+ | $ date -s "2021-08-17 20:03:00" | ||
+ | $ hwclock -w | ||
+ | $ hwclock -r | ||
+ | root@rock3a:~# hwclock -r | ||
+ | 2021-08-17 20:00:04.745124+00:00 | ||
+ | $ poweroff | ||
+ | |||
+ | *and then disconnect the power supply | ||
+ | *Third, back to power after 10 mins and check whether the rtc clock run the same time | ||
+ | |||
+ | $ hwclock -r | ||
+ | root@rock3a:~# hwclock -r | ||
+ | 2021-08-17 20:10:14.745124+00:00 | ||
=== Changelogs === | === Changelogs === |
Revision as of 06:59, 10 September 2021
ROCK 3 > Ubuntu
Contents
Work with ROCK 3 Ubuntu
Introduction to ROCK 3 Ubuntu
ROCK 3 Ubuntu server is an easy to use system. While working with ROCK 3 Ubuntu Server, you will find it do well on playing music, Internet, Bluetooth, AI and so on.
ROCK 3 Ubuntu server uses systemd to manage system.
Command prepended by $ means the command may be executed by an unprivileged user. And command prepended by # means the command may be executed by an privileged user. But the symbol, $ or #, is not part of the command.
Access from the Host PC/Laptop
Option 1: Serial console
Check Serial Console
Option 2: SSH
SSH server is enabled on port 22 of ROCK 3 default image.
Please use angryip to find your board IP address.
$ ping ip-of-device $ ssh rock@ip-of-device
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-rock-3-latest
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 3 to the network. The ROCK 3 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 3 the WIFI connection is another good choice. ROCK 3 supports 2.4G/5G WIFI and Wi-Fi 6 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.
Check DDR size
- ROCK 3 has several different DDR sizes, such as 2G, 4G, 8G.
rock@rock3a:~$ free -h total used free shared buff/cache available Mem: 7.4Gi 85Mi 7.2Gi 8.0Mi 168Mi 7.2Gi Swap: 0B 0B 0B
- For example, the size of DDR on this board is 8G.
Storage device
- eMMC: /dev/mmcblk0
- uSD Card: /dev/mmcblk1
- NVME M.2 SDD: /dev/nvme0n1
Test RTC Device
- First, plug in RTC battery and power on.Check the rtc device:
rock@rock3a:~$ dmesg | grep rtc [ 0.878676] rk808-rtc rk808-rtc: registered as rtc0 [ 0.880447] rk808-rtc rk808-rtc: setting system clock to 2017-08-04 09:00:04 UTC (1501837204)
- Second, use the follow commands to set the system time and synchronization to the rtc clock.
$ date -s "2021-08-17 20:03:00" $ hwclock -w $ hwclock -r root@rock3a:~# hwclock -r 2021-08-17 20:00:04.745124+00:00 $ poweroff
- and then disconnect the power supply
- Third, back to power after 10 mins and check whether the rtc clock run the same time
$ hwclock -r root@rock3a:~# hwclock -r 2021-08-17 20:10:14.745124+00:00
Changelogs
2021.08.24
rock3a_ubuntu_focal_server_arm64_20210823_2119-gpt.img
- Kernel version: 4.19.193-2-rockchip-g7cf7399ddb5c
- U-Boot version: 2017.09-gbd2fa07970e-210525