ARM cross-compilation

Werner Almesberger (almesber@lrc.di.epfl.ch)
Sun, 18 Oct 1998 02:31:36 +0200 (MET DST)


I'm trying to cross-compile 2.1.125 on a i386 for ARM. I'm a bit puzzled
about the gcc and binutils to use ...

- http://www.arm.uk.linux.org/armlinux/tools.html tells me that
gcc/binutils 2.8 are broken and suggests to use some patched-up
versions of gcc 2.7.2.2 and binutils 2.7. Tried that, but gcc fails
to build libgcc1.a
- Documentation/ARM-README in ftp://ftp.arm.uk.linux.org/pub/armlinux/
kernel-sources/v2.1/pre-patch-2.1.125-19981015-1.gz tells me that
gcc 2.8 and even egcs are fine. Tried gcc 2.8.1 and binutils 2.9.1,
and lo and behold, everything builds just okay.

There is one minor twist, though: so far I've only built for the
target arm-psion-aout. Trying to build a kernel with this looks like a
major uphill battle, because there seem to be many ELF dependencies.
(Section attributes, etc.)

A look at binutils*/bfd/config.bfd reveals that ELF is not supported for
the ARM (binutils 2.8.1 and 2.9.1). But Documentation/ARM-README teases:
> CROSS_COMPILE=/usr/bin/arm-unknown-linuxelf-
(./configure just laughs at this ...)

Now I'm confused. What kind of binutils are people using for compiling
kernels for ARMs then ?? Or are 2.1 kernels simply not supposed to
compile and I should try 2.0 ?

Any pointers appreciated ...

Thanks,
- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, DI-ICA,EPFL,CH   werner.almesberger@lrc.di.epfl.ch /
/_IN_R_131__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/