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://your_id@136.18.36.13:29418/manifest_aosp -m mtk_android_platform_yfve_202001.xml

sed -i -e 's#USER#your_id#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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值