Skip to contentSkip to conversation

Building u-boot for IMX6

U-Boot Alexandre Delove 2 participants 3 messages Aug 5, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hello

I am trying to build an u-boot for a sabrelite with an IMX6Q, so i downloaded the last package (u-boot-2014.07.tar.bz2) on this link => ftp://ftp.denx.de/../../../pub/u-boot/.
When i launched make mx6qsabrelite_config, everything was fine (Configuring for mx6qsabrelite - Board: nitrogen6x, Options: IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6q.cfg,MX6Q,DDR_MB=1024,SABRELITE) but then, when i launch "make all" they are some problems:

GEN include/autoconf.mk.dep
cc1: error: bad value (armv5) for -march= switch
GEN include/autoconf.mk
cc1: error: bad value (armv5) for -march= switch

  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

lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch
/*
^
make[1]: *** [lib/asm-offsets.s] Erreur 1
make: *** [prepare0] Erreur 2

Does anybody knows what can i do in order to fix this?

Thanks

Alexandre Delove

#2 lore raw
Quoted 14 lines · Alexandre Delove

Hello

I am trying to build an u-boot for a sabrelite with an IMX6Q, so i downloaded the last package (u-boot-2014.07.tar.bz2) on this link => ftp://ftp.denx.de/../../../pub/u-boot/.
When i launched make mx6qsabrelite_config, everything was fine (Configuring for mx6qsabrelite - Board: nitrogen6x, Options: IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6q.cfg,MX6Q,DDR_MB=1024,SABRELITE) but then, when i launch "make all" they are some problems:

GEN include/autoconf.mk.dep
cc1: error: bad value (armv5) for -march= switch
GEN include/autoconf.mk
cc1: error: bad value (armv5) for -march= switch

  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
Quoted 7 lines

lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch
/*
^
make[1]: *** [lib/asm-offsets.s] Erreur 1
make: *** [prepare0] Erreur 2

Does anybody knows what can i do in order to fix this?

It seems you are missing to use and export your crosscompiler:

export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi

#3 lore raw
Quoted 1 line · Fabio Estevam

export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi

I meant export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- ("with a minus in the end)