1dnl $OpenBSD: install,v 1.20 2010/03/16 17:23:09 miod Exp $ 2dnl lots of texts coming from {mac68k,mvme68k,vax}/install initially 3OpenBSDInstallPrelude 4 5Bootstrapping the installation ramdisk kernel is supported 6from either network, tape or CD-ROM. 7 8 9Booting from Tape or CD-ROM installation media: 10 11You can burn a bootable CD-ROM and boot from it or you can prepare an 12installation tape as described in the "Creating an installation tape" 13section earlier. 14To boot from SCSI CD-ROM, simply insert the CD into the drive before power 15up, then during the computer's self-test cycle, press the space bar. 16Subsequently at the PROM prompt issue a command: 17 18 BOOT_ADMIN> search 19 20to initiate a search for all bootable devices available. This procedure 21may take a few minutes and should you have configured network boot services 22present may find those too. A sample output might be: 23 24 Path Number Device Path Device Type 25 ----------- ----------------- ----------- 26 P0 SESCSI.2.0 TOSHIBA CD-ROM XM-6201TA 27 P1 LAN.10.0.0.5.3.254 lucifier 28 P2 FWSCSI.5.0 IBM DDRS-34560WS 29 P3 FWSCSI.0.0 SEAGATE ST318436LW 30 P4 SESCSI.6.0 HP HP35480A 31 32To boot from your CD-ROM type: 33 34 BOOT_ADMIN> boot p0 35 36To boot from your tape type: 37 38 BOOT_ADMIN> boot p4 39 40 41Booting from Network: 42 43In order to bootstrap via the network, you must provide a second system to 44act as a boot server. It is convenient if this is a second OpenBSD machine 45as the necessary services are already installed, although source code for 46such programs as dhcpd can be found in OpenBSD's source tree, and should be 47reasonably portable to other UN*X-like operating systems. More information 48on diskless booting can be found in the OpenBSD diskless(8) manual page. 49 50Your MACHINE expects to be able to download a so-called LIF (``Logical 51Interchange Format'') image, containing both the boot code and the kernel, 52via the HP rboot protocol, for older firmware, or via the bootp protocol, 53for more recent firmware. 54 55Old firmware operation 56 57Models such as 7[035]5, 715/33/50/75, 725/50/75 have an older version 58of PDC. There are two levels of interactive commands in this version. 59The first level is a short menu: 60 61 b) Boot from specified device 62 s) Search for bootable device 63 a) Enter Boot Administration mode 64 x) Exit and continue boot sequence 65 66 Select from menu: 67 68In this case, you will need to setup rbootd on the server. Start by creating 69an /etc/rbootd.conf file on the bootserver. The format of this file is the 70ethernet address followed by the LIF filename. Here is an example: 71 72 08:00:09:70:c4:11 lif{:--:}OSrev.fs 73 74Then start rbootd (or configure /etc/rc.conf to always start rbootd). Once 75rbootd is running, the server name will then appear on the MACHINE as part of 76the possible boot choices in a boot device search (``s'' command). 77 78Modern firmware operation 79 80More recent machines mostly those based on the 7100LC, 7200 and 7300LC CPU 81types have a different PDC version. There is only one interactive mode, 82with a BOOT_ADMIN> prompt, which provides both boot settings and commands. 83 84In this case, you will need to set up dhcpd on the server, which can 85serve bootp protocol requests. Start by editing the /etc/dhcpd.conf on 86the bootserver, and declare an information block. Here is an example: 87 88 subnet 10.0.0.0 netmask 255.0.0.0 { 89 host boron { 90 filename "lif{:--:}OSrev.fs"; 91 hardware ethernet 08:00:09:70:c4:11; 92 fixed-address 10.42.42.42; 93 } 94 } 95 96Do not forget to enable dhcpd. 97 98You will also need to enable tftpd, for the MACHINE to download the 99miniroot (bf entry) from the server in the /tftpboot (td entry) directory. 100 101Common operation 102 103You are now ready to bootstrap the miniroot. On your MACHINE, escape to a 104prompt and boot from the network by entering ``boot lan isl''. On old PDC 105firmware, you will need to enter administration mode first. 106 107 108Installing using the netboot procedure: 109 110OpenBSDInstallPart2 111 112 Boot your machine from the installation media as described above. 113 114 It will take a while to load the miniroot image, especially from 115 a slow network connection or a CD-ROM, most likely more than a minute. 116 If some action doesn't eventually happen, or the spinning cursor 117 has stopped and nothing further has happened, either your boot 118 media is bad, your diskless setup is incorrect, or you may have 119 a hardware or configuration problem. 120 121OpenBSDInstallPart3(,"sd0") 122 123OpenBSDInstallPart4 124 125OpenBSDInstallPart5(,{:- 126 Due to prom limitations, you should make sure the whole 'a' 127 partition is CONTAINED WITHIN THE FIRST 2GB of the disk if 128 you intend to boot from it.-:}) 129 130 Since the target disk will become the boot disk for your new 131 OpenBSD/MACHINE installation, the disklabel program will restrict 132 the available disk area to keep the first cylinder, which will 133 contain the bootblock, safe from being overwritten. If you don't 134 plan to install a bootblock on this disk, you can reclaim this 135 space with the 'b' command. 136 137OpenBSDInstallPart6({:-CD-ROM, tape, -:}) 138 139OpenBSDURLInstall 140 141OpenBSDCDROMInstall 142 143OpenBSDNFSInstall 144 145OpenBSDDISKInstall(,{:-only -:}) 146 147OpenBSDCommonInstall 148 149OpenBSDTAPEInstall 150 151OpenBSDInstallWrapup 152 153OpenBSDCongratulations 154