Firefly开源社区

标题: ROC-RK3328-PC编译出错,求解,急急急!!! [打印本页]

作者: Aqiu    时间: 2020-11-4 14:55
标题: ROC-RK3328-PC编译出错,求解,急急急!!!
在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

作者: Aqiu    时间: 2020-11-4 15:18
按照wiki的步骤执行,./build.sh rk3328-roc-pc编译完整固件,或./FFTools/make.sh rk3328-roc-pc ;./FFTools/make.sh -u -j8编译uboot都不过,单独编译内核,android是编译过的




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1