使用Arm Trusted Firmware v2.2为Avenger96板构建错误



我正在用Buildroot作为构建系统为Avenger96板构建Linux映像。

我正在做的步骤:

  1. 制作复仇者96_defconfig
  2. 制造

我得到以下错误:

/usr/bin/make -j1 O=/buildroot/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++"        syncconfig
make[1]: Entering directory '/buildroot'
make[1]: Leaving directory '/buildroot'
>>> arm-trusted-firmware v2.2 Building
PATH="/buildroot/output/host/bin:/buildroot/output/host/sbin:/usr/local/sbin:/usr/local                     /bin:/usr/sbin:/usr/bin:/sbin:/bin" ENABLE_STACK_PROTECTOR=0 /usr/bin/make -j9 -C /buildroot/output/build/arm-trusted-firmware-v2.2 DEBUG=1 CROSS_COMPILE="/buildroot/output     /host/bin/arm-buildroot-linux-uclibcgnueabihf-" STM32MP_SDMMC=1 AARCH32_SP=sp_min     DTB_FILE_NAME=stm32mp157a-avenger96.dtb PLAT=stm32mp1 ARM_ARCH_MAJOR=7 ARCH=aarch32 all
make[1]: Entering directory '/buildroot/output/build/arm-trusted-firmware-v2.2'
Including bl32/sp_min/sp_min.mk
make[2]: Nothing to be done for 'all'.
Building stm32mp1
LD      build/stm32mp1/debug/bl2/bl2.elf
LD      build/stm32mp1/debug/bl32/bl32.elf
/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld: ./build/stm32mp1     /debug/bl32/psci_off.o: in function `psci_do_cpu_off':
/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld: /buildroot/output   /build/arm-trusted-firmware-v2.2/lib/psci/psci_off.c:181: undefined reference to    `__stack_chk_fail'
/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld: /buildroot/output/build/arm-trusted-firmware-v2.2/lib/psci/psci_off.c:181: undefined reference to `__stack_chk_guard'
/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld: ./build/stm32mp1  /debug/bl2/stm32_hash.o./build/stm32mp1/debug/bl32/psci_suspend.o: in function `: in    function `psci_cpu_suspend_start':
stm32_hash_update/buildroot/output/build/arm-trusted-firmware-v2.2/lib   /psci/psci_suspend.c:':
272: undefined reference to `__stack_chk_fail'
/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld/buildroot/output   /build/arm-trusted-firmware-v2.2/drivers/st/crypto/stm32_hash.c:: 236: undefined reference   to `/buildroot/output/build/arm-trusted-firmware-v2.2/lib  /psci/psci_suspend.c:__stack_chk_fail'
272: undefined reference to `/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld: __stack_chk_guard/buildroot/output/build/arm-trusted-firmware-v2.2/drivers/st/crypto/stm32_hash.c:'
236: undefined reference to `__stack_chk_guard'
/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld: ./build/stm32mp1    /debug/bl2/stm32_hash.o: in function `stm32_hash_final':
/buildroot/output/build/arm-trusted-firmware-v2.2/drivers/st/crypto/stm32_hash.c:263:    undefined reference to `__stack_chk_fail'
/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld: /buildroot/output  /build   /arm-trusted-firmware-v2.2/drivers/st/crypto/stm32_hash.c:263: undefined reference   to   `__stack_chk_guard'
/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld: ./build/stm32mp1    /debug/bl2/stm32_hash.o: in function `stm32_hash_register':
/buildroot/output/build/arm-trusted-firmware-v2.2/drivers/st/crypto/stm32_hash.c:330:   undefined reference to `__stack_chk_fail'
/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld: /buildroot/output/build/arm-trusted-firmware-v2.2/drivers/st/crypto/stm32_hash.c:330: undefined reference to `__stack_chk_guard'
/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld: /buildroot/output   /host/bin/arm-buildroot-linux-uclibcgnueabihf-ld: ./build/stm32mp1/debug    /bl2/io_stm32image.o: in function `stm32image_partition_size':
/buildroot/output/build/arm-trusted-firmware-v2.2/drivers/st/io/io_stm32image.c:243: undefined reference to `__stack_chk_fail'
/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld: /buildroot/output   /build/arm-trusted-firmware-v2.2/drivers/st/io/io_stm32image.c:243: undefined reference to `__stack_chk_guard'
/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld: ./build/stm32mp1/debug/bl2/io_stm32image.o: in function `stm32image_partition_read':
/buildroot/output/build/arm-trusted-firmware-v2.2/drivers/st/io/io_stm32image.c:354:  undefined reference to `__stack_chk_fail'

以及更多

我已附上完整的日志文件。我不明白这些";未定义的引用";问题。有人能告诉我如何解决这个问题吗?

提前感谢!

p.S:我使用的是Ubuntu 20.04

ATF log_1 ATF log_2 ATF log_3

这是由Buildroot提交的ccac9a5bbd7374187a0f0017101ece0c202851d修复的,该版本包含在2021.11版本中(即发布此问题时的最新版本(。

相关内容

  • 没有找到相关文章

最新更新