crosstool for PowerPc 8540
Hi
Could anyone suggest me the toolchain to be used to
compile u-boot-1.1.1 for a PowerPC 8540 board?
I tried with the crosstool-0.27 (www.kegel.com)
which is supposed to be the stable version ,and built a toolchain with gcc-3.3.2 and glibc-2.3.2.
I could successfully build my toolchain and create
my u-boot binary for 8540.
But when I flash u-boot.bin , the board doesnt come
up.
Any help would be appreciated.
Thanks,
Junita
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
Quoted 3 lines · In message <[email protected]> you wrote:
Could anyone suggest me the toolchain to be used to
compile u-boot-1.1.1 for a PowerPC 8540 board?
You can for example use ELDK release 3.1
Quoted 5 lines
I could successfully build my toolchain and create
my u-boot binary for 8540.But when I flash u-boot.bin , the board doesnt come
up.
What makes you think that thgis is a toolchain issue?
Quoted 1 line
Any help would be appreciated.
Attach your BDI2000 and start debugging.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Life, loathe it or ignore it, you can't like it." - Marvin the paranoid android
Quoted 6 lines · Wolfgang Denk
Quoted 3 lines · In message <[email protected]> you wrote:
Could anyone suggest me the toolchain to be used to
compile u-boot-1.1.1 for a PowerPC 8540 board?You can for example use ELDK release 3.1
I've used various versions, 2.95, 3.2, 3.3, 3.4.{2,3}, etc. Make sure your binutils is 2.14, etc.
Quoted 2 lines
Quoted 2 lines
I could successfully build my toolchain and create
my u-boot binary for 8540.
OK, this is good... Have you verified that it looks sane? Is it the right size, have a good header and layout, etc? You might use objdump or od to verify these things too.
Quoted 4 lines
Quoted 2 lines
But when I flash u-boot.bin , the board doesnt come
up.What makes you think that thgis is a toolchain issue?
Darn good question!
Quoted 3 lines
Quoted 1 line
Any help would be appreciated.
Attach your BDI2000 and start debugging.
Say, any chance you read through doc/README.mpc85xxads? Or maybe doc/README.sbc8560, or looked at include/configs for the right board?
Hmm. So which board is it, actually? Is it a custom board?
jdl
Quoted 10 lines · --- Wolfgang Denk
In message <[email protected]>
Quoted 2 lines · you
Could anyone suggest me the toolchain to be used
to
Quoted 1 line
compile u-boot-1.1.1 for a PowerPC 8540 board?
You can for example use ELDK release 3.1
Quoted 9 lines · --- Wolfgang Denk
In message <[email protected]>
Quoted 2 lines · you
Could anyone suggest me the toolchain to be used
to
Quoted 1 line
compile u-boot-1.1.1 for a PowerPC 8540 board?
You can for example use ELDK release 3.1
I did download ELDK and ran install. As the
dcoment says , by default it installs all the supported architectures , and so it did for ppc-8xx, ppc-4xx etc.But I didnt see ppc-85xx.
So I tried specifying the architecture.This is what
I got.
[root at new-host iso]# ./install -d /opt/tools/ELDK/ ppc_85xx
Do you really want to install into /opt/tools/ELDK directory[y/n]?: y
Installing cross RPMs
Done
the ppc_85xx target does not exist in . directory the following targets are available:ppc_4xxppc_4xxFPppc_6xxppc_74xxppc_8xx
Am I missing something ? Because even in the ftp
sites under supported architectures for release-3.1 , ppc_85xx is not mentioned .
I am sorry if the mail is not appropriate for this
mailing list.
Thanks ,
Junita
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
Quoted 2 lines · In message <[email protected]> you wrote:
--- Wolfgang Denk <[email protected]> wrote:
...[10 lines of quote deleted]...
Quoted 1 line
--- Wolfgang Denk <[email protected]> wrote:
...[10 lines of quote deleted]...
Why are you quoting the same text twice?
Quoted 4 lines
I did download ELDK and ran install. As the
dcoment says , by default it installs all the supported architectures , and so it did for ppc-8xx, ppc-4xx etc.But I didnt see ppc-85xx.
There is no need to make a complete set of packages for each and every family of processors.
Quoted 7 lines
the
ppc_85xxtarget does not exist in . directory
the following targets are available:ppc_4xxppc_4xxFPppc_6xxppc_74xxppc_8xx
Right. And as you may have notived, there are some symlinks created (like ppc_82xx) which pount to the ppc_6xx sub-tree.
Quoted 1 line
ppc_85xxis not mentioned .
No, and some other architetures (like MPC52xx) are not mentioned either. But the tools in the ppc_6xx packages support all of these. Just set CROSS_COMPILE=ppc_82xx- and use the asppropriate compiler flags.
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Sorry, but my karma just ran over your dogma.
[U-Boot-Users] Help needed to compile u-boot-1.1.1 for 8540 with ELDK-3.1
Hi all,
I've installed ELDK-3.1 and compiled my
u-boot-1.1.1 for PowerPC - 8540, setting CROSS_COMPILE=ppc_82xx- . and compiled it for e-500.
I didnt see the serial output until I changed thecpu/mpc85xx/config.mk .
I added -mabi=no-spe, (as its recommened by Motorola
for 8540/8560) in PLATFORM_RELFLAGS and -mno-string
for PLATFORM_CPPFLAGS.
Now I could see the serial output and it hangs where
the code uses 'sprintf' .
This happens only with ELDK-3.1 but also with a
toolchain built with gcc-3.3.2 & binutils -2.14.
I dont think its a board problem , as I eliminated
the sprintf , the problem is solved at that point and then it hangs at another point where 'sprintf' is used.
I did step through BDI2000 and it crashes at that
place.
Do I need to change the compiler flags ..or am I
going wrong somewhere.
Any help would be appreciated as it would save a
lot of my time .
Thanks
Junita
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Could someone suggest me the -m switches to cross compile u-boot-1.1.1 with gcc-3.3.3 for an Power PC 8540 board.
Thanks
Junita
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
Quoted 3 lines · In message <[email protected]> you wrote:
Could someone suggest me the -m switches to cross compile u-boot-1.1.1 with gcc-3.3.3 for an Power PC 8540 board.
Using the current source tree (i. e. top of CVS) with the default options as defined in U-Boot works just fine (tested with ELDK 3.1 and - for example - MPC8540ADS configuration).
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de It may be that your whole purpose in life is simply to serve as a warning to others.
[U-Boot-Users] Help needed to compile u-boot-1.1.1 for 8540 with ELDK-3.1
In reply to Junita AjithQuoted 3 lines · Junita Ajith
Hi all,
I've installed ELDK-3.1 and compiled my
u-boot-1.1.1 for PowerPC - 8540,
Which 8540 board do you have? And is that really the official 1.1.1 release? If so, that is old. A lot old. Grab the top of CVS at least. (It should claim to be 1.1.2 though that is just the development of 1.1.2 and not a real official release.)
Quoted 9 lines
setting
CROSS_COMPILE=ppc_82xx- . and compiled it for e-500.I didnt see the serial output until I changed the
cpu/mpc85xx/config.mk.I added -mabi=no-spe, (as its recommened by Motorola
for 8540/8560) inPLATFORM_RELFLAGSand -mno-string
forPLATFORM_CPPFLAGS.
I use these:
PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi
PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx -DCONFIG_E500 -ffixed-r2
-ffixed-r29 -Wa,-me500 -msoft-floatQuoted 9 lines
Now I could see the serial output and it hangs where
the code uses 'sprintf' .
This happens only with ELDK-3.1 but also with a
toolchain built with gcc-3.3.2 & binutils -2.14.I dont think its a board problem , as I eliminated
the sprintf , the problem is solved at that point and then it hangs at another point where 'sprintf' is used.
I think there is potentially an issue with the location of the string used by sprintf().
Quoted 2 lines
I did step through BDI2000 and it crashes at that
place.
That's pretty vague... :-)
Quoted 2 lines
Do I need to change the compiler flags ..or am I
going wrong somewhere.
I'm concerned that you had to change the flags.
I think you should grab the current top of CVS too.
jdl
[U-Boot-Users] Help needed to compile u-boot-1.1.1 for 8540 with ELDK-3.1
Quoted 2 lines · Junita Ajith
Quoted 1 line
Hi all,
Hi Jon & Wolfgang,
Quoted 13 lines
Quoted 2 lines
I've installed ELDK-3.1 and compiled my
u-boot-1.1.1 for PowerPC - 8540,Which 8540 board do you have? And is that really the
official 1.1.1 release? If so, that is old. A lot old.
Grab the top of CVS at least. (It should claim to be
1.1.2 though that is just the development of 1.1.2 and
not a real official release.)
I am using am 8540 custom board. As you have
suggested , I did download the latest u-boot-1.1.2 from CVS .With a few changes in the board-specific config file I was able to successfully compile and build it with ELDK-3.1 .
Quoted 6 lines
I use these:
PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx -DCONFIG_E500 -ffixed-r2 -ffixed-r29 -Wa,-me500 -msoft-float
I had to add -mno-string as well toPLATFORM_CPPFLAGS (in u-boot cpu/85xx/config.mk)
without that I couldnt see the serial output.
So thanks so much for all the help.
Thanks & Regards
Junita
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
[U-Boot-Users] Help needed to compile u-boot-1.1.1 for 8540 with ELDK-3.1
It's odd that we are not already doing that, the e500 core in 85xx does not implement the string instructions.
- kumar
Quoted 67 lines · Junita Ajith
Quoted 4 lines · Junita Ajith
Quoted 1 line
Hi all,
Hi Jon & Wolfgang,
?? > >??? I've installed ELDK-3.1 and compiled my
Quoted 12 lines
Quoted 1 line
u-boot-1.1.1 for PowerPC - 8540,
Which 8540 board do you have?? And is that really the
official 1.1.1 release?? If so, that is old.? A lot old.
Grab the top of CVS at least.? (It should claim to be
1.1.2 though that is just the development of 1.1.2 and
not a real official release.)?? I am using am 8540 custom board.? As you have suggested , I did download the latest u-boot-1.1.2 from CVS .With a few changes in the board-specific config file I was able to successfully compile and build it with ELDK-3.1 .
?
Quoted 6 lines
I use these:
????PLATFORM_RELFLAGS+= -fPIC -ffixed-r14 -meabi????
PLATFORM_CPPFLAGS+= -DCONFIG_MPC85xx
-DCONFIG_E500 -ffixed-r2
???? -ffixed-r29 -Wa,-me500 -msoft-float? I had to add -mno-string as well to
PLATFORM_CPPFLAGS(in u-bootcpu/85xx/config.mk)?? without that I couldnt see the serial output.
So thanks so much for all the help.
Thanks & Regards
Junita???????
??????? ???????
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real
users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users