[uClinux-dev] uClinux for ARM to use?
numatico at racsa.co.cr
Fri Jan 19 12:39:56 EST 2001
Mitch accidentally did this about a week ago. Here's the best he can remember.
Assuming you're using binutils 2.10.1, Gcc 2.95.2, newlib 1.9.0, and gdb 5.0....
Unpack binutils, newlib, gcc and gdb.
You have to change in the binutils directory ld/configure.tgt; add armeb as one of the processor types by changing the line that start with arm-*-elf to arm*-*-elf. In the file ld/emulparams/armelf.sh, at the line that starts with OUTPUT_FORMAT, change 'littlearm' to 'bigarm'.
Execute in binutils directory:
Execute in gcc directory:
configure --target=armeb-elf -with-newlib
Now in newlib/newlib/configure.host, change all the lines where there is arm(something), to arm|armeb|armel (there are at least three places where you change this). Create a separate directory (example: armlib) at the same directory level where newlib-1.9.0/ is located (the installation directory). In this directory, execute:
Edit the makefile, changing target cpu to arm. Then:
Then in gdb, change bfd/config.bfd line 'arm)' to 'arm*)'. Find the line starting with arm-*-elf, copy it and the three lines that follow, inserting them below. Change the first line of this block to armeb-*-elf). Change the line with defvec from 'little' to 'big'. In the next line, change 'big' to 'little'. Then:
All this assumes that you want to build for an ARM bigendian ELF target.
Hope this helps!
for Numatics, Inc.
At 02:18 PM 1/19/01 +0100, you wrote:
>I am also trying to build a big endian tool-chain for ARM7TDMI. I have
>read a lot of stuff but
>haven't succeded yet, does anyone have any ides/suggestions?
>This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/
More information about the uClinux-dev