高通在QCM6125安卓10.0加入了UEFI,以前的lk相关代码移到了boot_images/QcomPkg路径下,编译方式和之前也不同了。
-
编译环境
编译时错误提示:
需要工具在这个路径/pkg/qct/software/llvm/release/arm/4.0.2。
需要安装的工具Snapdragon-llvm-4.0.2-linux64.tar.gz
https://download.csdn.net/download/weixin_43819696/19548320
安装步骤:
a. sudo mkdir /pkg/qct/software/llvm/release/arm/4.0.2 –p
b. cp Snapdragon-llvm-4.0.2-linux64.tar.gz /pkg/qct/software/llvm/release/arm/4.0.2
c. cd /pkg/qct/software/llvm/release/arm/4.0.2
d. tar –xvf Snapdragon-llvm-4.0.2-linux64.tar.gz
e. chmod 777 /pkg/qct/software/llvm/release/arm/4.0.2 –R -
编译命令
cd boot_images/QcomPkg/SocPkg/NicobarPkg
python …/…/buildex.py --variant LAA -r RELEASE -t NicobarPkg,QcomToolsPkg -
clean命令
python …/…/buildex.py --variant LAA -r RELEASE -t NicobarPkg,QcomToolsPkg --build_flags=cleanall -
烧写命令
fastboot flash xbl xbl.elf