]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - doc/html/user-guide/user-guide-installation-target.html
79fb74c26fd57113784e29a4ac99ab0ce7fd9339
[karo-tx-redboot.git] / doc / html / user-guide / user-guide-installation-target.html
1 <!-- Copyright (C) 2003 Red Hat, Inc.                                -->
2 <!-- This material may be distributed only subject to the terms      -->
3 <!-- and conditions set forth in the Open Publication License, v1.0  -->
4 <!-- or later (the latest version is presently available at          -->
5 <!-- http://www.opencontent.org/openpub/).                           -->
6 <!-- Distribution of the work or derivative of the work in any       -->
7 <!-- standard (paper) book form is prohibited unless prior           -->
8 <!-- permission is obtained from the copyright holder.               -->
9 <HTML
10 ><HEAD
11 ><TITLE
12 >Target Setup</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
14 <META
15 NAME="GENERATOR"
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
17 "><LINK
18 REL="HOME"
19 TITLE="eCos User Guide"
20 HREF="ecos-user-guide.html"><LINK
21 REL="UP"
22 TITLE="Installing eCos"
23 HREF="user-guide-installation.html"><LINK
24 REL="PREVIOUS"
25 TITLE="Installation on Windows"
26 HREF="user-guide-installation-windows.html"><LINK
27 REL="NEXT"
28 TITLE="Connecting Via Ethernet"
29 HREF="connecting-target-ethernet.html"></HEAD
30 ><BODY
31 CLASS="CHAPTER"
32 BGCOLOR="#FFFFFF"
33 TEXT="#000000"
34 LINK="#0000FF"
35 VLINK="#840084"
36 ALINK="#0000FF"
37 ><DIV
38 CLASS="NAVHEADER"
39 ><TABLE
40 SUMMARY="Header navigation table"
41 WIDTH="100%"
42 BORDER="0"
43 CELLPADDING="0"
44 CELLSPACING="0"
45 ><TR
46 ><TH
47 COLSPAN="3"
48 ALIGN="center"
49 >eCos User Guide</TH
50 ></TR
51 ><TR
52 ><TD
53 WIDTH="10%"
54 ALIGN="left"
55 VALIGN="bottom"
56 ><A
57 HREF="user-guide-installation-windows.html"
58 ACCESSKEY="P"
59 >Prev</A
60 ></TD
61 ><TD
62 WIDTH="80%"
63 ALIGN="center"
64 VALIGN="bottom"
65 ></TD
66 ><TD
67 WIDTH="10%"
68 ALIGN="right"
69 VALIGN="bottom"
70 ><A
71 HREF="connecting-target-ethernet.html"
72 ACCESSKEY="N"
73 >Next</A
74 ></TD
75 ></TR
76 ></TABLE
77 ><HR
78 ALIGN="LEFT"
79 WIDTH="100%"></DIV
80 ><DIV
81 CLASS="CHAPTER"
82 ><H1
83 ><A
84 NAME="USER-GUIDE-INSTALLATION-TARGET">Chapter 9. Target Setup</H1
85 ><DIV
86 CLASS="TOC"
87 ><DL
88 ><DT
89 ><B
90 >Table of Contents</B
91 ></DT
92 ><DT
93 ><A
94 HREF="user-guide-installation-target.html#CONNECTING-TARGET-SERIAL"
95 >Connecting Via Serial Line</A
96 ></DT
97 ><DT
98 ><A
99 HREF="connecting-target-ethernet.html"
100 >Connecting Via Ethernet</A
101 ></DT
102 ><DT
103 ><A
104 HREF="connecting-target-sim.html"
105 >Using A Simulator Target</A
106 ></DT
107 ><DT
108 ><A
109 HREF="connecting-target-synth.html"
110 >Using A Synthetic Target</A
111 ></DT
112 ></DL
113 ></DIV
114 ><P
115 >While <SPAN
116 CLASS="PRODUCTNAME"
117 >eCos</SPAN
118 > supports a variety of
119 targets, communication with all the targets happens in one of four
120 ways. These are described in general below. Any details or variations
121 from these descriptions will be found in the
122 <SPAN
123 CLASS="PRODUCTNAME"
124 >eCos</SPAN
125 > documentation for a specific target,
126 in the appendix.</P
127 ><DIV
128 CLASS="SECT1"
129 ><H1
130 CLASS="SECT1"
131 ><A
132 NAME="CONNECTING-TARGET-SERIAL">Connecting Via Serial Line</H1
133 ><P
134 >Most targets will have RedBoot or GDB Stubs installed.
135 These normally waits for GDB to connect at 38400 baud, using 8 data
136 bit, no parity bit and 1 stop-bit and no hardware flow control. Check
137 the documentation for your target to ensure it uses this speed. If not,
138 adjust the following instructions accordingly.</P
139 ><P
140 >The following instructions depend on your having selected
141 the appropriate serial port on the host. That is, the serial port
142 which connects to the target's (primary) serial port. On
143 Linux this could be <TT
144 CLASS="FILENAME"
145 >/dev/ttyS0</TT
146 >,
147 while the same port on Windows would be named COM1.
148 Substitute the proper serial port name in the below.</P
149 ><P
150 >Connect to the target by issuing the following commands in
151 GDB console mode:</P
152 ><TABLE
153 BORDER="5"
154 BGCOLOR="#E0E0F0"
155 WIDTH="70%"
156 ><TR
157 ><TD
158 ><PRE
159 CLASS="PROGRAMLISTING"
160 >(gdb) set remotebaud 38400    
161 (gdb) target remote /dev/ttyS0</PRE
162 ></TD
163 ></TR
164 ></TABLE
165 ><P
166 >In Insight, connect by opening the <SPAN
167 CLASS="emphasis"
168 ><I
169 CLASS="EMPHASIS"
170 >File-&#62;Target
171 Settings</I
172 ></SPAN
173 > window and enter:</P
174 ><TABLE
175 BORDER="5"
176 BGCOLOR="#E0E0F0"
177 WIDTH="70%"
178 ><TR
179 ><TD
180 ><PRE
181 CLASS="PROGRAMLISTING"
182 >Target: Remote/Serial     
183 Baud Rate: 38400     
184 Port: /dev/ttyS0</PRE
185 ></TD
186 ></TR
187 ></TABLE
188 ><P
189 >Set other options according to preference, close the window
190 and select 
191 <SPAN
192 CLASS="emphasis"
193 ><I
194 CLASS="EMPHASIS"
195 >Run-&#62;Connect to target</I
196 ></SPAN
197 >.</P
198 ></DIV
199 ></DIV
200 ><DIV
201 CLASS="NAVFOOTER"
202 ><HR
203 ALIGN="LEFT"
204 WIDTH="100%"><TABLE
205 SUMMARY="Footer navigation table"
206 WIDTH="100%"
207 BORDER="0"
208 CELLPADDING="0"
209 CELLSPACING="0"
210 ><TR
211 ><TD
212 WIDTH="33%"
213 ALIGN="left"
214 VALIGN="top"
215 ><A
216 HREF="user-guide-installation-windows.html"
217 ACCESSKEY="P"
218 >Prev</A
219 ></TD
220 ><TD
221 WIDTH="34%"
222 ALIGN="center"
223 VALIGN="top"
224 ><A
225 HREF="ecos-user-guide.html"
226 ACCESSKEY="H"
227 >Home</A
228 ></TD
229 ><TD
230 WIDTH="33%"
231 ALIGN="right"
232 VALIGN="top"
233 ><A
234 HREF="connecting-target-ethernet.html"
235 ACCESSKEY="N"
236 >Next</A
237 ></TD
238 ></TR
239 ><TR
240 ><TD
241 WIDTH="33%"
242 ALIGN="left"
243 VALIGN="top"
244 >Installation on Windows</TD
245 ><TD
246 WIDTH="34%"
247 ALIGN="center"
248 VALIGN="top"
249 ><A
250 HREF="user-guide-installation.html"
251 ACCESSKEY="U"
252 >Up</A
253 ></TD
254 ><TD
255 WIDTH="33%"
256 ALIGN="right"
257 VALIGN="top"
258 >Connecting Via Ethernet</TD
259 ></TR
260 ></TABLE
261 ></DIV
262 ></BODY
263 ></HTML
264 >