Releases: avafinger/bananapi-zero-ubuntu-base-minimal
Mainline Kernel 5.3.1 BananaPi M2 Zero
Mainline Stable Kernel 5.3.1 for BananaPi M2 Zero
Install
-
Make a backup of your data (sd card)
-
Make sure you have 20 MBytes free in the /boot partition
sudo dpkg -i linux-image-5.3.1_1.0-30.deb
issues:
- broken HDMI
- broken BT
Mainline Kernel 5.3.0-rc8 BananaPi M2 Zero
Mainline Kernel 5.3.0-rc8
- install:
sudo dpkg -i linux-image-5.3.0-rc8_1.0-29.deb
Mainline Kernel 5.3.0-rc7 BananaPi M2 Zero
Mainline Kernel 5.3.0-rc7 BananaPi M2 Zero
- add support for custom EDID
install
sudo dpkg -i linux-image-5.3.0-rc7_1.0-28.deb
set custom edid
-
edit the file /boot/bpi-m2-zero_boot.cmd and add the following:
setenv extra "no_console_suspend consoleblank=0 drm_leak_fbdev_smem=1 drm.edid_firmware=edid/1280x720.bin video=HDMI-A-1:1280x720@60" setenv bootargs "console=ttyS0,115200 earlyprintk rootfstype=ext4 root=/dev/mmcblk0p2 rw rootwait fsck.repair=${fsck.repair} panic=10 ${extra}"
-
recompile it
sudo apt-get install device-tree-compiler sudo mkimage -C none -A arm -T script -d bpi-m2-zero_boot.cmd bpi-m2-zero_boot.scr
Mainline Kernel 5.3.0-rc7 BananaPi M2 Zero
Mainline Kernel 5.3.0-rc7-m2z
This is Mainline Kernel 5.3.0-rc7 for the BananaPi M2 Zero
- Add support for Device Tree Overlays
Requirements:
- Make a backup of your data
- Install new Bootloader
- install kernel 5.3.0-rc7-m2z
DT Overlay
update the bootloader:
sudo dd if=./bootloader_2z_v3.bin conv=notrunc bs=1k seek=8 of=/dev/sdX where X is your device (1,2,3...)
update the kernel:
sudo dpkg -i linux-image-5.3.0-rc7_1.0-27.deb
- example
Change / add your dto file in /boot/bpi-m2-zero_boot.cmd and recompile it.
ext4load mmc 0 ${dtb_addr} bpi-m2-zero.dtb
fdt addr ${dtb_addr}
// ===================
// DT Overlay sample code
// ===================
// start
fdt resize
setexpr fdtovaddr ${fdt_addr_r} + F000
ext4load mmc 0 ${fdtovaddr} m2z_sample.dto
// end
Mainline Kernel 5.3.0-rc6 BananaPi M2 Zero
Mainline Kernel 5.3.0-rc6
THE DEB PACKAGE IS BROKEN - PLEASE MOVE ON TO 5.3.0.rc7-m2z
This is Mainline Kernel 5.3.0-rc6 for the BananaPi M2 Zero
- Add support for Device Tree Overlays
Requirements:
- Make a backup of your data
- Install new Bootloader
- install kernel 5.3.0-rc6-m2z
DT Overlay
update the bootloader:
sudo dd if=./bootloader_2z_v3.bin conv=notrunc bs=1k seek=8 of=/dev/sdX where X is your device (b,c,d...)
update the kernel:
sudo dpkg -i linux-image-5.3.0-rc6_1.0-26.deb
- example
Change / add your dto file in /boot/bpi-m2-zero_boot.cmd and recompile it.
ext4load mmc 0 ${dtb_addr} bpi-m2-zero.dtb
fdt addr ${dtb_addr}
// ===================
// DT Overlay sample code
// ===================
// start
fdt resize
setexpr fdtovaddr ${fdt_addr_r} + F000
ext4load mmc 0 ${fdtovaddr} m2z_sample.dto
// end
/boot tree should be like this
/boot$ ls -la
lrwxrwxrwx 1 root root 20 Jan 15 2018 boot.scr -> bpi-m2-zero_boot.scr
-rw-r--r-- 1 root root 1183 Nov 24 2018 bpi-m2-zero_boot.cmd
-rw-r--r-- 1 root root 1255 Nov 24 2018 bpi-m2-zero_boot.scr
lrwxrwxrwx 1 root root 32 Set 1 14:28 bpi-m2-zero.dtb -> bpi-m2-zero-v4.dtb_5.3.0-rc6-m2z
-rw-r--r-- 1 root root 25990 Set 1 14:28 bpi-m2-zero-v4.dtb_5.3.0-rc6-m2z
-rw-rw-r-- 1 alex alex 982455 Jan 17 2018 initrd.img
lrwxrwxrwx 1 root root 20 Set 1 14:28 zImage -> zImage_5.3.0-rc6-m2z
-rwxr-xr-x 1 root root 5749256 Set 1 14:28 zImage_5.3.0-rc6-m2z
Linux Kernel Image 5.3.0-rc3 BananaPi M2Z
Mainline Kernel 5.3.0-rc3
This is the Mainline Kernel 5.3.0-rc3 for the BananaPi M2Z
Instructions to install:
- Backup your Data Files
- install the new kernel with
sudo dpkg -i linux-image-5.3.0-rc3_1.0-25.deb
After the install, you should have something like this in /boot partition:
ls -la /boot
drwxrwxr-x 3 ubuntu ubuntu 4096 Aug 7 23:14 .
drwxr-xr-x 21 root root 4096 Jan 15 2018 ..
lrwxrwxrwx 1 root root 20 Jan 15 2018 boot.scr -> bpi-m2-zero_boot.scr
lrwxrwxrwx 1 root root 26 Aug 7 23:12 bpi-m2-ultra.dtb -> bpi-m2-ultra.dtb_5.3.0-rc3
-rw-r--r-- 1 root root 21429 Aug 7 23:12 bpi-m2-ultra.dtb_5.3.0-rc3
-rw-r--r-- 1 root root 25727 Jun 22 19:35 bpi-m2-zero-v4.dtb_4.20.17
-rw-r--r-- 1 root root 25891 Aug 7 16:11 bpi-m2-zero-v4.dtb_5.2.7
-rw-r--r-- 1 root root 25891 Aug 7 23:13 bpi-m2-zero-v4.dtb_5.3.0-rc3
lrwxrwxrwx 1 root root 28 Aug 7 23:14 bpi-m2-zero.dtb -> bpi-m2-zero-v4.dtb_5.3.0-rc3
-rw-r--r-- 1 root root 1183 Nov 24 2018 bpi-m2-zero_boot.cmd
-rw-r--r-- 1 root root 1255 Nov 24 2018 bpi-m2-zero_boot.scr
-rw-rw-r-- 1 ubuntu ubuntu 982455 Jan 18 2018 initrd.img
drwx------ 2 root root 16384 Nov 5 2017 lost+found
lrwxrwxrwx 1 root root 16 Aug 7 23:14 zImage -> zImage_5.3.0-rc3
-rwxr-xr-x 1 root root 5539040 Jun 19 14:19 zImage_4.20.17
-rwxr-xr-x 1 root root 5684040 Aug 7 17:37 zImage_5.2.7
-rwxr-xr-x 1 root root 5736640 Aug 8 00:10 zImage_5.3.0-rc3
Mainline stable Kernel 4.20.17 - Kodi
Mainline Kernel 4.20.17
Mainline stable Kernel 4.20.17 Image ready to build and run Kodi
This is the IMG with mainline kernel
- Stable Kernel 4.20.17
- Cedrus
- Mali
Credentials:
ubuntu / ubuntu
Instructions to flash using a Linux Box
-
You need a linux box with SDHC USB reader/writer SD CARD or a built-in SD CARD reader/writer (/dev/sdX or with built-in SD CARD reader (/dev/mmcblkY)
-
Find your SD CARD device where X is a letter and Y is a device number
-
Flash the SD CARD
Make it executable:
sudo chmod +x ./flash_sdcard_mz2_v2.sh sudo chmod +x ./format_sd_mainline.sh
Usage: ./flash_sdcard_mz2_v2.sh (SD CARD: /dev/sdX where X is your sd card letter or /dev/mmcblkY where Y your device number)"
sudo ./format_sd_mainline.sh /dev/sdB or /dev/mmcblk1 sudo ./flash_sdcard_mz2_v2.sh /dev/sdB or /dev/mmcblk1
Instructions to Burn using win32diskimager or etcher
- Unzip bpi-m2z-8GB-sd.img.7z
- Burn the img file from Windows or any other OS
PS:
DON'T use cheap SD CARD, use a brand new and trusted SD CARD
YOU HAVE BEEN WARNED
Mainline stable Kernel 4.20.17 Cedrus + gbm
Mainline stable Kernel 4.20.17 (Kodi)
This kernel is provided as a POC where you can build Kodi
Mainline stable kernel 4.20.17 ready to build Kodi:
- Cedrus (VPU)
- Mali (GBM)
- hdmi-sound
- wifi + eth
- tools to test cedrus and gbm (pre-built)
To test mali GBM you can run kmscube
To test cedrus you can run v4l2-request-test
VPU test
Testing cedrus on mainline is quite simple, run the tests below:
cd v4l2-request-test
sudo ./v4l2-request-test -l -f 25 -P ed-mpeg2
or
sudo ./v4l2-request-test -l -f 25 -P caminandes-h265
Mali GBM test
To test mali GBM you need to setup the mali blobs provided by https://github.com/bootlin/mali-blobs
sudo ./kmscube
When you run the kmscube you will see a cube spinning
Install kernel 4.20.17
sudo dpkg -i linux-image-4.20.17_1.0-24.deb
sudo reboot
Linux Kernel Image 4.20.17 (Experimental) m2z
Mainline stable Kernel 4.20.17
linux-image-4.20.17-m2z
kernel 4.20.17 for the BPI-M2Z
-
Install:
sudo dpkg -i linux-image-4.20.17-m2z_1.0-23.deb
sudo shutdown -h now
power cycle the board.
Kernel 4.20 - H2 firmware
This is firmware for mainline kernel 4.20.y - Wifi & BT
- extract to: /lib/firmware