目标CPU不支持THUMB指令

目标CPU不支持THUMB指令

本文介绍了无法安装Beaglebone Black的U-boot-目标CPU不支持THUMB指令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照Chris Simmonds的精通嵌入式Linux编程"中的说明为beagle bone black构建u-boot.我已经构建了跨工具链,现在正尝试使用该工具链构建Das U-boot,并且由于不支持THUMB指令(编译器或BeagleBone?)而导致构建失败.我正在使用Denx的git存储库v2018.05中发布的最新版本.在Ubuntu 18.04上构建.

I am trying to build u-boot for beagle bone black following instructions in "Mastering Embedded Linux Programming" by Chris Simmonds. I have built the cross toolchain and am now trying to build Das U-boot with that tool chain and the build fails due to THUMB instructions not being supported (by the compiler? by the BeagleBone?). I am using the latest released from Denx's git repository v2018.05. Building on Ubuntu 18.04.

下面是控制台输出:

johann@mars:~/uboot-work/u-boot$ make CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf- am335x_evm_defconfig
#
# configuration written to .config
#
johann@mars:~/uboot-work/u-boot$ make CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf-
scripts/kconfig/conf  --silentoldconfig Kconfig
CHK     include/config.h
UPD     include/config.h
CFG     u-boot.cfg
GEN     include/autoconf.mk
GEN     include/autoconf.mk.dep
CFG     spl/u-boot.cfg
GEN     spl/include/autoconf.mk
CHK     include/config/uboot.release
CHK     include/generated/version_autogenerated.h
CHK     include/generated/timestamp_autogenerated.h
UPD     include/generated/timestamp_autogenerated.h
CC      lib/asm-offsets.s
cc1: warning: target CPU does not support THUMB instructions
CHK     include/generated/generic-asm-offsets.h
CC      arch/arm/lib/asm-offsets.s
cc1: warning: target CPU does not support THUMB instructions
CHK     include/generated/asm-offsets.h
HOSTCC  scripts/dtc/dtc.o
HOSTCC  scripts/dtc/flattree.o
HOSTCC  scripts/dtc/fstree.o
HOSTCC  scripts/dtc/data.o
HOSTCC  scripts/dtc/livetree.o
HOSTCC  scripts/dtc/treesource.o
HOSTCC  scripts/dtc/srcpos.o
HOSTCC  scripts/dtc/checks.o
HOSTCC  scripts/dtc/util.o
SHIPPED scripts/dtc/dtc-lexer.lex.c
SHIPPED scripts/dtc/dtc-parser.tab.h
HOSTCC  scripts/dtc/dtc-lexer.lex.o
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCC  scripts/dtc/dtc-parser.tab.o
HOSTLD  scripts/dtc/dtc
HOSTCC  tools/mkenvimage.o
HOSTCC  tools/lib/crc32.o
HOSTLD  tools/mkenvimage
HOSTCC  tools/common/bootm.o
HOSTCC  tools/lib/fdtdec.o
HOSTCC  tools/fit_image.o
HOSTCC  tools/image-host.o
HOSTCC  tools/dumpimage.o
HOSTLD  tools/dumpimage
HOSTCC  tools/mkimage.o
HOSTLD  tools/mkimage
CC      arch/arm/cpu/armv7/cache_v7.o
cc1: warning: target CPU does not support THUMB instructions
{standard input}: Assembler messages:
{standard input}:42: Error: selected processor does not support `dsb sy' in ARM mode

make[1]: *** [arch/arm/cpu/armv7/cache_v7.o] Error 1
Makefile:1363: recipe for target 'arch/arm/cpu/armv7' failed

make: *** [arch/arm/cpu/armv7] Error 2

推荐答案

我也在读这本书,并遇到了同样的错误.我通过使用U-Boot的master分支解决了该问题(日期:2019-03-19,操作系统:Ubuntu:18.04).

I am reading the book too and got the same error. I solved the problem by using the master branch of U-Boot (Date: 2019-03-19, OS: Ubuntu: 18.04).

但是,U-Boot的主分支没有am335x_boneblack_defconfig.我改用了am335x_evm_defconfig.

However, the master branch of U-Boot doesn't have am335x_boneblack_defconfig. I used am335x_evm_defconfig instead.

尽管存在这些编译问题,但这本书还是很棒的.

In spite of those compiling issues, the book is excellent.

经过进一步调查,我发现根本原因是需要使用./ct-ng menuconfig将fpu类型设置为"neon-vfpv3".

正如该书指示的将float-abi设置为hard一样,fpu-type也应设置为neon-vfpv3.否则,Linux内核和Barebox/U-boot都不会被编译.

As the book instructed to set the float-abi to hard, the fpu-type should be set to neon-vfpv3 too. Otherwise, both the Linux kernel and Barebox/U-boot will not be compiled.

这篇关于无法安装Beaglebone Black的U-boot-目标CPU不支持THUMB指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 05:33