Skip to content

Ubuntu 20.04 LTS - Kernel 5.11.0 - NanoPi M4 v1 (2GB and 4GB) - dual-camera

Compare
Choose a tag to compare
@avafinger avafinger released this 17 Feb 18:00
· 4 commits to master since this release
1b4fb28

Ubuntu 20.04 LTS - Kernel 5.11.0 Image

This is an 8GB SD card Image for NanoPi M4 v1 with support for dual-camera (OV13850 and OV4689).
Ubuntu Server LTS 20.04 minimal image with CLI (command line interface)

  • Mainline Kernel 5.11.0
  • OV13850 (single or dal-camera)
  • OV4689 (single or dal-camera)
  • hdmi sound
  • hdmi
  • rt5651 sound
  • wlan
  • eth
  • panfrost
  • Bluetooth

Instructions

Use 7z to unzip the nanopim4-v1_sdcard-8GB-ubuntu_20.04LTS_kernel_5.11.0-final-dual-camera.img.7z and flash it to an 8GB (or more) sd card, using dd , usbimager or Win32DiskImager.

Pre-built application

To make use of the sensor, there is a pre-built cam application ready to be used.

  • Show the camera(s)

      cam -l
    
  • Show Info about your camera

      cam --camera=1 -I
      cam --camera=2 -I (if dual-camera)
    

Enabling the camera

Default Image has no camera enabled, you need to enable the correct sensor you have attached to CSI-1 our CSI-1 and CSI-2

cd /boot:

Camera sensor enable how to enable
nanopi-m4.dtb_5.11.0_csi1-ov13850 OV13850 in CSI-1 slot sudo ln -sf nanopi-m4.dtb_5.11.0_csi1-ov13850 dtb
nanopi-m4.dtb_5.11.0_csi1-ov4689 OV4689 in CSI-1 slot sudo ln -sf nanopi-m4.dtb_5.11.0_csi1-ov4689 dtb
nanopi-m4-dual-camera.dtb_5.11.0-ov13850 dual OV13850 in CSI-1 and CSI-2 sudo ln -sf nanopi-m4-dual-camera.dtb_5.11.0-ov13850 dtb
nanopi-m4-dual-camera.dtb_5.11.0-ov4689 dual OV4689 in CSI-1 and CSI-2 sudo ln -sf nanopi-m4-dual-camera.dtb_5.11.0-ov4689 dtb

Login credentials

User: ubuntu
Password: ubuntu

First logon

    sudo apt-get update
    sudo apt-get dist-upgrade

Wifi

Wifi is disabled, in order to get Wifi you need to enable wlan0i in /etc/network/interfaces or install and configure netplan or any other way you like

    iface wlan0 inet dhcp
    	wpa-ssid "FIBER-5G"
    	wpa-psk "Pw"
    wireless-power off