Difference between revisions of "RockpiN10/Debian"
Line 1: | Line 1: | ||
− | {{ | + | {{rockpiN10_header}} |
− | {{Languages| | + | {{Languages|rockpiN10/Debian}} |
− | [[ | + | [[rockpiN10 | ROCK Pi N10]] > [[rockpiN10/Debian | Debian]] |
__TOC__ | __TOC__ | ||
− | == Work with | + | == Work with ROCK Pi N10 Debian == |
− | === Introduction to | + | === Introduction to ROCK Pi N10 Debian === |
− | + | ROCK Pi N10 Debian is an easy to use desktop system. While working with ROCK Pi N10 Debian, you will find it do well on playing music, Internet, Bluetooth, AI and so on. | |
− | + | ROCK Pi N10 Debian 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. | 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. | ||
Line 21: | Line 21: | ||
==== Option 1: Serial console ==== | ==== Option 1: Serial console ==== | ||
− | Check [[ | + | Check [[rockpiN10/dev/serial-console | Serial Console]] |
==== Option 2: SSH ==== | ==== Option 2: SSH ==== | ||
− | SSH server is enabled on port 22 of | + | SSH server is enabled on port 22 of ROCK Pi N10 default image. |
Please use [https://angryip.org/ angryip] to find your board IP address. | Please use [https://angryip.org/ angryip] to find your board IP address. | ||
Line 44: | Line 44: | ||
=== Install and update necessary packages === | === Install and update necessary packages === | ||
− | Add Radxa APT, see [[ | + | Add Radxa APT, see [[rockpiN10/radxa-apt | Radxa APT]]. |
Install packages; | Install packages; | ||
$ sudo apt-get update | $ sudo apt-get update | ||
+ | $ sudo apt-get install -y rockchip-overlay | ||
+ | $ sudo apt-get install -y linux-4.4-rock-pi-n10-latest | ||
=== Network Connection === | === Network Connection === | ||
− | There is one | + | 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 ==== | ==== 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:===== | =====To test the WIFI performance, we need to follow the steps:===== | ||
Line 73: | Line 91: | ||
* Test WIFI perpormance by tool iperf. | * 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: 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 | ||
+ | |||
+ | === 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: [[rockpiN10/dev/NPU-booting | NPU Booting Process]]. | ||
+ | |||
+ | === <span id="common_hardware_interface">Common Hardware Interfaces, I2C, PWM, SPI, UART, etc</span> === | ||
+ | |||
+ | 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 | Device Tree Overlays]] and [[RockpiN10/dev/libmraa | 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 [[RockpiN10/ir-remote-control | IR Remote Control]]. | ||
+ | |||
+ | === Storage device === | ||
+ | |||
+ | * uSD Card: /dev/mmcblk1 | ||
+ | * eMMC: /dev/mmcblk2 | ||
+ | * NVME M.2 SDD: /dev/nvme0n1 | ||
+ | |||
+ | === Boot device order === | ||
+ | |||
+ | uSD - > eMMC | ||
+ | |||
+ | === OpenGL ES === | ||
+ | |||
+ | ==== Install glmark2 ==== | ||
+ | |||
+ | $ sudo apt update | ||
+ | $ sudo apt install -y git gcc g++ libpng-dev libjpeg-dev pkg-config libx11-dev libdrm-dev libgbm-dev libgbm1 libudev-dev | ||
+ | $ mkdir -p /home/rock/work | ||
+ | $ cd /homne/rock/work | ||
+ | $ git clone https://github.com/glmark2/glmark2.git | ||
+ | $ ./waf configure --with-flavors=drm-glesv2 | ||
+ | $ ./waf build -j 4 | ||
+ | $ ./waf install | ||
+ | |||
+ | ==== Install mali packages ==== | ||
+ | |||
+ | $ sudo apt install -y rockchip-mali-midgard14=1.6-2 | ||
+ | $ sudo apt install -y rockchip-mali-midgard-dev=1.6-2 | ||
+ | |||
+ | ==== Test OpenGL via glmark2-es2-drm ==== | ||
+ | |||
+ | # glmark2-es2-drm | ||
=== Changelogs === | === Changelogs === | ||
+ | |||
+ | ==== 2021.03.25 ==== | ||
+ | |||
+ | '''rockpin10a_debian_buster_xfce4_arm64_20210125_2013-gpt.img / rockpin10bc_debian_buster_xfce4_arm64_20210125_2027-gpt.img''' | ||
+ | |||
+ | * U-Boot version: 2017.09-2692-gdf20631bd8 | ||
+ | * Kernel version: 4.4.167-16-rockchip-gd6ee13d61c6d | ||
+ | * Use new Radxa APT public key. | ||
+ | |||
+ | ==== 2020.07.10 ==== | ||
+ | |||
+ | '''rockpin10a_debian_buster_xfce4_arm64_20200710_0315-gpt.img / rockpin10bc_debian_buster_xfce4_arm64_20200710_0335-gpt.img''' | ||
+ | |||
+ | * U-boot version: 2017.09-2692-gdf20631bd8 | ||
+ | * Kernel version: 4.4.167-14-rockchip-g53bdb2fa44e8 | ||
+ | |||
+ | ==== 2020.03.09 ==== | ||
+ | |||
+ | '''rockpin10a_debian_buster_xfce4_arm64_20200309_1506-gpt.img / rockpin10bc_debian_buster_xfce4_arm64_20200309_0812-gpt.img''' | ||
+ | |||
+ | * U-boot version: 2017.09-2685-g26d3cbeb61 | ||
+ | * Kernel version: 4.4.167-5-rockchip-g1e62a6825bfc | ||
+ | * 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. | ||
+ | |||
+ | ==== 2020.01.06 ==== | ||
+ | |||
+ | '''rockpin10_debian_buster_xfce4_arm64_20200106_0710-gpt.img''' | ||
+ | |||
+ | * U-boot version: 2017.09-2685-g26d3cbeb61 | ||
+ | * Kernel version: 4.4.167-5-rockchip-g1e62a6825bfc | ||
+ | * 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. |
Revision as of 10:29, 30 September 2021
ROCK Pi N10 > Debian
Contents
- 1 Work with ROCK Pi N10 Debian
- 1.1 Introduction to ROCK Pi N10 Debian
- 1.2 Access from the Host PC/Laptop
- 1.3 Debian Default User Account
- 1.4 Desktop
- 1.5 Install and update necessary packages
- 1.6 Network Connection
- 1.7 Bluetooth
- 1.8 NPU
- 1.9 Common Hardware Interfaces, I2C, PWM, SPI, UART, etc
- 1.10 IR Remote Control
- 1.11 Storage device
- 1.12 Boot device order
- 1.13 OpenGL ES
- 1.14 Changelogs
Work with ROCK Pi N10 Debian
Introduction to ROCK Pi N10 Debian
ROCK Pi N10 Debian is an easy to use desktop system. While working with ROCK Pi N10 Debian, you will find it do well on playing music, Internet, Bluetooth, AI and so on.
ROCK Pi N10 Debian 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 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
Desktop
The preinstalled Desktop is xfce4.
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-pi-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: 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
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
OpenGL ES
Install glmark2
$ sudo apt update $ sudo apt install -y git gcc g++ libpng-dev libjpeg-dev pkg-config libx11-dev libdrm-dev libgbm-dev libgbm1 libudev-dev $ mkdir -p /home/rock/work $ cd /homne/rock/work $ git clone https://github.com/glmark2/glmark2.git $ ./waf configure --with-flavors=drm-glesv2 $ ./waf build -j 4 $ ./waf install
Install mali packages
$ sudo apt install -y rockchip-mali-midgard14=1.6-2 $ sudo apt install -y rockchip-mali-midgard-dev=1.6-2
Test OpenGL via glmark2-es2-drm
# glmark2-es2-drm
Changelogs
2021.03.25
rockpin10a_debian_buster_xfce4_arm64_20210125_2013-gpt.img / rockpin10bc_debian_buster_xfce4_arm64_20210125_2027-gpt.img
- U-Boot version: 2017.09-2692-gdf20631bd8
- Kernel version: 4.4.167-16-rockchip-gd6ee13d61c6d
- Use new Radxa APT public key.
2020.07.10
rockpin10a_debian_buster_xfce4_arm64_20200710_0315-gpt.img / rockpin10bc_debian_buster_xfce4_arm64_20200710_0335-gpt.img
- U-boot version: 2017.09-2692-gdf20631bd8
- Kernel version: 4.4.167-14-rockchip-g53bdb2fa44e8
2020.03.09
rockpin10a_debian_buster_xfce4_arm64_20200309_1506-gpt.img / rockpin10bc_debian_buster_xfce4_arm64_20200309_0812-gpt.img
- U-boot version: 2017.09-2685-g26d3cbeb61
- Kernel version: 4.4.167-5-rockchip-g1e62a6825bfc
- 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.
2020.01.06
rockpin10_debian_buster_xfce4_arm64_20200106_0710-gpt.img
- U-boot version: 2017.09-2685-g26d3cbeb61
- Kernel version: 4.4.167-5-rockchip-g1e62a6825bfc
- 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.