[U-Boot-Users] Help request, MPC5200 Lite -- i386 cross-compiling

Nye Liu nyet at mrv.com
Thu Nov 20 20:56:39 CET 2003


Use the DENX cross-compiler, unless you are VERY familiar with gcc3.3-isms

Compiling u-boot under gcc3.3 powerpc hosted on x86 is possible, it is
just a HUGE pain getting the environment right unless you have done that
sort of thing before.

On Thu, Nov 20, 2003 at 11:43:38AM -0800, Victor Wren wrote:
> I'm trying to get a boot loader running on the 5200, but I'm getting stuck at 
> the compilation of the images.  I only have a Pentium2 Redhat 9 environment 
> to work from.  I downloaded GCC 3.3.1, bintools 2.11.90 and built them both 
> with a target of powerpc-linux.
> 
> To build the MPC5200LITE images, I used 'make MPC5200LITE' which in rummaging 
> through the configuration files in the "board" directory seems to select the 
> correct defaults for flash size and such on the rev 2 board.  My problem 
> seems to be in my cross-compiler toolset in any case.
> 
> I changed the line CROSS_COMPILE = ppc_8xx-
> to CROSS_COMPILE = powerpc-linux- because that seemed to be the architecture 
> that it was using (when I didn't change it, I got a goodly pile of ppc_8xx 
> related failures).  Now the make largely goes ahead, but when it hits a 
> certain point (stubs.c in the 'examples' directory) it errors out with many 
> repetitions of "Error: Relocation cannot be done when using -mrelocatable"
> 
> This would seem to be something dead-simple that I'm missing in building a 
> cross-compiler, because nobody else seems to have this problem.  Any 
> suggestions?  I built GCC without changing the prefix, so it built in 
> /usr/local/powerpc-linux and /usr/local/lib/gcc-lib/powerpc-linux/  Do I need 
> to add something to ld.so.conf?  The Makefile does seem to be finding the 
> path.  Sorry about my ignorance.  I'm really a mechanical designer in 
> disguise, and I'm definitely new to cross-compiling.
> 
> I have one other question:  In the archives for the forum, I noticed a 
> contribution to the CVS regarding a low-loading image config.  The assertion 
> was that this image would load at 0xFF000000, and that moving the boot jumper 
> to the "low" position would boot there.  According to the docs I have from 
> Motorola, moving the jumper to the "low" position boots from 0x00000100 
> (SDRAM).  High boot is 0xFFF00100 (FLASH)
> ("Lite5200 Manual.pdf", page 19)
> 
> Is there a misprint in the manual?
> 
> Thanks,
> Victor Wren
> 
> 
> 
> Victor Wren
> Designer,
> Timension Inc.
> 1350 C Pear Ave
> Mountain View CA 94043
> (650) 564-9397
> Fax: (650) 564-9398
> Opinions stated in this letter are not necessarily
> those of Timension Inc. or the management.  All
> Rights Reserved.  No spitting.
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users

-- 
Nye Liu
nliu at mrv.com
(818) 772-6235x248
(818) 772-0576 fax

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote




More information about the U-Boot mailing list