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
Mainline Kernel with lima support.
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
Kernel 5.6.0-rc3 for testing on BPI M2Z with lima support
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
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
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
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
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...)
8GB OS Image with Ubuntu 19.10 and Kernel 5.3.11-fbdev for the BananaPi M2 Zero
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.
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
Kernel 5.3.7 optimized for server usage.
Install
sudo dpkg -i linux-image-5.3.7-server_1.0-33_fix.deb
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.
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
This is the Ubuntu 19.10 OS Image for the BananaPi M2 Zero with Mainline stable kernel 5.3.5.
Features:
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:
Installation:
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
This is the mainline stable kernel 5.3.4 for the BananaPi M2 Zero
Make sure you have 20 MB free of space in /boot
sudo dpkg -i linux-image-5.3.4_1.0-32.deb
This is the Mainline stable kernel 5.3.1 for BananaPi M2 Zero with the following working:
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.
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
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