Build a u-boot alone for LS2084a target

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Build a u-boot alone for LS2084a target

918 次查看
bmohan
Contributor IV

I am able to successfully build a yocto based BLUEBOX SDK and also successfully programmed a flash/SDcard image.

Now I have copied a u-boot source from BLUEBOX yocto. Now I need to build a u-boot alone.

I have done followings:

1. export CC=~/NXP_bsp/QorIQ-SDK-V2.0-20160527-yocto/build_ls2084abbmini/tmp/sysroots/x86_64-linux/usr/bin/aarch64-fsl-linux/aarch64-fsl-linux-

2. cd to u-boot src

make ARCH=arm CROSS_COMPILE=${CC} distclean
make ARCH=arm CROSS_COMPILE=${CC} ls2084abbmini_defconfig
make ARCH=arm CROSS_COMPILE=${CC} -Wl-sysroot=~/NXP_bsp/QorIQ-SDK-V2.0-20160527-yocto/build_ls2084abbmini/tmp/sysroots/x86_64-linux/usr/bin/aarch64-fsl-linux
Getting following error:
aarch64-fsl-linux-ld.bfd: cannot find -lgcc
examples/standalone/Makefile:67: recipe for target 'examples/standalone/hello_world' failed
标记 (1)
0 项奖励
回复
1 回复

675 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Balaji Mohan,

Please try the following commands.

export PATH=$PATH:~/NXP_bsp/QorIQ-SDK-V2.0-20160527-yocto/build_ls2084abbmini/tmp/sysroots/x86_64-linux/usr/bin/aarch64-fsl-linux/

$ unset LDFLAGS

$ make CROSS_COMPILE=aarch64-fsl-linux-  CC="aarch64-fsl-linux-gcc  --sysroot=~/NXP_bsp/QorIQ-SDK-V2.0-20160527-yocto/build_ls2084abbmini/tmp/sysroots/ls2084abbmini” LD=aarch64-fsl-linux-ld


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复