Miqipi/Building Linux31

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 rklinux remotes/origin/miqi/v3.10
 $git clone https://github.com/mqmaker/miqi-linux-kernel.git rockchip-kernel
 $git checkout -b linux remotes/origin/miqi/linux

Building Firmware


 $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

Adding Your Own Rootfs


You need to modify the build.sh script, it's quite simple! Just to set MIQI_ROOTFS_IMG_FULLPATH points to your real rootfs image.