banana pi BPI-M2 A31s quad core single board compu
  • Initial page
  • LANGS
  • Banana pi BPI-M2
    • BPI-M2 hardware interface:
    • Summary
    • Armbian linux for BPI-M2
    • BPI-M2 source code on github
    • BPI-M2 WiringPi
    • BPI-M2 3.7V lithium battery interface
    • How to setup docker env. to build github source code
    • A31 Manual build howto
    • BPI-M2 GigE LAN
    • All Banana Pi SBC Comparison
    • OpenSuse for BPI-M2
    • BPI-M2 software
    • BPI-M2 Camera interface
    • BPI-M2 Building a Minimal linux System
    • BPI-M2 schematic diagram
    • Bananian linux
    • BPI-M2 IR interface
    • NetBSD/evbarm on Allwinner Technology SoCs
    • Android software
    • BPI-M2 wifi antenna slot
    • BPI-M2 RGB DSI interface
    • BPI-M2 quick start
    • BPI-M2 CE FCC RoHS Certification
    • BPI-M2 linux-sunxi wiki
    • BPI-M2 DXF and 3D design
    • linuxkernel33
    • BPI-M2 OTG interface
    • mainline kernel
    • OpenWRT
    • BPI-M2 GPIO Pin define
    • Reference documents for BPI-M2
    • Allwinner chip documents
    • How to building a Minimal system for BPI-M2
    • BPI-M2 USB interface
    • BPI-M2 WIFI interface
    • BPI-M2 DC Power interface
    • BPI-M2 micro SD card slot
    • How to build Android 4.4.2 Image for BPI-M2
    • ABD driver
    • Linux mainlining effort
    • BPI-M2 HDMI interface
    • BPI-M2 hardware spec:
    • uboot
  • Banana pi BPI-M2
    • ABD driver
    • All Banana Pi SBC Comparison
    • BPI-M2 hardware spec:
    • Summary
    • BPI-M2 schematic and gerber file
    • A31 Manual build howto
    • bpi-m2-hardware
    • BPI-M2 CE FCC RoHS Certification
    • All banana pi product
    • BPI-M2 DXF and 3D design
    • Bananian linux
    • BPI-M2 GPIO Pin define
    • Allwinner chip documents
    • Android software
    • Armbian linux for BPI-M2
    • BPI-M2 3.7V lithium battery interface
Powered by GitBook
On this page

Was this helpful?

  1. Banana pi BPI-M2

How to building a Minimal system for BPI-M2

PreviousAllwinner chip documentsNextBPI-M2 USB interface

Last updated 5 years ago

Was this helpful?

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

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

./build

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

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。

3,To BPI-GitHub

git clone https://github.com/BPI-SINOVOIP/BPI-M2-bsp.git

Root File Systems-Debian Wheezy 7.5

https://github.com/BPI-SINOVOIP/BPI-M2-bsp
http://www.armhf.com/download/download