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

Difference between revisions of "RockpiN10/Ubuntu"

(IR Remote Control)
(UART)
Line 177: Line 177:
 
==== UART ====
 
==== UART ====
  
 +
To set ttyS4 as common serial communication devices, add these items "rk3399pro-uart4" to the "overlays=" line. The device /dev/ttyS4 is available.
 +
 +
  overlays=rk3399pro-uart4
  
 
=== IR Remote Control ===
 
=== IR Remote Control ===

Revision as of 10:05, 24 December 2020

    ROCK Pi N10 >  Ubuntu

Work with ROCK Pi N10 Ubuntu

Introduction to ROCK Pi N10 Ubuntu

ROCK Pi N10 Ubuntu server is an easy to use system. While working with ROCK Pi N10 Ubuntu Server, you will find it do well on playing music, Internet, Bluetooth, AI and so on.

ROCK Pi N10 Ubuntu server uses systemd to manage system.

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 Pi N10 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-rockpi-n10-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 Pi N10 to the network. The ROCK Pi N10 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 N10 the WIFI connection is another good choice. ROCK Pi N10 supports 2.4G/5G 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

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: 87:0D:F3:A1:02:B9  ACL MTU: 1021:8  SCO MTU: 64:1
         UP RUNNING 
         RX bytes:1086 acl:0 sco:0 events:55 errors:0
         TX bytes:2829 acl:0 sco:0 commands:55 errors:0

NPU

Related package: rockchip-npu

Use root user mode

 $ sudo su

Update package

 apt-get install -y rockchip-npu

Init NPU GPIO

npu_powerctrl -i

Power up NPU

 npu_powerctrl -o

Scan NPU

 lsusb
 [  839.258118] usb 8-1: New USB device found, idVendor=2207, idProduct=1808

Upgrade NPU firmware

 npu-image.sh

More details about NPU: NPU Booting Process.

Common Hardware Interfaces, I2C, PWM, SPI, UART, etc

The ROCK Pi N10 system images use configuration file /boot/uEnv.txt.

Warning: Remember there is only one line including item "overlays=" in file /boot/uEnv.txt.

For more details about device tree overlays, see Device Tree Overlays and ROCK Pi N10 Libmraa.

I2C

To enable I2C-2 (/dev/i2c-2), add item "rk3399pro-i2c2" to the "overlays=" line.

 overlays=rk3399pro-i2c2

To enable I2C-6 (/dev/i2c-66), add item "rk3399pro-i2c6" to the "overlays=" line.

 overlays=rk3399pro-i2c6

To enable I2C-7 (/dev/i2c-7), add item "rk3399pro-i2c7" to the "overlays=" line.

 overlays=rk3399pro-i2c7

PWM

To enable PWM0, add item "rk39999pro-pwm0" to the "overlays=" line.

 overlays=rk3399pro-pwm0

To enable PWM1, add item "rk3399pro-pwm1" to the "overlays=" line.

 overlays=rk3399pro-pwm1

SPI

To enable SPI1, add item "rk339pro-spi-spidev" to the "overlays=" line.

 overlays=rk3399pro-spi-spidev
 param_spidev_spi_bus=1
 param_spidev_spi_cs=0
 param_spidev_max_freq=10000000

UART

To set ttyS4 as common serial communication devices, add these items "rk3399pro-uart4" to the "overlays=" line. The device /dev/ttyS4 is available.

 overlays=rk3399pro-uart4

IR Remote Control

See IR Remote Control.

Storage device

  • uSD Card: /dev/mmcblk1
  • eMMC: /dev/mmcblk2
  • NVME M.2 SDD: /dev/nvme0n1

Boot device order

uSD - > eMMC

Changelogs

2020.07.10

rockpin10a_ubuntu_bionic_minimal_arm64_20200710_0321-gpt.img / rockpin10bc_ubuntu_bionic_minimal_arm64_20200710_0341-gpt.img

  • U-boot version: 2017.09-2692-gdf20631bd8
  • Kernel version: 4.4.167-14-rockchip-g53bdb2fa44e8

2020.03.06

rockpin10a_ubuntu_bionic_minimal_arm64_20200306_0432-gpt.img / rockpin10bc_ubuntu_bionic_minimal_arm64_20200306_0432-gpt.img

  • U-boot version: 2017.09-2689-g7bc6514356
  • Kernel version: 4.4.167-8-rockchip-g1175e66f8e9a
  • systemd version: 237
  • System partitions: boot and rootfs
  • Default serial console: UART2
  • Default non-root user: rock (password: rock)
  • Hostname: rockpin10
  • Support SSH by default.
  • Resize root filesystem to fit available disk space for the first boot
  • Automatically load Bluetooth firmware after system startup.