Firefly开源社区

打印 上一主题 下一主题

[Linux] uboot编译失败

31

积分

0

威望

0

贡献

技术小白

积分
31

uboot编译失败

发表于 2021-6-28 15:50:44      浏览:7392 | 回复:0        打印      只看该作者   [复制链接] 楼主
按照https://wiki.t-firefly.com/Core-3568J/linux_compile_gpt.html的步骤进行代码的下载。更新,编译

编译 kernel与recovery都成功啦,但是编译uboot提示如下错误:

processing option: uboot
============Start building uboot============
TARGET_UBOOT_CONFIG=firefly-rk3568
=========================================
## make firefly-rk3568_defconfig -j80
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  CFG     tpl/u-boot.cfg
  GEN     include/autoconf.mk
  GEN     tpl/include/autoconf.mk
  GEN     spl/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
  CHK     include/generated/generic-asm-offsets.h
  CHK     include/generated/asm-offsets.h
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/mkimage.o
  HOSTCC  tools/rockchip/boot_merger.o
  HOSTCC  tools/rockchip/loaderimage.o
  CHK     include/config.h
  CFG     u-boot.cfg
tools/rockchip/loaderimage.c: In function ‘main’:
tools/rockchip/loaderimage.c:56:31: error: ‘CONFIG_SYS_TEXT_BASE’ undeclared (first use in this function); did you mean ‘CONFIG_TPL_TEXT_BASE’?
#define RK_UBOOT_RUNNING_ADDR CONFIG_SYS_TEXT_BASE
                               ^
tools/rockchip/loaderimage.c:221:36: note: in expansion of macro ‘RK_UBOOT_RUNNING_ADDR’
           (in_loader_addr == -1) ? RK_UBOOT_RUNNING_ADDR : in_loader_addr;
                                    ^~~~~~~~~~~~~~~~~~~~~
tools/rockchip/loaderimage.c:56:31: note: each undeclared identifier is reported only once for each function it appears in
#define RK_UBOOT_RUNNING_ADDR CONFIG_SYS_TEXT_BASE
                               ^
tools/rockchip/loaderimage.c:221:36: note: in expansion of macro ‘RK_UBOOT_RUNNING_ADDR’
           (in_loader_addr == -1) ? RK_UBOOT_RUNNING_ADDR : in_loader_addr;
                                    ^~~~~~~~~~~~~~~~~~~~~
scripts/Makefile.host:116: recipe for target 'tools/rockchip/loaderimage.o' failed
make[1]: *** [tools/rockchip/loaderimage.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:1304: recipe for target 'tools' failed
make: *** [tools] Error 2
ERROR: Running build_uboot failed!
ERROR: exit code 2 from line 367:
    ./make.sh $RK_UBOOT_DEFCONFIG $UBOOT_COMPILE_COMMANDS
回复

使用道具 举报

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

本版积分规则

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