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

Rockpi4/Ubuntu/pt BR

< Rockpi4‎ | Ubuntu
Revision as of 21:53, 22 June 2019 by Samuca (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Trabalhar no ROCKPI 4 com o Ubuntu Server

Introdução ao Ubuntu ROCKPI 4

A imagem do Ubuntu Server para o Rock Pi 4 objetivo mínimo, rápido e com personalização.

Nome de usuário / senha padrão

   default username: rock
   default password: rock

O rock é um usuário sudo e o switch para root pode ser feito com o seguinte comando como user rock:

   sudo su

Criar imagem

Linux como root ou use Etcher no Windows

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

OpenCV

Existem duas maneiras de utilizar o OpenCV. Um criar manualmente o OpenCV por você mesmo (Opção 1) e o outro está instalando o pacote opencv4.0 (Opção 2).

Opção 1: criar manualmente

Crie manualmente o OpenCV sozinho. Veja Install OpenCV.

Opção 2: Instalar binários pré-instalado

Instalar o desktop do Ubuntu

Para usar o OpenCV, uma área de trabalho do SO é necessária. Se o seu ROCK Pi 4 estiver rodando o Ubuntu, mas sem o desktop, você pode instalar o Ubuntu mate desktop.

   $ sudo apt install ubuntu-mate-core && sudo apt install ubuntu-mate-desktop
Instale todos os pacotes recomendados

Requerimento:

   $ 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

Pacotes opcionais recomendados:

   $ 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

Instale o pacote OpenCV:

   $ sudo apt-get install opencv4.0
Etapa 3: teste o OpenCV

Para verificar a versão do seu OpenCV instalado, tente o seguinte:

   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'
   >>>

Obter amostra OpenCV:

   $ 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