各位大佬,最近在使用荔枝派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
搞了好几天还是没有搞定,请各位大佬帮看看,谢谢
离线
谢谢晕哥的回复,我删除了,重新克隆还是这样,我还尝试过在windows下载这个zip包下来,然后到ubuntu上编译,还是这个错
离线
但是我已经apt install device-tree-compiler了,这个libfdt是在其他开发包里面吗?在网上也没有找到
离线
谢谢晕哥指导,貌似还是不行,我再查查看看
离线