File: index.html

package info (click to toggle)
rtlinux 3.1pre3-3
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 4,896 kB
  • ctags: 4,228
  • sloc: ansic: 26,204; sh: 2,069; makefile: 1,414; perl: 855; tcl: 489; asm: 380; cpp: 42
file content (471 lines) | stat: -rw-r--r-- 9,905 bytes parent folder | download | duplicates (4)
1
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2K.1beta (1.48)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Open RTLinux Installation Instructions</TITLE>
<META NAME="description" CONTENT="Open RTLinux Installation Instructions">
<META NAME="keywords" CONTENT="Installation">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="Installation.css">

</HEAD>

<BODY bgcolor="white">
<!--Navigation Panel-->
<IMG WIDTH="81" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next_inactive"
 SRC="/usr/share/latex2html/icons/nx_grp_g.png"> 
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="/usr/share/latex2html/icons/up_g.png"> 
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="/usr/share/latex2html/icons/prev_g.png">   
<BR>
<BR>
<BR>
<!--End of Navigation Panel-->

<P>

<H1 ALIGN="CENTER">Open RTLinux Installation Instructions</H1>
<P ALIGN="CENTER"><STRONG>FSM Labs, Inc.<A NAME="tex2html2"
  HREF="#foot172"><SUP>1</SUP></A>
<BR>        
	
		<A NAME="tex2html3"
  HREF="http://www.fsmlabs.com"><TT>http://www.fsmlabs.com</TT></A>

</STRONG></P>

<P>

<H3>Abstract:</H3>
<DIV>
This document is intended to guide the user through the installation
steps needed to compile and install RTLinux from the Web.
</DIV>
<P>

<P>
<BR>

<H2><A NAME="SECTION00010000000000000000">
Contents</A>
</H2>
<!--Table of Contents-->

<UL>
<LI><A NAME="tex2html18"
  HREF="Installation.html">Preparing for Installation</A>
<UL>
<LI><A NAME="tex2html19"
  HREF="#SECTION00021000000000000000">Downloading Linux Kernel</A>
<LI><A NAME="tex2html20"
  HREF="#SECTION00022000000000000000">Notes on other software</A>
</UL>
<BR>
<LI><A NAME="tex2html21"
  HREF="#SECTION00030000000000000000">RTLinux Installation</A>
<LI><A NAME="tex2html22"
  HREF="#SECTION00040000000000000000">Post Installation and Running RTLinux Programs</A>
<LI><A NAME="tex2html23"
  HREF="#SECTION00050000000000000000">Documentation and Sources of Help</A>
<LI><A NAME="tex2html24"
  HREF="#SECTION00060000000000000000">About this document ...</A>
</UL>
<!--End of Table of Contents-->
<P>

<H1><A NAME="SECTION00020000000000000000">
Preparing for Installation</A>
</H1>

<P>

<H2><A NAME="SECTION00021000000000000000">
Downloading Linux Kernel</A>
</H2>

<P>
In order to compile the RTLinux kernel, first you need to download the
kernel for which RTLinux was built.  To do so, note that there are
patches in the top-level directory by the name <TT>kernel_patch*</TT>. For RTLinux 3.1, these files are:

<P>

<UL>
<LI><TT>kernel_patch-2.2.19</TT>, and
</LI>
<LI><TT>kernel_patch-2.4.4</TT>
</LI>
</UL>

<P>
Where:

<P>

<UL>
<LI><TT>kernel_patch-2.2.19</TT> is for kernel 2.2.19 which can be found
at

		<A NAME="tex2html4"
  HREF="http://ftp.kernel.org/pub/linux/kernel/v2.2/linux-2.2.19.tar.gz">http://ftp.kernel.org/pub/linux/kernel/v2.2/linux-2.2.19.tar.gz</A>

<P>
</LI>
<LI><TT>kernel_patch-2.4</TT> is for Linux kernel 2.4.4 which
can be found at

		<A NAME="tex2html5"
  HREF="http://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.4.tar.gz"><TT>http://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.4.tar.gz</TT></A>

</LI>
</UL>

<P>

<H2><A NAME="SECTION00022000000000000000">
Notes on other software</A>
</H2>

<P>
Please make sure you have all software required to run the specific
kernel version. This information can be found in Documentation/Changes file
in the kernel tree.

<P>
In particular, RedHat 7.0 and 7.1 systems tend to have problems with
compiling RTLinux kernels because of wrong gcc versions in these
distributions.

<P>

<H1><A NAME="SECTION00030000000000000000">
RTLinux Installation</A>
</H1>

<P>

<OL>
<LI>Choose a directory for RTLinux installation. In this example, we
will use /usr/src/rtlinux. We will also assume that you have put
Linux kernels and the rtlinux distributions into /var/tmp. You can
choose any other directories for your installation.

<P>
</LI>
<LI>unpack the chosen Linux kernel into this directory:

<P>

<UL>
<LI><B>rm -rf /usr/src/rtlinux</B>
</LI>
<LI><B>mkdir /usr/src/rtlinux</B>
</LI>
<LI><B>cd /usr/src/rtlinux</B>
</LI>
<LI><B>tar xzf /var/tmp/linux-2.2.19.tar.gz</B>
</LI>
</UL>

<P>
</LI>
<LI>unpack the RTLinux distribution:

<P>

<UL>
<LI><B>tar xzf /var/tmp/rtlinux-3.1.tar.gz</B>
</LI>
</UL>

<P>
</LI>
<LI>Patch the kernel with the RTLinux patch:

<P>

<UL>
<LI><B>cd linux</B>
</LI>
<LI><B>patch -p1 &lt; ../rtlinux-3.1/kernel_patch-2.2.19</B>
</LI>
</UL>

<P>
OR, if you're using a 2.4.xx kernel:

<P>

<UL>
<LI><B>cd linux</B>
</LI>
<LI><B>patch -p1 &lt; /usr/src/rtlinux/kernel_patch-2.4.4</B>
</LI>
</UL>

<P>
</LI>
<LI>Next, you need to configure the Linux kernel:

<P>

<UL>
<LI><B>make config</B> 
OR <B>make menuconfig</B>
OR <B>make xconfig</B>
</LI>
</UL>

<P>
Enabling APM support is not recommended.  APM BIOS calls may have
unpredictable effect on real-time performance.

<P>
On Alpha machines, you need to enable RTLinux Support
(CONFIG_RTLINUX). On i386 and PPC, this is done automatically.

<P>
Please make sure to specify the correct CPU type for the target
machine.

<P>
</LI>
<LI>Compile the Linux kernel and modules:

<P>

<UL>
<LI><B>make bzImage</B>
On PPC and Alpha use <B>make vmlinux</B>
</LI>
<LI><B>make modules</B>
</LI>
</UL>

<P>
Install the Linux kernel and modules:

<P>

<UL>
<LI><B>make modules_install</B>
</LI>
<LI><B>cp arch/i386/boot/bzImage /boot/rtzImage</B>
For non-x86, please use procedures appropriate for your boot
loader.
</LI>
</UL>

<P>
</LI>
<LI>(x86-only) Configure LILO.  To do so, edit /etc/lilo.conf to contain the
   following piece (you only need to do this once):

<P><PRE>
image=/boot/rtzImage
        label=rtlinux
        read-only
        root=/dev/hda1
</PRE>

<P>
<B>WARNING:</B> replace <TT>root=/dev/hda1</TT> in the above with your
  root filesystem. The easiest way to find out which filesystem it
  should be, take a look at the existing entry in your /etc/lilo.conf
  for "root=".  Alternatively, type "df", and look for the line for
  "/" in the "mounted on" column. The corresponding entry in the
  "Filesystem" column is your root filesystem.

<P>
</LI>
<LI>Install LILO:

<UL>
<LI><B>/sbin/lilo</B>
</LI>
</UL>

<P>
Restart the computer:

<P>

<UL>
<LI><B>/sbin/shutdown -r now</B>
</LI>
</UL>

<P>
Load the RTLinux kernel: At the LILO: prompt, press "Shift" or
  "Tab".  This will give you a listing of the available kernels.
  Enter:

<P>

<UL>
<LI><B>rtlinux</B>
</LI>
</UL>

<P>
The RTLinux kernel should boot.

<P>
The next step is to compile RTLinux proper.

<P>

<UL>
<LI><B>cd /usr/src/rtlinux/rtlinux-3.1</B>
</LI>
<LI><B>ln -sf /usr/src/rtlinux/linux linux</B>
</LI>
</UL>

<P>
</LI>
<LI>Configure RTLinux:

<UL>
<LI><B>make config</B>
OR <B>make menuconfig</B>
OR <B>make xconfig</B>
</LI>
</UL>

<P>
</LI>
<LI>Compile RTLinux:

<UL>
<LI><B>make</B>
</LI>
<LI><B>make devices</B>
</LI>
</UL>

<P>
</LI>
</OL>

<P>

<H1><A NAME="SECTION00040000000000000000">
Post Installation and Running RTLinux Programs</A>
</H1>

<P>
To be able to run any programs, you must first load the rtlinux
modules. To do so, type:

<P>

<UL>
<LI><B>cd /usr/src/rtlinux/rtlinux-3.1</B>
</LI>
<LI><B>scripts/insrtl</B>
</LI>
</UL>

<P>
You can also try running the examples. To do so, simply go to the
appropriate directory under <TT>/usr/src/rtlinux/rtlinux-3.1/examples</TT> and 
follow the instructions in the corresponding README file.

<P>

<H1><A NAME="SECTION00050000000000000000">
Documentation and Sources of Help</A>
</H1>

<P>
The <TT>docs/html/GettingStarted</TT> document contains a brief
introduction to RTLinux. Additional documents in <TT>docs/html</TT> also
provide information about other aspects to RTLinux such as web
installation, CD installation, FAQ, and RTiC-Lab.

<P>
In case of problems, please consult the FAQ first, available in the
<TT>docs/</TT> directory.

<P>
If all of the above fails, you can obtain help from your peers via the

		<A NAME="tex2html8"
  HREF="mailto:rtl@rtlinux.org"><TT>rtl@rtlinux.org</TT></A>

 mailing list
for which you can un/subscribe to via

		<A NAME="tex2html9"
  HREF="http://www.rtlinux.org/mailing_lists.html"><TT>http://www.rtlinux.org/mailing_lists.html</TT></A>

.

<P>
FSM Labs further provides commercial support, development, and
training.  Please contact FSM Labs at 

<P>
<BLOCKQUOTE>
		<A NAME="tex2html6"
  HREF="mailto:business@fsmlabs.com"><TT>business@fsmlabs.com</TT></A>

</BLOCKQUOTE>

<P>
or visit their website at

<P>
<BLOCKQUOTE>
		<A NAME="tex2html7"
  HREF="http://www.fsmlabs.com"><TT>http://www.fsmlabs.com</TT></A>

</BLOCKQUOTE>

<P>
for additional information.

<H1><A NAME="SECTION00060000000000000000">
About this document ...</A>
</H1>
 Copyright: 2001 FSM Labs, Inc.
<BR><HR><H4>Footnotes</H4>
<DL>
<DT><A NAME="foot172">... Inc.</A><A NAME="foot172"
 HREF="Installation.html#tex2html2"><SUP>1</SUP></A>
<DD>
	
		<A NAME="tex2html1"
  HREF="mailto:support@fsmlabs.com"><TT>support@fsmlabs.com</TT></A>



</DL><HR>
<!--Navigation Panel-->
<IMG WIDTH="81" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next_inactive"
 SRC="/usr/share/latex2html/icons/nx_grp_g.png"> 
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="/usr/share/latex2html/icons/up_g.png"> 
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="/usr/share/latex2html/icons/prev_g.png">   
<BR>
<!--End of Navigation Panel-->
<ADDRESS>
Michael Barabanov
2001-06-20
</ADDRESS>
</BODY>
</HTML>