HCL:BananaPi M2 Zero

Jump to: navigation, search

The Banana Pi M2 Zero is a mini size development board (60mm*30mm) with Allwinner H2+ SoC.

BananaPi M2 Zero

M2 Zero in the BananaPi Wiki

Technical Data

  • Alwinner Quad-core Cortex-A7 H2+
    • 4x ARM Cortex-A7
    • Mali400 MP2
  • 512MB DDR3 SDRAM
  • WiFi (AP6212) and Bluetooth onboard
  • MicroSD card connector
  • USB OTG Port
  • Mini-HDMI
  • CSI Camera Interface
  • 40-pin expansion header
  • 10/100 Mbps Ethernet Port (needs external components)

Writing a disk image to the SD card

  1. Download the image you want (Leap is stable, Tumbleweed is rolling) from here:
    Geeko-white.png
    Tumbleweed
    JeOS image E20 image XFCE image LXQT image GNOME image KDE image X11 image

    If the direct links above do not work for you, please check the general download directory for the images.

  2. As root extract the image onto your SD card (replace sdX with the device name of your SD card).
    WARNING: all previous data on the SD card will be lost. Check first if the device you have selected is really your SD card!
     xzcat [image].raw.xz | dd bs=4M of=/dev/sdX iflag=fullblock oflag=direct; sync
  3. Insert the SD card with the openSUSE image into your board.
  4. Connect the board to your PC via serial port (optional, but helpful for debugging; USB-TTL serial cable needed).
  5. Connect the board to your monitor (via DVI/HDMI, optional).
  6. Power on the board.
  7. Walk through the first boot steps.
  8. Ethernet is configured to request an IP via DHCP, check your DHCP server for the board IP if used.
  9. Have a lot of fun...
Default login is root:linux, works on serial console, via ssh, GUI.

Enable Wifi and Bluetooth Support

The onboard Wifi and Bluetooth implemented by a AP6212 module. This needs a firmware loaded which is provided by the kernel-firmware-brcm package.

Switch USB port from OTG to HOST mode

If you want to connect a USB device like a mouse, keyboard or an USB stick via an adapter to the USB-OTG port, then you need to switch it from USB OTG mode into USB HOST mode. To achieve this you need to recompile the device tree file:

First, backup your original dtb file:

cd /boot/dtb
cp -p sun8i-h2-plus-bananapi-m2-zero.dtb sun8i-h2-plus-bananapi-m2-zero.dtb.orig

Then decompile it:

dtc -I dtb sun8i-h2-plus-bananapi-m2-zero.dtb -O dts -o sun8i-h2-plus-bananapi-m2-zero.dts

now edit the dts file and change the line

  dr_mode = "otg";

to

  dr_mode = "host";

and recompile the dts file to a dtb:

dtc -I dts -O dtb -o sun8i-h2-plus-bananapi-m2-zero.dtb sun8i-h2-plus-bananapi-m2-zero.dts

Reboot and USB devices should be usable via an OTG adapter.