Skip to contentSkip to conversation

u-boot compilation for MIPS Au1x00 board

U-Boot Gurumurthy Gowdar 2 participants 4 messages Apr 13, 2010

lore
Share & tools
lore
#0 lore raw

Hi all,

I am compiling u-boot latest version for MIPS processor Au1350.
When I compile I get the following error as mentioned below.

mipsel-linux-ld:
/opt/rmi-linux/db1300/lib/gcc/mipsel-linux/4.2.4/libgcc.a(_lshrdi3.o):
compiled for a little endian system and target is big endian

mipsel-linux-ld:
/opt/rmi-linux/db1300/lib/gcc/mipsel-linux/4.2.4/libgcc.a(_lshrdi3.o):
endianness incompatible with that of the selected emulation

mipsel-linux-ld: failed to merge target specific data of file /opt/rmi-linux/db1300/lib/gcc/mipsel-linux/4.2.4/libgcc.a(_lshrdi3.o)

I am not using ELDK tool chain, we have customized tool chain.

My environment settings are

ARCH=mips

CROSS_COMPILE=mipsel-linux-

Am compiling for dbau1100 board.

But when I use u-boot 1.1.6 version am able to compile the u-boot and creating u-boot.bin image file.

So please let me know what am missing.

is there any issue with the big endian or little endian? Or I need to configure any settings in the dbau1x00.h configuration file?

Thanks & Regards

Gurumurthy Gowdar

KPIT Cummins Infosystems Ltd. | Mobile: +91 9642645725 I E-mail :
gurumurthy.gowdar at kpitcummins.com I www.kpitcummins.com

Client Site - Hyundai MOBIS India Research And Development Pvt. Ltd. |1st Floor , Survey No 5/2 & 5/3,

Backside of NAC, Izzatnagar|(OPP. HitechCity MMTS Railway Station), Lingampally Mandal, Hyderabad - 500081.INDIA

E-mail: Gurumurthy.Gowdar at gmobis.com

This message contains information that may be privileged or confidential and is the property of the KPIT Cummins Infosystems Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Cummins Infosystems Ltd. does not accept any liability for virus infected mails.

P Please don't print this email unless absolutely necessary. Save Trees !

#1 lore raw

Dear Gurumurthy Gowdar,

Quoted 9 lines · In message <001201cadacb$dc5e8a40$951b9ec0$@[email protected]> you wrote:

I am compiling u-boot latest version for MIPS processor Au1350.
When I compile I get the following error as mentioned below.

mipsel-linux-ld:
/opt/rmi-linux/db1300/lib/gcc/mipsel-linux/4.2.4/libgcc.a(_lshrdi3.o):
compiled for a little endian system and target is big endian

This is a tool chain issue. The tool chain is supposed to provide the compiler's support libraries with the same endianess as the target built requires.

Quoted 1 line

I am not using ELDK tool chain, we have customized tool chain.

Then you know already at least one option how to solve the problem :-)

Quoted 1 line

Am compiling for dbau1100 board.

Using ELDK (mips_4KCle) I get:

$ ./MAKEALL dbau1100
Configuring for dbau1x00 board...
   text    data     bss     dec     hex filename
 125188    4904   16252  146344   23ba8 /work/wd/tmp-mips/u-boot

--------------------- SUMMARY ---------------------------- Boards compiled: 1
----------------------------------------------------------

Quoted 2 lines

is there any issue with the big endian or little endian? Or I need to configure any settings in the dbau1x00.h configuration file?

No, this is a tool chain issue.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Ja, mach' nur einen Plan,    sei nur ein grosses Licht
und mach' dann noch 'nen zweiten Plan,    geh'n tun sie beide nicht."
                                     -- Bert Brecht, Dreigroschenoper
#2 lore raw

Hi,
Thanks for the reply.

Please let me know where I can get the latest version of ELDK for MIPS.

I know about PowerPC (Freescale) as I have worked on MPC82xx and MPC74xx.

Thanks & Regards
Gurumurthy Gowdar
KPIT Cummins Infosystems Ltd.| Mobile: +91 9642645725 |E-mail :
gurumurthy.gowdar at kpitcummins.com|www.kpitcummins.com

Client Site - Hyundai MOBIS India Research And Development Pvt. Ltd. |1st Floor , Survey No 5/2 & 5/3,
Backside of NAC, Izzatnagar|(OPP. HitechCity MMTS Railway Station), Lingampally Mandal, Hyderabad - 500081.INDIA
E-mail: Gurumurthy.Gowdar at gmobis.com

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: Tuesday, April 13, 2010 1:23 PM
To: Gurumurthy Gowdar
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] u-boot compilation for MIPS Au1x00 board

Dear Gurumurthy Gowdar,

Quoted 9 lines · In message <001201cadacb$dc5e8a40$951b9ec0$@[email protected]> you wrote:

I am compiling u-boot latest version for MIPS processor Au1350.
When I compile I get the following error as mentioned below.

mipsel-linux-ld:
/opt/rmi-linux/db1300/lib/gcc/mipsel-linux/4.2.4/libgcc.a(_lshrdi3.o):
compiled for a little endian system and target is big endian

This is a tool chain issue. The tool chain is supposed to provide the compiler's support libraries with the same endianess as the target built requires.

Quoted 1 line

I am not using ELDK tool chain, we have customized tool chain.

Then you know already at least one option how to solve the problem :-)

Quoted 1 line

Am compiling for dbau1100 board.

Using ELDK (mips_4KCle) I get:

$ ./MAKEALL dbau1100
Configuring for dbau1x00 board...
   text    data     bss     dec     hex filename
 125188    4904   16252  146344   23ba8 /work/wd/tmp-mips/u-boot

--------------------- SUMMARY ---------------------------- Boards compiled: 1
----------------------------------------------------------

Quoted 2 lines

is there any issue with the big endian or little endian? Or I need to configure any settings in the dbau1x00.h configuration file?

No, this is a tool chain issue.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Ja, mach' nur einen Plan,    sei nur ein grosses Licht
und mach' dann noch 'nen zweiten Plan,    geh'n tun sie beide nicht."
                                     -- Bert Brecht, Dreigroschenoper
#3 lore raw

Dear "Gurumurthy Gowdar",

Quoted 2 lines · In message <000301cadae2$85b053b0$9110fb10$@[email protected]> you wrote:

Please let me know where I can get the latest version of ELDK for MIPS.

ftp://ftp.denx.de/pub/eldk/4.1/mips-linux-x86/iso/mips-2007-01-21.iso

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The computer can't tell you the emotional story. It can give you  the
exact mathematical design, but what's missing is the eyebrows.
- Frank Zappa