香橙派 linux SDK开发使用异常处理

我使用的开发板是香橙派 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

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值