1*4baa9a4eSrillig.\" $NetBSD: setnetbootinfo.8,v 1.14 2024/09/07 19:13:29 rillig Exp $ 27878fdb4Scgd.\" 3db755e7cScgd.\" Copyright (c) 1997, 1999 Christopher G. Demetriou 4db755e7cScgd.\" All rights reserved. 57878fdb4Scgd.\" 67878fdb4Scgd.\" Redistribution and use in source and binary forms, with or without 77878fdb4Scgd.\" modification, are permitted provided that the following conditions 87878fdb4Scgd.\" are met: 97878fdb4Scgd.\" 1. Redistributions of source code must retain the above copyright 107878fdb4Scgd.\" notice, this list of conditions and the following disclaimer. 117878fdb4Scgd.\" 2. Redistributions in binary form must reproduce the above copyright 127878fdb4Scgd.\" notice, this list of conditions and the following disclaimer in the 137878fdb4Scgd.\" documentation and/or other materials provided with the distribution. 147878fdb4Scgd.\" 3. All advertising materials mentioning features or use of this software 157878fdb4Scgd.\" must display the following acknowledgement: 16db755e7cScgd.\" This product includes software developed for the 17*4baa9a4eSrillig.\" NetBSD Project. See https://www.NetBSD.org/ for 18db755e7cScgd.\" information about NetBSD. 191cd39537Spk.\" 4. The name of the author may not be used to endorse or promote products 20db755e7cScgd.\" derived from this software without specific prior written permission. 217878fdb4Scgd.\" 227878fdb4Scgd.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 237878fdb4Scgd.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 247878fdb4Scgd.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 257878fdb4Scgd.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 267878fdb4Scgd.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 277878fdb4Scgd.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 287878fdb4Scgd.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 297878fdb4Scgd.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 307878fdb4Scgd.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 317878fdb4Scgd.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 327878fdb4Scgd.\" 33db755e7cScgd.\" <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>> 34db755e7cScgd.\" 353af2acdcSchristos.Dd February 17, 2017 362fe77f35Scgd.Dt SETNETBOOTINFO 8 alpha 377878fdb4Scgd.Os 387878fdb4Scgd.Sh NAME 397878fdb4Scgd.Nm setnetbootinfo 402fe77f35Scgd.Nd configure Alpha network bootstrap program 417878fdb4Scgd.Sh SYNOPSIS 422fe77f35Scgd.Nm /usr/mdec/setnetbootinfo 437878fdb4Scgd.Op Fl vf 449cbd57c7Sross.Op Fl o Ar outfile 457878fdb4Scgd.Oo 467878fdb4Scgd.Fl a Ar ether-address | Fl h Ar ether-host 477878fdb4Scgd.Oc 489cbd57c7Sross.Ar infile 492fe77f35Scgd.Nm /usr/mdec/setnetbootinfo 507878fdb4Scgd.Op Fl v 517878fdb4Scgd.Fl u o Ar outfile Ar infile 527878fdb4Scgd.Sh DESCRIPTION 537878fdb4ScgdThe 547878fdb4Scgd.Nm setnetbootinfo 5534a98169Sperryutility configures the 5634a98169Sperry.Nx Ns Tn /alpha 5734a98169Sperrynetwork bootstrap program so 587878fdb4Scgdthat it can be used to bootstrap systems with old firmware revisions. 597878fdb4Scgd.Pp 6034a98169SperryThe 6134a98169Sperry.Nx Ns Tn /alpha 6234a98169Sperrynetwork bootstrap program needs to have the ethernet 637878fdb4Scgdaddress of the interface being used to boot the system available when 647878fdb4Scgdquerying other hosts on the network for bootstrapping information. 657878fdb4ScgdAlpha systems with old firmware revisions provide no way for 667878fdb4Scgdnetwork bootstrap programs to determine the ethernet address of 6734a98169Sperrythe interface that they are booting from, and so the 6834a98169Sperry.Nx Ns Tn /alpha 697878fdb4Scgdnetwork bootstrap program must find that information in another way. 707878fdb4Scgd(Newer firmware revisions include the ethernet address in the name of 717878fdb4Scgdthe device that is being booted from.) 727878fdb4ScgdThe 737878fdb4Scgd.Nm 747878fdb4Scgdutility encodes an ethernet address (and other information) directly 757878fdb4Scgdinto the network bootstrap program. 767878fdb4Scgd.Pp 777878fdb4ScgdThe options recognized by 787878fdb4Scgd.Nm 797878fdb4Scgdare as follows: 807878fdb4Scgd.Bl -tag -width flag 817878fdb4Scgd.It Fl a Ar ether-address 827878fdb4ScgdEncode the given ethernet address into the network bootstrap program. 837878fdb4Scgd(This option and the 847878fdb4Scgd.Fl h 857878fdb4Scgdoption are mutually exclusive.) 867878fdb4Scgd.It Fl f 877878fdb4ScgdForce the address information being encoded in the bootstrap 887878fdb4Scgdprogram to be used regardless of whether or not the bootstrap 897878fdb4Scgdprogram can get address information from the booting system's 907878fdb4Scgdfirmware. 917878fdb4Scgd.It Fl h Ar ether-host 927878fdb4ScgdEncode the ethernet address of the specified host into the network 937878fdb4Scgdbootstrap program. The host's name is translated to an ethernet 947878fdb4Scgdaddress using the 957878fdb4Scgd.Xr ether_hostton 3 967878fdb4Scgdfunction. 977878fdb4Scgd(This option and the 987878fdb4Scgd.Fl a 997878fdb4Scgdoption are mutually exclusive.) 1007878fdb4Scgd.It Fl o Ar outfile 1017878fdb4ScgdOutput the resulting bootstrap program into the file named by 1027878fdb4Scgd.Ar outfile , 1037878fdb4Scgdreplacing it if it already exists. If the 1047878fdb4Scgd.Fl o 1057878fdb4Scgdflag is not specified, the output file name will be 1067878fdb4Scgdthe name of the input bootstrap program concatenated with a 1077878fdb4Scgdperiod and the digits of the ethernet address being encoded. 1087878fdb4ScgdFor instance, if the input file is named 1097878fdb4Scgd.Pa /usr/mdec/netboot 1107878fdb4Scgdand is being configured to encode the ethernet address 1117878fdb4Scgd.Li 08:00:2b:bd:5d:fd , 1127878fdb4Scgdthen the default output file name would be 1137878fdb4Scgd.Pa /usr/mdec/netboot.08002bbd5dfd . 1147878fdb4ScgdIt is safe to set the output file name to be the same as the 1157878fdb4Scgdinput file name; the input file is read in its entirety before 1167878fdb4Scgdthe output file is modified. 1177878fdb4Scgd.It Fl u 1187878fdb4ScgdRemove configuration information from the specified network 1197878fdb4Scgdbootstrap program. If this option is used, an output file name must be 1207878fdb4Scgdspecified with the 1217878fdb4Scgd.Fl o 1227878fdb4Scgdoption, and neither the 1237878fdb4Scgd.Fl a 1247878fdb4Scgdor the 1257878fdb4Scgd.Fl h 1267878fdb4Scgdoptions may be specified. 1277878fdb4Scgd.It Fl v 1287878fdb4ScgdVerbose mode. 1297878fdb4Scgd.El 1302fe77f35Scgd.Sh FILES 1312fe77f35Scgd.Bl -tag -width /usr/mdec/ustarboot -compact 1322fe77f35Scgd.It Pa /usr/mdec/netboot 1332fe77f35Scgdnetwork bootstrap program 1342fe77f35Scgd.El 1352fe77f35Scgd.\" .Sh EXAMPLES 1362fe77f35Scgd.\" There should be some examples of how to use 1372fe77f35Scgd.\" .Nm setnetbootinfo . 1382fe77f35Scgd.\" XXX 1392fe77f35Scgd.Sh SEE ALSO 1403af2acdcSchristos.Xr alpha/boot 8 , 14199f13c16Swiz.Xr bootpd 8 1427878fdb4Scgd.Sh HISTORY 14334a98169SperryThe 14434a98169Sperry.Nx Ns Tn /alpha 1457878fdb4Scgd.Nm 1467878fdb4Scgdcommand first appeared in 1470e3b2908Slukem.Nx 1.3 . 1482fe77f35Scgd.Sh AUTHORS 1492fe77f35ScgdThe 1502fe77f35Scgd.Nm 1512fe77f35Scgdutility was written by Chris Demetriou. 152