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

Difference between revisions of "RockpiN10/Debian"

(Access from the Host PC/Laptop)
Line 1: Line 1:
{{rockpiN10_header}}
+
{{Zero_header}}
  
{{Languages|rockpiN10/Debian}}
+
{{Languages|zero/Debian}}
  
     [[rockpiN10 | ROCK Pi N10]] > [[rockpiN10/Debian | Debian]]
+
     [[Zero | Radxa Zero]] > [[zero/Debian | Debian]]
  
 
__TOC__
 
__TOC__
  
== Work with ROCK Pi N10 Debian ==
+
== Work with Radxa Zero Debian ==
  
=== Introduction to ROCK Pi N10 Debian ===
+
=== Introduction to Radxa Zero 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.
+
Radxa Zero Debian  is an easy to use desktop system. While working with Radxa Zero Debian, you will find it do well on playing music, Internet, Bluetooth and so on.
  
ROCK Pi N10 Debian uses '''systemd''' to manage system.
+
Radxa Zero 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 [[rockpiN10/dev/serial-console | Serial Console]]
+
Check [[zero/dev/serial-console | Serial Console]]
  
 
==== Option 2: SSH ====
 
==== Option 2: SSH ====
SSH server  is enabled on port 22 of ROCK Pi N10 default image.  
+
SSH server  is enabled on port 22 of Radxa Zero 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 [[rockpiN10/radxa-apt | Radxa APT]].
+
Add Radxa APT, see [[zero/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 are two methods for network connection. One is Ethernet and the other is WIFI.
+
There is one method for network connection, 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.
+
Radxa Zero 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 91: Line 73:
  
 
* 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 03:23, 30 September 2021

    Radxa Zero >  Debian

Work with Radxa Zero Debian

Introduction to Radxa Zero Debian

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

Radxa Zero 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 Radxa Zero 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

Network Connection

There is one method for network connection, WIFI.

WIFI Connection

Radxa Zero 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.

Changelogs