东山壹号编译烧写boot make出错

按照配置了所有工具链,最后make时候出现了以下错误,检查后没有遗漏任何步骤:

gz@gz-TN15S:~/workspace/PI1/DongshanPiOne-TAKOYAKI/boot$ make infinity2m_spinand_defconfig

arch/../configs/.tmp_defconfig:326:warning: override: reassigning to symbol CMD_FASTBOOT

#

# configuration written to .config

#

gz@gz-TN15S:~/workspace/PI1/DongshanPiOne-TAKOYAKI/boot$ make -j8

scripts/kconfig/conf --silentoldconfig Kconfig

  CHK     include/config.h

  UPD     include/config.h

  GEN     include/autoconf.mk

  GEN     include/autoconf.mk.dep

  GCC version: 8.2.1

  MVXV

  CHK     include/generated/timestamp_autogenerated.h

chip_id I2M

  UPD     include/generated/timestamp_autogenerated.h

  CHK     include/config/uboot.release

  UPD     include/config/uboot.release

  CHK     include/generated/version_autogenerated.h

  UPD     include/generated/version_autogenerated.h

  CC      lib/asm-offsets.s

  CC      arch/arm/lib/asm-offsets.s

  GEN     include/generated/asm-offsets.h

  GEN     include/generated/generic-asm-offsets.h

  HOSTCC  tools/envcrc.o

  WRAP    tools/lib/crc32.c

  WRAP    tools/common/env_embedded.c

  WRAP    tools/lib/sha1.c

  HOSTCC  tools/gen_eth_addr

  HOSTCC  tools/mkenvimage.o

  LDS     u-boot.lds

  HOSTCC  tools/os_support.o

  HOSTCC  tools/aisimage.o

  HOSTCC  tools/atmelimage.o

  WRAP    tools/common/bootm.c

  HOSTCC  tools/default_image.o

In file included from include/config.h:4,

                 from arch/arm/cpu/u-boot.lds:10:

include/configs/infinity2m.h:211:113: 警告: 缺少结尾的 ' 字符

 #define CONFIG_ENV_SIZE         0x1000 // Using 4K length for env is enough, this length must be the s00020000


  WRAP    tools/lib/fdtdec_common.c

  WRAP    tools/lib/fdtdec.c

  HOSTCC  tools/fit_common.o

  HOSTCC  tools/fit_image.o

  HOSTCC  tools/gpimage.o

  HOSTCC  tools/gpimage-common.o

In file included from tools/../include/libfdt.h:54,

                 from tools/fdt_host.h:11,

                 from tools/imagetool.h:22,

                 from tools/aisimage.c:8:

/usr/include/libfdt_env.h:27:30: error: conflicting types for ‘fdt64_t’

   27 | typedef uint64_t FDT_BITWISE fdt64_t;

      |                              ^~~~~~~

In file included from tools/../include/libfdt.h:54,

                 from tools/fdt_host.h:11,

                 from tools/imagetool.h:22,

                 from tools/atmelimage.c:8:

/usr/include/libfdt_env.h:27:30: error: conflicting types for ‘fdt64_t’

   27 | typedef uint64_t FDT_BITWISE fdt64_t;

      |                              ^~~~~~~

In file included from tools/../include/libfdt.h:54,

                 from tools/fdt_host.h:11,

                 from tools/imagetool.h:22,

                 from tools/fit_common.c:21:

/usr/include/libfdt_env.h:27:30: error: conflicting types for ‘fdt64_t’

   27 | typedef uint64_t FDT_BITWISE fdt64_t;

      |                              ^~~~~~~

In file included from tools/../include/libfdt.h:54,

                 from tools/fdt_host.h:11,

                 from tools/imagetool.h:22,

                 from tools/fit_image.c:17:

/usr/include/libfdt_env.h:27:30: error: conflicting types for ‘fdt64_t’

   27 | typedef uint64_t FDT_BITWISE fdt64_t;

      |                              ^~~~~~~

In file included from <command-line>:

././include/libfdt_env.h:19:16: note: previous declaration of ‘fdt64_t’ was here

   19 | typedef __be64 fdt64_t;

      |                ^~~~~~~

In file included from tools/../include/libfdt.h:54,

                 from tools/fdt_host.h:11,

                 from tools/imagetool.h:22,

                 from tools/gpimage.c:22:

/usr/include/libfdt_env.h:27:30: error: conflicting types for ‘fdt64_t’

   27 | typedef uint64_t FDT_BITWISE fdt64_t;

      |                              ^~~~~~~

In file included from <command-line>:

././include/libfdt_env.h:19:16: note: previous declaration of ‘fdt64_t’ was here

   19 | typedef __be64 fdt64_t;

      |                ^~~~~~~

In file included from <command-line>:

././include/libfdt_env.h:19:16: note: previous declaration of ‘fdt64_t’ was here

   19 | typedef __be64 fdt64_t;

      |                ^~~~~~~

In file included from <command-line>:

././include/libfdt_env.h:19:16: note: previous declaration of ‘fdt64_t’ was here

   19 | typedef __be64 fdt64_t;

      |                ^~~~~~~

In file included from ././include/libfdt_env.h:12,

                 from <command-line>:

/usr/include/libfdt_env.h:47:24: error: expected ‘)’ before ‘x’

   47 | static inline uint32_t fdt32_to_cpu(fdt32_t x)

      |                        ^~~~~~~~~~~~

In file included from ././include/libfdt_env.h:12,

                 from <command-line>:

/usr/include/libfdt_env.h:47:24: error: expected ‘)’ before ‘x’

   47 | static inline uint32_t fdt32_to_cpu(fdt32_t x)

      |                        ^~~~~~~~~~~~

././include/compiler.h:66:9: error: expected ‘)’ before ‘&’ token

   66 |  ((((x) & 0xff000000) >> 24) | \

      |         ^

In file included from ././include/libfdt_env.h:12,

                 from <command-line>:

/usr/include/libfdt_env.h:47:24: error: expected ‘)’ before ‘x’

   47 | static inline uint32_t fdt32_to_cpu(fdt32_t x)

      |                        ^~~~~~~~~~~~

In file included from ././include/libfdt_env.h:12,

                 from <command-line>:

/usr/include/libfdt_env.h:47:24: error: expected ‘)’ before ‘x’

   47 | static inline uint32_t fdt32_to_cpu(fdt32_t x)

      |                        ^~~~~~~~~~~~

././include/compiler.h:66:23: error: expected ‘)’ before ‘>>’ token

   66 |  ((((x) & 0xff000000) >> 24) | \

      |                       ^~

././include/compiler.h:66:9: error: expected ‘)’ before ‘&’ token

   66 |  ((((x) & 0xff000000) >> 24) | \

      |         ^

././include/compiler.h:66:30: error: expected ‘)’ before ‘|’ token

   66 |  ((((x) & 0xff000000) >> 24) | \

      |                              ^

././include/compiler.h:66:9: error: expected ‘)’ before ‘&’ token

   66 |  ((((x) & 0xff000000) >> 24) | \

      |         ^

././include/compiler.h:66:23: error: expected ‘)’ before ‘>>’ token

   66 |  ((((x) & 0xff000000) >> 24) | \

      |                       ^~

././include/compiler.h:66:9: error: expected ‘)’ before ‘&’ token

   66 |  ((((x) & 0xff000000) >> 24) | \

      |         ^

././include/compiler.h:66:30: error: expected ‘)’ before ‘|’ token

   66 |  ((((x) & 0xff000000) >> 24) | \

      |                              ^

././include/compiler.h:66:23: error: expected ‘)’ before ‘>>’ token

   66 |  ((((x) & 0xff000000) >> 24) | \

      |                       ^~

/usr/include/libfdt_env.h:51:23: error: expected ‘)’ before ‘x’

   51 | static inline fdt32_t cpu_to_fdt32(uint32_t x)

......

make[1]: *** [scripts/Makefile.host:108:tools/kwbimage.o] 错误 1
make[1]: *** [scripts/Makefile.host:108:tools/image-host.o] 错误 1
make[1]: *** [scripts/Makefile.host:108:tools/imximage.o] 错误 1
make: *** [Makefile:1136:tools] 错误 2
请先 登录 后评论

1 个回答

百问网_赵老师
擅长:嵌入式开发

你好,东山派操作请参考:http://dongshanpi.com/

请保持和教程一样开发环境和仔细确认操作步骤,这部分经过众多学员验证过的,通常不会有问题。

请先 登录 后评论