Cross compile U-boot with standalone tool chain from QorIQ sdk2.0

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

Cross compile U-boot with standalone tool chain from QorIQ sdk2.0

879 Views
Shrinath_Choudhary
Contributor I

Hi,

Im getting the following error while compiling the u-boot source code for t4240rdb-64

 

 LD      examples/standalone/libstubs.o
  LD      examples/standalone/hello_world
powerpc64-fsl-linux-ld.bfd: skipping incompatible /opt/fsl-qoriq-64/2.0/sysroots/ppc64e6500-fsl-linux/usr/lib64/powerpc64-fsl-linux/4.9.2/libgcc.a when searching for -lgcc
powerpc64-fsl-linux-ld.bfd: cannot find -lgcc
make[2]: *** [examples/standalone/hello_world] Error 1
make[1]: *** [examples/standalone] Error 2
make: *** [examples] Error 2

 

 

0 Kudos
Reply
1 Reply

860 Views
Pavel
NXP Employee
NXP Employee

Use the following command sequence for install u-boot source code:

bitbake -c cleansstate u-boot

bitbake -c patch u-boot // source of the u-boot

 

The following command sequence was used for u-boot compiling for the T4240rdb board.

  1. . fsl-setup-env -m t4240rdb
  2. bitbake fsl-toolchain
  3. $ cd build_<machine>_release/tmp/deploy/sdk
  4. $ ./fsl-qoriq-glibc-x86_64-ppce6500-toolchain-2.0.sh

                               in the folloing folder:

QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb/tmp/deploy/sdk

  1. source environment-setup-ppce6500-fsl-linux

in the following folder:

/opt/fsl-qoriq/2.0

  1. Go to the following folder:

/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb/tmp/work/t4240rdb-fsl-linux/u-boot-qoriq/2016.09+fslgit-r0/git

Issue the following commands:

  1. a) export ARCH=powerpc
  2. b) make ARCH=powerpc CROSS_COMPILE=file:///opt/fsl-qoriq/2.0/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe  T4240RDB_defconfig

See the configuration files in the /configs folder.

  1. c) make
0 Kudos
Reply