public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Testing a cross compiler for a mpc8540 cpu
@ 2003-12-30 19:13 Matthew S. McClintock
  2003-12-30 19:22 ` Ed Okerson
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew S. McClintock @ 2003-12-30 19:13 UTC (permalink / raw)
  To: u-boot

Does anyone know a good way to test to see if a cross compiler is
working? I have what I believe to be a cross compiler for a mpc8540 cpu.
However I am not sure if its working. I can compile u-boot with the
compiler but that does not tell me much since u-boot does not support
the board I am using specifically. I really don't want to go forward
working on getting u-boot to run on this board only to find out of
compiler is broken. Anyone have any ideas?

Thanks


-- 
Matthew S. McClintock <mattsm@arlut.utexas.edu>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] Testing a cross compiler for a mpc8540 cpu
  2003-12-30 19:13 [U-Boot-Users] Testing a cross compiler for a mpc8540 cpu Matthew S. McClintock
@ 2003-12-30 19:22 ` Ed Okerson
  2003-12-30 19:26   ` Matthew S. McClintock
  0 siblings, 1 reply; 4+ messages in thread
From: Ed Okerson @ 2003-12-30 19:22 UTC (permalink / raw)
  To: u-boot

Use the UNIX command "file" on the output of the compiler.  When I do this
on u-boot I get:

# file u-boot
u-boot: ELF 32-bit LSB executable, MIPS, version 1 (SYSV), statically
linked, not stripped

This shows that it is a little-endian (LSB) executable for MIPS.

Ed Okerson

On Tue, 30 Dec 2003, Matthew S. McClintock wrote:

> Does anyone know a good way to test to see if a cross compiler is
> working? I have what I believe to be a cross compiler for a mpc8540 cpu.
> However I am not sure if its working. I can compile u-boot with the
> compiler but that does not tell me much since u-boot does not support
> the board I am using specifically. I really don't want to go forward
> working on getting u-boot to run on this board only to find out of
> compiler is broken. Anyone have any ideas?
>
> Thanks
>
>
> --
> Matthew S. McClintock <mattsm@arlut.utexas.edu>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] Testing a cross compiler for a mpc8540 cpu
  2003-12-30 19:22 ` Ed Okerson
@ 2003-12-30 19:26   ` Matthew S. McClintock
  2004-01-05 15:01     ` Kumar Gala
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew S. McClintock @ 2003-12-30 19:26 UTC (permalink / raw)
  To: u-boot

That seems like a good idea. My output is the following:

u-boot: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
(SYSV), statically linked, not stripped

However what I am worried about is the fact that I am using an e500
processor. I am told there are subtle differences, however I am not
entirely sure how. However the file command makes no mention or not if
this is compiled for an e500 processor. I have little doubt that my
compiler makes code for a PowerPC processor. I guess my question should
have been how can I verify if my cross compiler produces code for an
e500 processor code?

Thanks,
Matthew

On Tue, 2003-12-30 at 13:22, Ed Okerson wrote:
> Use the UNIX command "file" on the output of the compiler.  When I do this
> on u-boot I get:
> 
> # file u-boot
> u-boot: ELF 32-bit LSB executable, MIPS, version 1 (SYSV), statically
> linked, not stripped
> 
> This shows that it is a little-endian (LSB) executable for MIPS.
> 
> Ed Okerson
> 
> On Tue, 30 Dec 2003, Matthew S. McClintock wrote:
> 
> > Does anyone know a good way to test to see if a cross compiler is
> > working? I have what I believe to be a cross compiler for a mpc8540 cpu.
> > However I am not sure if its working. I can compile u-boot with the
> > compiler but that does not tell me much since u-boot does not support
> > the board I am using specifically. I really don't want to go forward
> > working on getting u-boot to run on this board only to find out of
> > compiler is broken. Anyone have any ideas?
> >
> > Thanks
> >
> >
> > --
> > Matthew S. McClintock <mattsm@arlut.utexas.edu>
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IBM Linux Tutorials.
> > Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> > Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> > _______________________________________________
> > U-Boot-Users mailing list
> > U-Boot-Users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/u-boot-users
> >
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
-- 
Matthew S. McClintock <mattsm@arlut.utexas.edu>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] Testing a cross compiler for a mpc8540 cpu
  2003-12-30 19:26   ` Matthew S. McClintock
@ 2004-01-05 15:01     ` Kumar Gala
  0 siblings, 0 replies; 4+ messages in thread
From: Kumar Gala @ 2004-01-05 15:01 UTC (permalink / raw)
  To: u-boot

Matthew,

A few things that may be useful.
1. from an application stand point the main differences focus on 
floating point and availability of new SPE functionality.  Pure integer 
code that runs on PPC should work (Compiling app code with -msoft-float 
-mno-string)
2. for building u-boot/kernel style code a standard PPC compiler with a 
new binutils (2.14 or greater) should be sufficient.  2.14 or greater 
adds support for the full Book-E and e500 ISA and the -me500 option to 
the assembler.

Hopefully this provides some help.

- kumar

On Dec 30, 2003, at 1:26 PM, Matthew S. McClintock wrote:

> That seems like a good idea. My output is the following:
>
> u-boot: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
> (SYSV), statically linked, not stripped
>
> However what I am worried about is the fact that I am using an e500
> processor. I am told there are subtle differences, however I am not
> entirely sure how. However the file command makes no mention or not if
> this is compiled for an e500 processor. I have little doubt that my
> compiler makes code for a PowerPC processor. I guess my question should
> have been how can I verify if my cross compiler produces code for an
> e500 processor code?
>
> Thanks,
> Matthew
>
> On Tue, 2003-12-30 at 13:22, Ed Okerson wrote:
>> Use the UNIX command "file" on the output of the compiler.  When I do 
>> this
>> on u-boot I get:
>>
>> # file u-boot
>> u-boot: ELF 32-bit LSB executable, MIPS, version 1 (SYSV), statically
>> linked, not stripped
>>
>> This shows that it is a little-endian (LSB) executable for MIPS.
>>
>> Ed Okerson
>>
>> On Tue, 30 Dec 2003, Matthew S. McClintock wrote:
>>
>>> Does anyone know a good way to test to see if a cross compiler is
>>> working? I have what I believe to be a cross compiler for a mpc8540 
>>> cpu.
>>> However I am not sure if its working. I can compile u-boot with the
>>> compiler but that does not tell me much since u-boot does not support
>>> the board I am using specifically. I really don't want to go forward
>>> working on getting u-boot to run on this board only to find out of
>>> compiler is broken. Anyone have any ideas?
>>>
>>> Thanks
>>>
>>>
>>> --
>>> Matthew S. McClintock <mattsm@arlut.utexas.edu>
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.net email is sponsored by: IBM Linux Tutorials.
>>> Become an expert in LINUX or just sharpen your skills.  Sign up for 
>>> IBM's
>>> Free Linux Tutorials.  Learn everything from the bash shell to sys 
>>> admin.
>>> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>>> _______________________________________________
>>> U-Boot-Users mailing list
>>> U-Boot-Users at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: IBM Linux Tutorials.
>> Become an expert in LINUX or just sharpen your skills.  Sign up for 
>> IBM's
>> Free Linux Tutorials.  Learn everything from the bash shell to sys 
>> admin.
>> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>> _______________________________________________
>> U-Boot-Users mailing list
>> U-Boot-Users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> -- 
> Matthew S. McClintock <mattsm@arlut.utexas.edu>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for 
> IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys 
> admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-05 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-30 19:13 [U-Boot-Users] Testing a cross compiler for a mpc8540 cpu Matthew S. McClintock
2003-12-30 19:22 ` Ed Okerson
2003-12-30 19:26   ` Matthew S. McClintock
2004-01-05 15:01     ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox