1 | .. comment SPDX-License-Identifier: CC-BY-SA-4.0 |
---|
2 | |
---|
3 | .. comment: Copyright (c) 2016 Chris Johns <chrisj@rtems.org> |
---|
4 | .. comment: All rights reserved. |
---|
5 | |
---|
6 | .. _microsoft-windows-installation: |
---|
7 | |
---|
8 | Microsoft Windows |
---|
9 | ----------------- |
---|
10 | .. index:: Microsoft Windows Installation |
---|
11 | |
---|
12 | This section details how you create an RTEMS development environment on |
---|
13 | Windows. The installation documented here is on `Windows 7 64bit |
---|
14 | Professional`. Building on `Windows 10` has been reported as working. |
---|
15 | |
---|
16 | Please see :ref:`microsoft-windows` before continuing. |
---|
17 | |
---|
18 | .. note:: |
---|
19 | |
---|
20 | If the RSB reports ``error: no hosts defaults found; please add`` you have |
---|
21 | probably opened an MSYS2 32bit Shell. Close all 32bit Shell windows and open |
---|
22 | the MSYS2 64bit Shell. |
---|
23 | |
---|
24 | RTEMS Tools |
---|
25 | ~~~~~~~~~~~ |
---|
26 | |
---|
27 | Create a workspace for RTEMS using the following shell command: |
---|
28 | |
---|
29 | .. sidebar:: *Creating Tool Archives* |
---|
30 | |
---|
31 | Add ``--bset-tar-file`` to the ``sb-set-builder`` command line to create |
---|
32 | tar files of the built package set. |
---|
33 | |
---|
34 | .. code-block:: shell |
---|
35 | |
---|
36 | ~ |
---|
37 | $ mkdir -p /c/opt/rtems |
---|
38 | |
---|
39 | The ``/c`` path is an internal MSYS2 mount point of the ``C:`` drive. The |
---|
40 | command creates the RTEMS work space on the ``C:`` drive. If you wish to use |
---|
41 | another drive please subsitute ``/c`` with your drive letter. |
---|
42 | |
---|
43 | We build and install all RTEMS packages under the `prefix` we just |
---|
44 | created. Change to that directory and get a copy of the RSB: |
---|
45 | |
---|
46 | .. code-block:: shell |
---|
47 | |
---|
48 | ~ |
---|
49 | $ cd /c/opt/rtems |
---|
50 | /c/opt/rtems |
---|
51 | $ git clone git://git.rtems.org/rtems-source-builder.git rsb |
---|
52 | Cloning into 'rsb'... |
---|
53 | remote: Counting objects: 5716, done. |
---|
54 | remote: Compressing objects: 100% (2183/2183), done. |
---|
55 | remote: Total 5716 (delta 3919), reused 5071 (delta 3494) |
---|
56 | Receiving objects: 100% (5716/5716), 2.46 MiB | 656.00 KiB/s, done. |
---|
57 | Resolving deltas: 100% (3919/3919), done. |
---|
58 | Checking connectivity... done. |
---|
59 | Checking out files: 100% (630/630), done. |
---|
60 | /c/opt/rtems |
---|
61 | $ cd rsb |
---|
62 | |
---|
63 | We are building RTEMS 4.11 tools so select the *4.11* branch: |
---|
64 | |
---|
65 | .. code-block:: shell |
---|
66 | |
---|
67 | /c/opt/rtems/rsb |
---|
68 | $ git checkout 4.11 |
---|
69 | Branch 4.11 set up to track remote branch 4.11 from origin. |
---|
70 | Switched to a new branch '4.11' |
---|
71 | /c/opt/rtems/rsb |
---|
72 | $ |
---|
73 | |
---|
74 | Check the RSB has a valid environment: |
---|
75 | |
---|
76 | .. code-block:: shell |
---|
77 | |
---|
78 | /c/opt/rtems/rsb |
---|
79 | $ cd rtems |
---|
80 | /c/opt/rtems/rsb/rtems |
---|
81 | $ ../source-builder/sb-check |
---|
82 | RTEMS Source Builder - Check, 4.11 (01ac76f2f90f) |
---|
83 | Environment is ok |
---|
84 | /c/opt/rtems/rsb/rtems |
---|
85 | $ |
---|
86 | |
---|
87 | To build a set of RTEMS tools for the Intel ``i386`` architecture. The build |
---|
88 | runs a single job rather than a job per CPU in your machine and will take a |
---|
89 | long time so please be patient. The RSB creates a log file containing all the |
---|
90 | build output and it will be changing size. The RSB command to build ``i386`` |
---|
91 | tools is: |
---|
92 | |
---|
93 | .. code-block:: shell |
---|
94 | |
---|
95 | /c/opt/rtems/rsb/rtems |
---|
96 | $ ../source-builder/sb-set-builder --prefix=/c/opt/rtems/4.11 \ |
---|
97 | --jobs=none 4.11/rtems-i386 |
---|
98 | RTEMS Source Builder - Set Builder, 4.11 (01ac76f2f90f) |
---|
99 | Build Set: 4.11/rtems-i386 |
---|
100 | Build Set: 4.11/rtems-autotools.bset |
---|
101 | Build Set: 4.11/rtems-autotools-internal.bset |
---|
102 | config: tools/rtems-autoconf-2.69-1.cfg |
---|
103 | package: autoconf-2.69-x86_64-w64-mingw32-1 |
---|
104 | Creating source directory: sources |
---|
105 | download: ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz -> sources/autoconf-2.69.tar.gz |
---|
106 | downloading: sources/autoconf-2.69.tar.gz - 1.8MB of 1.8MB (100%) |
---|
107 | building: autoconf-2.69-x86_64-w64-mingw32-1 |
---|
108 | config: tools/rtems-automake-1.12.6-1.cfg |
---|
109 | package: automake-1.12.6-x86_64-w64-mingw32-1 |
---|
110 | download: ftp://ftp.gnu.org/gnu/automake/automake-1.12.6.tar.gz -> sources/automake-1.12.6.tar.gz |
---|
111 | downloading: sources/automake-1.12.6.tar.gz - 2.0MB of 2.0MB (100%) |
---|
112 | building: automake-1.12.6-x86_64-w64-mingw32-1 |
---|
113 | cleaning: autoconf-2.69-x86_64-w64-mingw32-1 |
---|
114 | cleaning: automake-1.12.6-x86_64-w64-mingw32-1 |
---|
115 | Build Set: Time 0:00:42.515625 |
---|
116 | Build Set: 4.11/rtems-autotools-base.bset |
---|
117 | config: tools/rtems-autoconf-2.69-1.cfg |
---|
118 | package: autoconf-2.69-x86_64-w64-mingw32-1 |
---|
119 | building: autoconf-2.69-x86_64-w64-mingw32-1 |
---|
120 | reporting: tools/rtems-autoconf-2.69-1.cfg -> autoconf-2.69-x86_64-w64-mingw32-1.txt |
---|
121 | reporting: tools/rtems-autoconf-2.69-1.cfg -> autoconf-2.69-x86_64-w64-mingw32-1.xml |
---|
122 | config: tools/rtems-automake-1.12.6-1.cfg |
---|
123 | package: automake-1.12.6-x86_64-w64-mingw32-1 |
---|
124 | building: automake-1.12.6-x86_64-w64-mingw32-1 |
---|
125 | reporting: tools/rtems-automake-1.12.6-1.cfg -> automake-1.12.6-x86_64-w64-mingw32-1.txt |
---|
126 | reporting: tools/rtems-automake-1.12.6-1.cfg -> automake-1.12.6-x86_64-w64-mingw32-1.xml |
---|
127 | tarball: tar/rtems-4.11-autotools-x86_64-w64-mingw32-1.tar.bz2 |
---|
128 | installing: autoconf-2.69-x86_64-w64-mingw32-1 -> C:\opt\rtems\4.11 |
---|
129 | installing: automake-1.12.6-x86_64-w64-mingw32-1 -> C:\opt\rtems\4.11 |
---|
130 | cleaning: autoconf-2.69-x86_64-w64-mingw32-1 |
---|
131 | cleaning: automake-1.12.6-x86_64-w64-mingw32-1 |
---|
132 | Build Set: Time 0:00:37.718750 |
---|
133 | Build Set: Time 0:01:20.234375 |
---|
134 | config: devel/expat-2.1.0-1.cfg |
---|
135 | package: expat-2.1.0-x86_64-w64-mingw32-1 |
---|
136 | download: http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz -> sources/expat-2.1.0.tar.gz |
---|
137 | redirect: http://iweb.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz |
---|
138 | downloading: sources/expat-2.1.0.tar.gz - 549.4kB of 549.4kB (100%) |
---|
139 | building: expat-2.1.0-x86_64-w64-mingw32-1 |
---|
140 | reporting: devel/expat-2.1.0-1.cfg -> expat-2.1.0-x86_64-w64-mingw32-1.txt |
---|
141 | reporting: devel/expat-2.1.0-1.cfg -> expat-2.1.0-x86_64-w64-mingw32-1.xml |
---|
142 | config: tools/rtems-binutils-2.24-1.cfg |
---|
143 | package: i386-rtems4.11-binutils-2.24-x86_64-w64-mingw32-1 |
---|
144 | download: ftp://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.bz2 -> sources/binutils-2.24.tar.bz2 |
---|
145 | downloading: sources/binutils-2.24.tar.bz2 - 21.7MB of 21.7MB (100%) |
---|
146 | building: i386-rtems4.11-binutils-2.24-x86_64-w64-mingw32-1 |
---|
147 | reporting: tools/rtems-binutils-2.24-1.cfg -> i386-rtems4.11-binutils-2.24-x86_64-w64-mingw32-1.txt |
---|
148 | reporting: tools/rtems-binutils-2.24-1.cfg -> i386-rtems4.11-binutils-2.24-x86_64-w64-mingw32-1.xml |
---|
149 | config: tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg |
---|
150 | package: i386-rtems4.11-gcc-4.9.3-newlib-2.2.0.20150423-x86_64-w64-mingw32-1 |
---|
151 | download: ftp://ftp.gnu.org/gnu/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2 -> sources/gcc-4.9.3.tar.bz2 |
---|
152 | downloading: sources/gcc-4.9.3.tar.bz2 - 85.8MB of 85.8MB (100%) |
---|
153 | download: ftp://sourceware.org/pub/newlib/newlib-2.2.0.20150423.tar.gz -> sources/newlib-2.2.0.20150423.tar.gz |
---|
154 | downloading: sources/newlib-2.2.0.20150423.tar.gz - 16.7MB of 16.7MB (100%) |
---|
155 | download: http://www.mpfr.org/mpfr-3.0.1/mpfr-3.0.1.tar.bz2 -> sources/mpfr-3.0.1.tar.bz2 |
---|
156 | downloading: sources/mpfr-3.0.1.tar.bz2 - 1.1MB of 1.1MB (100%) |
---|
157 | download: http://www.multiprecision.org/mpc/download/mpc-0.8.2.tar.gz -> sources/mpc-0.8.2.tar.gz |
---|
158 | downloading: sources/mpc-0.8.2.tar.gz - 535.5kB of 535.5kB (100%) |
---|
159 | download: ftp://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.bz2 -> sources/gmp-5.0.5.tar.bz2 |
---|
160 | downloading: sources/gmp-5.0.5.tar.bz2 - 2.0MB of 2.0MB (100%) |
---|
161 | building: i386-rtems4.11-gcc-4.9.3-newlib-2.2.0.20150423-x86_64-w64-mingw32-1 |
---|
162 | reporting: tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg -> |
---|
163 | i386-rtems4.11-gcc-4.9.3-newlib-2.2.0.20150423-x86_64-w64-mingw32-1.txt |
---|
164 | reporting: tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg -> |
---|
165 | i386-rtems4.11-gcc-4.9.3-newlib-2.2.0.20150423-x86_64-w64-mingw32-1.xml |
---|
166 | config: tools/rtems-gdb-7.9-1.cfg |
---|
167 | package: i386-rtems4.11-gdb-7.9-x86_64-w64-mingw32-1 |
---|
168 | download: http://ftp.gnu.org/gnu/gdb/gdb-7.9.tar.xz -> sources/gdb-7.9.tar.xz |
---|
169 | downloading: sources/gdb-7.9.tar.xz - 17.0MB of 17.0MB (100%) |
---|
170 | download: https://git.rtems.org/rtems-tools/plain/tools/4.11/gdb/gdb-sim-arange-inline.diff -> patches/gdb-sim-arange-inline.diff |
---|
171 | downloading: patches/gdb-sim-arange-inline.diff - 761.0 bytes of 761.0 bytes (100%) |
---|
172 | download: https://git.rtems.org/rtems-tools/plain/tools/4.11/gdb/gdb-sim-cgen-inline.diff -> patches/gdb-sim-cgen-inline.diff |
---|
173 | downloading: patches/gdb-sim-cgen-inline.diff - 706.0 bytes of 706.0 bytes (100%) |
---|
174 | building: i386-rtems4.11-gdb-7.9-x86_64-w64-mingw32-1 |
---|
175 | reporting: tools/rtems-gdb-7.9-1.cfg -> |
---|
176 | i386-rtems4.11-gdb-7.9-x86_64-w64-mingw32-1.txt |
---|
177 | reporting: tools/rtems-gdb-7.9-1.cfg -> |
---|
178 | i386-rtems4.11-gdb-7.9-x86_64-w64-mingw32-1.xml |
---|
179 | config: tools/rtems-tools-4.11-1.cfg |
---|
180 | package: rtems-tools-4.11-1 |
---|
181 | Creating source directory: sources/git |
---|
182 | git: clone: git://git.rtems.org/rtems-tools.git -> sources/git/rtems-tools.git |
---|
183 | git: reset: git://git.rtems.org/rtems-tools.git |
---|
184 | git: fetch: git://git.rtems.org/rtems-tools.git -> sources/git/rtems-tools.git |
---|
185 | git: checkout: git://git.rtems.org/rtems-tools.git => 4.11 |
---|
186 | git: pull: git://git.rtems.org/rtems-tools.git |
---|
187 | building: rtems-tools-4.11-1 |
---|
188 | reporting: tools/rtems-tools-4.11-1.cfg -> rtems-tools-4.11-1.txt |
---|
189 | reporting: tools/rtems-tools-4.11-1.cfg -> rtems-tools-4.11-1.xml |
---|
190 | config: tools/rtems-kernel-4.11.cfg |
---|
191 | installing: expat-2.1.0-x86_64-w64-mingw32-1 -> C:\opt\rtems\4.11 |
---|
192 | installing: i386-rtems4.11-binutils-2.24-x86_64-w64-mingw32-1 -> C:\opt\rtems\4.11 |
---|
193 | installing: i386-rtems4.11-gcc-4.9.3-newlib-2.2.0.20150423-x86_64-w64-mingw32-1 -> C:\opt\rtems\4.11 |
---|
194 | installing: i386-rtems4.11-gdb-7.9-x86_64-w64-mingw32-1 -> C:\opt\rtems\4.11 |
---|
195 | installing: rtems-tools-4.11-1 -> C:\opt\rtems\4.11 |
---|
196 | cleaning: expat-2.1.0-x86_64-w64-mingw32-1 |
---|
197 | cleaning: i386-rtems4.11-binutils-2.24-x86_64-w64-mingw32-1 |
---|
198 | cleaning: i386-rtems4.11-gcc-4.9.3-newlib-2.2.0.20150423-x86_64-w64-mingw32-1 |
---|
199 | cleaning: i386-rtems4.11-gdb-7.9-x86_64-w64-mingw32-1 |
---|
200 | cleaning: rtems-tools-4.11-1 |
---|
201 | Build Set: Time 1:32:58.972919 |
---|
202 | /c/opt/rtems/rsb/rtems |
---|
203 | $ |
---|
204 | |
---|
205 | Building the Kernel |
---|
206 | ~~~~~~~~~~~~~~~~~~~ |
---|
207 | |
---|
208 | We can now build the RTEMS kernel using the RTEMS tools we have just |
---|
209 | built. First we need to set the path to the tools: |
---|
210 | |
---|
211 | .. code-block:: shell |
---|
212 | |
---|
213 | /c |
---|
214 | $ cd /c/opt/rtems |
---|
215 | /c/opt/rtems |
---|
216 | $ export PATH=/c/opt/rtems/4.11/bin:$PATH |
---|
217 | /c/opt/rtems |
---|
218 | $ |
---|
219 | |
---|
220 | We currently build RTEMS from the git release branch for 4.11: |
---|
221 | |
---|
222 | .. code-block:: shell |
---|
223 | |
---|
224 | /c/opt/rtems |
---|
225 | $ mkdir kernel |
---|
226 | /c/opt/rtems |
---|
227 | $ cd kernel |
---|
228 | /c/opt/rtems/kernel |
---|
229 | $ git clone git://git.rtems.org/rtems.git rtems |
---|
230 | Cloning into 'rtems'... |
---|
231 | remote: Counting objects: 482766, done. |
---|
232 | remote: Compressing objects: 100% (88781/88781), done. |
---|
233 | remote: Total 482766 (delta 389610), reused 475155 (delta 383437) |
---|
234 | Receiving objects: 100% (482766/482766), 69.77 MiB | 697.00 KiB/s, done. |
---|
235 | Resolving deltas: 100% (389610/389610), done. |
---|
236 | Checking connectivity... done. |
---|
237 | Checking out files: 100% (10626/10626), done. |
---|
238 | /c/opt/rtems/kernel |
---|
239 | $ cd rtems |
---|
240 | /c/opt/rtems/kernel/rtems |
---|
241 | $ git checkout 4.11 |
---|
242 | Checking out files: 100% (2553/2553), done. |
---|
243 | Branch 4.11 set up to track remote branch 4.11 from origin. |
---|
244 | Switched to a new branch '4.11' |
---|
245 | /c/opt/rtems/kernel |
---|
246 | $ |
---|
247 | |
---|
248 | The kernel code cloned from git needs to be `bootstrapped`. Bootstrapping |
---|
249 | creates ``autoconf`` and ``automake`` generated files. To bootstrap we first |
---|
250 | clean away any files, then generate the pre-install header file lists and |
---|
251 | finally we generate the ``autoconf`` and ``automake`` files using the RSB's |
---|
252 | bootstrap tool. First we clean any generated files that exist: |
---|
253 | |
---|
254 | .. code-block:: shell |
---|
255 | |
---|
256 | /c/opt/rtems/kernel/rtems |
---|
257 | $ ./bootstrap -c |
---|
258 | removing automake generated Makefile.in files |
---|
259 | removing configure files |
---|
260 | removing aclocal.m4 files |
---|
261 | |
---|
262 | Then we generate the pre-install header file automake make files: |
---|
263 | |
---|
264 | .. code-block:: shell |
---|
265 | |
---|
266 | /c/opt/rtems/kernel/rtems |
---|
267 | $ ./bootstrap -p |
---|
268 | Generating ./c/src/ada/preinstall.am |
---|
269 | Generating ./c/src/lib/libbsp/arm/altera-cyclone-v/preinstall.am |
---|
270 | Generating ./c/src/lib/libbsp/arm/atsam/preinstall.am |
---|
271 | Generating ./c/src/lib/libbsp/arm/beagle/preinstall.am |
---|
272 | Generating ./c/src/lib/libbsp/arm/csb336/preinstall.am |
---|
273 | Generating ./c/src/lib/libbsp/arm/csb337/preinstall.am |
---|
274 | Generating ./c/src/lib/libbsp/arm/edb7312/preinstall.am |
---|
275 | Generating ./c/src/lib/libbsp/arm/gdbarmsim/preinstall.am |
---|
276 | ....... |
---|
277 | Generating ./cpukit/score/cpu/mips/preinstall.am |
---|
278 | Generating ./cpukit/score/cpu/moxie/preinstall.am |
---|
279 | Generating ./cpukit/score/cpu/nios2/preinstall.am |
---|
280 | Generating ./cpukit/score/cpu/no_cpu/preinstall.am |
---|
281 | Generating ./cpukit/score/cpu/or1k/preinstall.am |
---|
282 | Generating ./cpukit/score/cpu/powerpc/preinstall.am |
---|
283 | Generating ./cpukit/score/cpu/sh/preinstall.am |
---|
284 | Generating ./cpukit/score/cpu/sparc/preinstall.am |
---|
285 | Generating ./cpukit/score/cpu/sparc64/preinstall.am |
---|
286 | Generating ./cpukit/score/cpu/v850/preinstall.am |
---|
287 | Generating ./cpukit/score/preinstall.am |
---|
288 | Generating ./cpukit/telnetd/preinstall.am |
---|
289 | Generating ./cpukit/wrapup/preinstall.am |
---|
290 | Generating ./cpukit/zlib/preinstall.am |
---|
291 | /c/opt/rtems/kernel/rtems |
---|
292 | |
---|
293 | Finally we run the RSB's parallel ``bootstrap`` command: |
---|
294 | |
---|
295 | .. code-block:: shell |
---|
296 | |
---|
297 | $ /c/opt/rtems/rsb/source-builder/sb-bootstrap |
---|
298 | RTEMS Source Builder - RTEMS Bootstrap, 4.11 (76188ee494dd) |
---|
299 | 1/139: autoreconf: configure.ac |
---|
300 | 2/139: autoreconf: c/configure.ac |
---|
301 | 3/139: autoreconf: c/src/configure.ac |
---|
302 | 4/139: autoreconf: c/src/ada-tests/configure.ac |
---|
303 | 5/139: autoreconf: c/src/lib/libbsp/arm/configure.ac |
---|
304 | 6/139: autoreconf: c/src/lib/libbsp/arm/altera-cyclone-v/configure.ac |
---|
305 | 7/139: autoreconf: c/src/lib/libbsp/arm/atsam/configure.ac |
---|
306 | 8/139: autoreconf: c/src/lib/libbsp/arm/beagle/configure.ac |
---|
307 | 9/139: autoreconf: c/src/lib/libbsp/arm/csb336/configure.ac |
---|
308 | 10/139: autoreconf: c/src/lib/libbsp/arm/csb337/configure.ac |
---|
309 | 11/139: autoreconf: c/src/lib/libbsp/arm/edb7312/configure.ac |
---|
310 | ....... |
---|
311 | 129/139: autoreconf: testsuites/samples/configure.ac |
---|
312 | 130/139: autoreconf: testsuites/smptests/configure.ac |
---|
313 | 131/139: autoreconf: testsuites/sptests/configure.ac |
---|
314 | 132/139: autoreconf: testsuites/tmtests/configure.ac |
---|
315 | 133/139: autoreconf: testsuites/tools/configure.ac |
---|
316 | 134/139: autoreconf: testsuites/tools/generic/configure.ac |
---|
317 | 135/139: autoreconf: tools/build/configure.ac |
---|
318 | 136/139: autoreconf: tools/cpu/configure.ac |
---|
319 | 137/139: autoreconf: tools/cpu/generic/configure.ac |
---|
320 | 138/139: autoreconf: tools/cpu/nios2/configure.ac |
---|
321 | 139/139: autoreconf: tools/cpu/sh/configure.ac |
---|
322 | Bootstrap time: 0:20:38.759766 |
---|
323 | /c/opt/rtems/kernel/rtems |
---|
324 | $ |
---|
325 | |
---|
326 | We will build the RTEMS kernel for the ``i386`` target and the ``pc686`` |
---|
327 | BSP. You can check the available BSPs by running the ``rtems-bsps`` command |
---|
328 | found in the top directory of the RTEMS kernel source. We build the Board |
---|
329 | Support Package (BSP) outside the kernel source tree: |
---|
330 | |
---|
331 | .. code-block:: shell |
---|
332 | |
---|
333 | /c/opt/rtems/kernel/rtems |
---|
334 | $ cd .. |
---|
335 | /c/opt/rtems/kernel |
---|
336 | $ mkdir pc686 |
---|
337 | /c/opt/rtems/kernel |
---|
338 | $ cd pc686 |
---|
339 | /c/opt/rtems/kernel/pc686 |
---|
340 | $ |
---|
341 | |
---|
342 | Configure the RTEMS kernel to build ``pc686`` BSP for the ``i386`` target with |
---|
343 | networking disabled, We will build the external libBSD stack later: |
---|
344 | |
---|
345 | .. code-block:: shell |
---|
346 | |
---|
347 | /c/opt/rtems/kernel/pc686 |
---|
348 | $ /c/opt/rtems/kernel/rtems/configure --prefix=/c/opt/rtems/4.11 \ |
---|
349 | --target=i386-rtems4.11 --disable-networking --enable-rtemsbsp=pc686 |
---|
350 | checking for gmake... no |
---|
351 | checking for make... make |
---|
352 | checking for RTEMS Version... 4.11.99.0 |
---|
353 | checking build system type... x86_64-pc-mingw64 |
---|
354 | checking host system type... x86_64-pc-mingw64 |
---|
355 | checking target system type... i386-pc-rtems4.11 |
---|
356 | checking for a BSD-compatible install... /usr/bin/install -c |
---|
357 | checking whether build environment is sane... yes |
---|
358 | checking for a thread-safe mkdir -p... /usr/bin/mkdir -p |
---|
359 | checking for gawk... gawk |
---|
360 | checking whether make sets $(MAKE)... yes |
---|
361 | checking whether to enable maintainer-specific portions of Makefiles... no |
---|
362 | checking that generated files are newer than configure... done |
---|
363 | configure: creating ./config.status |
---|
364 | configure: configuring in ./tools/build |
---|
365 | ....... |
---|
366 | checking whether make sets $(MAKE)... yes |
---|
367 | checking whether to enable maintainer-specific portions of Makefiles... no |
---|
368 | checking that generated files are newer than configure... done |
---|
369 | configure: creating ./config.status |
---|
370 | config.status: creating Makefile |
---|
371 | |
---|
372 | target architecture: i386. |
---|
373 | available BSPs: pc686. |
---|
374 | 'make all' will build the following BSPs: pc686. |
---|
375 | other BSPs can be built with 'make RTEMS_BSP="bsp1 bsp2 ..."' |
---|
376 | |
---|
377 | config.status: creating Makefile |
---|
378 | /c/opt/rtems/kernel/pc686 |
---|
379 | $ |
---|
380 | |
---|
381 | Build the kernel: |
---|
382 | |
---|
383 | .. code-block:: shell |
---|
384 | |
---|
385 | /c/opt/rtems/kernel/pc686 |
---|
386 | $ make |
---|
387 | Making all in tools/build |
---|
388 | make[1]: Entering directory '/c/opt/rtems/kernel/pc686/tools/build' |
---|
389 | make all-am |
---|
390 | make[2]: Entering directory '/c/opt/rtems/kernel/pc686/tools/build' |
---|
391 | gcc -DHAVE_CONFIG_H -I. -I/c/opt/rtems/kernel/rtems/tools/build -g -O2 -MT |
---|
392 | cklength.o -MD -MP -MF .deps/cklength.Tpo -c -o cklength.o |
---|
393 | /c/opt/rtems/kernel/rtems/tools/build/cklength.c |
---|
394 | gcc -DHAVE_CONFIG_H -I. -I/c/opt/rtems/kernel/rtems/tools/build -g -O2 -MT |
---|
395 | eolstrip.o -MD -MP -MF .deps/eolstrip.Tpo -c -o eolstrip.o |
---|
396 | /c/opt/rtems/kernel/rtems/tools/build/eolstrip.c |
---|
397 | .......... |
---|
398 | i386-rtems4.11-objcopy -O binary nsecs.nxe nsecs.bin |
---|
399 | ../../../../../pc686/build-tools/bin2boot -v nsecs.ralf 0x00097E00 |
---|
400 | ../../../../../pc686/lib/start16.bin 0x00097C00 0 nsecs.bin 0x00100000 0 |
---|
401 | header address 0x00097e00, its memory size 0xzx |
---|
402 | first image address 0x00097c00, its memory size 0x00000200 |
---|
403 | second image address 0x00100000, its memory size 0x0003d800 |
---|
404 | rm -f nsecs.nxe |
---|
405 | make[6]: Leaving directory '/c/opt/rtems/kernel/pc686/i386-rtems4.11/c/pc686/testsuites/samples/nsecs' |
---|
406 | make[5]: Leaving directory '/c/opt/rtems/kernel/pc686/i386-rtems4.11/c/pc686/testsuites/samples' |
---|
407 | make[4]: Leaving directory '/c/opt/rtems/kernel/pc686/i386-rtems4.11/c/pc686/testsuites/samples' |
---|
408 | make[4]: Entering directory '/c/opt/rtems/kernel/pc686/i386-rtems4.11/c/pc686/testsuites' |
---|
409 | make[4]: Nothing to be done for 'all-am'. |
---|
410 | make[4]: Leaving directory '/c/opt/rtems/kernel/pc686/i386-rtems4.11/c/pc686/testsuites' |
---|
411 | make[3]: Leaving directory '/c/opt/rtems/kernel/pc686/i386-rtems4.11/c/pc686/testsuites' |
---|
412 | make[2]: Leaving directory '/c/opt/rtems/kernel/pc686/i386-rtems4.11/c/pc686' |
---|
413 | make[1]: Leaving directory '/c/opt/rtems/kernel/pc686/i386-rtems4.11/c' |
---|
414 | make[1]: Entering directory '/c/opt/rtems/kernel/pc686' |
---|
415 | make[1]: Nothing to be done for 'all-am'. |
---|
416 | make[1]: Leaving directory '/c/opt/rtems/kernel/pc686' |
---|
417 | /c/opt/rtems/kernel/pc696 |
---|
418 | $ |
---|
419 | |
---|
420 | Install the kernel to our prefix: |
---|
421 | |
---|
422 | .. code-block:: shell |
---|
423 | |
---|
424 | /c/opt/rtems/kernel/pc686 |
---|
425 | $ make install |
---|
426 | Making install in tools/build |
---|
427 | make[1]: Entering directory '/c/opt/rtems/kernel/pc686/tools/build' |
---|
428 | make[2]: Entering directory '/c/opt/rtems/kernel/pc686/tools/build' |
---|
429 | /usr/bin/mkdir -p '/c/opt/rtems/4.11/bin' |
---|
430 | /usr/bin/install -c cklength.exe eolstrip.exe packhex.exe unhex.exe |
---|
431 | rtems-bin2c.exe '/c/opt/rtems/4.11/bin' |
---|
432 | /usr/bin/mkdir -p '/c/opt/rtems/4.11/bin' |
---|
433 | /usr/bin/install -c install-if-change '/c/opt/rtems/4.11/bin' |
---|
434 | make[2]: Nothing to be done for 'install-data-am'. |
---|
435 | make[2]: Leaving directory '/c/opt/rtems/kernel/pc686/tools/build' |
---|
436 | make[1]: Leaving directory '/c/opt/rtems/kernel/pc686/tools/build' |
---|
437 | Making install in tools/cpu |
---|
438 | make[1]: Entering directory '/c/opt/rtems/kernel/pc686/tools/cpu' |
---|
439 | Making install in generic |
---|
440 | make[2]: Entering directory '/c/opt/rtems/kernel/pc686/tools/cpu/generic' |
---|
441 | make[3]: Entering directory '/c/opt/rtems/kernel/pc686/tools/cpu/generic' |
---|
442 | make[3]: Nothing to be done for 'install-exec-am'. |
---|
443 | make[3]: Nothing to be done for 'install-data-am'. |
---|
444 | make[3]: Leaving directory '/c/opt/rtems/kernel/pc686/tools/cpu/generic' |
---|
445 | make[2]: Leaving directory '/c/opt/rtems/kernel/pc686/tools/cpu/generic' |
---|
446 | make[2]: Entering directory '/c/opt/rtems/kernel/pc686/tools/cpu' |
---|
447 | make[3]: Entering directory '/c/opt/rtems/kernel/pc686/tools/cpu' |
---|
448 | make[3]: Nothing to be done for 'install-exec-am'. |
---|
449 | make[3]: Nothing to be done for 'install-data-am'. |
---|
450 | .......... |
---|
451 | make[2]: Entering directory '/c/opt/rtems/kernel/pc686' |
---|
452 | make[2]: Nothing to be done for 'install-exec-am'. |
---|
453 | /usr/bin/mkdir -p '/c/opt/rtems/4.11/make' |
---|
454 | /usr/bin/install -c -m 644 /c/opt/rtems/kernel/rtems/make/main.cfg |
---|
455 | /c/opt/rtems/kernel/rtems/make/leaf.cfg '/c/opt/rtems/4.11/make' |
---|
456 | /usr/bin/mkdir -p '/c/opt/rtems/4.11/share/rtems4.11/make/Templates' |
---|
457 | /usr/bin/install -c -m 644 |
---|
458 | /c/opt/rtems/kernel/rtems/make/Templates/Makefile.dir |
---|
459 | /c/opt/rtems/kernel/rtems/make/Templates/Makefile.leaf |
---|
460 | /c/opt/rtems/kernel/rtems/make/Templates/Makefile.lib |
---|
461 | '/c/opt/rtems/4.11/share/rtems4.11/make/Templates' |
---|
462 | /usr/bin/mkdir -p '/c/opt/rtems/4.11/make/custom' |
---|
463 | /usr/bin/install -c -m 644 /c/opt/rtems/kernel/rtems/make/custom/default.cfg |
---|
464 | '/c/opt/rtems/4.11/make/custom' |
---|
465 | make[2]: Leaving directory '/c/opt/rtems/kernel/pc686' |
---|
466 | make[1]: Leaving directory '/c/opt/rtems/kernel/pc686' |
---|
467 | /c/opt/rtems/kernel/pc686 |
---|
468 | $ |
---|
469 | |
---|
470 | Building the LibBSD |
---|
471 | ~~~~~~~~~~~~~~~~~~~ |
---|
472 | |
---|
473 | The RTEMS BSD Library or libBSD as it is also known is a package of FreeBSD code |
---|
474 | ported to RTEMS. It provides a number of advantanced services including a |
---|
475 | networking stack. |
---|
476 | |
---|
477 | | This needs to move to a new section and be completed. |
---|