[tutorial]How to build Android 4.4.2 Image for BPI-M2


(Leo Xu) #1

BPI-M2 Android 4.4.2 Building

//Copyright 2014-2015 SINOVOIP,lnc Leo Xu (otakunekop@banana-pi.org.cn)

  1. Install the Linux system for building,'Ubuntu 12.04.x LTS’is recommended.

2.Install the needed software packages.

sudo apt-get install python-software-properties sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java6-installer sudo apt-get install libglapi-mesa:i386 sudo apt-get install git gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so sudo apt-get install uboot-mkimage sudo apt-get install xserver-xorgDo NOT reboot system during the process! (IMPORTANT!)

3.Download the latest source code pack from our developer website http://dev.banana-pi.org.cn .And unpack.

4.Building. 4.1 Build for hdmi.

./build_hdmi.sh4.2 Build for 7’ LCD.

./build_LCD.sh4.3 If you have finished building one of versions(hdmi OR LCD).Please run following commmand before building another!(IMPORTANT!)

./make_clean.sh4.4 For more information of buileding,pleace view ‘Build_Code_Command.txt’ in code package.


(bpi team) #2

good job , thank you very much


(Victor O) #3

emm, couldn’t get it to work :pensive:

after ./build_html.sh I get an error

Dragon execute image.cfg Failed ! ArgCnt = 3, 400

After a min or so searching on the Internet I find the source_code has broken links to missing files.

hoping that I could build them from scratch I did what Build_Code_Command.txt said to do but I get errors on the 2nd step after extract-bsp. Apperently it tries to copy files in the out directory within lichee but it doesn’t find them

any help would be appreciated