From mboxrd@z Thu Jan 1 00:00:00 1970 From: 25an Date: Tue, 27 Feb 2007 06:23:03 -0800 (PST) Subject: [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!! In-Reply-To: <45E3FD8B.3030207@gmx.net> References: <7cd4d5a30702270049m797cd754h18fa3b3a1c8979c8@mail.gmail.com> <45E3FD8B.3030207@gmx.net> Message-ID: <9182852.post@talk.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de I manged to solve the problem but now I get another one. The first problem was solved by edit the cpu/arm926ejs/at91sam926x/config.mk file accordingly #PLATFORM_CPPFLAGS += -mapcs-32 -march=armv5te -mtune=arm926ejs PLATFORM_CPPFLAGS += -march=armv5te -Wa,-mapcs-32 -mtune=arm926ej-s the first error was fixed by changing the -mtune option from arm926ejs till arm926ej-s the second error was fixed by changing -mapcs-32 with -Wa,-mapcs-32 this was done after reading following post http://www.at91.com/phpbb/viewtopic.php?t=2312 -mapcs-32 option generates code for a processor running with a 32-bit program counter and conforming to the function calling standards for the APCS 32-bit option If interested in what APCS is google after ARM APCS. the option -Wa,-mapcs-32 is doing the following -Wa,option Pass option as an option to the assembler. If option contains commas, it is split into multiple options at the commas. Now the error that I am getting is usb_ohci.c: In function 'usb_lowlevel_init': usb_ohci.c:1659: error: invalid lvalue in assignment make[1]: *** [usb_ohci.o] Error 1 make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/cpu/arm926ejs/at91sam926x' make: *** [cpu/arm926ejs/at91sam926x/libat91sam926x.a] Error 2 Again any help is appreciated Daniel Hobi wrote: > > Hi M?ns, > > On 27.02.2007 09:49, M?ns Zigher wrote: >> Hi! >> >> I am trying to compile u-boot-1.1.5 for at91sam9261ek with arm926ejs >> cpu. I am using the eldk >> cross toolchain 4.1 which is using gcc 4.0.0. >> When I try to compile u-boot I get following error >> >> [snip] >> >> Any ideas? > > Use the latest U-Boot sources from http://www.denx.de/en/Software/GIT. > >> I would also appreciate any suggestion how to locate the error since >> right now I have not even managed to locate were the flag is set. > > The CPU-specific flags are set by including cpu/arm926ejs/config.mk in > the Makefile. > > Regards, > Daniel > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > U-Boot-Users mailing list > U-Boot-Users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/u-boot-users > > -- View this message in context: http://www.nabble.com/Can%27t-Compile-u-boot-1.1.5_atmel_1.2%21%21-tf3299277.html#a9182852 Sent from the Uboot - Users mailing list archive at Nabble.com.