iMX8DXL uboot error: bad value (‘armv8-a’) for ‘-march=’ switch

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX8DXL uboot error: bad value (‘armv8-a’) for ‘-march=’ switch

3,313 Views
Juanma1
Contributor II

Hello,

 

I'm modifying u-boot-imx for iMX8DXL with devtool.

I try to build using:

$ make imx8dxl_evk_defconfig

$ make

I get that error:

cc1: error: bad value (‘armv8-a’) for ‘-march=’ switch

I made source oe-init-build-env build before the make.

 

The whole secuence I followed:

source oe-init-build-env build

build $ devtool modify u-boot-imx

build $ cd workspace/sources/u-boot-imx

build/workspace/sources/u-boot-imx $ make mrproper

build/workspace/sources/u-boot-imx $ make imx8dxl_evk_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
YACC scripts/kconfig/zconf.tab.c
LEX scripts/kconfig/zconf.lex.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#

build/workspace/sources/u-boot-imx $ make
scripts/kconfig/conf --syncconfig Kconfig
UPD include/config.h
CFG u-boot.cfg
cc1: warning: unknown register name: x18
GEN include/autoconf.mk
GEN include/autoconf.mk.dep
cc1: warning: unknown register name: x18
CFG spl/u-boot.cfg
cc1: warning: unknown register name: x18
GEN spl/include/autoconf.mk
UPD include/config/uboot.release
UPD include/generated/version_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
UPD include/generated/dt.h
CC lib/asm-offsets.s
cc1: warning: unknown register name: x18
cc1: error: bad value (‘armv8-a’) for ‘-march=’ switch
cc1: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 native
make[1]: *** [scripts/Makefile.build:155: lib/asm-offsets.s] Error 1
make: *** [Makefile:1788: prepare0] Error 2

build/workspace/sources/u-boot-imx $

 

 

 

0 Kudos
1 Reply

3,302 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Juanma1,

 

You can view how to build uboot for armv8:

https://www.nxp.com/docs/en/application-note/AN5347.pdf

 

Regards

0 Kudos