Firefly开源社区

打印 上一主题 下一主题

[Android] ROC-RK3328-PC编译出错,求解,急急急!!!

90

积分

0

威望

0

贡献

技术小白

积分
90

ROC-RK3328-PC编译出错,求解,急急急!!!

发表于 2020-11-4 14:55:45      浏览:5767 | 回复:1        打印      只看该作者   [复制链接] 楼主
在Ubuntu18.08上编译,uboot编译不过#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/config.h
  GEN     include/autoconf.mk.dep
  GEN     include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/generated/version_autogenerated.h
  HOSTCC  tools/checksum.o
  HOSTCC  tools/common/bootm.o
  HOSTCC  tools/common/hash.o
  HOSTCC  tools/common/image-fit.o
  HOSTCC  tools/common/image.o
  HOSTCC  tools/gpimage-common.o
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/gpimage.o
tools/checksum.c: In function ‘main’:
tools/checksum.c:56:24: error: ‘RK_BLK_SIZE’ undeclared (first use in this function); did you mean ‘S_BLKSIZE’?
  blocks = sb.st_size / RK_BLK_SIZE;
                        ^~~~~~~~~~~
                        S_BLKSIZE
tools/checksum.c:56:24: note: each undeclared identifier is reported only once for each function it appears in
tools/checksum.c:91:51: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint32_t {aka unsigned int}’ [-Wformat=]
   printf("offset:0x%08x, blocks:0x%08x, crc:0x%08lx\n",
                                               ~~~~^
                                               %08x
     offset, read_blocks, crc_array[crc_counts]);
                          ~~~~~~~~~~~~~~~~~~~~~     
tools/checksum.c:108:31: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint32_t {aka unsigned int}’ [-Wformat=]
  printf("whole checksum:0x%08lx\n", checksum);
                           ~~~~^
                           %08x
scripts/Makefile.host:134: recipe for target 'tools/checksum.o' failed
make[1]: *** [tools/checksum.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:1184: recipe for target 'tools' failed
make: *** [tools] Error 2
回复

使用道具 举报

90

积分

0

威望

0

贡献

技术小白

积分
90
发表于 2020-11-4 15:18:31        只看该作者  沙发
按照wiki的步骤执行,./build.sh rk3328-roc-pc编译完整固件,或./FFTools/make.sh rk3328-roc-pc ;./FFTools/make.sh -u -j8编译uboot都不过,单独编译内核,android是编译过的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表