1dnl $OpenBSD: install,v 1.10 2013/12/04 23:20:19 jmc Exp $ 2OpenBSDInstallPrelude 3 4Booting the installation media: 5 6There are two ways to load an OpenBSD/MACHINE kernel (or ramdisk), 7over TFTP or from the internal CompactFlash storage. 8 9For TFTP you will first need to setup a TFTP server as described in 10diskless(8). Assuming tftpd(8) chroots into /tftpboot, copy bsd.rd into that 11directory. 12 13Power on your OpenBSD/MACHINE device and from the U-Boot prompt set up 14networking. In this example it is assumed you have a DHCP server in your 15network: 16 17 # dhcp 18 19If you don't have a DHCP server, you need to set the ipaddr U-Boot environment 20variable: 21 22 # setenv ipaddr <static ip address> 23 24Now set the IP address of your TFTP server: 25 26 # setenv serverip <server ip> 27 28The ramdisk kernel needs to be loaded into memory. If you use "0" as the 29address, the default address location will be used by U-Boot: 30 31 # tftpboot 0 bsd.rd 32 Using octeth0 device 33 TFTP from server 192.168.178.30; our IP address is 192.168.178.89 34 Filename 'bsd.rd'. 35 Load address: 0x9f00000 36 Loading: ######################### 37 done 38 Bytes transferred = 7191474 (6dbbb2 hex), 8617 Kbytes/sec 39 40Now the kernel can be booted from the default memory location, with no 41arguments provided: 42 43 # bootoctlinux 44 45OpenBSD/MACHINE currently lacks a real bootloader. It is possible however to 46boot into bsd upon powering on the machine. 47 48From the U-Boot commandline, make a copy of the current ${bootcmd} so you can 49restore it later if needed: 50 51 # setenv old_bootcmd ${bootcmd} 52 53${bootcmd} is run by U-Boot when ${autoload} is enabled. Now create a new 54${bootcmd} which will load an ELF file called 'bsd' from the first active FAT 55partition on the first CF card (created by the installer) and save the 56environment to persistent storage: 57 58 # setenv bootcmd 'fatload ide 0:1 ${loadaddr} bsd;bootoctlinux root=/dev/octcf0' 59 # setenv bootdelay 5 60 # saveenv 61 Saving Environment to Flash... 62 Un-Protected 1 sectors 63 Erasing Flash... 64 . done 65 Erased 1 sectors 66 Writing to Flash... .done 67 Protected 1 sectors 68 # 69 70Depending on your hardware you may need to replace 'ide' with 'usb'. 71 72No miniroot is provided at this time. 73 74OpenBSDInstallPart2 75 76OpenBSDInstallPart3(,"octcf0 for internal CompactFlash storage.") 77dnl sd0 for USB storage, or wd0 for internal hard disk storage attached to the SATA port 78 79OpenBSDInstallPart4 80 81OpenBSDInstallMBRPart1 82 83dnl OpenBSDInstallMBRPart2 84 The fdisk(8) utility will be invoked to let you edit your MBR 85 partitioning. The current MBR partitions defined will be 86 displayed and you will be allowed to modify them, and add new 87 partitions. 88 89 The setup will need two partitions, one 'OpenBSD' for the 90 OpenBSD/MACHINE installation, and one 'MSDOS' for the 91 U-Boot scripts/bootloader. 92 93 If you use the whole disk option, the install script 94 will create a small 'MSDOS' partition and use the rest of 95 the disk for the OpenBSD installation. 96 97 After your OpenBSD MBR partition has been setup, the real 98 partition setup can follow. 99 100OpenBSDInstallPart5({:- 101 U-Boot partitions defined on the disk will usually show up as 102 partition 'i', 'j' and so on.-:}) 103 104dnl OpenBSDInstallPart6({:-CD-ROM, -:}) 105OpenBSDInstallPart6 106 107OpenBSDURLInstall 108 109dnl OpenBSDCDROMInstall 110 111OpenBSDNFSInstall 112 113OpenBSDDISKInstall({:-"octcfN" or -:},,{:-, Linux (ext2) or MS-DOS-:}) 114 115OpenBSDCommonInstall 116 117OpenBSDInstallWrapup 118 119dnl CAM-0100 systems final steps: 120 121OpenBSDCongratulations 122 123 124 125OpenBSDUnattendedInstallation 126