* [U-Boot] Recommended AVR32 toolchain
@ 2014-08-20 16:10 Vasili Galka
2014-08-20 20:38 ` Andreas Bießmann
0 siblings, 1 reply; 3+ messages in thread
From: Vasili Galka @ 2014-08-20 16:10 UTC (permalink / raw)
To: u-boot
Hi Andreas,
I'm trying to verify the correct build of all AVR32 boards. What is
the recommended toolchain to use?
I tried the one that comes with Ubuntu:
sudo apt-get install gcc-avr binutils-avr gdb-avr avr-libc avrdude
But it does not work, I get the following build errors:
Building atngw100mkii board...
avr-gcc: error: unrecognized command line option ?-mno-init-got?
avr-gcc: error: unrecognized command line option ?-mcpu=ap7000?
make[3]: *** [include/autoconf.mk] Error 1
make[3]: *** [include/autoconf.mk.dep] Error 1
make[2]: *** [silentoldconfig] Error 1
make: *** [sub-make] Error 2
avr-size: '/home/lab/dev/u-boot/out/all_avr32/u-boot': No such file
avr-gcc: error: unrecognized command line option ?-mno-init-got?
avr-gcc: error: unrecognized command line option ?-mcpu=ap7000?
make[3]: *** [include/autoconf.mk] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [include/autoconf.mk.dep] Error 1
'make -f /home/lab/dev/u-boot/scripts/Makefile.autoconf obj=include
include/autoconf.mk include/autoconf.mk.dep' Failed
make[2]: *** [silentoldconfig] Error 1
make[1]: *** No rule to make target `include/config/auto.conf', needed
by `include/config/uboot.release'. Stop.
make: *** [sub-make] Error 2
Regards,
Vasili
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Recommended AVR32 toolchain
2014-08-20 16:10 [U-Boot] Recommended AVR32 toolchain Vasili Galka
@ 2014-08-20 20:38 ` Andreas Bießmann
2014-08-21 10:53 ` Vasili Galka
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Bießmann @ 2014-08-20 20:38 UTC (permalink / raw)
To: u-boot
Hi Vasili,
On 20.08.14 18:10, Vasili Galka wrote:
> Hi Andreas,
>
> I'm trying to verify the correct build of all AVR32 boards. What is
> the recommended toolchain to use?
it depends, at least you should use a avr32-linux toolchain. The
avr32-elf one builds u-boot fine but has some runtime flaws. For compile
testing this would be Ok.
> I tried the one that comes with Ubuntu:
>
> sudo apt-get install gcc-avr binutils-avr gdb-avr avr-libc avrdude
Ouch, that is wrong. You got the avr 8-bit variant. There is no mainline
avr32 gcc support!
The patches come from atmel [1] and are for an outdated gcc version
unfortunately.
You cold use the pre-compiled avr32 toolchain provided by kernel.org
[2]. I personally have never run this toolchain but others said it works.
Best regards
Andreas Bie?mann
[1] http://distribute.atmel.no/tools/opensource/
[2] https://www.kernel.org/pub/tools/crosstool/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Recommended AVR32 toolchain
2014-08-20 20:38 ` Andreas Bießmann
@ 2014-08-21 10:53 ` Vasili Galka
0 siblings, 0 replies; 3+ messages in thread
From: Vasili Galka @ 2014-08-21 10:53 UTC (permalink / raw)
To: u-boot
Hi Andreas,
The toolchain from kernel.org indeed works fine.
Thank you very much for your help!
Best regards,
Vasili
On Wed, Aug 20, 2014 at 11:38 PM, Andreas Bie?mann
<andreas.devel@googlemail.com> wrote:
> Hi Vasili,
>
> On 20.08.14 18:10, Vasili Galka wrote:
>> Hi Andreas,
>>
>> I'm trying to verify the correct build of all AVR32 boards. What is
>> the recommended toolchain to use?
>
> it depends, at least you should use a avr32-linux toolchain. The
> avr32-elf one builds u-boot fine but has some runtime flaws. For compile
> testing this would be Ok.
>
>> I tried the one that comes with Ubuntu:
>>
>> sudo apt-get install gcc-avr binutils-avr gdb-avr avr-libc avrdude
>
> Ouch, that is wrong. You got the avr 8-bit variant. There is no mainline
> avr32 gcc support!
> The patches come from atmel [1] and are for an outdated gcc version
> unfortunately.
> You cold use the pre-compiled avr32 toolchain provided by kernel.org
> [2]. I personally have never run this toolchain but others said it works.
>
> Best regards
>
> Andreas Bie?mann
>
> [1] http://distribute.atmel.no/tools/opensource/
> [2] https://www.kernel.org/pub/tools/crosstool/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-21 10:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20 16:10 [U-Boot] Recommended AVR32 toolchain Vasili Galka
2014-08-20 20:38 ` Andreas Bießmann
2014-08-21 10:53 ` Vasili Galka
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.