Toolchain and linux-2.6.12

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

Koen
Location: BELGIUM
Posts: 10
Joined: Fri Oct 07, 2005 5:15 pm

Toolchain and linux-2.6.12

Mon Dec 12, 2005 6:48 pm

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
mishal4
Contact:
Posts: 6
Joined: Tue Nov 08, 2005 5:12 pm

i had problems with 2.6.12 too - i have solve them

Wed Dec 14, 2005 4:13 pm

i use binutils 2.16.1 , and cross-3.2
only by using them got kernel.
Koen
Location: BELGIUM
Posts: 10
Joined: Fri Oct 07, 2005 5:15 pm

Toolchain and linux-2.6.12

Thu Dec 15, 2005 12:08 pm

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?
mishal4
Contact:
Posts: 6
Joined: Tue Nov 08, 2005 5:12 pm

Thu Dec 15, 2005 7:46 pm

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)
romank@randrlabs.com
Location: Oregon
Posts: 12
Joined: Tue Dec 13, 2005 6:50 pm

Mon Dec 19, 2005 5:17 am

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)
Hi,
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
Posts: 11
Joined: Mon May 09, 2005 10:16 pm

Kernel 2.6.12.6 with gcc-3.4.4

Tue Dec 20, 2005 5:10 pm

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
romank@randrlabs.com
Location: Oregon
Posts: 12
Joined: Tue Dec 13, 2005 6:50 pm

Re: Kernel 2.6.12.6 with gcc-3.4.4

Wed Dec 21, 2005 3:33 am

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
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 -

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
gbee
Posts: 1
Joined: Fri Dec 30, 2005 10:12 am

Re: Kernel 2.6.12.6 with gcc-3.4.4

Fri Dec 30, 2005 10:31 am

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
hi dguedel:
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
Posts: 11
Joined: Mon May 09, 2005 10:16 pm

Post subject: Re: Kernel 2.6.12.6 with gcc-3.4.4

Wed Jan 18, 2006 4:15 pm

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
mishal4
Contact:
Posts: 6
Joined: Tue Nov 08, 2005 5:12 pm

Wed Jan 18, 2006 4:23 pm

use 3.2 or 3.3 version of compiler and you will be happy.
Manuel Dicke
Posts: 9
Joined: Tue Apr 18, 2006 2:22 pm

error by making u-boot 1.1.4

Wed Apr 26, 2006 11:02 am

mishal4 wrote:use 3.2 or 3.3 version of compiler and you will be happy.
Hello,

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
mishal4
Contact:
Posts: 6
Joined: Tue Nov 08, 2005 5:12 pm

Wed Apr 26, 2006 11:56 am

if you don't want to compile cross-compiler you will not got nothing. unfortunately. I have spand a lot of time to ensure this. sorry. if you found another way - please give me a note

Return to “LINUX”

Who is online

Users browsing this forum: Google [Bot] and 3 guests