Bananapi Zero Ubuntu Base Minimal Versions Save

BananaPi M2 Zero - Ubuntu Focal Base Minimal Image (Experimental) - U-Boot 2017.09 / Kernel 4.18.y / Kernel 4.19.y / Kernel 4.20.y / Kernel 5.3.y / Kernel 5.6.y / Kernel 5.7.y / Kernel 5.11.y

v3.1

4 years ago

Kernel 5.6.0-rc4

Mainline Kernel with lima support.

Install

As usual, make a backup of your work or use a spare SD card to test the new kernel.

sudo dpkg -i linux-image-5.6.0-rc4+_1.0-40.deb

v3.0

4 years ago

Mainline Kernel 5.6.0-rc3

Kernel 5.6.0-rc3 for testing on BPI M2Z with lima support

Install

  • make a backup of your SD card or use a spare card to test this kernel

  • Install with:

      sudo dpkg -i linux-image-5.6.0-rc3+_1.0-39.deb
    

Obs: Not all modules are enabled

Install - Fix the symlink before reboot

Attention for this FIX

Before you do a reboot, you must fix the symlink:

    cd /boot
    sudo ln -sf zImage_5.6.0-rc3+ zImage
    sudo ln -sf bpi-m2-zero-v4.dtb_5.6.0-rc3+ bpi-m2-zero.dtb

Only then you can reboot

v2.9

4 years ago

Kernel 5.3.18 (gbm / fbdev / server) - EOAN

This is Kernel 5.3.18 for the BPI-M2Z with Ubuntu 19.10 (EOAN) only

  • GBM (or Wayland) linux-image-5.3.18_1.0-35.deb

  • Server linux-image-5.3.18-server_1.0-37.deb

  • fbdev linux-image-5.3.18-fbdev_1.0-38.deb

glitch (if you have old u-boot)

login prompt may not appear on the monitor

Workarounds: 1 - turn the monitor OFF and then ON if you don't see the login prompt. 2 - Just type: ubuntu [ENTER] and ubuntu [ENTER] 3 - Press ENTER key several times until it appears 4 - Alternatively use ssh

u-boot 2019.07

Update to new u-boot with:

    sudo dd if=./u-boot-sunxi-with-spl.bin conv=notrunc bs=1k seek=8 of=/dev/sdX 

where X is the device letter for the SD CARD (b,c,d...)

v2.8

4 years ago

Linux Image Kernel 5.3.11-fbdev

8GB OS Image with Ubuntu 19.10 and Kernel 5.3.11-fbdev for the BananaPi M2 Zero

  • mali-fbdev

Install

Unzip the file bpi-m2z-8GB-sd-ubuntu_eoan_kernel_fbdev_5.3.11.img.7z and burn it to SD CARD. Use etcher or Win32DiskImager to write to the SD card.

It is an 8GB Image and you need to expand it if you burn using sd card > 8GB.

PS: If you don't see the login prompt, hit ENTER until you see it.

v2.7

4 years ago

Kernel 5.3.7 Server

Kernel 5.3.7-server for Ubuntu Xenial (16.04)

Install:

sudo dpkg -i linux-image-5.3.7-server-xenial_1.0-33.deb

v2.6

4 years ago

Mainline Server Ubuntu 19.10

Kernel 5.3.7 optimized for server usage.

Install

    sudo dpkg -i  linux-image-5.3.7-server_1.0-33_fix.deb

v2.5

4 years ago

Ubuntu 19.10 (EOAN) - fbdev

This is an 8GB sd card Image with Ubuntu 19.10 targeting mali fbdev experience.

  • Use 7z to unzip the file and burn the sd_8GB.img to a sd card MD5: 514db7ca81c5b1ec7cccb4b1f98c4ad5 sd_8GB.img

  • mali blobs for fbdev (see bootlin for more info)

  • use Etcher or win32diskimager to burn the sd card (and use a known and good sd card, you have been warned)

Limitations

  • This is 8GB img, you need to expand the rootfs partition if you burn this to a 16GB or 32GB sd card

  • If you get a blank-screen, hit ENTER 4x (four times) and then use the credentials: ubuntu / ubuntu

  • Tested fbdev with sources provided in ~/mali/ run in shell: sudo su cd mali/yagears-fbdev/ export KEYBOARD=/dev/input/event0 ./yagears-fbdev -b egl-fbdev -e glesv2

    Use the keyboard to change view.

First thing before you boot

  • edit /etc/network/interfaces and update your Wifi network AP info like: iface wlan0 inet dhcp wpa-ssid "your AP" wpa-psk "your ASCII passwd like 1234567890"

If you don't have a linux box to edit the file, boot first-time without Wifi and edit it with:

    sudo jed /etc/network/interfaces

and change accordingly , save the changes and then reboot with:

    sudo reboot

v2.4

4 years ago

Ubuntu 19.10 - Eoan Ermine with Kernel 5.3.5

This is the Ubuntu 19.10 OS Image for the BananaPi M2 Zero with Mainline stable kernel 5.3.5.

Features:

  • Minimum Image, small footprint
  • Mainline Kernel 5.3.5 (stable kernel)
  • HDMI
  • hdmi-sound
  • Cedrus
  • Mali
  • BT
  • Wlan0
  • eth0
  • i2c
  • DVFS

Footprint:

              total        used        free      shared  buff/cache   available
Mem:            494          49         378           3          66         433
Swap:             0           0           0

Credentials: user: ubuntu pwd: ubuntu

Note The Image is the bare minimum and must be extended to suit your needs.

TO DO:

  • Add additional groups and udev rules to be able to run user programs to access the Hardware without root
  • Install BT / Bluez packages
  • Install and configure ALSA and pulse
  • Install ZRAM
  • Install OpenGL ES and mali blobs (GBM)
  • Install Language package
  • Install and configure Keyboard layout
  • Install tools for development
  • It is an 8GB Image, requires a minimum of 8GB card (use a good brand and true 8GB free space) If you install it in > 8GB sd card you need to resize the sd card to take advantage of bigger size or you end with 8GB in a 16GB or 32GB sd card.

Installation:

  • Download the 7z file and decompress it. (310.5 MBytes)
  • Use etcher or win32diskimager to burn the 8GB Image to sd card

First thing you should do before you boot

  • Edit /etc/network/interfaces and change the portion with your SID and PSK

      allow-hotplug wlan0
      iface wlan0 inet dhcp
          wpa-ssid "your SID"
          wpa-psk "put here your ASCII password"
    
  • do after login

     sudo apt-get update
     sudo apt-get dist-upgrade
    
  • Install the package needed

v2.3

4 years ago

Stable Kernel 5.3.4 BananaPi M2 Zero

This is the mainline stable kernel 5.3.4 for the BananaPi M2 Zero

  • HDMI
  • eth0
  • wlan0
  • BT (with some issues)
  • DVFS
  • cedrus

Install

Make sure you have 20 MB free of space in /boot

sudo dpkg -i linux-image-5.3.4_1.0-32.deb

v2.2

4 years ago

Mainline Kernel 5.3.1 BananaPi M2 Zero

This is the Mainline stable kernel 5.3.1 for BananaPi M2 Zero with the following working:

  • HDMI
  • sound
  • Bluetooth
  • cedrus
  • wifi
  • eth

The instructions below are for the Kernel 5.3.1 upgrade from a previous kernel, if you already have kernel 5.3.1 running you must downgrade before you proceed.

Instructions

  • make a backup of your SD CARD

  • Update the firmware for the Bluetooth to work

      sudo tar -xvpzf firmware-v3.tar.gz -C /lib/firmware --numeric-ow
    
  • Update the Kernel

      sudo dpkg -i linux-image-5.3.1_1.0-31.deb
    

Before you update

If you already have the kernel 5.3.1 running that had HDMI and BT broken you must downgrade before you run dpkg -i or it will display you are already at 5.3.1.

  • find the available kernels

      cd /boot
      ls -la zImage
      lrwxrwxrwx 1 root root 12 Set 24 14:25 zImage -> zImage_5.3.1
      -rwxr-xr-x  1 root root 5539040 Jun 19 11:19 zImage_4.20.17
      -rwxr-xr-x  1 root root 5684040 Ago  7 14:37 zImage_5.2.7
      -rwxr-xr-x  1 root root 5736640 Ago  7 21:10 zImage_5.3.0-rc3
      -rwxr-xr-x  1 root root 5736456 Ago 19 15:49 zImage_5.3.0-rc5
      -rwxr-xr-x  1 root root 5749256 Set  1 14:28 zImage_5.3.0-rc6-m2z
      -rwxr-xr-x  1 root root 5749816 Set  3 09:09 zImage_5.3.0-rc7-m2z
    
  • choose the previous working kernel and type

      sudo ln -sf zImage_5.3.0-rc7-m2z zImage
      sudo ln -sf bpi-m2-zero-v4.dtb_5.3.0-rc7-m2z bpi-m2-zero.dtb
    
  • reboot to the downgraded kernel

      sudo reboot
    
  • upgrade to Kernel 5.3.1 as described above remove the 5.3.1 kernel if necessary to re-install the fix