How to building a Minimal system for BPI-M2

1, Format microSD card

Prepare one Class 10 SD card,and cut into two parts; the first partition is FAT32、the second partition is EXT4;but SD card’s front end should be reserve space more than 100MB which as Bootloader,Kernel storage area.we use Ubuntu provided by GParted tool to help us cut SD card.

Front end reserve 100MB,first part file system is FAT32,space is 50MB

Second partition file system is EXT4;size is remaining space from SD card

2,Install tool-chain

udo apt-get install build-essential libncurses5-dev u-boot-tools qemu-user-static\ debootstrap git binfmt-support libusb-1.0-0-dev pkg-config

sudo apt-get install gcc-arm-linux-gnueabihf

3,To BPI-GitHub

git clone

After running,please switch to BPI-M2-bsp directory,run ./ order to know support what development board currently:


can see BPI-M2 re-configuration profile; select the resolution what you want to compile the BPI-M2,it is assumed that BPI_M2_720P

Select model what you need compile(Here suggest choose (1) option when you compile first time)

4,After compilation,can see produce new download folder under /BPI-M2-bsp

5,Go to ArmHf official website Root File Systems-Debian Wheezy 7.5

6,Install Root File Systems

extract the files which was download compressed to SD second partition EXT4; please note that the decompressed instructions

sudo tar --strip-components=1 -pJxvf< file source > -C < Extract storage location >

7,Install BootLoader;please use order to see current SD card position

sudo fdisk -l

After run order,can see the example SD card’s position in /dev/sdb

Please refer to fourth tips,after compilation will have Bananapi folder;then youwill see bootload/ Kernel these file from download/BPI_M2_720P folder。Please write in former 100MB of SD card Individually。

sudo dd if=boot0_sdcard.fex       of=${card} bs=1k seek=8
sudo dd if=u-boot.fex           of=${card} bs=1kseek=19096
sudo dd if=sunxi_mbr.fex         of=${card} bs=1k seek=20480
sudo dd if=bootloader.fex           of=${card} bs=1k seek=36864
sudo dd if=env.fex               of=${card}bs=1k seek=69632
sudo dd if=boot.fex               of=${card} bs=1k seek=86016

Step 1: BPI-M2 we will use first partition FAT32 don’t need to copy any file,for compatible with Kernel4.1.X in the near future

Step 2: Copy modules to Second partition EXT4 of lib catalog from /BPI-M2-bsp/download/BPI_M2_720P/lib directory

Step 3:Please building wifi-firmware read’s directory (/system/vendor)and building Link from Second partition,because BPI-M2 loading bcmdhd.ko will go to relative path searching WiFi-firmware,so we need building one link:

$sudo mkdir system

$cd system
$sudo mkdir vendor

Go to system/vendor directory building relative link

$ sudo ln -s /lib/modules/3.11.0-15-generic/ modules

8.Finished above steps

please insert maked-SD card into Banana Pi,please try to Boot。

results matching ""

    No results matching ""