系统环境Ubuntu-12.04 x86_64
源码下载地址:http://pan.baidu.com/s/1dDGPnXZ
编译步骤:
$ cd lichee/linux-3.4 $ make clean $ cp arch/arm/configs/cubieboard2_config .config //note:if you want to complie cubietruck, please copy cubietruck_config. $ cd .. $ ./build.sh -p sun7i_android $ cd ../android $ source build/envsetup.sh $ lunch //note:select sugar-cubieboard2 or sugar-cubietruck $ extract-bsp $ make -j8
注意:需要unset NDK_ROOT,否则build过程可能出错:
In file included from external/webrtc/src/modules/audio_processing/audio_processing_impl.cc:11:0: external/webrtc/src/modules/audio_processing/audio_processing_impl.h:16:16: fatal error: list: No such file or directory compilation terminated.
编译完成后,运行pack生成image
$ pack
最后将生成的image用PhoenixCard(V310_20130618)烧写至SD卡,选择好「镜像文件」,「盘符」选择U盘,「烧写模式」选择卡启动,烧录即可
如果烧写NAND,用PhoenixSuit_V1.08一键刷机刷入即可
注:如果image烧写到SD卡,可以将NAND禁用掉,修改下面文件,将nand_used = 0,否则卡启动后NAND会被挂载,有些问题
lichee/tools/pack/chips/sun7i/configs/android/sugar-cubieboard2/sys_config.fex