MT2712 环境配置

配置Yocto环境

  • 安装软件
sudo apt-get install curl terminator vim gawk wget git-core diffstat unzip texinfo gcc-multilib \
	build-essential chrpath socat libsdl1.2-dev xterm g++ libstdc++6 lib32stdc++6 libpulse-dev rpm2cpio
  • 配置repo
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o ~/bin/repo 
chmod +x ~bin/repo 
  1. repo init 
~/bin/repo init -u http://git01.mediatek.com/yocto-ivi/manifest -b auto-release-agl6.ivi.mp2 -m 2019_03_04_00.xml --no-repo-verify
  1. repo sync 
~/bin/repo --trace sync -c 2>sync.log
  • 编译Linux BSP
cd MT2712-bsp
export TEMPLATECONF=${PWD}/meta/base/conf/mt2712/auto2712p1v1-ivi_agl
source meta/poky/oe-init-build-env
bitbake mkt-image-agl-full

单独编译模块:
	bitbake virtual/kernel
	bitbake lk
	bitbake trustzone
  • 编译SDK toolchain
delete:
MT2712-bsp/meta/meta-mediatek-ivi-agl/recipes-core/nativesdk-af-binder-devtools/nativesdk-af-binder-devtools_%.bbappend

delete:
MT2712-bsp/meta/meta-mediatek-ivi-agl/recipes-core/nativesdk-af-main/nativesdk-af-main_%.bbappend

make:
bitbake mtk-image-agl-full
bitbake mtk-image-agl-full -c populate_sdk

配置Android 环境

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl\
 zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev\
 x11proto-core-dev libx11-dev lib32z1-dev ccache libgl1-mesa-dev libxml2-utils \
xsltproc unzip device-tree-compiler
  • repo init 
repo init --no-repo-verify -u ssh://[email protected]:29418/manifest_aosp -m mtk_android_platform_yfve_202001.xml

sed -i -e 's#USER#cyang23#g' .repo/manifests/userinfo.xml
  •  编译Android BSP
source build/envsetup.sh
lunch car_mt2712-userdebug
make -j12 2>&1 | tee build.log

make bootimage
make lk

 

你可能感兴趣的:(环境搭建)