From mboxrd@z Thu Jan 1 00:00:00 1970 From: Victor Wren Date: Thu, 20 Nov 2003 11:43:38 -0800 Subject: [U-Boot-Users] Help request, MPC5200 Lite -- i386 cross-compiling In-Reply-To: <20031120081225.43F64C5F5F@atlas.denx.de> References: Your message of "Thu, 20 Nov 2003 11:10:29 +0900." <000401c3af0b$784673d0$63c1dba8@swcenter.sec.samsung.co.kr> Message-ID: <3FBCA8EA.14100.319B6E@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.