[Buildroot] Unable to build for Banana Pi M2 ZERO - _libdft

Arnout Vandecappelle arnout at mind.be
Sun Aug 14 21:51:30 UTC 2022



On 11/08/2022 23:01, Michal Ciesielski via buildroot wrote:
> Hello
> 
> I'm trying to build bananapi_m2_zero_defconfig. I'm hitting the following problem:
> 
>    OBJCOPY spl/u-boot-spl-nodtb.bin
>    COPY    spl/u-boot-spl.bin
>    MKSUNXI spl/sunxi-spl.bin
>    BINMAN  u-boot-sunxi-with-spl.bin
> binman: No module named _libfdt
> make[1]: *** [Makefile:1348: u-boot-sunxi-with-spl.bin] Error 1
> make[1]: Leaving directory '/home/mc/gits/buildroot-2022.05.1/output/build/uboot-2019.01'
> make: *** [package/pkg-generic.mk:293: /home/mc/gits/buildroot-2022.05.1/output/build/uboot-2019.01/.stamp_built] Error 2
> 
> Before that problem I see the warning:
> 
> /home/mc/gits/buildroot-2022.05.1/output/host/lib/python3.10/site-packages/setuptools/dist.py:530:
> UserWarning: The version specified ('u-boot-2019.01') is an invalid version, this may not work as
> expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
> 
> Looking at the path it seems it's using Python3. Looking at the description here https://lists.denx.de/pipermail/u-boot/2017-October/308661.html.
> it seems this would be solved by using Python2. I found the option BR2_TARGET_UBOOT_NEEDS_PYTHON2
> but this seems to be legacy option.
> 
> Is this a Buildroot problem or is it me? Any idea how to make this work?

  It's a Buildroot problem in the sense that we removed python2 support 
completely, but U-Boot 2019.01 still needed python2.

  The typical solution is to update U-Boot. A patch that does that for 
bananapi_m2_zero_defconfig would be very welcome! Failing that, we're just going 
to remove the defconfig in the upcoming 2022.08 release [1].

  Regards,
  Arnout

[1] https://lore.kernel.org/buildroot/20220806224338.0159e15c@windsurf/

> 
> Thanks, Michal
> 
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot



More information about the buildroot mailing list