Miqipi/Building Linux314

From wiki
Jump to: navigation, search


Getting The Souce


 $mkdir miqi_root
 $cd miqi_root
 $git clone https://github.com/mqmaker/miqi-linux-build.git build
 $git checkout -b v3.14 remotes/origin/miqi/v3.14
 $git clone https://github.com/mqmaker/linux-rockchip.git kernel
 $git checkout -b v3.14 remotes/origin/miqi/v3.14

Building Firmware


Before compiling, we need to modify the build.sh script. Open the build.sh with editor, and change

 ANDROID_ROOT=/WORK/MiQi/android

to

 ANDROID_ROOT=__the_real_android_sdk_path__

then we can start the build process

 $cd build
 $./build.sh

If success, we will get a firmware at build/pack/out directory. We can flash the firmware to the board with following command

 $sudo ./pack/upgrade_tool_v1.21/upgrade_tool uf pack/out/update.img