]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - release/doc/fr_FR.ISO8859-1/installation/sparc64/install.xml
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / release / doc / fr_FR.ISO8859-1 / installation / sparc64 / install.xml
1 <!--
2      The FreeBSD Documentation Project
3      The FreeBSD French Documentation Project
4
5      $Id$
6      $FreeBSD$
7      Original revision: 1.12
8      Ce fichier contient les instructions pour l'installation
9      specifique aux systemes sparc64.
10
11 -->
12 <sect1 xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
13   <title>***Non traduit***Installing &os;</title>
14
15   <para>This text describes how to install and boot the &arch; port.
16     Users of this port are encouraged to subscribe to the
17     &a.sparc;.</para>
18
19   <warning>
20     <para>The kernel and userland binaries mentioned below are highly
21       experimental (for example, the kernel contains some ATA changes
22       and EEPROM handling code which could potentially be dangerous).
23       Unless you know what you are doing and are willing to cope with
24       any damage that might arise, you should probably not be trying
25       this.</para>
26   </warning>
27
28   <para>Unlike &os;/i386 or &os;/alpha, there is no version of
29     &man.sysinstall.8; for &os;/&arch;.  The installation procedure
30     consists of loading a kernel (either from CDROM or the network)
31     onto the &arch; machine, with a root filesystem on CDROM or
32     exported via NFS.  The utilities on the root filesystem can then
33     be used to partition the local disk on the &arch; machine and
34     optionally to copy the &os; distribution to the local disk to make
35     a stand-alone machine.</para>
36
37   <para>Currently, there are two ways to install &os;/&arch; on a new
38     machine.  By far the easier of the two is to install from CDROM;
39     this method allows you to install &os; without any dependencies on
40     any other computers.</para>
41
42   <para>If installing from CDROM is impossible or undesirable, the
43     alternative is to install over the network.  This requires another
44     machine, suitably configured, to serve the boot loader, kernel,
45     and root filesystem to the new machine, via a combination of
46     RARP, TFTP, and either BOOTP or DHCP.  This netboot server can be
47     another &os; machine, but is not required to be.</para>
48
49   <para>You will need to decide which of these methods you want to use
50     for installation, as this will determine the set of files you need
51     to download (if any), as well as the steps required to do the
52     installation.</para>
53
54 <!-- this should read "in this document" after the re-structure -->
55
56   <important>
57     <para>The URLs in this section are provisional and subject to
58       change.  Please see the archives of the &a.sparc; for the most
59       recent locations of files.  This notice will be removed when
60       more permanent URLs have been determined.</para>
61   </important>
62
63   <sect2 xml:id="getting-to-prom-prompt">
64     <title>Getting to the PROM Prompt</title>
65
66     <para>Most &arch; systems are set up to boot automatically from
67       disk.  To install &os;, you need to boot over the network or
68       from a CDROM, which requires you to break into the PROM
69       (OpenFirmware).</para>
70
71     <para>To do this, reboot the system, and wait until the boot
72       message appears.  It depends on the model, but should look about
73       like:</para>
74
75     <screen>Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
76 Copyright 1998-2001 Sun Microsystems, Inc.  All rights reserved.
77 OpenBoot 4.2, 128 MB memory installed, Serial #51090132.
78 Ethernet address 0:3:ba:b:92:d4, Host ID: 830b92d4.</screen>
79
80     <para>If your system proceeds to boot from disk at this point, you
81       need to press <keycombo action="simul"><keycap>L1</keycap><keycap>A</keycap></keycombo>
82       or <keycombo action="simul"><keycap>Stop</keycap><keycap>A</keycap></keycombo>
83       on the keyboard, or send a <command>BREAK</command> over the
84       serial console (using for example <command>~#</command> in
85       &man.tip.1; or &man.cu.1;) to get to the PROM prompt.  It looks
86       like this:</para>
87
88     <screenco>
89       <areaspec>
90         <area xml:id="prompt-single" coords="1 5"/>
91         <area xml:id="prompt-smp" coords="2 5"/>
92       </areaspec>
93
94       <screen><prompt>ok     </prompt>
95 <prompt>ok {0} </prompt></screen>
96
97       <calloutlist>
98         <callout arearefs="prompt-single">
99           <para>This is the prompt used on systems with just one
100             CPU.</para>
101         </callout>
102
103         <callout arearefs="prompt-smp">
104           <para>This is the prompt used on SMP systems, the digit
105             indicates the number of the active CPU.</para>
106         </callout>
107       </calloutlist>
108     </screenco>
109   </sect2>
110
111   <sect2 xml:id="prepare-cd">
112     <title>Preparing for a CDROM Installation</title>
113
114     <para>If you want to do a CDROM installation, an ISO image with a
115       snapshot of &os;/&arch; can be found at <uri xlink:href="&release.url;">&release.url;</uri>.  This file can be used to create a
116       bootable CDROM which contains everything necessary to boot and
117       load at least a minimal &os; installation.</para>
118
119 <!-- XXX ISO location?-->
120     <para>Place the CDROM into your drive, and break into the PROM as
121       described above.  On the PROM prompt, type <command>boot
122       cdrom</command>.  The system should boot into single-user mode
123       now, and you can create the disk label and install the base
124       system archive as described in <xref linkend="creating-disk-label"/> and <xref linkend="creating-root-filesystem"/>.</para>
125   </sect2>
126
127   <sect2 xml:id="prepare-network">
128     <title>Preparing for a Network Installation</title>
129
130     <para>A &os;/&arch; kernel is booted by having the firmware
131       retrieve and execute a <application>loader</application>, which
132       in turn fetches and executes the actual kernel.  For this boot
133       process, you need to set up &man.rarpd.8; and &man.tftpd.8; (for
134       the firmware) and &man.bootpd.8; (for the
135       <application>loader</application>) on another networked system.
136       The loader can fetch a kernel using TFTP or NFS.  All of this is
137       covered in detail below.</para>
138
139     <sect3 xml:id="downloading">
140       <title>Getting the Required Files</title>
141
142       <para>For a network installation, you will need several files.
143         First, you will need to download a &os;/&arch; loader for
144         &man.tftpd.8; to serve to your &arch; client.  The loader will
145         use either TFTP or NFS to retrieve the &os; kernel from the
146         netboot server.  There is a separate loader for each of these
147         methods (i.e. a loader for TFTP and a loader for NFS).  You
148         should download one of the following files, as
149         appropriate:</para>
150
151       <itemizedlist>
152         <listitem>
153           <para><uri xlink:href="&release.url;loader-tftp.gz">&release.url;loader-tftp.gz</uri></para>
154         </listitem>
155
156         <listitem>
157           <para><uri xlink:href="&release.url;loader-nfs.gz">&release.url;loader-nfs.gz</uri></para>
158         </listitem>
159       </itemizedlist>
160
161       <para>A network installation also requires a kernel to be served
162         to the netboot client.  A suitable kernel can be found at
163         <uri xlink:href="&release.url;">&release.url;</uri>.</para>
164 <!-- XXX kernel filename?-->
165
166       <para>Finally, you will need a &man.tar.1; archive which
167         contains the binaries and configuration files from the base
168         system.  This file is available from <uri xlink:href="&release.url;distrib.tar.gz">&release.url;distrib.tar.gz</uri>.</para>
169     </sect3>
170
171 <!-- put the words "netboot server" in here -->
172     <sect3>
173       <title>rarpd</title>
174
175       <para>You need to add the Ethernet address of your &os;/&arch;
176         system to <filename>/etc/ethers</filename> on the netboot
177         server.  An entry looks like:</para>
178
179       <programlisting>0:3:ba:b:92:d4 your.host.name</programlisting>
180
181       <para>The Ethernet address is usually displayed in the boot
182         message.</para>
183
184       <para>Make sure <systemitem>your.host.name</systemitem> is in
185         <filename>/etc/hosts</filename> or has a valid DNS entry (or
186         use an IP address).  Then, start &man.rarpd.8; on a network
187         interface that is on the same subnet as the &os;/&arch;
188         system.</para>
189     </sect3>
190
191 <!-- put the words "netboot server" in here -->
192     <sect3>
193       <title>tftpd</title>
194
195       <para>Activate &man.tftpd.8; in your &man.inetd.8;
196         configuration by uncommenting the following line in
197         <filename>/etc/inetd.conf</filename>:</para>
198
199       <programlisting>tftp dgram udp  wait nobody /usr/libexec/tftpd tftpd /tftpboot</programlisting>
200
201       <para>Copy the unpacked loader to your
202         <filename>/tftpboot</filename> directory, and name it with the
203         &os;/&arch; host's IP address in upper-case hexadecimal
204         notation without dots (or use appropriately-named symbolic
205         links).  For example, your setup may look like this, for an IP
206         address of <systemitem>192.168.0.16</systemitem>:</para>
207
208       <screen>  lrwx------  1 tmm users       9 Jul 24 17:05 /tftpboot/C0A80010 -&gt; boot/loader
209   -rw-r--r--  1 tmm users 1643021 Oct 20 18:04 /tftpboot/boot/loader</screen>
210
211       <para>If you have trouble booting, it is very helpful to use
212         &man.tcpdump.1; to monitor the TFTP requests.  This will allow
213         you to see the file name you need to use for the loader.
214         Error replies by the TFTP server are most often due to
215         incorrect file permissions.</para>
216     </sect3>
217
218 <!-- put the words "netboot server" in here -->
219     <sect3>
220       <title>Setting up bootpd/dhcpd</title>
221
222       <para>You can use either BOOTP or DHCP (both not both) to
223         provide some parameters to the boot loader, such as a
224         machine's IP address.  If you are using another &os; machine
225         as a netboot server, the BOOTP functionality is provided by
226         &man.bootpd.8;, which is a part of the &os; base system.
227         Several DHCP servers are provided in the &os; Ports
228         Collection.</para>
229
230       <para>If you are going to use &man.bootpd.8;, create entries for
231         your &os;/&arch; system in the server's
232         <filename>/etc/bootptab</filename> (see &man.bootptab.5; for
233         more details):</para>
234
235       <programlisting>.default:\
236   :bf="kernel":dn=local:ds=<replaceable>name-server-ip-address</replaceable>:\
237   :gw=<replaceable>gateway-ip-address</replaceable>:ht=ether:hd="/tftpboot/boot/kernel":hn:\
238   :sa="<replaceable>tftp-server-ip-address</replaceable>":\
239   :rp="<replaceable>tftp-server-ip-address</replaceable>:<replaceable>nfs-root-directory</replaceable>":\
240   :sm=<replaceable>ip-netmask</replaceable>
241
242 <replaceable>name-of-the-entry</replaceable>:\
243   ha=<replaceable>sparc64-ethernet-address</replaceable>:ip=<replaceable>sparc64-ip-address</replaceable>:tc=.default</programlisting>
244
245       <para>The Ethernet address must be the same as the one in the
246         TFTP example above, but it is specified hexadecimal notation
247         without colons (for the example above, this would be
248         <literal>0003ba0b92d4</literal>).  NFS/TFTP specific entries
249         can be omitted if the given method is not used.  The strings
250         given in the <literal>hd</literal> and <literal>bf</literal>
251         properties are concatenated to give the boot file name.  If
252         your kernel is named differently or you use another directory,
253         change these values as required.  If you are booting using
254         NFS, remove the <literal>bf</literal> and
255         <literal>hd</literal> settings (or change them to specify the
256         directory and file inside the NFS root hierarchy in which the
257         kernel will reside).  The name of the host entry is
258         conventionally the host name without the domain
259         appended.</para>
260
261       <para>For a DHCP server, add an entry similar to the following
262         to your <filename>dhcpd.conf</filename> file.  An example
263         entry for <application>ISC DHCP</application> version 2
264         (available in the &os; Ports Collection as <package>net/isc-dhcp2</package>) is shown
265         below:</para>
266
267       <programlisting>host <replaceable>name-of-entry</replaceable> {
268   hardware ethernet <replaceable>sparc64-ethernet-address</replaceable>;
269   option host-name "<replaceable>sparc64-fully-qualified-domain-name</replaceable>";
270   fixed-address <replaceable>sparc64-ip-address</replaceable>;
271   always-reply-rfc1048 on;
272   filename "kernel";
273   option root-path "<replaceable>tftp-server-ip-address</replaceable>:<replaceable>nfs-root-directory</replaceable>";
274 }</programlisting>
275
276       <para>The <literal>filename</literal> option corresponds to the
277         concatenation of <literal>hd</literal> and
278         <literal>bf</literal> in <filename>/etc/bootptab</filename>.
279         The Ethernet address is specified in hexadecimal with colons,
280         just like in the &man.rarpd.8; example above.
281         <literal>options root-path</literal> corresponds to
282         <literal>rp</literal> in <filename>/etc/bootptab</filename>.
283         If the name given in <literal>option host-name</literal> is
284         resolvable, i.e. has a DNS entry or is associated with an
285         address in <filename>/etc/hosts</filename>, the
286         <literal>fixed-address</literal> specification can be
287         omitted.</para>
288     </sect3>
289
290     <sect3>
291       <title>Loading the Kernel</title>
292
293       <para>With the daemons on the netboot server configured, the
294         next step is to copy the kernel (obtained during the steps of
295         <xref linkend="downloading"/>) to an appropriate directory.
296         There are two ways of retrieving a kernel over the network:
297         TFTP and NFS.  (You specified one of these two alternatives by
298         picking a loader.)</para>
299
300       <para>For both TFTP and NFS, the loader will use the parameters
301         that it obtained via BOOTP or DHCP to find the kernel.</para>
302
303       <sect4>
304         <title>Loading the Kernel over TFTP</title>
305
306         <para>Place the kernel in the directory you specified using
307           <literal>bf</literal> and <literal>hd</literal> in the
308           <filename>/etc/bootptab</filename> or the
309           <literal>filename</literal> parameter to
310           <filename>dhcpd.conf</filename>.</para>
311       </sect4>
312
313       <sect4>
314         <title>Loading the Kernel over NFS</title>
315
316         <para>Export the directory that was specified by the
317           <literal>rp</literal> property in
318           <filename>/etc/bootptab</filename> or the
319           <literal>root-path</literal> parameter in
320           <filename>dhcpd.conf</filename> (see &man.exports.5;).  Copy
321           the kernel to the directory you specified using
322           <literal>bf</literal> and <literal>hd</literal> in the
323           <filename>/etc/bootptab</filename> or the
324           <literal>filename</literal> parameter to
325           <filename>dhcpd.conf</filename>.</para>
326       </sect4>
327     </sect3>
328
329     <sect3>
330       <title>Loading the Base System to the Netboot Server</title>
331
332       <para>You must extract the base system distribution image to the
333         NFS root directory specified either by the
334         <literal>rp</literal> option in
335         <filename>/etc/bootptab</filename> or the
336         <literal>root-path</literal> option in
337         <filename>dhcpd.conf</filename>.  This directory tree will
338         become the &arch;'s root filesystem once the kernel is booted.
339         Besides providing a normal userland environment, it also
340         contains all of the necessary utilities for you to install the
341         distribution on the &arch; client's local disk.</para>
342
343       <para>Using whatever editing tools you have on the netboot
344         server, you probably will want to edit the &arch;'s
345         <filename>/etc/fstab</filename> and
346         <filename>/etc/rc.conf</filename> and set a
347         <systemitem class="username">root</systemitem> password.</para>
348     </sect3>
349
350     <sect3>
351       <title>Booting</title>
352
353       <para>If all goes well, you can now boot the &os; on your &arch;
354         machine by dropping into the PROM prompt as described in <xref linkend="getting-to-prom-prompt"/>.  Now, just type
355         <command>boot net</command> and the system should boot.
356         Specifically, the loader is retrieved via TFTP, it then does a
357         BOOTP request and will proceed to load the kernel (either
358         using TFTP or NFS, depending on your choice of loader).  Then,
359         it should wait 10 seconds for user input and proceed to
360         execute the kernel.</para>
361
362       <para>If something does not work in between, and you suspect
363         TFTP/NFS/BOOTP problems, <application>Ethereal</application>
364         (available in the &os; Ports Collection as <package> net/ethereal</package>) is usually helpful.
365         The most common problems are related to bad file permissions.
366         Also note that &man.rarpd.8; will not answer to packets under
367         some circumstances, refer to the manual page for
368         details.</para>
369     </sect3>
370   </sect2>
371
372   <sect2 xml:id="creating-disk-label">
373     <title>Creating a Disk Label</title>
374
375     <para>The kernel supports the Sun disk label format, so you can
376       label the disks you want to use with &os; from Solaris.</para>
377
378     <para>&os; disk labels must currently be created by hand, as
379       &man.sysinstall.8; is not yet available on &os;/&arch;.  Please
380       refer to the <link xlink:href="http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/">FreeBSD
381       Handbook</link> for more information about labels and special
382       partitions.</para>
383
384     <para>On &os;/&arch;, a Sun compatibility label is embedded in the
385       &os; label; this is needed for the PROM to boot from disk.  This
386       imposes an additional restriction on the disk label format:
387       partitions are required to start on a cylinder boundary.</para>
388
389     <para>To create a disk label, the following procedure is the
390       easiest:</para>
391
392     <procedure>
393       <step>
394         <para>Run <command>disklabel -w -r
395           device auto</command> to create a
396           basic disk label.  The third argument you need specify here
397           is just the name of the device, not the complete path to the
398           device node (e.g. <filename>ad0</filename> for the first
399           ATA disk).</para>
400       </step>
401
402       <step>
403         <para> Use <command>disklabel -e
404           device</command> to open an
405           editor in which you can edit the disk label.  The
406           information presented to you should look like:</para>
407
408         <screen># /dev/ad6c:
409 type: unknown
410 disk: amnesiac
411 label:
412 flags:
413 bytes/sector: 512
414 sectors/track: 63
415 tracks/cylinder: 16
416 sectors/cylinder: 1008
417 cylinders: 79780
418 sectors/unit: 80418240
419 rpm: 3600
420 interleave: 1
421 trackskew: 0
422 cylinderskew: 0
423 headswitch: 0           # milliseconds
424 track-to-track seek: 0  # milliseconds
425 drivedata: 0
426
427 8 partitions:
428 #        size   offset    fstype   [fsize bsize bps/cpg]
429   c: 80418240        0    unused        0     0         # (Cyl.    0 - 79779)</screen>
430
431         <para>You can now add new partitions in the same format as the
432           already present line.  Using <literal>*</literal> in the
433           offset field makes the procedure easier; please refer to the
434           &man.disklabel.8; manual page for more information.</para>
435
436         <para>To make sure the restriction mentioned above is met, the
437           size of each partition must be a multiple of the number of
438           sectors per cylinder as shown in the information that is
439           presented in the editor (1008 in the example above).</para>
440
441         <para>When you are done, save your changes and quit the
442           editor.i This will cause the disk label to be
443           written.</para>
444
445         <warning>
446           <para>This procedure will overwrite any disk label that may
447             be already present on the disk.  Any existing filesystems
448             on this disk must have their respective partition entries
449             in the old and new label match
450             <emphasis>exactly</emphasis>, or they will be
451             lost.</para>
452         </warning>
453
454         <para>If you want to double-check that your partitions end on
455           cylinder boundaries, run <command>disklabel -e
456           device</command> again.  The
457           editor will display the cylinders used by a particular
458           partition on the right hand side of the output.  If any of
459           the partitions you defined (i.e. anything except partition
460           <literal>c</literal>) shows an <literal>*</literal> next to
461           it, the partition does <emphasis>NOT</emphasis> start or end
462           on a cylinder boundary.  You <emphasis>MUST</emphasis> fix
463           these or your system will not work.</para>
464       </step>
465
466       <step>
467         <para>Use <command>disklabel -B</command> if you want to make
468           the disk bootable for &os;/&arch;.</para>
469
470         <warning>
471           <para>Using <command>disklabel -B</command> on a disk will
472             overwrite any preexisting boot block, so it will likely
473             render any other operating system installed on the same
474             disk unbootable.</para>
475         </warning>
476
477         <para>If you do not want to overwrite the boot block, it is
478           possible to load the <application>loader</application> via
479           TFTP as described above, but have it boot the kernel from
480           disk.  This requires a special loader binary, which is
481           available at <uri xlink:href="ftp://ftp.FreeBSD.org/pub/FreeBSD/development/sparc64/loader-ufs.gz">ftp://ftp.FreeBSD.org/pub/FreeBSD/development/sparc64/loader-ufs.gz</uri></para>
482       </step>
483     </procedure>
484   </sect2>
485
486   <sect2 xml:id="creating-root-filesystem">
487     <title>Creating the Root Fileystem</title>
488
489     <para>If you want to boot from a local disk, you will need to
490       create a root filesystem to hold the base system binaries and
491       configuration files (and optionally other filesystems mounted
492       in places such as <filename>/usr</filename> and
493       <filename>/var</filename>).</para>
494
495     <para>The kernel contains support for Sun disklabels, so you can
496       use Solaris disks, which may even be prepared using
497       <application>newfs</application> under Solaris.  NetBSD disk
498       labels and filesystems are also usable from &os;.</para>
499
500     <warning>
501       <para>Do <emphasis>not</emphasis> run Solaris
502         <application>fsck</application> on filesystems modified by
503         &os;.  Doing so will damage the file permissions.</para>
504     </warning>
505
506     <para>To create filesystems and to install the base system, boot
507       from CDROM or via NFS and create a disk label as described in
508       <xref linkend="creating-disk-label"/>.</para>
509
510     <para>When booting the first time and you have not entered your
511       root partition into <filename>/etc/fstab</filename> yet, you may
512       need to specify your root partition on the mountroot prompt when
513       booting (use a format like
514       <command>ufs:diskpartition</command>,
515       i.e. leave the slice specification out).  If the kernel does
516       automatically attempt to boot from another filesystem, press a
517       key other than <keycap>Enter</keycap> on the
518       <application>loader</application> prompt:</para>
519
520     <screen>Hit [Enter] to boot immediately, or any other key for command prompt.</screen>
521
522     <para>Then, boot the kernel using <command>boot -a -s</command>,
523       which will cause the kernel to ask you for the root partition
524       and then boot into single-user mode.  Once the root filesystem
525       has been entered into <filename>/etc/fstab</filename>, it should
526       be automatically mounted as <filename>/</filename> on the next
527       boot.</para>
528
529     <para>If you are booting over the network (via NFS), the above
530       BOOTP entries should suffice to have the kernel find and mount
531       the root filesystem via NFS.</para>
532   </sect2>
533
534   <sect2 xml:id="installing-base-system">
535     <title>Installing the Base System</title>
536
537     <para>If you booted the kernel from the network, you downloaded a
538       &man.tar.1; archive with the base system and exported it from
539       the netboot server via NFS.  You can unpack this same archive to
540       your local disk to create a stand-alone system (remember to copy
541       the kernel over as well).</para>
542
543     <para>If you booted from CDROM, the same archive is available in
544       <filename>/root/</filename> on the CDROM.</para>
545
546     <para>Before booting the system stand-alone, you will want to edit
547       <filename>/etc/fstab</filename> and
548       <filename>/etc/rc.conf</filename> and set a
549       <systemitem class="username">root</systemitem> password.</para>
550
551     <para>Note that some programs from the base system may not be
552       present in the archive, or may not work properly yet.</para>
553   </sect2>
554 </sect1>