* [U-Boot-Users] crosstool for PowerPc 8540 [not found] <E1CP85h-0000kf-UH@sc8-sf-list1.sourceforge.net> @ 2004-12-02 1:21 ` Junita Ajith 2004-12-02 9:44 ` Wolfgang Denk 0 siblings, 1 reply; 11+ messages in thread From: Junita Ajith @ 2004-12-02 1:21 UTC (permalink / raw) To: u-boot 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] crosstool for PowerPc 8540 2004-12-02 1:21 ` [U-Boot-Users] crosstool for PowerPc 8540 Junita Ajith @ 2004-12-02 9:44 ` Wolfgang Denk 2004-12-02 15:54 ` Jon Loeliger 2004-12-02 18:07 ` Junita Ajith 0 siblings, 2 replies; 11+ messages in thread From: Wolfgang Denk @ 2004-12-02 9:44 UTC (permalink / raw) To: u-boot In message <20041202012134.70077.qmail@web53704.mail.yahoo.com> 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 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? > Any help would be appreciated. Attach your BDI2000 and start debugging. Best regards, Wolfgang Denk -- 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] crosstool for PowerPc 8540 2004-12-02 9:44 ` Wolfgang Denk @ 2004-12-02 15:54 ` Jon Loeliger 2004-12-02 18:07 ` Junita Ajith 1 sibling, 0 replies; 11+ messages in thread From: Jon Loeliger @ 2004-12-02 15:54 UTC (permalink / raw) To: u-boot On Thu, 2004-12-02 at 03:44, Wolfgang Denk wrote: > In message <20041202012134.70077.qmail@web53704.mail.yahoo.com> 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. > > 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. > > 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! > > 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] crosstool for PowerPc 8540 2004-12-02 9:44 ` Wolfgang Denk 2004-12-02 15:54 ` Jon Loeliger @ 2004-12-02 18:07 ` Junita Ajith 2004-12-02 21:35 ` Wolfgang Denk 1 sibling, 1 reply; 11+ messages in thread From: Junita Ajith @ 2004-12-02 18:07 UTC (permalink / raw) To: u-boot --- Wolfgang Denk <wd@denx.de> wrote: > In message > <20041202012134.70077.qmail@web53704.mail.yahoo.com> > 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 > --- Wolfgang Denk <wd@denx.de> wrote: > In message > <20041202012134.70077.qmail@web53704.mail.yahoo.com> > 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 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_4xx ppc_4xxFP ppc_6xx ppc_74xx ppc_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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] crosstool for PowerPc 8540 2004-12-02 18:07 ` Junita Ajith @ 2004-12-02 21:35 ` Wolfgang Denk 2004-12-04 1:49 ` [U-Boot-Users] Help needed to compile u-boot-1.1.1 for 8540 with ELDK-3.1 Junita Ajith 2004-12-06 8:19 ` [U-Boot-Users] crosstool for PowerPc 8540 Junita Ajith 0 siblings, 2 replies; 11+ messages in thread From: Wolfgang Denk @ 2004-12-02 21:35 UTC (permalink / raw) To: u-boot In message <20041202180738.4209.qmail@web53706.mail.yahoo.com> you wrote: > > --- Wolfgang Denk <wd@denx.de> wrote: ...[10 lines of quote deleted]... > --- Wolfgang Denk <wd@denx.de> wrote: ...[10 lines of quote deleted]... Why are you quoting the same text twice? > 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. > the ppc_85xx target does not exist in . directory > the following targets are available: > ppc_4xx > ppc_4xxFP > ppc_6xx > ppc_74xx > ppc_8xx Right. And as you may have notived, there are some symlinks created (like ppc_82xx) which pount to the ppc_6xx sub-tree. > ppc_85xx is 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 -- 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. ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] Help needed to compile u-boot-1.1.1 for 8540 with ELDK-3.1 2004-12-02 21:35 ` Wolfgang Denk @ 2004-12-04 1:49 ` Junita Ajith 2004-12-06 15:39 ` Jon Loeliger 2004-12-06 8:19 ` [U-Boot-Users] crosstool for PowerPc 8540 Junita Ajith 1 sibling, 1 reply; 11+ messages in thread From: Junita Ajith @ 2004-12-04 1:49 UTC (permalink / raw) To: u-boot 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 the cpu/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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] Help needed to compile u-boot-1.1.1 for 8540 with ELDK-3.1 2004-12-04 1:49 ` [U-Boot-Users] Help needed to compile u-boot-1.1.1 for 8540 with ELDK-3.1 Junita Ajith @ 2004-12-06 15:39 ` Jon Loeliger 2004-12-07 19:46 ` Junita Ajith 0 siblings, 1 reply; 11+ messages in thread From: Jon Loeliger @ 2004-12-06 15:39 UTC (permalink / raw) To: u-boot On Fri, 2004-12-03 at 19:49, Junita Ajith wrote: > 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.) > 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) in PLATFORM_RELFLAGS and -mno-string > for PLATFORM_CPPFLAGS. I use these: PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx -DCONFIG_E500 -ffixed-r2 -ffixed-r29 -Wa,-me500 -msoft-float > 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(). > I did step through BDI2000 and it crashes at that > place. That's pretty vague... :-) > 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] Help needed to compile u-boot-1.1.1 for 8540 with ELDK-3.1 2004-12-06 15:39 ` Jon Loeliger @ 2004-12-07 19:46 ` Junita Ajith 2004-12-08 5:47 ` Kumar Gala 0 siblings, 1 reply; 11+ messages in thread From: Junita Ajith @ 2004-12-07 19:46 UTC (permalink / raw) To: u-boot > On Fri, 2004-12-03 at 19:49, Junita Ajith wrote: > > Hi all, Hi Jon & Wolfgang, > > 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 . > 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-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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] Help needed to compile u-boot-1.1.1 for 8540 with ELDK-3.1 2004-12-07 19:46 ` Junita Ajith @ 2004-12-08 5:47 ` Kumar Gala 0 siblings, 0 replies; 11+ messages in thread From: Kumar Gala @ 2004-12-08 5:47 UTC (permalink / raw) To: u-boot It's odd that we are not already doing that, the e500 core in 85xx does not implement the string instructions. - kumar On Dec 7, 2004, at 1:46 PM, Junita Ajith wrote: > > > > On Fri, 2004-12-03 at 19:49, Junita Ajith wrote: > > > Hi all, > Hi Jon & Wolfgang, > > ?? > >??? 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 . > > ? > > 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-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 > > > > ------------------------------------------------------- > 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] crosstool for PowerPc 8540 2004-12-02 21:35 ` Wolfgang Denk 2004-12-04 1:49 ` [U-Boot-Users] Help needed to compile u-boot-1.1.1 for 8540 with ELDK-3.1 Junita Ajith @ 2004-12-06 8:19 ` Junita Ajith 2004-12-06 9:34 ` Wolfgang Denk 1 sibling, 1 reply; 11+ messages in thread From: Junita Ajith @ 2004-12-06 8:19 UTC (permalink / raw) To: u-boot 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot-Users] crosstool for PowerPc 8540 2004-12-06 8:19 ` [U-Boot-Users] crosstool for PowerPc 8540 Junita Ajith @ 2004-12-06 9:34 ` Wolfgang Denk 0 siblings, 0 replies; 11+ messages in thread From: Wolfgang Denk @ 2004-12-06 9:34 UTC (permalink / raw) To: u-boot In message <20041206081959.81697.qmail@web53710.mail.yahoo.com> 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 -- 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. ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2004-12-08 5:47 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E1CP85h-0000kf-UH@sc8-sf-list1.sourceforge.net>
2004-12-02 1:21 ` [U-Boot-Users] crosstool for PowerPc 8540 Junita Ajith
2004-12-02 9:44 ` Wolfgang Denk
2004-12-02 15:54 ` Jon Loeliger
2004-12-02 18:07 ` Junita Ajith
2004-12-02 21:35 ` Wolfgang Denk
2004-12-04 1:49 ` [U-Boot-Users] Help needed to compile u-boot-1.1.1 for 8540 with ELDK-3.1 Junita Ajith
2004-12-06 15:39 ` Jon Loeliger
2004-12-07 19:46 ` Junita Ajith
2004-12-08 5:47 ` Kumar Gala
2004-12-06 8:19 ` [U-Boot-Users] crosstool for PowerPc 8540 Junita Ajith
2004-12-06 9:34 ` Wolfgang Denk
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox