AnsweredAssumed Answered

How to build fw_printenv and fw_setenv for imx8mq?

Question asked by 晓锋 潘 on Jan 6, 2020
Latest reply on Jan 6, 2020 by Wigros Sun

我在android 9.0.0_2.0.0以及Yocto L4.14.98_2.2.0环境下编译fw_printenv 和 fw_setenv时一直报错,请问有解决方案吗?log如下:

~/i.MX-L4.9.88-2.0.0-Yocto/imx-yocto-bsp/build-xwayland-imx8mqevk/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2018.03-r0/git$ make envtools
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  GEN     spl/include/autoconf.mk
  CHK     include/config/uboot.release
  UPD     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  UPD     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  LD      tools/env/built-in.o
  HOSTCC  tools/env/crc32.o
In file included from tools/env/crc32.c:1:0:
tools/env/../../lib/crc32.c:12:10: fatal error: arpa/inet.h: No such file or directory
 #include <arpa/inet.h>
          ^~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.host:116: recipe for target 'tools/env/crc32.o' failed
make[1]: *** [tools/env/crc32.o] Error 1
Makefile:1504: recipe for target 'envtools' failed
make: *** [envtools] Error 2

Outcomes