uboot编译报错解决

File “scripts/dtc/pylibfdt/setup.py”, line 21, in
from distutils.core import setup, Extension
ModuleNotFoundError: No module named ‘distutils.core’
HOSTCC scripts/dtc/checks.o
make[3]: *** [scripts/dtc/pylibfdt/Makefile:30: rebuild] Error 1
make[2]: *** [scripts/Makefile.build:419: scripts/dtc/pylibfdt] Error 2
make[2]: *** Waiting for unfinished jobs…
CC lib/asm-offsets.s
CC arch/arm/lib/asm-offsets.s
uboot编译报错解决_第1张图片

执行如下命令即可 : apt-get install python-dev python3-dev

nable to execute ‘swig’: No such file or directory
error: command ‘swig’ failed with exit status 1
make[3]: *** [scripts/dtc/pylibfdt/Makefile:30: rebuild] Error 1
make[2]: *** [scripts/Makefile.build:419: scripts/dtc/pylibfdt] Error 2
make[2]: *** Waiting for unfinished jobs…
CC lib/asm-offsets.s
CC arch/arm/lib/asm-offsets.s
make[1]: *** [scripts/Makefile.build:419: scripts/dtc] Error 2
UPD include/generated/asm-offsets.h
UPD include/generated/generic-asm-offsets.h
make: *** [Makefile:576: scripts] Error 2
make: *** Waiting for unfinished jobs…

uboot编译报错解决_第2张图片
遇到如上图报错信息,执行如下命令即可 :apt-get install swig,另外,如果需要查看cpu某个寄存器值,可以使用md 寄存器地址 个数查看,命令为 md 0x12345678 1,查看地址0x12345678 开始的1个寄存器长度的值

你可能感兴趣的:(U-Boot,python,开发语言,后端)