你在rpi-3上启动移植:得到错误" cc1:错误:'-march ='switch"的错误值('armv8-a')。

时间:2018-04-16 13:16:28

标签: raspberry-pi3 u-boot

我正在使用链接:https://elinux.org/RPi_U-Boot。 这是我的快照:

$ export CROSS_COMPILE=/scratch/rpi-tools/arm-bcm2708/arm 
bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi-
pranav@abc:/scratch/u-boot$ export USE_PRIVATE_LIBGCC=yes
pranav@abc:/scratch/u-boot$ sudo make rpi_3_defconfig

直到这个编译成功。下一个阶段给出错误

pranav@abc:/scratch/u-boot$ sudo make -j3
scripts/kconfig/conf  --silentoldconfig Kconfig
GEN     include/autoconf.mk.dep
cc1: warning: unknown register name: x18
cc1: warning: unknown register name: x18  
warning: unable to access '/home/pranav/.config/git/attributes': 
Permission denied
cc1: warning: unknown register name: x18
cc1: warning: unknown register name: x18
cc1: error: bad value (‘armv8-a’) for ‘-march=’ switch
cc1: error: bad value (‘armv8-a’) for ‘-march=’ switch
cc1: note: valid arguments to ‘-march=’ switch are: nocona core2 

make[1]: *** [lib/asm-offsets.s] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [arch/arm/lib/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

在此之后我使用了:

$ export CROSS_COMPILE=aarch64-linux-gnu-

但后来也给出了一些错误。

1 个答案:

答案 0 :(得分:0)

CROSS_COMPILE = /刮伤/ RPI-工具/臂bcm2708 /臂 bcm2708hardfp-Linux的gnueabi /斌/ ARM-bcm2708hardfp-Linux的gnueabi- 涉及32位编译器。

您使用的defconfig是64位。因此,您必须安装64位工具链,然后指定CROSS_COMPILE以匹配您已安装的交叉构建工具。

在Debian,Ubuntu或Mint上你会使用

WordDocument.Paragraphs.RightIndent