OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [doc/] [sgml/] [user-guide/] [installation.sgml] - Blame information for rev 842

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
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
Installing <productname>eCos</productname>
32
 
33
34
 
35
36
System Requirements
37
 
38
39
 
40
41
Standard Intel architecture PC running
42
 Linux (tested on recent Fedora, openSUSE and Ubuntu distributions),
43
 Microsoft Windows NT 4 + SP6a, Windows 2000, Windows XP and Windows Vista.
44
 Linux distributions from other vendors may also work, but
45
 are currently untested.
46
47
 
48
49
Enough  disk space for the installed
50
distribution. The eCos installation process
51
will detail the various components of eCos
52
and the compiler toolkit that can be installed, and their disk space
53
requirements.
54
55
 
56
57
64MB of RAM and a 350MHz or faster Pentium processor.
58
59
 
60
61
 
62
If you are downloading the eCos
63
release distribution from 
64
URL="http://ecos.sourceware.org">ecos.sourceware.org,
65
you will also need space to store that image and to compile the
66
toolchain and eCos from source.
67
 
68
 
69
70
 
71
72
73
 
74
75
Installation on Linux
76
 
77
78
Full instructions for the 
79
URL="http://ecos.sourceware.org/getstart.html">downloading and
80
installation of eCos on Linux hosts are provided on the eCos
81
website.
82
83
 
84
85
 
86
87
88
 
89
90
Installation on Windows
91
 
92
93
Full instructions for the 
94
URL="http://ecos.sourceware.org/getstart.html">downloading and
95
installation of eCos on Windows hosts are provided on the
96
eCos website.
97
98
 
99
100
 
101
102
103
 
104
105
Target Setup
106
 
107
While eCos supports a variety of
108
targets, communication with all the targets happens in one of four
109
ways. These are described in general below. Any details or variations
110
from these descriptions will be found in the
111
eCos documentation for a specific target,
112
in the appendix.
113
 
114
115
<!-- <index></index> -->Connecting Via Serial Line
116
 
117
Most targets will have RedBoot or GDB Stubs installed.
118
These normally waits for GDB to connect at 38400 baud, using 8 data
119
bit, no parity bit and 1 stop-bit and no hardware flow control. Check
120
the documentation for your target to ensure it uses this speed. If not,
121
adjust the following instructions accordingly.
122
 
123
The following instructions depend on your having selected
124
the appropriate serial port on the host. That is, the serial port
125
which connects to the target's (primary) serial port. On
126
Linux this could be /dev/ttyS0,
127
while the same port on Windows would be named COM1.
128
Substitute the proper serial port name in the below.
129
 
130
Connect to the target by issuing the following commands in
131
GDB console mode:
132
 
133
134
(gdb) set remotebaud 38400    
135
(gdb) target remote /dev/ttyS0
136
137
 
138
In Insight, connect by opening the File->Target
139
Settings window and enter:
140
 
141
142
Target: Remote/Serial
143
Baud Rate: 38400
144
Port: /dev/ttyS0
145
146
 
147
Set other options according to preference, close the window
148
and select
149
Run->Connect to target.
150
151
 
152
153
 
154
155
 
156
157
<!-- <index></index> -->Connecting Via Ethernet
158
 
159
Some targets allow GDB to connect via Ethernet - if so, it will
160
be mentioned in the document describing the target. Substitute the
161
target's assigned IP address or hostname for <hostname> in the
162
following. Depending on how RedBoot has been configured, it will
163
either have this address allocated statically, or will acquire it via
164
BOOTP. In both cases RedBoot will report the IP address it is
165
listening on in its startup message printed on the serial port. The
166
<port> is the TCP port which RedBoot is listening on, usually
167
9000. It is also listed in the target document.
168
 
169
Connect to the target by issuing the following command in
170
GDB console mode:
171
 
172
173
(gdb) target remote <hostname>:<port>
174
175
 
176
In Insight, connect by opening the File->Target
177
Settings window and enter:
178
 
179
180
Target: Remote/TCP
181
Hostname: <hostname>
182
Port: <port>
183
184
 
185
Set other options according to
186
preference, close the window and select Run->Connect to
187
target.
188
 
189
190
 
191
192
 
193
194
<!-- <index></index> -->Using A Simulator Target
195
 
196
GDB connects to all simulator targets using the same basic
197
command, although each simulator may require additional options.
198
These are listed in the document describing the target, and should
199
be used when connecting.
200
 
201
Connect to the target by issuing the following command in
202
GDB console mode:
203
 
204
205
(gdb) target sim [target specific options]
206
207
 
208
In Insight, connect by opening the File->Target
209
Settings window and enter:
210
 
211
212
Target: Simulator
213
Options: [target specific options]
214
215
 
216
Set other options according to preference, close the window and
217
select Run->Connect to target.
218
 
219
220
 
221
222
 
223
224
Using A Synthetic Target
225
 
226
Synthetic targets are special in that the built tests and
227
applications actually run as native applications on the host. This
228
means that there is no target to connect to. The test or application
229
can be run directly from the GDB console using:
230
 
231
232
(gdb) run
233
234
 
235
or from Insight by pressing the Run icon.
236
There is therefore no need to connect to the target or download the
237
application, so you should ignore GDB “target” and
238
“load” commands in any instructions found in other places
239
in the documentation.
240
241
 
242
243
 
244
245
 
246
247
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.