Aqiu 发表于 2020-11-4 14:55:45

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
HOSTCCtools/checksum.o
HOSTCCtools/common/bootm.o
HOSTCCtools/common/hash.o
HOSTCCtools/common/image-fit.o
HOSTCCtools/common/image.o
HOSTCCtools/gpimage-common.o
HOSTCCtools/dumpimage.o
HOSTCCtools/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);
                        ~~~~~~~~~~~~~~~~~~~~~   
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: *** Error 1
make: *** Waiting for unfinished jobs....
Makefile:1184: recipe for target 'tools' failed
make: *** Error 2

Aqiu 发表于 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是编译过的
页: [1]
查看完整版本: ROC-RK3328-PC编译出错,求解,急急急!!!