1 |
1026 |
ivang |
@c
|
2 |
|
|
@c COPYRIGHT (c) 1988-2002.
|
3 |
|
|
@c On-Line Applications Research Corporation (OAR).
|
4 |
|
|
@c All rights reserved.
|
5 |
|
|
@c
|
6 |
|
|
@c install.texi,v 1.7 2002/01/17 21:47:45 joel Exp
|
7 |
|
|
@c
|
8 |
|
|
|
9 |
|
|
@ifinfo
|
10 |
|
|
@node Installation Procedure, Installation Procedure Introduction, Introduction Documentation, Top
|
11 |
|
|
@end ifinfo
|
12 |
|
|
@chapter Installation Procedure
|
13 |
|
|
@ifinfo
|
14 |
|
|
@menu
|
15 |
|
|
* Installation Procedure Introduction::
|
16 |
|
|
* Installation Procedure RTEMS FTP Site Organization::
|
17 |
|
|
* Installation Procedure Unarchiving the RTEMS and GNU Components::
|
18 |
|
|
* Installation Procedure Installing a Cross-Development GNU Toolset::
|
19 |
|
|
* Installation Procedure Installing RTEMS::
|
20 |
|
|
@end menu
|
21 |
|
|
@end ifinfo
|
22 |
|
|
|
23 |
|
|
@ifinfo
|
24 |
|
|
@node Installation Procedure Introduction, Installation Procedure RTEMS FTP Site Organization, Installation Procedure, Installation Procedure
|
25 |
|
|
@end ifinfo
|
26 |
|
|
@section Introduction
|
27 |
|
|
|
28 |
|
|
This chapter describes the process of installing and
|
29 |
|
|
configuring RTEMS and a cross-development environment based on
|
30 |
|
|
freely available tools and libraries.
|
31 |
|
|
|
32 |
|
|
@ifinfo
|
33 |
|
|
@node Installation Procedure RTEMS FTP Site Organization, Installation Procedure Unarchiving the RTEMS and GNU Components, Installation Procedure Introduction, Installation Procedure
|
34 |
|
|
@end ifinfo
|
35 |
|
|
@section RTEMS FTP Site Organization
|
36 |
|
|
|
37 |
|
|
RTEMS is distributed only via anonymous ftp.
|
38 |
|
|
|
39 |
|
|
This section will discuss how to navigate the RTEMS
|
40 |
|
|
ftp site and unarchive the files in the RTEMS and GNU package
|
41 |
|
|
distributions. All example commands will be given in a shell
|
42 |
|
|
independent fashion unless otherwise noted.
|
43 |
|
|
|
44 |
|
|
Throughout the rest of this manual
|
45 |
|
|
<RTEMS_distribution> will be used as the parent of components
|
46 |
|
|
within the RTEMS distribution. For persons using the ftp
|
47 |
|
|
distribution found on the primary ftp site for RTEMS,
|
48 |
|
|
<RTEMS_distribution> is
|
49 |
|
|
ftp://ftp.OARcorp.com/oarcorp/rtems/@value{VERSION}.
|
50 |
|
|
|
51 |
|
|
The archive files for RTEMS Release @value{VERSION} are found
|
52 |
|
|
under the directory <RTEMS_distribution>. This directory
|
53 |
|
|
contains the files which comprise this relase as well as any
|
54 |
|
|
patches which may be required for other tools.
|
55 |
|
|
|
56 |
|
|
The complete source code and documentation set for
|
57 |
|
|
the C language implementation of RTEMS is provided.
|
58 |
|
|
|
59 |
|
|
Documentation other than this on-line version is available to
|
60 |
|
|
OAR support customers. Please contact OAR for more information.
|
61 |
|
|
|
62 |
|
|
@ifinfo
|
63 |
|
|
@node Installation Procedure Unarchiving the RTEMS and GNU Components, Installation Procedure Installing a Cross-Development GNU Toolset, Installation Procedure RTEMS FTP Site Organization, Installation Procedure
|
64 |
|
|
@end ifinfo
|
65 |
|
|
@section Unarchiving the RTEMS and GNU Components
|
66 |
|
|
|
67 |
|
|
Many of the components of the RTEMS release are
|
68 |
|
|
"tarred, zipped" files and have the .tar.gz or .tgz extension.
|
69 |
|
|
The GNU zip package is required to unarchives these files on the
|
70 |
|
|
RTEMS ftp site. If this package is not installed, the source
|
71 |
|
|
can be found in the files
|
72 |
|
|
ftp://prep.ai.mit.edu/pub/gnu/gzip-1.2.4.shar or
|
73 |
|
|
ftp://prep.ai.mit.edu/pub/gnu/gzip-1.2.4.tar. It may be
|
74 |
|
|
restored using a command similar to the following:
|
75 |
|
|
|
76 |
|
|
@example
|
77 |
|
|
@group
|
78 |
|
|
tar xvf gzip-1.2.4.tar
|
79 |
|
|
|
80 |
|
|
OR
|
81 |
|
|
|
82 |
|
|
sh gzip-1.2.4.shar
|
83 |
|
|
@end group
|
84 |
|
|
@end example
|
85 |
|
|
|
86 |
|
|
This will create a subdirectory gzip-1.2.4 in the
|
87 |
|
|
current directory. Please examine the files README and INSTALL
|
88 |
|
|
and follow the instructions provided there.
|
89 |
|
|
|
90 |
|
|
[Note: The GNU tools follow a standard packaging procedure
|
91 |
|
|
They will unarchive into a directory based on the package name and version
|
92 |
|
|
number. For detailed instructions on compilation and
|
93 |
|
|
installation of the GNU tools, please refer to the instructions for
|
94 |
|
|
each GNU tool.]
|
95 |
|
|
|
96 |
|
|
Files which have been "tarred, zipped" (i.e. .tar.gz
|
97 |
|
|
or .tgz extension) may be unarchived with a command similar to
|
98 |
|
|
one of the following:
|
99 |
|
|
|
100 |
|
|
@example
|
101 |
|
|
@group
|
102 |
|
|
gzcat <file>.tgz | tar xvof -
|
103 |
|
|
|
104 |
|
|
OR
|
105 |
|
|
|
106 |
|
|
gunzip -c <file>.tgz | tar xvof -
|
107 |
|
|
|
108 |
|
|
OR
|
109 |
|
|
|
110 |
|
|
gtar xzvf <file>.tgz
|
111 |
|
|
@end group
|
112 |
|
|
@end example
|
113 |
|
|
|
114 |
|
|
NOTE: gunzip -c is equivalent to gzcat, while gtar is GNU tar.
|
115 |
|
|
|
116 |
|
|
Given that the necessary utility programs are
|
117 |
|
|
installed, any of the above commands will extract the contents
|
118 |
|
|
of <file>.tar.gz into the current directory. All of the RTEMS
|
119 |
|
|
components will be extracted into the subdirectory rtems-@value{VERSION}.
|
120 |
|
|
To view the contents of a component without restoring any files,
|
121 |
|
|
use a command similar to the following:
|
122 |
|
|
|
123 |
|
|
@example
|
124 |
|
|
@group
|
125 |
|
|
gzcat <file>.tgz | tar tvf -
|
126 |
|
|
@end group
|
127 |
|
|
@end example
|
128 |
|
|
|
129 |
|
|
@ifinfo
|
130 |
|
|
@node Installation Procedure Installing a Cross-Development GNU Toolset, Installation Procedure Installing RTEMS, Installation Procedure Unarchiving the RTEMS and GNU Components, Installation Procedure
|
131 |
|
|
@end ifinfo
|
132 |
|
|
@section Installing a Cross-Development GNU Toolset
|
133 |
|
|
|
134 |
|
|
This sections describes how to build and install the
|
135 |
|
|
FSF GNU tools for use as a cross-compilation system. These
|
136 |
|
|
tools are used by the RTEMS developers. Every effort has been
|
137 |
|
|
made to make these instructions accurate and complete. However,
|
138 |
|
|
it is recommended that the individual doing the installation
|
139 |
|
|
read the appropriate installation notes for each of the tools in
|
140 |
|
|
the cross toolset. This will help insure that there are no
|
141 |
|
|
special requirements for a particular host.
|
142 |
|
|
|
143 |
|
|
If the host and target processors are the same, then
|
144 |
|
|
it may be possible to use the host development tools. An
|
145 |
|
|
example of this scenario is using a SPARC based workstation
|
146 |
|
|
to develop an RTEMS application for the SPARC processor. Although
|
147 |
|
|
the native toolset is useable in this scenario, it is ultimately
|
148 |
|
|
more desirable to build a toolset specifically for the embedded environment.
|
149 |
|
|
|
150 |
|
|
Instructions for building a cross environment using the GNU
|
151 |
|
|
tools is provided in the crossgcc FAQ available from ftp.cygnus.com
|
152 |
|
|
in /pub/embedded/crossgcc. It is recommended that the user following
|
153 |
|
|
these instructions.
|
154 |
|
|
|
155 |
|
|
After the cross development toolset has been built
|
156 |
|
|
and installed, it will be necessary to modify the environment of
|
157 |
|
|
each RTEMS application developer to reflect at least the path of
|
158 |
|
|
the newly installed cross development toolset.
|
159 |
|
|
|
160 |
|
|
The documentation for the FSF GNU and Cygnus tools is
|
161 |
|
|
formatted using TeX. The RTEMS developers use TeX 3.14t3 to
|
162 |
|
|
format the manuals for their own use. This document does not
|
163 |
|
|
contain instructions on the acquisition or installation of TeX
|
164 |
|
|
and supporting tools.
|
165 |
|
|
|
166 |
|
|
NOTE: For "UNIX" processors, the native compiler binary utilities
|
167 |
|
|
should be used.
|
168 |
|
|
|
169 |
|
|
@ifinfo
|
170 |
|
|
@node Installation Procedure Installing RTEMS, Development Environment Status, Installation Procedure Installing a Cross-Development GNU Toolset, Installation Procedure
|
171 |
|
|
@end ifinfo
|
172 |
|
|
@section Installing RTEMS
|
173 |
|
|
|
174 |
|
|
For instructions on building and installing RTEMS, please refer to
|
175 |
|
|
the file README.configure in the source distribution.
|
176 |
|
|
|