| 1 |
<!-- retain these comments for translator revision tracking -->
|
| 2 |
<!-- $Id: install-tftp.xml 24663 2004-12-31 18:38:22Z fjpop-guest $ -->
|
| 3 |
|
| 4 |
<sect1 condition="supports-tftp" id="install-tftp">
|
| 5 |
<title>Preparing Files for TFTP Net Booting</title>
|
| 6 |
<para>
|
| 7 |
|
| 8 |
If your machine is connected to a local area network, you may be able
|
| 9 |
to boot it over the network from another machine, using TFTP. If you
|
| 10 |
intend to boot the installation system from another machine, the
|
| 11 |
boot files will need to be placed in specific locations on that machine,
|
| 12 |
and the machine configured to support booting of your specific machine.
|
| 13 |
|
| 14 |
</para><para>
|
| 15 |
|
| 16 |
You need to setup a TFTP server, and for many machines, a BOOTP server
|
| 17 |
<phrase condition="supports-rarp">, or RARP server</phrase>
|
| 18 |
<phrase condition="supports-dhcp">, or DHCP server</phrase>.
|
| 19 |
|
| 20 |
</para><para>
|
| 21 |
|
| 22 |
<phrase condition="supports-rarp">The Reverse Address Resolution Protocol (RARP) is
|
| 23 |
one way to tell your client what IP address to use for itself. Another
|
| 24 |
way is to use the BOOTP protocol. </phrase>
|
| 25 |
|
| 26 |
<phrase condition="supports-bootp">BOOTP is an IP protocol that
|
| 27 |
informs a computer of its IP address and where on the network to obtain
|
| 28 |
a boot image. </phrase>
|
| 29 |
|
| 30 |
<phrase arch="m68k"> Yet another alternative exists on VMEbus
|
| 31 |
systems: the IP address can be manually configured in boot ROM. </phrase>
|
| 32 |
|
| 33 |
<phrase condition="supports-dhcp">The DHCP (Dynamic Host Configuration
|
| 34 |
Protocol) is a more flexible, backwards-compatible extension of BOOTP.
|
| 35 |
Some systems can only be configured via DHCP. </phrase>
|
| 36 |
|
| 37 |
</para><para arch="powerpc">
|
| 38 |
|
| 39 |
For PowerPC, if you have a NewWorld Power Macintosh machine, it is a
|
| 40 |
good idea to use DHCP instead of BOOTP. Some of the latest machines
|
| 41 |
are unable to boot using BOOTP.
|
| 42 |
|
| 43 |
</para><para arch="alpha">
|
| 44 |
|
| 45 |
Unlike the Open Firmware found on Sparc and PowerPC machines, the SRM
|
| 46 |
console will <emphasis>not</emphasis> use RARP to obtain its IP
|
| 47 |
address, and therefore you must use BOOTP for net booting your Alpha.
|
| 48 |
You can also enter the IP configuration for network interfaces
|
| 49 |
directly in the SRM console.
|
| 50 |
|
| 51 |
<footnote>
|
| 52 |
<para>
|
| 53 |
|
| 54 |
Alpha systems can also be net-booted using the DECNet MOP (Maintenance
|
| 55 |
Operations Protocol), but this is not covered here. Presumably, your
|
| 56 |
local OpenVMS operator will be happy to assist you should you have
|
| 57 |
some burning need to use MOP to boot Linux on your Alpha.
|
| 58 |
|
| 59 |
</para>
|
| 60 |
</footnote></para><para arch="hppa">
|
| 61 |
|
| 62 |
Some older HPPA machines (e.g. 715/75) use RBOOTD rather than BOOTP.
|
| 63 |
An RBOOTD package is available on the parisc-linux web site.
|
| 64 |
|
| 65 |
</para><para>
|
| 66 |
|
| 67 |
The Trivial File Transfer Protocol (TFTP) is used to serve the boot
|
| 68 |
image to the client. Theoretically, any server, on any platform,
|
| 69 |
which implements these protocols, may be used. In the examples in
|
| 70 |
this section, we shall provide commands for SunOS 4.x, SunOS 5.x
|
| 71 |
(a.k.a. Solaris), and GNU/Linux.
|
| 72 |
|
| 73 |
</para>
|
| 74 |
|
| 75 |
&tftp-rarp.xml;
|
| 76 |
&tftp-bootp.xml;
|
| 77 |
&tftp-dhcp.xml;
|
| 78 |
|
| 79 |
<sect2 id="tftpd">
|
| 80 |
<title>Enabling the TFTP Server</title>
|
| 81 |
<para>
|
| 82 |
|
| 83 |
To get the TFTP server ready to go, you should first make sure that
|
| 84 |
<command>tftpd</command> is enabled. This is usually enabled by having
|
| 85 |
something like the following line in <filename>/etc/inetd.conf</filename>:
|
| 86 |
|
| 87 |
<informalexample><screen>
|
| 88 |
tftp dgram udp wait nobody /usr/sbin/tcpd in.tftpd /tftpboot
|
| 89 |
</screen></informalexample>
|
| 90 |
|
| 91 |
Debian packages will in general set this up correctly by default when they
|
| 92 |
are installed.
|
| 93 |
|
| 94 |
</para><para>
|
| 95 |
|
| 96 |
Look in that file and remember the directory which is used as the
|
| 97 |
argument of <command>in.tftpd</command>; you'll need that below. The
|
| 98 |
<userinput>-l</userinput> argument enables some versions of
|
| 99 |
<command>in.tftpd</command> to log all requests to the system logs;
|
| 100 |
this is useful for diagnosing boot errors. If you've had to change
|
| 101 |
<filename>/etc/inetd.conf</filename>, you'll have to notify the
|
| 102 |
running <command>inetd</command> process that the file has changed.
|
| 103 |
On a Debian machine, run <userinput>/etc/init.d/inetd
|
| 104 |
reload</userinput>; on other machines,
|
| 105 |
find out the process ID for <command>inetd</command>, and run
|
| 106 |
<userinput>kill -HUP <replaceable>inetd-pid</replaceable></userinput>.
|
| 107 |
|
| 108 |
</para><note arch="i386"><para>
|
| 109 |
|
| 110 |
To use the Pre-boot Execution Environment (PXE) method of TFTP
|
| 111 |
booting, you will need a TFTP server with <userinput>tsize</userinput>
|
| 112 |
support. On a &debian; server, the <classname>atftpd</classname> and
|
| 113 |
<classname>tftpd-hpa</classname> packages qualify; we recommend
|
| 114 |
<classname>tftpd-hpa</classname>.
|
| 115 |
|
| 116 |
</para></note><para arch="mips">
|
| 117 |
|
| 118 |
If you intend to install Debian on an SGI machine and your TFTP server is a
|
| 119 |
GNU/Linux box running Linux 2.4, you'll need to set the following on your
|
| 120 |
server:
|
| 121 |
|
| 122 |
<informalexample><screen>
|
| 123 |
# echo 1 > /proc/sys/net/ipv4/ip_no_pmtu_disc
|
| 124 |
</screen></informalexample>
|
| 125 |
|
| 126 |
to turn off Path MTU discovery, otherwise the Indy's PROM can't
|
| 127 |
download the kernel. Furthermore, make sure TFTP packets are sent from
|
| 128 |
a source port no greater than 32767, or the download will stall after
|
| 129 |
the first packet. Again, it's Linux 2.4.X tripping this bug in the
|
| 130 |
PROM, and you can avoid it by setting
|
| 131 |
|
| 132 |
<informalexample><screen>
|
| 133 |
# echo "2048 32767" > /proc/sys/net/ipv4/ip_local_port_range
|
| 134 |
</screen></informalexample>
|
| 135 |
|
| 136 |
to adjust the range of source ports the Linux TFTP server uses.
|
| 137 |
|
| 138 |
</para>
|
| 139 |
</sect2>
|
| 140 |
|
| 141 |
<sect2 id="tftp-images">
|
| 142 |
<title>Move TFTP Images Into Place</title>
|
| 143 |
<para>
|
| 144 |
|
| 145 |
Next, place the TFTP boot image you need, as found in
|
| 146 |
<xref linkend="where-files"/>, in the <command>tftpd</command>
|
| 147 |
boot image directory. Generally, this directory will be
|
| 148 |
<filename>/tftpboot</filename>. You'll have to make a link from that
|
| 149 |
file to the file which <command>tftpd</command> will use for booting a
|
| 150 |
particular client. Unfortunately, the file name is determined by the
|
| 151 |
TFTP client, and there are no strong standards.
|
| 152 |
|
| 153 |
</para><para arch="powerpc">
|
| 154 |
|
| 155 |
On NewWorld Power Macintosh machines, you will need to set up the
|
| 156 |
<command>yaboot</command> boot loader as the TFTP boot image.
|
| 157 |
<command>Yaboot</command> will then retrieve the kernel and RAMdisk
|
| 158 |
images via TFTP itself. For net booting, use the
|
| 159 |
<filename>yaboot-netboot.conf</filename>. Just rename this to
|
| 160 |
<filename>yaboot.conf</filename> in the TFTP directory.
|
| 161 |
|
| 162 |
</para><para arch="i386">
|
| 163 |
|
| 164 |
For PXE booting, everything you should need is set up in the
|
| 165 |
<filename>netboot/netboot.tar.gz</filename> tarball. Simply extract this
|
| 166 |
tarball into the <command>tftpd</command> boot image directory. Make sure
|
| 167 |
your dhcp server is configured to pass <filename>/pxelinux.0</filename>
|
| 168 |
to <command>tftpd</command> as the filename to boot.
|
| 169 |
|
| 170 |
</para><para arch="ia64">
|
| 171 |
|
| 172 |
For PXE booting, everything you should need is set up in the
|
| 173 |
<filename>netboot/netboot.tar.gz</filename> tarball. Simply extract this
|
| 174 |
tarball into the <command>tftpd</command> boot image directory. Make sure
|
| 175 |
your dhcp server is configured to pass
|
| 176 |
<filename>/debian-installer/ia64/elilo.efi</filename>
|
| 177 |
to <command>tftpd</command> as the filename to boot.
|
| 178 |
|
| 179 |
</para>
|
| 180 |
|
| 181 |
<sect3 arch="mipsel">
|
| 182 |
<title>DECstation TFTP Images</title>
|
| 183 |
<para>
|
| 184 |
|
| 185 |
For DECstations, there are tftpimage files for each subarchitecture,
|
| 186 |
which contain both kernel and installer in one file. The naming
|
| 187 |
convention is <replaceable>subarchitecture</replaceable>/netboot-boot.img.
|
| 188 |
Copy the tftpimage file you would like to use to
|
| 189 |
<userinput>/tftpboot/tftpboot.img</userinput> if you work with the
|
| 190 |
example BOOTP/DHCP setups described above.
|
| 191 |
|
| 192 |
</para><para>
|
| 193 |
|
| 194 |
The DECstation firmware boots by TFTP with the command <userinput>boot
|
| 195 |
<replaceable>#</replaceable>/tftp</userinput>, where
|
| 196 |
<replaceable>#</replaceable> is the number of the TurboChannel device
|
| 197 |
from which to boot. On most DECstations this is "3". If the
|
| 198 |
BOOTP/DHCP server does not supply the filename or you need to pass
|
| 199 |
additional parameters, they can optionally be appended with the
|
| 200 |
following syntax:
|
| 201 |
|
| 202 |
</para><para>
|
| 203 |
|
| 204 |
<userinput>boot #/tftp/filename param1=value1 param2=value2 ...</userinput>
|
| 205 |
|
| 206 |
</para><para>
|
| 207 |
|
| 208 |
Several DECstation firmware revisions show a problem with regard to
|
| 209 |
net booting: the transfer starts, but after some time it stops with
|
| 210 |
an <computeroutput>a.out err</computeroutput>. This can have several reasons:
|
| 211 |
|
| 212 |
<orderedlist>
|
| 213 |
<listitem><para>
|
| 214 |
|
| 215 |
The firmware does not respond to ARP requests during a TFTP
|
| 216 |
transfer. This leads to an ARP timeout and the transfer stops. The
|
| 217 |
solution is to add the MAC address of the Ethernet card in the
|
| 218 |
DECstation statically to the ARP table of the TFTP server. This is
|
| 219 |
done by running <userinput>arp -s
|
| 220 |
<replaceable>IP-address</replaceable>
|
| 221 |
<replaceable>MAC-address</replaceable></userinput> as root on the
|
| 222 |
machine acting as TFTP server. The MAC-address of the DECstation can
|
| 223 |
be read out by entering <command>cnfg</command> at the DECstation
|
| 224 |
firmware prompt.
|
| 225 |
|
| 226 |
</para></listitem>
|
| 227 |
<listitem><para>
|
| 228 |
|
| 229 |
The firmware has a size limit on the files that can be booted
|
| 230 |
by TFTP.
|
| 231 |
|
| 232 |
</para></listitem>
|
| 233 |
</orderedlist>
|
| 234 |
|
| 235 |
There are also firmware revisions that cannot boot via TFTP at all. An
|
| 236 |
overview about the different firmware revisions can be found at the
|
| 237 |
NetBSD web pages:
|
| 238 |
<ulink url="http://www.netbsd.org/Ports/pmax/board-list.html#proms"></ulink>.
|
| 239 |
|
| 240 |
</para>
|
| 241 |
</sect3>
|
| 242 |
|
| 243 |
<sect3 arch="alpha">
|
| 244 |
<title>Alpha TFTP Booting</title>
|
| 245 |
<para>
|
| 246 |
On Alpha, you must specify the filename (as a relative path to the
|
| 247 |
boot image directory) using the <userinput>-file</userinput> argument
|
| 248 |
to the SRM <userinput>boot</userinput> command, or by setting the
|
| 249 |
<userinput>BOOT_FILE</userinput> environment variable. Alternatively,
|
| 250 |
the filename can be given via BOOTP (in ISC <command>dhcpd</command>,
|
| 251 |
use the <userinput>filename</userinput> directive). Unlike Open
|
| 252 |
Firmware, there is <emphasis>no default filename</emphasis> on SRM, so
|
| 253 |
you <emphasis>must</emphasis> specify a filename by either one of
|
| 254 |
these methods.
|
| 255 |
|
| 256 |
</para>
|
| 257 |
</sect3>
|
| 258 |
|
| 259 |
<sect3 arch="sparc">
|
| 260 |
<title>SPARC TFTP Booting</title>
|
| 261 |
<para>
|
| 262 |
|
| 263 |
SPARC architectures for instance use the subarchitecture names, such
|
| 264 |
as ``SUN4M'' or ``SUN4C''; in some cases, the architecture is left
|
| 265 |
blank, so the file the client looks for is just
|
| 266 |
<filename>client-ip-in-hex</filename>. Thus, if your system
|
| 267 |
subarchitecture is a SUN4C, and its IP is 192.168.1.3, the filename
|
| 268 |
would be <filename>C0A80103.SUN4C</filename>. An easy way to determine
|
| 269 |
this is to enter the following command in a shell (assuming the
|
| 270 |
machine's intended IP is 10.0.0.4).
|
| 271 |
|
| 272 |
<informalexample><screen>
|
| 273 |
$ printf '%.2x%.2x%.2x%.2x\n' 10 0 0 4
|
| 274 |
</screen></informalexample>
|
| 275 |
|
| 276 |
This will spit out the IP in hexadecimal; to get to the correct
|
| 277 |
filename, you will need to change all letters to uppercase and
|
| 278 |
if necessary append the subarchitecture name.
|
| 279 |
|
| 280 |
</para><para>
|
| 281 |
|
| 282 |
You can also force some sparc systems to look for a specific file name
|
| 283 |
by adding it to the end of the OpenPROM boot command, such as
|
| 284 |
<userinput>boot net my-sparc.image</userinput>. This must still reside
|
| 285 |
in the directory that the TFTP server looks in.
|
| 286 |
|
| 287 |
</para>
|
| 288 |
</sect3>
|
| 289 |
|
| 290 |
<sect3 arch="m68k">
|
| 291 |
<title>BVM/Motorola TFTP Booting</title>
|
| 292 |
<para>
|
| 293 |
|
| 294 |
For BVM and Motorola VMEbus systems copy the files
|
| 295 |
&bvme6000-tftp-files; to <filename>/tftpboot/</filename>.
|
| 296 |
|
| 297 |
</para><para>
|
| 298 |
|
| 299 |
Next, configure your boot ROMs or BOOTP server to initially load the
|
| 300 |
<filename>tftplilo.bvme</filename> or
|
| 301 |
<filename>tftplilo.mvme</filename> files from the TFTP server. Refer
|
| 302 |
to the <filename>tftplilo.txt</filename> file for your subarchitecture
|
| 303 |
for additional system-specific configuration information.
|
| 304 |
|
| 305 |
</para>
|
| 306 |
</sect3>
|
| 307 |
|
| 308 |
<sect3 arch="mips">
|
| 309 |
<title>SGI Indys TFTP Booting</title>
|
| 310 |
<para>
|
| 311 |
|
| 312 |
On SGI Indys you can rely on the <command>bootpd</command> to supply
|
| 313 |
the name of the TFTP file. It is given either as the
|
| 314 |
<userinput>bf=</userinput> in <filename>/etc/bootptab</filename> or as
|
| 315 |
the <userinput>filename=</userinput> option in
|
| 316 |
<filename>/etc/dhcpd.conf</filename>.
|
| 317 |
|
| 318 |
</para>
|
| 319 |
</sect3>
|
| 320 |
|
| 321 |
<sect3 arch="mips">
|
| 322 |
<title>Broadcom BCM91250A TFTP Booting</title>
|
| 323 |
<para>
|
| 324 |
|
| 325 |
You don't have to configure DHCP in a special way because you'll pass the
|
| 326 |
full path of the file to the loaded to CFE.
|
| 327 |
|
| 328 |
</para>
|
| 329 |
</sect3>
|
| 330 |
|
| 331 |
</sect2>
|
| 332 |
|
| 333 |
<!-- FIXME: commented out since it seems too old to be usable and a current
|
| 334 |
way is not known
|
| 335 |
|
| 336 |
<sect2 id="tftp-low-memory">
|
| 337 |
<title>TFTP Installation for Low-Memory Systems</title>
|
| 338 |
<para>
|
| 339 |
|
| 340 |
On some systems, the standard installation RAMdisk, combined with the
|
| 341 |
memory requirements of the TFTP boot image, cannot fit in memory. In
|
| 342 |
this case, you can still install using TFTP, you'll just have to go
|
| 343 |
through the additional step of NFS mounting your root directory over
|
| 344 |
the network as well. This type of setup is also appropriate for
|
| 345 |
diskless or dataless clients.
|
| 346 |
|
| 347 |
</para><para>
|
| 348 |
|
| 349 |
First, follow all the steps above in <xref linkend="install-tftp"/>.
|
| 350 |
|
| 351 |
<orderedlist>
|
| 352 |
<listitem><para>
|
| 353 |
|
| 354 |
Copy the Linux kernel image on your TFTP server using the
|
| 355 |
<userinput>a.out</userinput> image for the architecture you are
|
| 356 |
booting.
|
| 357 |
|
| 358 |
</para></listitem>
|
| 359 |
<listitem><para>
|
| 360 |
|
| 361 |
Untar the root archive on your NFS server (can be the same system as
|
| 362 |
your TFTP server):
|
| 363 |
|
| 364 |
<informalexample><screen>
|
| 365 |
# cd /tftpboot
|
| 366 |
# tar xvzf root.tar.gz
|
| 367 |
</screen></informalexample>
|
| 368 |
|
| 369 |
Be sure to use the GNU <command>tar</command> (other tar programs, like the
|
| 370 |
SunOS one, badly handle devices as plain files).
|
| 371 |
|
| 372 |
</para></listitem>
|
| 373 |
<listitem><para>
|
| 374 |
|
| 375 |
Export your <filename>/tftpboot/debian-sparc-root</filename> directory
|
| 376 |
with root access to your client. E.g., add the following line to
|
| 377 |
<filename>/etc/exports</filename> (GNU/Linux syntax, should be similar
|
| 378 |
for SunOS):
|
| 379 |
|
| 380 |
<informalexample><screen>
|
| 381 |
/tftpboot/debian-sparc-root <replaceable>client</replaceable>(rw,no_root_squash)
|
| 382 |
</screen></informalexample>
|
| 383 |
|
| 384 |
NOTE: <replaceable>client</replaceable> is the host name or IP address recognized
|
| 385 |
by the server for the system you are booting.
|
| 386 |
|
| 387 |
</para></listitem>
|
| 388 |
<listitem><para>
|
| 389 |
|
| 390 |
Create a symbolic link from your client IP address in dotted notation
|
| 391 |
to <filename>debian-sparc-root</filename> in the
|
| 392 |
<filename>/tftpboot</filename> directory. For example, if the client
|
| 393 |
IP address is 192.168.1.3, do
|
| 394 |
|
| 395 |
<informalexample><screen>
|
| 396 |
# ln -s debian-sparc-root 192.168.1.3
|
| 397 |
</screen></informalexample>
|
| 398 |
|
| 399 |
</para></listitem>
|
| 400 |
</orderedlist>
|
| 401 |
|
| 402 |
</para>
|
| 403 |
|
| 404 |
</sect2>
|
| 405 |
|
| 406 |
<sect2 condition="supports-nfsroot">
|
| 407 |
<title>Installing with TFTP and NFS Root</title>
|
| 408 |
<para>
|
| 409 |
|
| 410 |
Installing with TFTP and NFS Root is similar to
|
| 411 |
<xref linkend="tftp-low-memory"/> because you don't want to
|
| 412 |
load the RAMdisk anymore but boot from the newly created NFS-root file
|
| 413 |
system. You then need to replace the symlink to the tftpboot image by
|
| 414 |
a symlink to the kernel image (for example,
|
| 415 |
<filename>linux-a.out</filename>).
|
| 416 |
|
| 417 |
</para><para>
|
| 418 |
|
| 419 |
RARP/TFTP requires all daemons to be running on the same server (the
|
| 420 |
workstation is sending a TFTP request back to the server that replied
|
| 421 |
to its previous RARP request).
|
| 422 |
|
| 423 |
</para>
|
| 424 |
|
| 425 |
|
| 426 |
</sect2>
|
| 427 |
END FIXME -->
|
| 428 |
</sect1>
|