Hello Karsten,
first of all: It's not that nice to post the same question in different
forums at the same time. Give people some time to answer before you use
another forum/mailing-list. You have also given more and different
information in the gnuarm-thread than in this forum. This is not a good
idea too.
Karsten Brandt wrote:
>
> I've tried to compile with the -mbig-endian option.
>
> This proccess was successfully, but on my target the created binary
> doesn't work.
From what I read in the gnuarm-group "doesn't work" seems to be not
quite true. The binary itself seems to work but there seems to be an
issue with the order of data-bytes. Again: If you expect an useful
answer, give complete information. Usualy nobody will spend time to
collect your pieces of information from the gnuarm-group,
mikrocontroller.net/German forum and this forum to get the complete
picture.
> Can you give me a little description, how do you create a toolchain for
> the minGW environment.
> In this case I'll try to build a big-endian toolchain.
From what I can see WinARM should also be build for big-endian
(-mbig-endian) too.
C:\Dokumente und Einstellungen\mthomas.KATJA400>arm-elf-gcc
-print-multi-lib
.;
thumb;@mthumb
be;@mbig-endian
fpu;@mhard-float
interwork;@mthumb-interwork
nofmult;@mcpu=arm7
fpu/interwork;@mhard-float@mthumb-interwork
fpu/nofmult;@mhard-float@mcpu=arm7
be/fpu;@mbig-endian@mhard-float
be/interwork;@mbig-endian@mthumb-interwork
be/nofmult;@mbig-endian@mcpu=arm7
be/fpu/interwork;@mbig-endian@mhard-float@mthumb-interwork
be/fpu/nofmult;@mbig-endian@mhard-float@mcpu=arm7
thumb/be;@mthumb@mbig-endian
thumb/interwork;@mthumb@mthumb-interwork
thumb/be/interwork;@mthumb@mbig-endian@mthumb-interwork
But maybe there is an error somewhere.
Did you try the -EB command-line-option for linker and assembler? Again:
I do not now much about this, but I have found this option in the
binutils-documentation. If you have not used the option before try this
first.
> If this
> successfully we can merge our experience in the future.
>
> I'll download the following sources from gnuARM.org:
>
> binutils-2.16.1.tar.bz2
> gcc-4.1.0.tar.bz2
> newlib-1.14.0.tar.gz
>
Try another ready-made toolchain (i.e. gnuarm or the one codesourcery)
first before you create your own toolchain. Maybe this saves some time.
I'm not using the files from gnuarm but those from the
"distribution-servers" of the different projects (the first
WinARM-versions have been build with the sources from the
mingw-project). I don't know if the gnuarm-sources are patched.
> I hope that you can give me that needed information.
Currently I have no document how WinARM is build. Building the gnu-tools
and working arount problems is only partly automated.
Good information can be found in:
- the mingw-wikki
- the mingw-patches for gcc and binutils
- the build-script and patches from devkitpro/devkitarm
- the crosstool files
If you are building your own toolchain and find a solution please send
it. Keep in mind that WinARM has to be a collection for little- and
big-endian (well, at least for little-endian). If you'd like to have
your methods included in WinARM please don't break the little-endian
build.
Martin Thomas