解决orange pi编译Linux系统时报错:[ error ] ERROR in function compile_uboot的问题

解决orange pi编译Linux系统时报错:[ error ] ERROR in function compile_uboot的问题

环境:Linux yd-Thurley 5.15.0-122-generic #132~20.04.1-Ubuntu SMP Fri Aug 30 15:50:07 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

编译直接报错:

[ error ] ERROR in function compile_uboot [ ./build.sh:305 -> scripts/main.sh:631 -> scripts/main.sh:517 -> scripts/compilation.sh:247 -> scripts/general.sh:0 ]
[ error ] U-boot compilation failed
[ o.k. ] Process terminated

过程出错信息文件 out/debug/compilation.log,日志如下:

        ==  atf  ==


        == u-boot make orangepi_zero3_defconfig ==


        == u-boot make  ==

.config:2228:warning: override: reassigning to symbol BOOTDELAY
Traceback (most recent call last):
  File "scripts/dtc/pylibfdt/setup.py", line 23, in <module>
    from setuptools import setup, Extension
ModuleNotFoundError: No module named 'setuptools'
make[2]: *** [scripts/dtc/pylibfdt/Makefile:33: rebuild] Error 1
make[1]: *** [scripts/Makefile.build:397: scripts/dtc/pylibfdt] Error 2
make: *** [Makefile:2014: scripts_dtc] Error 2

提示没有setuptools模块,安装如下:

sudo apt-get install python-setuptools python3-setuptools
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值