cancel
Showing results for 
Search instead for 
Did you mean: 

Error while building stand alone u-boot (v2020)

PG.9
Associate III

Greetings !

I am trying to build stand alone u-boot for my "stm32f769 discovery board". But when I initiate make command I am getting the below error .

Please help me out to resolve this issue.

Error log:

----------------------------------------------------------------------------------------------------------------

user@user-Latitude-3490:~/study/u-boot/u-boot$ make

make[1]: Entering directory '/home/user/study/u-boot/u-boot/stm32f769-disco'

 GEN    ./Makefile

scripts/kconfig/conf --syncconfig Kconfig

 CHK    include/config.h

 CFG    u-boot.cfg

cc1: error: unrecognized command line option "-mno-unaligned-access"

cc1: error: unrecognized command line option "-std=gnu11"

make[2]: *** [../scripts/Makefile.autoconf:77: u-boot.cfg] Error 1

make[1]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.

make[1]: Leaving directory '/home/user/study/u-boot/u-boot/stm32f769-disco'

make: *** [Makefile:167: sub-make] Error 2

---------------------------------------------------------------------------------------------------------------------------

Thanks in Advance

1 REPLY 1
PatrickD
ST Employee

Hi,

it seens the cross-compiler ARMv7 is not defines or not installed....

do you have selected the U-Boot configuration (make <board>_defconfig) ?

for compelte steps, see the latest documentation:

https://u-boot.readthedocs.io/en/latest/board/st/stm32_MCU.html

generated from doc/board/st/stm32_MCU.rst

Patrick