[U-Boot] ImportError: No module named _libfdt

Hello,
I am new to U-Boot and trying to compile source code in order to get U-Boot working on a BananaPi.
I get the following error while compiling the latest version of master branch:
ImportError: No module named _libfdt
Has anyone an idea about why Python is not happy?
Thank you, JM

On Sat, Jun 17, 2017 at 6:45 PM, Jean-Marc Beaune jm.beaune@gmail.com wrote:
Hello,
I am new to U-Boot and trying to compile source code in order to get U-Boot working on a BananaPi.
I get the following error while compiling the latest version of master branch:
ImportError: No module named _libfdt
Has anyone an idea about why Python is not happy?
If you're using the upstream dtc you'll need something newer than the latest actual release to pull in the python bindings, even then I've found errors because I think u-boot has something different to upstream that is some how being utilised in the .07 RCs but I've not had time to look closer at it.
Peter

On 17.06.2017 19:45, jm.beaune at gmail.com (Jean-Marc Beaune) wrote:
Hello,
I am new to U-Boot and trying to compile source code in order to get U-Boot working on a BananaPi.
I get the following error while compiling the latest version of master branch:
ImportError: No module named _libfdt
Has anyone an idea about why Python is not happy?
Thank you, JM
I experienced the same problem while trying to compile for a BananaPro.
The problem was my system using python3 as default python interpreter. This causes the _libfdt module being compiled for python3 only. But the script "./tools/binman/binman", that threw the exception, explicitly requires python2.
This was on v2017.09 btw.
participants (3)
-
Conrad
-
Jean-Marc Beaune
-
Peter Robinson