From: Wolfgang Denk Date: Tue, 20 Jul 2010 11:37:02 +0200 Subject: [U-Boot] question about example/standalone/mips.lds In-Reply-To: <4C453325.4080003@openmobilefree.net> References: <4C43CABB.3070302@openmobilefree.net> <20100719175103.BFF6C153A81@gemini.denx.de> <4C453325.4080003@openmobilefree.net> Message-ID: <20100720093702.839AA11D94C@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Xiangfu Liu, In message <4C453325.4080003@openmobilefree.net> you wrote: > > which compiler in ELDK if for the mips_el system? GCC, of course :-) > I guess there are some different between ELDK cross compiler > and OpenWrt cross compiler. > so I want try ELDK cross compiler with my board. You can download the installation image at ftp://ftp.denx.de/pub/eldk/4.1/mips-linux-x86/iso/mips-2007-01-21.iso > by the way, here[2] is the error message with OpenWrt's > cross compiler. ... > mipsel-openwrt-linux-ld -g -Ttext 0x80200000 -T mips.lds \ > -o hello_world -e hello_world hello_world.o libstubs.a \ > -L/home/xiangfu/workspace/PanGu/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.3.3 -lgcc > mipsel-openwrt-linux-ld: hello_world.o: compiled for a little endian system and target is big endian Well, the "el" in "mipsel-..." mean "Endianess Little". You cannot use these tools to build code for a BE system. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Those who do not understand Unix are condemned to reinvent it, poorly. - Henry Spencer, University of Toronto Unix hack