Mainline Kernel 5.3.0-rc6 BananaPi M2 Zero
Pre-release
Pre-release
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