1.源码下载
下载repo启动脚本:
#curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
repo添加可执行属性:
#chmod a+x ~/bin/repo
设置环境变量:
#PATH=~/bin:$PATH
建立工程目录:
#mkdir amlogic
#cd amlogic
下载m3分支:
repo init -u git://10.1.1.35:9419/z_m3/manifest -b gingerbread-amlogic-m3
修改.repo/manifest.xml的openlinux的fetch链接为:
fetch="git://10.1.1.35:9419/z_m3/"
下载代码:
repo sync
2.安装交叉编译器
3.uboot编译
make m3_mid_reff04_config
make -j2
4.kernel编译
cp xxx .config
make -j2
5.android编译
# . buid/envsetup.sh
#lunch
选择f04
#make -j2
img打包:
# . buid/envsetup.sh
#lunch
#make otapackage