standalone compilation of u-boot for T1040 using QORIQ SDK1.7

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

standalone compilation of u-boot for T1040 using QORIQ SDK1.7

4,740 次查看
manjularajesh
Contributor II

Want to generate u-boot.bin using toolchain by cross-compiling separately,instead of of using bitbake.

Following commands are tried by coping source code from:

QorIQ-SDK-V1.7-20141218-yocto/build_t1040rdb-64b_release/tmp/work/t1040rdb_64b-fsl-linux/u-boot-qoriq/2014.07+fslgit-r0/git

ARCH  & CROSS-COMPILE are set properly

$ make T1040RDB_config

Configuring for T1040RDB - Board: T104xRDB, Options: PPC_T1040,T1040RDB

make all

  GEN     include/autoconf.mk.dep

cc1: error: -mcall not supported in this configuration

cc1: error: -mrelocatable not supported in this configuration

cc1: error: -meabi not supported in this configuration

  GEN     include/autoconf.mk

cc1: error: -mcall not supported in this configuration

cc1: error: -mrelocatable not supported in this configuration

cc1: error: -meabi not supported in this configuration

  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: -mcall not supported in this configuration

/*

^

lib/asm-offsets.c:1:0: error: -mrelocatable not supported in this configuration

lib/asm-offsets.c:1:0: error: -meabi not supported in this configuration

make[1]: *** [lib/asm-offsets.s] Error 1

make: *** [prepare0] Error 2

I am getting the above errors,

please provide some help.

regards,

manjula

标签 (1)
0 项奖励
回复
10 回复数

3,075 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Manjula Rajesh,

Probably you didn't specify CROSS_COMPILE correctly.

Assume that the standalone GCC Toolchain is installed in

/opt/fsl-networking/QorIQ-SDK-V1.7/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc-fsl-linux/powerpc-fsl-linux-gcc

[b25805@sun git]$ make T1040RDB_config

Configuring for T1040RDB - Board: T104xRDB, Options: PPC_T1040,T1040RDB

[b25805@sun git]$ make CROSS_COMPILE=/opt/fsl-networking/QorIQ-SDK-V1.7/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc-fsl-linux/powerpc-fsl-linux- all

In addition, please update "make" to 3.81.


Have a great day,
Yiping

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

0 项奖励
回复

3,075 次查看
manjularajesh
Contributor II

Thanks for your reply,CROSS_COMPILE is set properly, again as per your feedback I gave a

try, still problem exists i am using centos 6.5.

$ uname -a

Linux v-psg-lgnet 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64

x86_64 x86_64 GNU/Linux

$ cat /etc/issue

CentOS release 6.5 (Final)

Kernel \r on an \m

$ make CROSS_COMPILE=/opt/fsl-networking/QorIQ-SDK-

V1.7/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc64-fsl-linux/powerpc64-fsl-linux- all

GEN include/autoconf.mk.dep

cc1: error: -mcall not supported in this configuration

cc1: error: -mrelocatable not supported in this configuration

cc1: error: -meabi not supported in this configuration

GEN include/autoconf.mk

cc1: error: -mcall not supported in this configuration

cc1: error: -mrelocatable not supported in this configuration

cc1: error: -meabi not supported in this configuration

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: -mcall not supported in this configuration

/*

^

lib/asm-offsets.c:1:0: error: -mrelocatable not supported in this configuration

lib/asm-offsets.c:1:0: error: -meabi not supported in this configuration

make[1]: *** Error 1

make: *** Error 2

$

On Wed, 30 Sep 2015 17:30:21 -0700, yipingwang wrote

Yiping Wang

replied to the discussion "standalone compilation of u-boot for T1040 using

QORIQ SDK1.7"

To view the discussion, visit: https://community.freescale.com/message/572714?

et=watches.email.thread#572714

>

0 项奖励
回复

3,075 次查看
igorfadin
Contributor I

Hi Manjula Rajesh!

Your CROSS_COMPILE is wrong.

32-bit compiler is need for u-boot compilation, not 64bit.

Just use   "powerpc-fsl-linux-"   like Yiping Wang suggested, not  "powerpc64-fsl-linux-" like you using at the moment.

Good luck!

 

0 项奖励
回复

3,075 次查看
manjularajesh
Contributor II

Thanks for the reply,

T1040 is a 64-bit processor, when the host environment is build I selected 64bit by

using following command:

source ./fsl-setup-poky -m t1040rdb-64b

hence when I made tool chain, it is also built for 64-bit,

bitbake fsl-toolchain

will it not work for u-boot. how does it work when I use 'bitbake u-boot.'

regards,

manjula

tool chain is built it is built for 64bit since I have chosen the

On Thu, 01 Oct 2015 03:45:36 -0700, igorfadin wrote

Igor Fadin

replied to the discussion "standalone compilation of u-boot for T1040 using

QORIQ SDK1.7"

To view the discussion, visit: https://community.freescale.com/message/572897?

et=watches.email.thread#572897

>

0 项奖励
回复

3,075 次查看
igorfadin
Contributor I

Hi, Manjula!

You must install both toolchain (32bit and 64bit) in any case.

Installing it via

fsl-networking-eglibc-x86_64-ppc64e5500-toolchain-QorIQ-SDK-V1.7.sh and

fsl-networking-eglibc-x86_64-ppce5500-toolchain-QorIQ-SDK-V1.7.sh  

from SDK iso, not via bitbake.

Then, you must use 32bit toolchain for u-boot building always,

and 64bit toolchain for linux-kernel and app-level programms building in case 64bit target,

and 32bit toolchain for linux-kernel and app-level programms building in case 32bit target.

For u-boot building use somthing like this:

#!/bin/bash

source /opt/fsl-networking/QorIQ-SDK-V1.7/environment-setup-ppce5500-fsl-linux

make O=./BUILD V=1  T1040RDB_config

make O=./BUILD V=1  all

Then, if you want to build 64bit targets, use

source  /opt/fsl-networking/QorIQ-SDK-V1.7/environment-setup-ppc64e5500-fsl-linux

for other steps.

Good luck!

0 项奖励
回复

3,075 次查看
manjularajesh
Contributor II

Hi Igor Fadin,

I got the file in:

QorIQ Linux SDK v1.7 e5500 Yocto Image..iso

thanks...

manjula

On Thu, 01 Oct 2015 21:43:36 -0700, igorfadin wrote

Igor Fadin

replied to the discussion "standalone compilation of u-boot for T1040 using

QORIQ SDK1.7"

To view the discussion, visit: https://community.freescale.com/message/573136?

et=watches.email.thread#573136

>

0 项奖励
回复

3,075 次查看
manjularajesh
Contributor II

Hello Igor Fadin,

For getting following file:

fsl-networking-eglibc-x86_64-ppce5500-toolchain-QorIQ-SDK-V1.7.sh

Do we need to follow the below steps for 32-bit??

source ./poky/fsl-setup-poky -m t1040rdb

bitbake fsl-toolchain again

cd build_t1040rdb_release/tmp/deploy/sdk

./fsl-networking-eglibc-x86_64-ppce5500-toolchain-QorIQ-SDK-V1.7.sh  

regards,

manjula

On Thu, 01 Oct 2015 21:43:36 -0700, igorfadin wrote

Igor Fadin

replied to the discussion "standalone compilation of u-boot for T1040 using

QORIQ SDK1.7"

To view the discussion, visit: https://community.freescale.com/message/573136?

et=watches.email.thread#573136

>

0 项奖励
回复

3,075 次查看
manjularajesh
Contributor II

Thanks a lot for your support...

On Thu, 01 Oct 2015 21:43:36 -0700, igorfadin wrote

Igor Fadin

replied to the discussion "standalone compilation of u-boot for T1040 using

QORIQ SDK1.7"

To view the discussion, visit: https://community.freescale.com/message/573136?

et=watches.email.thread#573136

>

0 项奖励
回复

3,075 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello manjula,

For e5500 processors, u-boot doesn't support 64bit mode, it operates in 32 bit mode with 36 bit physical address support.

So please use 32 bit GCC Toolchain.


Have a great day,
Yiping

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

0 项奖励
回复

3,075 次查看
manjularajesh
Contributor II

Thanks a lot for your valuable support, I shall try to compile using 32-bit gcc

toolchain.

regards,

manjula

On Thu, 01 Oct 2015 07:39:34 -0700, yipingwang wrote

Yiping Wang

replied to the discussion "standalone compilation of u-boot for T1040 using

QORIQ SDK1.7"

To view the discussion, visit: https://community.freescale.com/message/572963?

et=watches.email.thread#572963

>

0 项奖励
回复