解决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