On Sat, Jun 02, 2001 at 06:55:12PM +1000, Daniel Marr wrote:
> Hi everyone and particularly anyone who knows the pain of building the gcc
> cross compiler for the ARM Thumb.
I got no problems with it. Check out
http://www.armlinux.org/docs/toolchain/
> I have tried everything (obviously not otherwise it would work!) but can't
> seem to get it to work.
>
> I have downloaded : gcc-2.8.1, gcc-2.95.3, snapshot 210501,
Gcc-2.8.1 is ancient and shouldn't be used at all.
> binutils -2.11, 2.9.1
Binutils 2.11 works quite well.
> glibc, newlib-1.8.l
Which glibc version? I compiled a toolchain with glibc-2.2.2.
> I have Mandrake 8 with the new linux kernel.
>
> I have tried :
>
> binutilsx/configure -target=arm-thumb-elf, arm-elf, thumb-elf
You only tell configure which ABI it should compile for, you don't
select a target OS.
> gcc/configure -target = as above with newlib and glibc
>
> I can type in arm-thumb-elf-gcc at the command prompt and it is a valid
> command, but when I try to compile a file it can't find crt0 or something.
> Any suggestions? For instance are there any other parameters in the
> arm-elf-gcc -b? etc.
You should either select arm-thumb for a flat thumb target (creates
binaries for use without OS), or select arm-linux for a compiler that
supports linux and has support for both ARM and thumb instructions.
BTW, the upcoming gcc-3.0 has much better support for arm/thumb
interwork, so you should try that one. I do have a precompiled gcc-3.0
target online, see:
http://www.lart.tudelft.nl/lartware/compile-tools/
It's the 2010409 snapshot.
> Also, should you be able to rescue me on this you may be able to help me
> actually communicating with the arm. I thought I read somewhere you can
> communicate with angel from hyperterminal. Mine comes up with Angel but
> then garble.
>
> You should be able to do it with gdb, right?
>
> gdb -target=arm-thumb-elf
I tried this for about 15 minutes on an ARM evaluation board and
decided that the Angel version on the board was too broken to be
useful.
Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2783635 Fax: +31-15-2781843 Email: [EMAIL PROTECTED]
WWW: http://www-ict.its.tudelft.nl/~erik/
_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.