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

Subversion Repositories openrisc

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

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

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

powered by: WebSVN 2.1.0

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