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

Difference between revisions of "Rockpi4/Ubuntu"

(Try to simplify. Move OpenCV under additional software heading)
(3 intermediate revisions by one other user not shown)
Line 4: Line 4:
  
  
 +
== Work with Rock Pi 4 Ubuntu Server ==
  
 
+
=== Introduction ===
== Work with ROCKPI 4 Ubuntu Server ==
+
The Ubuntu server image for Rock Pi 4 target for minimal, fast and customization.
 
+
=== Introduction to ROCKPI 4 Ubuntu ===
+
The Ubuntu server image for ROCK Pi 4 target for minimal, fast and customization.
+
  
 
=== Default username/password ===
 
=== Default username/password ===
Line 20: Line 18:
 
     sudo su
 
     sudo su
  
=== OpenCV ===
+
=== Create Image ===
 +
Linux as root or use Etcher in Windows
 +
 
 +
  gunzip -c rockpi4b-ubuntu-bionic-minimal-20190104_2101-gpt.img.gz | dd of=/dev/mmcblk0
 +
 
 +
=== Additional software ===
 +
 
 +
==== OpenCV ====
  
 
There are two ways to get OpenCV.  One is building OpenCV by yourself (Option one) and the other is installing opencv4.0 package (Option two).
 
There are two ways to get OpenCV.  One is building OpenCV by yourself (Option one) and the other is installing opencv4.0 package (Option two).
  
==== Option 1: Manually build ====
+
===== Option 1: Manually build =====
  
 
Build OpenCV by yourself. See  [[rockpi4/dev/install-opencv | Install OpenCV]].
 
Build OpenCV by yourself. See  [[rockpi4/dev/install-opencv | Install OpenCV]].
  
==== Option 2: Install pre-built binaries ====
+
===== Option 2: Install pre-built binaries =====
  
 
===== Install Ubuntu desktop =====
 
===== Install Ubuntu desktop =====
Line 75: Line 80:
  
 
=== Networking ===
 
=== Networking ===
Since bionic networking has moved to [https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-configure-network-settings-in-ubuntu-18-04-bionic-beaver/ netplan /etc/netplan netplan]
+
Since bionic networking has moved to [https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-configure-network-settings-in-ubuntu-18-04-bionic-beaver/ netplan] /etc/netplan netplan
 
+
  
 
== Changelogs ==
 
== Changelogs ==

Revision as of 11:28, 16 November 2019


Work with Rock Pi 4 Ubuntu Server

Introduction

The Ubuntu server image for Rock Pi 4 target for minimal, fast and customization.

Default username/password

   default username: rock
   default password: rock

rock is sudo user and switch to root can be done with the following command as user rock:

   sudo su

Create Image

Linux as root or use Etcher in Windows

  gunzip -c rockpi4b-ubuntu-bionic-minimal-20190104_2101-gpt.img.gz | dd of=/dev/mmcblk0

Additional software

OpenCV

There are two ways to get OpenCV. One is building OpenCV by yourself (Option one) and the other is installing opencv4.0 package (Option two).

Option 1: Manually build

Build OpenCV by yourself. See Install OpenCV.

Option 2: Install pre-built binaries
Install Ubuntu desktop

To use OpenCV, an OS desktop is necessary. If your ROCK Pi 4 is running Ubuntu but without desktop, you can install Ubuntu mate desktop.

   $ sudo apt install ubuntu-mate-core && sudo apt install ubuntu-mate-desktop
Install all the recommended packages

Required:

   $ sudo apt-get update && sudo apt-get upgrade
   $ sudo apt-get install build-essential
   $ sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev

Recommended optional packages:

   $ sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev
   $ sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libavresample-dev
   $ sudo apt install tesseract-ocr cmake-data liblept5

Install OpenCV package:

   $ sudo apt-get install opencv4.0
Step 3: Test OpenCV

To check the version of your installed OpenCV, try this:

   rock@linux:~$ python
   Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) 
   [GCC 7.3.0] on linux2
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import cv2
   >>> cv2.__version__
   '4.0.1'
   >>>

Obtain OpenCV sample:

   $ cd ~
   $ wget -O opencv.zip https://github.com/opencv/opencv/archive/4.0.1.zip
   $ unzip opencv.zip
   
   $ cd ~/opencv-4.0.1/samples/python
   $ python watershed.py

Networking

Since bionic networking has moved to netplan /etc/netplan netplan

Changelogs

2019.01.04

rockpi4b-ubuntu-bionic-minimal-20190104_2101-gpt.img.gz

  • Add radxa apt repository in the release image
  • Rockchip hardware overylay are now managed by deb package
  • New DRM hotplug management script fix screen resolution change issue
  • Kernel version updated to linux-4.4.154-59-rockchip-g5e70f14
    • Kernel modules support AppArmor, Docker, WireGuard and UFW
    • Support USB gadget network, see USB Net
    • Support TP-Link UE300 ethernet adapter
    • A lot of kernel features are enabled as modules
  • Uboot version updated to 2017.09-02085-g5a6aeld
    • Support kernel boot menu selection(serial console only)
    • Support device tree directory boot
    • Support manually flash uboot in running system
  • Fix ethernet is not managed by Network Manager issue
  • Kernel package installation automatically adds to the boot menu