* [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!!
@ 2007-02-27 8:49 Måns Zigher
2007-02-27 9:44 ` Daniel Hobi
2007-02-27 16:09 ` 25an
0 siblings, 2 replies; 9+ messages in thread
From: Måns Zigher @ 2007-02-27 8:49 UTC (permalink / raw)
To: u-boot
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
25an at 25an-desktop
:/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2$make ARCH=arm
CROSS_COMPILE=arm-linux-
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post/cpu'
make -C tools all
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make -C examples all
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples '
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8
-msoft-float -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float
-D__KERNEL__ -DTEXT_BASE=0x23f00000 -I/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/include -fno-builtin -ffreestanding -nostdinc -isystem
/opt/x-compile/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe
-DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -mapcs-32 -march=armv5te
-mtune=arm926ejs -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
cc1: error: invalid option 'apcs-32'
hello_world.c:1: error: bad value (arm926ejs) for -mtune= switch
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples'
make: *** [examples] Error 2
Any ideas?
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.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070227/fd7cdd7a/attachment.htm
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!!
2007-02-27 8:49 [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!! Måns Zigher
@ 2007-02-27 9:44 ` Daniel Hobi
2007-02-27 14:23 ` 25an
2007-02-27 16:09 ` 25an
1 sibling, 1 reply; 9+ messages in thread
From: Daniel Hobi @ 2007-02-27 9:44 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!!
2007-02-27 9:44 ` Daniel Hobi
@ 2007-02-27 14:23 ` 25an
2007-02-27 15:15 ` Daniel Hobi
0 siblings, 1 reply; 9+ messages in thread
From: 25an @ 2007-02-27 14:23 UTC (permalink / raw)
To: u-boot
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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!!
2007-02-27 14:23 ` 25an
@ 2007-02-27 15:15 ` Daniel Hobi
2007-02-27 15:41 ` 25an
0 siblings, 1 reply; 9+ messages in thread
From: Daniel Hobi @ 2007-02-27 15:15 UTC (permalink / raw)
To: u-boot
Hi M?ns,
On 27.02.2007 15:23, 25an wrote:
> 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
I suggest not using -mtune at all, it will most likely not produce
different (more efficient) code than using -march=armv5te alone when
compiling U-Boot.
The gcc flag -mapcs-32 was deprecated since gcc-3.4.0 and finally
removed in gcc-4.0.0 which unconditionally generates 32bit ARM code. You
should not need to pass this flag to the assembler either.
> 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, update to a more recent version of U-Boot. Or, if that is not
possible, use an older toolchain/compiler (for example gcc-3.4.6 should
work with U-Boot 1.1.5).
U-Boot 1.1.5 DOES NOT WORK with gcc-4.x! Expect more (hidden) problems!
> Content-Type: text/plain; charset="utf-8"
> Content-Transfer-Encoding: base64
Please post plain-text messages to this list.
Regards,
Daniel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!!
2007-02-27 15:15 ` Daniel Hobi
@ 2007-02-27 15:41 ` 25an
0 siblings, 0 replies; 9+ messages in thread
From: 25an @ 2007-02-27 15:41 UTC (permalink / raw)
To: u-boot
Recompiled u-boot-1.1.5_atmel_1.2 with gcc version 3.3.3 (DENX ELDK 3.1.1
3.3.3-9) with config
PLATFORM_CPPFLAGS += -march=armv5te -mapcs-32
and it passed.
Couldn't get a patch for my board for git u-boot..
Tnx Daniel
Take care
M?ns
--
View this message in context: http://www.nabble.com/Can%27t-Compile-u-boot-1.1.5_atmel_1.2%21%21-tf3299277.html#a9184730
Sent from the Uboot - Users mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!!
2007-02-27 8:49 [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!! Måns Zigher
2007-02-27 9:44 ` Daniel Hobi
@ 2007-02-27 16:09 ` 25an
2007-02-28 11:35 ` 25an
1 sibling, 1 reply; 9+ messages in thread
From: 25an @ 2007-02-27 16:09 UTC (permalink / raw)
To: u-boot
Ok I managed to compile u-boot-1.1.5_armel_1.2 with ELDK 4.1 and gcc 4.0.
I solved it by the editing the following files.
In the main Makefile at line 228 i removed the example
from:
SUBDIRS = tools \
examples \
post \
post/cpu
to:
SUBDIRS = tools \
post \
post/cpu
.PHONY : $(SUBDIRS)
then I edit in the file cpu/arm926ejs/at91sam926x/config.mk
from:
PLATFORM_CPPFLAGS += -mapcs-32 -march=armv5te -mtune=arm926ejs
to:
PLATFORM_CPPFLAGS += -march=armv5te -Wa,-mapcs-32 -mtune=arm926ej-s
and then in the file cpu/arm926ejs/at91sam926x/usb_ohci.c at line 1659
from:
writel (gohci.hc_control = OHCI_USB_RESET, &gohci.regs->control);
to:
gohci.hc_control = OHCI_USB_RESET;
writel (gohci.hc_control, &gohci.regs->control);
now I passed the compilation but I have not yet tried it on the board but I
will let you know if it worked or not.
I you have the same problem try this or compile it with ELDK 3.1 which is
using gcc 3.3.3
--
View this message in context: http://www.nabble.com/Can%27t-Compile-u-boot-1.1.5_atmel_1.2%21%21-tf3299277.html#a9185397
Sent from the Uboot - Users mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!!
2007-02-27 16:09 ` 25an
@ 2007-02-28 11:35 ` 25an
0 siblings, 0 replies; 9+ messages in thread
From: 25an @ 2007-02-28 11:35 UTC (permalink / raw)
To: u-boot
It worked!
25an wrote:
>
> Ok I managed to compile u-boot-1.1.5_armel_1.2 with ELDK 4.1 and gcc 4.0.
> I solved it by the editing the following files.
>
> In the main Makefile at line 228 i removed the example
>
> from:
>
> SUBDIRS = tools \
> examples \
> post \
> post/cpu
> .PHONY : $(SUBDIRS)
>
> to:
>
> SUBDIRS = tools \
> post \
> post/cpu
> .PHONY : $(SUBDIRS)
>
> then I edit in the file cpu/arm926ejs/at91sam926x/config.mk
>
> from:
>
> PLATFORM_CPPFLAGS += -mapcs-32 -march=armv5te -mtune=arm926ejs
>
> to:
>
> PLATFORM_CPPFLAGS += -march=armv5te -Wa,-mapcs-32 -mtune=arm926ej-s
>
> and then in the file cpu/arm926ejs/at91sam926x/usb_ohci.c at line 1659
>
> from:
>
> writel (gohci.hc_control = OHCI_USB_RESET, &gohci.regs->control);
>
> to:
>
> gohci.hc_control = OHCI_USB_RESET;
> writel (gohci.hc_control, &gohci.regs->control);
>
> now I passed the compilation but I have not yet tried it on the board but
> I will let you know if it worked or not.
> I you have the same problem try this or compile it with ELDK 3.1 which is
> using gcc 3.3.3
>
>
>
>
>
>
>
--
View this message in context: http://www.nabble.com/Can%27t-Compile-u-boot-1.1.5_atmel_1.2%21%21-tf3299277.html#a9202276
Sent from the Uboot - Users mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!!
@ 2007-02-27 15:21 Daniel Hobi
0 siblings, 0 replies; 9+ messages in thread
From: Daniel Hobi @ 2007-02-27 15:21 UTC (permalink / raw)
To: u-boot
Argh, ignoring the plain-text restriction myself. Sorry about that!
On 27.02.2007 15:23, 25an wrote:
> 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
I suggest not using -mtune at all, it will most likely not produce
different (more efficient) code than using -march=armv5te alone when
compiling U-Boot.
The gcc flag -mapcs-32 was deprecated since gcc-3.4.0 and finally
removed in gcc-4.0.0 which unconditionally generates 32bit ARM code. You
should not need to pass this flag to the assembler either.
> 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, update to a more recent version of U-Boot. Or, if that is not
possible, use an older toolchain/compiler (for example gcc-3.4.6 should
work with U-Boot 1.1.5).
U-Boot 1.1.5 DOES NOT WORK with gcc-4.x! Expect more (hidden) problems!
> Content-Type: text/plain; charset="utf-8"
> Content-Transfer-Encoding: base64
Please post plain-text messages to this list.
Regards,
Daniel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!!
@ 2007-02-27 8:54 25an
0 siblings, 0 replies; 9+ messages in thread
From: 25an @ 2007-02-27 8:54 UTC (permalink / raw)
To: u-boot
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
25an at 25an-desktop :/opt/x-compile/eldk/workingare
a/u-boot-1.1.5_atmel_1.2$ make ARCH=arm CROSS_COMPILE=arm-linux-
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory
`/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/tools'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory
`/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/examples'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory
`/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/post'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory
`/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/post/cpu'
make -C tools all
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make[1]: Leaving directory
`/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/tools'
make -C examples all
make[1]: Entering directory
`/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/examples '
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8
-msoft-float -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float
-D__KERNEL__ -DTEXT_BASE=0x23f00000 -I/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/include -fno-builtin -ffreestanding -nostdinc -isystem
/opt/x-compile/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe
-DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -mapcs-32 -march=armv5te
-mtune=arm926ejs -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
cc1: error: invalid option 'apcs-32'
hello_world.c:1: error: bad value (arm926ejs) for -mtune= switch
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples'
make: *** [examples] Error 2
Any ideas?
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.
Thanks
--
View this message in context: http://www.nabble.com/Can%27t-Compile-u-boot-1.1.5_atmel_1.2%21%21-tf3299257.html#a9177624
Sent from the Uboot - Users mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-02-28 11:35 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-27 8:49 [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!! Måns Zigher
2007-02-27 9:44 ` Daniel Hobi
2007-02-27 14:23 ` 25an
2007-02-27 15:15 ` Daniel Hobi
2007-02-27 15:41 ` 25an
2007-02-27 16:09 ` 25an
2007-02-28 11:35 ` 25an
2007-02-27 8:54 25an
2007-02-27 15:21 Daniel Hobi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.