页次: 1
各位大佬,最近在使用荔枝派nano,使用 gcc-linaro-7.2.1-2017.11编译u-boot出错,如下:
MKIMAGE u-boot.img
COPY u-boot.dtb
BINMAN u-boot-sunxi-with-spl.bin
Traceback (most recent call last):
File "./tools/binman/binman", line 32, in <module>
import control
File "/home/jim/u-boot/tools/binman/control.py", line 16, in <module>
import fdt
File "/home/jim/u-boot/tools/binman/../dtoc/fdt.py", line 13, in <module>
import libfdt
File "scripts/dtc/pylibfdt/libfdt.py", line 28, in <module>
_libfdt = swig_import_helper()
File "scripts/dtc/pylibfdt/libfdt.py", line 20, in swig_import_helper
import _libfdt
ImportError: No module named _libfdt
Makefile:1148: recipe for target 'u-boot-sunxi-with-spl.bin' failed
make: *** [u-boot-sunxi-with-spl.bin] Error 1
jim@jim-VirtualBox:~/u-boot$
从log看应该跟设备树有关系,但是模块我都安装了
apt-get install swig
apt-get install python-dev python3-dev
apt-get install device-tree-compiler
搞了好几天还是没有搞定,请各位大佬帮看看,谢谢
页次: 1