-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.TXT
171 lines (95 loc) · 5.1 KB
/
README.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
This readme will guide you to build your arm toolchain on MinGW from the very first step.
How to setup the MinGW/MSYS environment ?
------------------------------------------
For a proper MinGW/MSYS environment, you need the following tools:
MinGW-5.1.3
(http://prdownloads.sf.net/mingw/MinGW-5.1.3.exe?download)
msys-1.0.11-2004.04.30-1
(http://prdownloads.sf.net/mingw/MSYS-1.0.11-2004.04.30-1.exe?download)
msysDTK-1.0.1
(http://prdownloads.sf.net/mingw/msysDTK-1.0.1.exe?download)
bison-2.1
(http://prdownloads.sourceforge.net/gnuwin32/bison-2.1.exe?download)
flex-2.5.4a-1
(http://prdownloads.sourceforge.net/gnuwin32/flex-2.5.4a-1.exe?download)
texinfo-4.8
(http://prdownloads.sourceforge.net/gnuwin32/texinfo-4.8.exe?download)
================================================================================
You can download all these files in one directory. After you have download
the files, start MinGW-5.1.3.exe. The program will guide you through
the installtion process.
Choose the mirror you want, and select "Download as needed and install".
At the next page select "Current" and "Minimal" on the following page for
the components to install.
Use the default "c:\MinGW" for the destination folder. The install program
will dowload some MinGW tools during the installation process.
Now you can install MSYS, therefore start msys-1.0.11-2004.04.30-1.exe.
Install MSYS to "c:\msys\1.0", answer the post-install questions with y,
when asked give the path as c:/MinGW
Now you can install msysDTK-1.0.1.exe to "c:\msys\1.0".
At the next steps you must install, bison, flex and texinfo.
For the destination folder use "c:\MinGW".
Congratulations, you have installed your MinGW/MSYS environment,
and can start it with the desktop icon "MSYS".
Inside the MSYS shell, type:
gcc --version
As an result, the version info of gcc will be displayed.
The version should be 3.4.5. To check the texinfo version, type:
makeinfo --version
The result should be 4.8.
=================================================================================
Yes I know, it is a chicken-egg problem, how could you read this README,
because I have not told you how to expand.
Copy the build-scripts-YYYYMMDD.tar.bz2 into your home folder of MSYS.
(c:\msys\1.0\home\<your-name>)
The file can now be extracted with:
tar -xjvf build-scripts-YYYYMMDD.tar.bz2
Now you will find the chicken, sorry this README.TXT and all the other scripts
you need to build the arm toolchain. An directory "download" is created too. This
is an empty directory, where you must download the arm-toolchain source.
=================================================================================
How to build an arm-toolchain on MinGW ?
-----------------------------------------
For the arm-toolchain you need the following sources:
expat-2.0.1
(http://sourceforge.net/project/showfiles.php?group_id=10127&package_id=10780&release_id=513851)
S
gmp-5.0.4
(ftp://ftp.gnu.org/gnu/gmp/gmp-5.0.4.tar.bz2)
mpfr-2.4.2
(http://www.mpfr.org/mpfr-2.4.2/mpfr-2.4.2.tar.bz2)
binutils 2.22
(ftp://sources.redhat.com/pub/binutils/releases/binutils-2.22.tar.bz2)
gcc-4.7.1
(ftp://sources.redhat.com/pub/gcc/releases/gcc-4.7.1/gcc-4.7.1.tar.bz2)
newlib 1.20.0
(ftp://sources.redhat.com/pub/newlib/newlib-1.20.0.tar.gz)
gdb 7.4.1
(ftp://sources.redhat.com/pub/gdb/releases/gdb-7.4.1.tar.bz2)
mpc 0.8.1
(http://www.multiprecision.org/mpc/download/mpc-0.8.1.tar.gz)
You MUST download all these files into the download direcroty which was created
in the step before (you have expand the build-scripts-YYYYMMDD.tar.bz2, and
created the directory)
Open a MSYS shell, and change into the directory where you have extract the
build-scripts-YYYYMMDD.tar.bz2. Here you will find some build scripts.
Normally The scripts will be started with "./<script-name.sh>"
ATTENTION ATTENTION ATTENTION ATTENTION
=======================================
The first script, "00-set-env.sh" _MUST_ be startet with ". 00-set-env.sh"
(dot space 00-set-env.sh)
=======================================
The script will expand the source and patched if needed. After this you can
start script 01 to 09 (in this order) with "./<script-name.sh>".
At the end, you will find the arm-toolchain inside the <prefix> directory.
You can copy this directory anywhere on your windows pc for example inside
"armdev", but you must expand the PATH by <armdev>\bin.
The toolchain here was build on a Windows XP pro. SP2, without any problems (now).
Credits
--------
- Thanks to Pablo for providing the GNUARM toolchain from where I use the
t-arm-elf file, and get the motivation to create a MinGW based toolchain.
- A lot of information I have found in the internet
- Some of my scripts was derived from the devkitPro scripts (http://www.devkitpro.org/)
- Thanks to Dave from the devkitPro team (www.devkitpro.org) where I take the source for Insight from
(16.06.2012, Michael Fischer, www.yagarto.de)