From: Wolfgang Denk Date: Mon, 27 Jul 2009 15:25:52 +0200 Subject: [U-Boot] Question about big-endian for u-boot In-Reply-To: <1248658716$21135$30104770@patrick_ye@ulinkcom.com> References: <1248658716$21135$30104770@patrick_ye@ulinkcom.com> Message-ID: <20090727132552.8DA32832E416@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 patrick_ye at ulinkcom.com, In message <1248658716$21135$30104770@patrick_ye@ulinkcom.com> you wrote: > > I want to port u-boot to ARM4510 with big-endian, but I failed. > > The error shows like this: > > /root/usr/local/arm/3.3.2/bin/arm-linux-ld: > common/libcommon.a(crc16.o)?? > compile with little-endian but the target is big-endian. Either you have misconfigured U-Boot, or your tool chain - or both. > I have modified CFLAGS and AFLAGS by adding option > ??-mbig-endian?? and > u-boot.lds by modifying OUTPUT-FORMAT. Some C files and assambly files > are > passed but only some lib failed(just like above). > > Would you please give your suggestion? Thank you! Check what other BE boards are doing... 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 The following statement is not true. The previous statement is true.