Skip to contentSkip to conversation

Cross toolchain for ppc405 (virtex-4)

DISCUSSION Mirek23 5 participants 7 messages May 28, 2008 – May 29, 2008

lore
Share & tools
lore

Mirek23

author
#0 lore raw

Hi All,

I am using for some time the crosstool tool-chain (crosstool-0.43) for the ppc405 of my virtex-4.
It seems to be that the crosstool was not updated for awhile but the glibc and gcc compiler has changed a bit meanwhile.

The latest working configuration to build the toolchain for ppc405 is gcc-4.1.0-glibc-2.3.6.dat
Does any body has tried to adapt the crosstools to use for example glibc 2.7 ?

Another alternative would be to use another tool than crosstool. Could somebody recommend something which can refer to newer version of gcc and glibc .

Best Regards

Miroslaw Dach

Signature · 2 lines
View this message in context: http://www.nabble.com/Cross-toolchain-for-ppc405-%28virtex-4%29-tp17515929p17515929.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
#1 lore raw

Hi Miroslaw,

I'm not sure on what version of gcc and glibc it's using, but I have been using ELDK 4.1 from denx.com. There are newer versions.

Thanks,
John

-----Original Message-----
From: [email protected] on behalf of Mirek23
Sent: Wed 5/28/2008 9:54 AM
To: [email protected]
Subject: Cross toolchain for ppc405 (virtex-4)

Hi All,

I am using for some time the crosstool tool-chain (crosstool-0.43) for the ppc405 of my virtex-4.
It seems to be that the crosstool was not updated for awhile but the glibc and gcc compiler has changed a bit meanwhile.

The latest working configuration to build the toolchain for ppc405 is gcc-4.1.0-glibc-2.3.6.dat
Does any body has tried to adapt the crosstools to use for example glibc 2.7 ?

Another alternative would be to use another tool than crosstool. Could somebody recommend something which can refer to newer version of gcc and glibc .

Best Regards

Miroslaw Dach

Signature · 12 lines
View this message in context: http://www.nabble.com/Cross-toolchain-for-ppc405-%28virtex-4%29-tp17515929p17515929.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded




This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
#2 lore raw

Hi Jonh,

If I use ml403 (with PPC 405) Did i change the predefined compiler flags for ppc_4xx? The default value is -mcpu=403.

Quoted 18 lines · John Linn

Hi Miroslaw,

I'm not sure on what version of gcc and glibc it's using, but I have been using ELDK 4.1 from denx.com. There are newer versions.

Thanks,
John

-----Original Message-----
From: [email protected] on behalf of Mirek23
Sent: Wed 5/28/2008 9:54 AM
To: [email protected]
Subject: Cross toolchain for ppc405 (virtex-4)

Quoted 3 lines

Hi All,

I am using for some time the crosstool tool-chain (crosstool-0.43) for

the

Quoted 2 lines

ppc405 of my virtex-4.
It seems to be that the crosstool was not updated for awhile but the

glibc

Quoted 17 lines

and gcc compiler has changed a bit meanwhile.

The latest working configuration to build the toolchain for ppc405 is gcc-4.1.0-glibc-2.3.6.dat
Does any body has tried to adapt the crosstools to use for example glibc 2.7
?

Another alternative would be to use another tool than crosstool. Could somebody recommend something which can refer to newer version of gcc and glibc .

Best Regards

Miroslaw Dach

#3 lore raw

I don't know, I'm not familiar with what you are doing and it's not clear from the message.

-- John

________________________________

From: rodolfo [mailto:[email protected]]
Sent: Wed 5/28/2008 12:05 PM
To: John Linn
Cc: Mirek23; [email protected]
Subject: RE: Cross toolchain for ppc405 (virtex-4)

Hi Jonh,

If I use ml403 (with PPC 405) Did i change the predefined compiler flags for ppc_4xx? The default value is -mcpu=403.

Quoted 18 lines · John Linn

Hi Miroslaw,

I'm not sure on what version of gcc and glibc it's using, but I have been using ELDK 4.1 from denx.com. There are newer versions.

Thanks,
John

-----Original Message-----
From: [email protected] on behalf of Mirek23
Sent: Wed 5/28/2008 9:54 AM
To: [email protected]
Subject: Cross toolchain for ppc405 (virtex-4)

Quoted 3 lines

Hi All,

I am using for some time the crosstool tool-chain (crosstool-0.43) for

the

Quoted 2 lines

ppc405 of my virtex-4.
It seems to be that the crosstool was not updated for awhile but the

glibc

Quoted 8 lines

and gcc compiler has changed a bit meanwhile.

The latest working configuration to build the toolchain for ppc405 is gcc-4.1.0-glibc-2.3.6.dat
Does any body has tried to adapt the crosstools to use for example glibc 2.7
?

Quoted 9 lines

Another alternative would be to use another tool than crosstool. Could somebody recommend something which can refer to newer version of gcc and glibc .

Best Regards

Miroslaw Dach

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

#4 lore raw

I'm sorry.

I want build kernel linux 2.6 for ml403.
Did I have to change the predefined compiler flags for ppc_4xx? The default value is -mcpu=403.

Quoted 72 lines · John Linn

I don't know, I'm not familiar with what you are doing and it's not clear from the message.

-- John

________________________________

From: rodolfo [mailto:[email protected]]
Sent: Wed 5/28/2008 12:05 PM
To: John Linn
Cc: Mirek23; [email protected]
Subject: RE: Cross toolchain for ppc405 (virtex-4)

Hi Jonh,

If I use ml403 (with PPC 405) Did i change the predefined compiler flags for ppc_4xx? The default value is -mcpu=403.

Quoted 3 lines · John Linn

Hi Miroslaw,

I'm not sure on what version of gcc and glibc it's using, but I have

been

Quoted 9 lines

using ELDK 4.1 from denx.com. There are newer versions.

Thanks,
John

-----Original Message-----
From: [email protected] on

behalf

Quoted 9 lines

of Mirek23
Sent: Wed 5/28/2008 9:54 AM
To: [email protected]
Subject: Cross toolchain for ppc405 (virtex-4)

Hi All,

I am using for some time the crosstool tool-chain (crosstool-0.43) for

the

Quoted 2 lines

ppc405 of my virtex-4.
It seems to be that the crosstool was not updated for awhile but the

glibc

Quoted 8 lines

and gcc compiler has changed a bit meanwhile.

The latest working configuration to build the toolchain for ppc405 is gcc-4.1.0-glibc-2.3.6.dat
Does any body has tried to adapt the crosstools to use for example glibc 2.7
?

Quoted 9 lines

Another alternative would be to use another tool than crosstool. Could somebody recommend something which can refer to newer version of gcc and glibc .

Best Regards

Miroslaw Dach

Quoted 3 lines

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are

not

Quoted 1 line

the intended recipient, do not read, copy, or forward this email message

or

Quoted 1 line

any attachments. Delete this email message and any attachments

immediately.

#5 lore raw

I am not sure if this answers your question but to build a 2.6 Linux kernel using the buildroot uclibc ppc cross compiler you would issue the following make command

make ARCH=ppc CROSS_COMPILE=powerpc-linux-uclibc-

If you were using the crosstools compiler rather than buildroot, the CROSS_COMPILE value would change.
For older version of GCC it might require a full path to the crosscompiler.

If you are building a BSP in the powerpc tree use ARCH=powerpc

I am fairly certain that when you are building a Linux kernel it is irrelevant whether you use a glibc or uclibc or ... compiler. The kernel is not going to link against any standard C library, those library functions the kernel uses must be coded in the kernel.

However, when you are cross compiling applications for your target it is a good idea to stick to the same standard C library and associated cross compiler.

Quoted 14 lines · rodolfo

I'm sorry.

I want build kernel linux 2.6 for ml403.
Did I have to change the predefined compiler flags for ppc_4xx? The default value is -mcpu=403.

Quoted 5 lines · John Linn

I don't know, I'm not familiar with what you are doing and it's not clear from the message.

-- John

Signature · 8 lines
Dave Lynch 					  	    DLA Systems
Software Development:  				         Embedded Linux
717.627.3770 	       [email protected] 	  http://www.dlasys.net
fax: 1.253.369.9244 			           Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too numerous to list.

"Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction."
Albert Einstein
#6 lore raw
In reply to John Linn

Hi,

Quoted 2 lines

I'm not sure on what version of gcc and glibc it's using, but I have been using ELDK 4.1 from denx.com. There are newer versions.

The more recent ELDK 4.2 supports 405s and its crosstoolchain uses binutils 2.17.50.0.12, gcc 4.2.2, glibc 2.6 and gdb 6.7.

Cheers
Detlev

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: [email protected]