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 setup docker env. to build github source code

PreviousBPI-M2 3.7V lithium battery interfaceNextA31 Manual build howto

Last updated 5 years ago

Was this helpful?

how to setup docker env. to build banana pi github source code

step 1: install docker

step 2: docker run

$ do cker run -d -p 2222:22 -v /media:/media sinovoip/bpi-build:ubuntu12.04

on your host

$ ssh -p 2222 root@127.0.0.1 //default passwd is root

or (with --privileged can use /dev/loop for create img)

$ docker run -d -p 3333:22 --privileged -v /media:/media sinovoip/bpi-build:ubuntu12.04

$ ssh -p 3333 root@127.0.0.1 //default passwd is root

step 3: git clone

# cd /media/XXX/your-source
# git clone https://github.com/BPI-SINOVOIP/BPI-M3-bsp.git

step 4: build

# ./build.sh

how to create your own env. to build the code

step 2: vi Dockerfile

step 3. vi build.sh

step 4: ./build.sh

why use docker env. to build banana pi source code 1. allwinner tools needs ubuntu12.04 with ia32-libs ... 2. user maybe use ubuntu 12.04 or 14.04 and newer like 16.04, the docker env. the same, even other linux like fedora opensuse archlinux ...., or other os like macos , windows ... 3. build BPI-Mx-bsp env. than mainline kernel & uboot or android 4.X or android 5.X / 6.X not the same.

step 1: git clone

https://docs.docker.com/engine/installation/linux/ubuntulinux/
https://hub.docker.com/r/sinovoip/bpi-build/
https://github.com/BPI-SINOVOIP/bpi-build.git