Hello did anyone build a toolchain for for a at91 kernel?
When I try it I always get somewhere errors does anyone have a despription to make (a recent version eg. gcc-2.4.2, glibc-2.3.3)
With the prebuild version I found the headers for at91 are missing (and also the gcj compiler)
The examples for building are most of the time for the linux-2.4
Toolchain and linux-2.6.12
Moderator: nferre
- mishal4
- Contact:
Post
i had problems with 2.6.12 too - i have solve them
i use binutils 2.16.1 , and cross-3.2
only by using them got kernel.
only by using them got kernel.
- Koen
- Location: BELGIUM
Post
Toolchain and linux-2.6.12
I asume that you use the prebuild toolchain 3.2 from 'arm.linux.org.uk'
When I try to use it I get a error 'Your compiler is too buggy; it is known to miscompile kernels'
Maybe this had something to do with the binutils 2.16.1, but how do you combine the binutils with the already build toolchain?
When I try to use it I get a error 'Your compiler is too buggy; it is known to miscompile kernels'
Maybe this had something to do with the binutils 2.16.1, but how do you combine the binutils with the already build toolchain?
- mishal4
- Contact:
Post
actually kernel is right. cross-comiler chain 3.2 (yes i get it from arm.linux.org.uk)
i just remove testing of compiler version. sorry but i haven't idea how to get "not buggy" toolchain.
about adding binutils.
it is nessesary at least version 2.14. to compile 2.6.x kernel.
so - when you download new binutils use "configure " script to generate installation of the binutils - you just set path to cross compiler (and of course your target).
and you can install new version of binutils.
that's all.
(i understand that my way is not easy but i can't find another sorry)
i just remove testing of compiler version. sorry but i haven't idea how to get "not buggy" toolchain.
about adding binutils.
it is nessesary at least version 2.14. to compile 2.6.x kernel.
so - when you download new binutils use "configure " script to generate installation of the binutils - you just set path to cross compiler (and of course your target).
and you can install new version of binutils.
that's all.
(i understand that my way is not easy but i can't find another sorry)
- romank@randrlabs.com
- Location: Oregon
Post
I received the same buggy mesage with 3.0 and 3.2 also.
I could not compile 2.6.12 kernel with either 2.94 or 2.93.
I ended up using crosstool to compile a 3.3 cross compiler.
Check this out kegel.com/crosstool for more information.
Good luck
Hi,mishal4 wrote:actually kernel is right. cross-comiler chain 3.2 (yes i get it from arm.linux.org.uk)
i just remove testing of compiler version. sorry but i haven't idea how to get "not buggy" toolchain.
about adding binutils.
it is nessesary at least version 2.14. to compile 2.6.x kernel.
so - when you download new binutils use "configure " script to generate installation of the binutils - you just set path to cross compiler (and of course your target).
and you can install new version of binutils.
that's all.
(i understand that my way is not easy but i can't find another sorry)
I received the same buggy mesage with 3.0 and 3.2 also.
I could not compile 2.6.12 kernel with either 2.94 or 2.93.
I ended up using crosstool to compile a 3.3 cross compiler.
Check this out kegel.com/crosstool for more information.
Good luck
- dguedel
- Contact:
- Location: Switzerland
Post
Kernel 2.6.12.6 with gcc-3.4.4
Hi,
I'm working with the kernel version 2.6.12.6 and the compiler arm-none-linux-gnueabi-gcc-3.4.4 from CodeSourcery.
It works fine and without any compiler errors.
http://www.codesourcery.com/
Regards,
Daniel
I'm working with the kernel version 2.6.12.6 and the compiler arm-none-linux-gnueabi-gcc-3.4.4 from CodeSourcery.
It works fine and without any compiler errors.
http://www.codesourcery.com/
Regards,
Daniel
- romank@randrlabs.com
- Location: Oregon
Post
make[1]: Leaving directory `/atmel.kernel.2.6.12/u-boot-1.1.4/common'
UNDEF_SYM=`/usr/local/arm/codesource/bin/arm-none-linux-gnueabi-objdump -x lib_generic/libgeneric.a board/at91rm9200dk/libat91rm9200dk.a cpu/arm920t/libarm920t.a cpu/arm920t/at91rm9200/libat91rm9200.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
/usr/local/arm/codesource/bin/arm-none-linux-gnueabi-ld -Bstatic -T /atmel.kernel.2.6.12/u-boot-1.1.4/board/at91rm9200dk/u-boot.lds -Ttext 0x21f00000 $UNDEF_SYM cpu/arm920t/start.o \
--start-group lib_generic/libgeneric.a board/at91rm9200dk/libat91rm9200dk.a cpu/arm920t/libarm920t.a cpu/arm920t/at91rm9200/libat91rm9200.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L /usr/local/arm/codesource/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4 -lgcc \
-Map u-boot.map -o u-boot
/usr/local/arm/codesource/bin/arm-none-linux-gnueabi-ld: ERROR: Source object /usr/local/arm/codesource/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/libgcc.a(_divsi3.oS) has EABI version 4, but target u-boot has EABI version 0
/usr/local/arm/codesource/bin/arm-none-linux-gnueabi-ld: failed to merge target specific data of file /usr/local/arm/codesource/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/libgcc.a(_divsi3.oS)
/usr/local/arm/codesource/bin/arm-none-linux-gnueabi-ld: ERROR: Source object /usr/local/arm/codesource/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/libgcc.a(_modsi3.oS) has EABI version 4, but target u-boot has EABI version 0
/usr/local/arm/codesource/bin/arm-none-linux-gnueabi-ld: failed to merge target specific data of file /usr/local/arm/codesource/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/libgcc.a(_modsi3.oS)
make: *** [u-boot] Error 1
Thanks for your help so far.
Roman
Re: Kernel 2.6.12.6 with gcc-3.4.4
Did you compile U Boot 1.1.3 or 1.1.4 with your compiler. I tried 1.1.4 and I get an error -dguedel wrote:Hi,
I'm working with the kernel version 2.6.12.6 and the compiler arm-none-linux-gnueabi-gcc-3.4.4 from CodeSourcery.
It works fine and without any compiler errors.
http://www.codesourcery.com/
Regards,
Daniel
make[1]: Leaving directory `/atmel.kernel.2.6.12/u-boot-1.1.4/common'
UNDEF_SYM=`/usr/local/arm/codesource/bin/arm-none-linux-gnueabi-objdump -x lib_generic/libgeneric.a board/at91rm9200dk/libat91rm9200dk.a cpu/arm920t/libarm920t.a cpu/arm920t/at91rm9200/libat91rm9200.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
/usr/local/arm/codesource/bin/arm-none-linux-gnueabi-ld -Bstatic -T /atmel.kernel.2.6.12/u-boot-1.1.4/board/at91rm9200dk/u-boot.lds -Ttext 0x21f00000 $UNDEF_SYM cpu/arm920t/start.o \
--start-group lib_generic/libgeneric.a board/at91rm9200dk/libat91rm9200dk.a cpu/arm920t/libarm920t.a cpu/arm920t/at91rm9200/libat91rm9200.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L /usr/local/arm/codesource/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4 -lgcc \
-Map u-boot.map -o u-boot
/usr/local/arm/codesource/bin/arm-none-linux-gnueabi-ld: ERROR: Source object /usr/local/arm/codesource/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/libgcc.a(_divsi3.oS) has EABI version 4, but target u-boot has EABI version 0
/usr/local/arm/codesource/bin/arm-none-linux-gnueabi-ld: failed to merge target specific data of file /usr/local/arm/codesource/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/libgcc.a(_divsi3.oS)
/usr/local/arm/codesource/bin/arm-none-linux-gnueabi-ld: ERROR: Source object /usr/local/arm/codesource/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/libgcc.a(_modsi3.oS) has EABI version 4, but target u-boot has EABI version 0
/usr/local/arm/codesource/bin/arm-none-linux-gnueabi-ld: failed to merge target specific data of file /usr/local/arm/codesource/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/libgcc.a(_modsi3.oS)
make: *** [u-boot] Error 1
Thanks for your help so far.
Roman
Post
I use the cross compiler from the web you give above, but when cross compiling the linux-2.6.12 for arm, shows lots of warning:target CPU does not support interworking, and the kernel halts after uncompressing. what is the matter,will you please give me some advice?
I download the gcc3.4.3 from gnu, and still have some errors(can not find the system headers) when building.
Best regards!
Re: Kernel 2.6.12.6 with gcc-3.4.4
hi dguedel:dguedel wrote:Hi,
I'm working with the kernel version 2.6.12.6 and the compiler arm-none-linux-gnueabi-gcc-3.4.4 from CodeSourcery.
It works fine and without any compiler errors.
http://www.codesourcery.com/
Regards,
Daniel
I use the cross compiler from the web you give above, but when cross compiling the linux-2.6.12 for arm, shows lots of warning:target CPU does not support interworking, and the kernel halts after uncompressing. what is the matter,will you please give me some advice?
I download the gcc3.4.3 from gnu, and still have some errors(can not find the system headers) when building.
Best regards!
- dguedel
- Contact:
- Location: Switzerland
Post
Post subject: Re: Kernel 2.6.12.6 with gcc-3.4.4
Hi,
I was on holiday, so my late reply.
I'm working with the kernel version 2.6.12.6 and the compiler arm-none-linux-gnueabi-gcc-3.4.4 and I get the same warnings (not errors) too 'CPU does not support interworking' but the kernel starts after uncompressing. Which board do you use?
I'm using u-boot-1.1.2 with the compiler 2.95.3 from Atmel and actually I'm trying u-boot-1.1.4 with the compiler arm-none-linux-gnueabi-gcc-3.4.4 but I get the same error messages about EABI version 4 and 0.
Regards,
Daniel
I was on holiday, so my late reply.
I'm working with the kernel version 2.6.12.6 and the compiler arm-none-linux-gnueabi-gcc-3.4.4 and I get the same warnings (not errors) too 'CPU does not support interworking' but the kernel starts after uncompressing. Which board do you use?
I'm using u-boot-1.1.2 with the compiler 2.95.3 from Atmel and actually I'm trying u-boot-1.1.4 with the compiler arm-none-linux-gnueabi-gcc-3.4.4 but I get the same error messages about EABI version 4 and 0.
Regards,
Daniel
- mishal4
- Contact:
Post
I try the same with the same error. What do you mean with compiler version 3.2 or 3.3??
I don't want compile the cross compiler.
I use the arm-none-linux-gnueabi from CodeSourcery. It includes the arm-linux-gcc Version 3.4.4 and try to make u-boot 1.1.4
Best Regards
Manuel
error by making u-boot 1.1.4
Hello,mishal4 wrote:use 3.2 or 3.3 version of compiler and you will be happy.
I try the same with the same error. What do you mean with compiler version 3.2 or 3.3??
I don't want compile the cross compiler.
I use the arm-none-linux-gnueabi from CodeSourcery. It includes the arm-linux-gcc Version 3.4.4 and try to make u-boot 1.1.4
Best Regards
Manuel
Who is online
Users browsing this forum: No registered users and 0 guests