我使用的开发板是香橙派 orangepi zero 2w开发板,在使用官方SDK包时发现一些问题,经过网上查找资料,将所遇到的问题记录如下。github上有许多异常处理的问答,如果有弄不明白的,可以去github上查一查。
文章持续更新……
问题一:编译u-boot ATF compilation failed
#异常报错
[ o.k. ] Cleaning /home/scr/orangepi-build-next/output/debs for [ orangepizero2w next ]
[ o.k. ] Compiling ATF
[ o.k. ] Compiler version [ aarch64-none-linux-gnu-gcc 9.2.1 ]
[ o.k. ] Started patching process for [ atf sun50iw9-orangepizero2w-next ]
[ o.k. ] Looking for user patches in [ userpatches/atf/atf-sun50iw9 ]
CC bl31/bl31_context_mgmt.c
[ error ] ERROR in function compile_atf [ ./build.sh:306 -> scripts/main.sh:638 -> scripts/main.sh:522 -> scripts/compilation.sh:86 -> scripts/general.sh:0 ]
[ error ] ATF compilation failed
[ o.k. ] Process terminated #程序终止
执行build.sh脚本,编译u-boot ATF compilation failed,官方脚本环境变量设置有些问题。同样,不加 USE_CCACHE=no ,后边编译其他内容也会出错。
方法:修改执行脚本,运行OK
sudo ./build.sh USE_CCACHE=no