I am trying to build U-boot for LS1046ARDB (ls104ardb_emmc_defconfig) using the Linux SDK (2.0).
I am getting the following error:
make
scripts/kconfig/conf --syncconfig 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
*** Your GCC is older than 6.0 and is not supported.
Please note:
My OS is Ubuntu 14.04 because I followed the instructions provided by NXP on this Build error SDK v1.8 to build the Linux SDK.
But this, Build U-Boot fails with "Your GCC is older than 6.0 ..."
suggests me to use Ubuntu 18.
How can I get the GCC update without updating my Ubuntu OS?
Please help.
Thanks,
Shamanth
Hello Shamanth Kudaligi Pranesharao,
Please install the Cross compiler provided in SDK 2.0 on your host machine to build LS1046ARDB u-boot, it is not related with the local GCC environment on your host.
Please download Linux SDK image ISO for AARCH64 QorIQ-SDK-V2.0-AARCH64-IMAGE-20160527-yocto.iso from Linux® SDK for QorIQ® Processors | NXP.
Please run the script in folder fsl-toolchain to install Toolchain in folder /opt/fsl-qoriq/2.0/.
Build u-boot with the following commands
$ source /opt/fsl-qoriq/2.0/environment-setup-aarch64-fsl-linux
$ make CROSS_COMPILE=aarch64-fsl-linux- ls1046ardb_emmc_defconfig
$ make -j 4 CROSS_COMPILE=aarch64-fsl-linux- all
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hello Shamanth,
Today I also reproduced your problem when using SDK 2.0 Toolchain to build the latest LSDK 1812 u-boot.
The recent released u-boot requires the cross compiler GCC is upper than 6.0, I uploaded GCC compiler 8.2 installer file for ARMv8 here "https://drive.google.com/open?id=1eMNGSGJLdmqig7ILy6JVesncD_8wMpbZ", you could download and install it then build u-boot with the following commands.
$ source ~/toolchain/environment-setup-aarch64-fsl-linux
$ cd u-boot
$ make CROSS_COMPILE=aarch64-fsl-linux- ls1046ardb_emmc_defconfig
$ make -j 4 CROSS_COMPILE=aarch64-fsl-linux- all
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------