summaryrefslogtreecommitdiff
path: root/distrib/notes/sparc64/install
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/notes/sparc64/install')
-rw-r--r--distrib/notes/sparc64/install96
1 files changed, 94 insertions, 2 deletions
diff --git a/distrib/notes/sparc64/install b/distrib/notes/sparc64/install
index 03579043a1b..f485b42fa66 100644
--- a/distrib/notes/sparc64/install
+++ b/distrib/notes/sparc64/install
@@ -16,6 +16,9 @@ machine whose disk does not currently hold a usable operating system.
This is difficult to get set up correctly the first time, but easy to
use afterwards. (see ``Installing using a diskless setup'' below).
+It is also possible to install OpenBSD "manually" from a running Solaris
+system, using the system tools, as well as gunzip; see ``Installing from
+Solaris'' below.
Booting from the Installation Media:
@@ -73,7 +76,6 @@ partition naming a=0, b=1...
ok boot disk1:b bsd # example - scsi target 1 or
# second ide drive
-dnl Change wording if miniroot available
During the boot, the kernel might not be able to determine by itself
which device it has been booted from. In this case, it will ask you
for the root and swap devices. Answer the device and partition you
@@ -91,7 +93,8 @@ you are using a OpenBSD system as the boot-server, have a look at the
diskless(8) manual page for guidelines on how to proceed with this.
If the server runs another operating system, you'll have to consult
documentation that came with it (on SunOS systems, add_client(8) and
-the Sun System/Networks administrators guide constitute a good start).
+the Sun System/Networks administrators guide constitute a good start;
+on Solaris systems, share(1M) is a good starting point as well).
Boot your workstation from the server by entering the appropriate `boot'
@@ -254,6 +257,95 @@ and add "local" to the end of the tty configuration line, and run
'ttyflags -a' to put your changes into effect.
+Installing from Solaris:
+
+You need a machine running under Solaris to install OpenBSD. You will
+also need at least the following pieces:
+
+ - the *.tgz files you want to install (as a minimum, base{:--:}OSrev.tgz and
+ etc{:--:}OSrev.tgz)
+ - gunzip (GNU gzip) Solaris binary
+ - a boot block file from a Solaris machine that matches your machine type,
+ for ufs filesystem, such as /usr/platform/`uname -i`/lib/fs/ufs/bootblk
+ - an OpenBSD kernel
+
+All these pieces, except the boot block and the GNU utilities are supplied
+in the OpenBSD/MACHINE distribution.
+
+You need to format and partition the disk using Solaris (since
+OpenBSD/MACHINE uses Sun compatible disk labels.) Give yourself adequate
+partition sizes. Here is an example layout:
+
+ solaris# prtvtoc -s /dev/rdsk/c0t1d0s2
+ * First Sector Last
+ * Partition Tag Flags Sector Count Sector Mount Directory
+ 0 2 00 0 80000 79999 /
+ 1 3 01 80000 256000 335999
+ 2 5 00 0 4165271 4165270
+ 3 7 00 336000 100000 435999 /tmp
+ 4 7 00 436000 100000 535999 /var
+ 5 7 00 536000 400000 935999 /var/tmp
+ 6 4 00 936000 3229271 4165270 /usr
+
+Use Solaris to newfs the partitions which will have filesystems on them.
+(OpenBSD's filesystem format is almost identical to Solaris).
+
+ solaris# newfs /dev/rdsk/c0t1d0s0
+ [... lots of output]
+
+Repeat for any other partition (in this example, /dev/rdsk/c0t1d0s3,
+/dev/rdsk/c0t1d0s4, /dev/rdsk/c0t1d0s5 and /dev/rdsk/c0t1d0s6).
+
+dnl XXX I had no time to check the -O restriction is still necessary.
+NOTE: If you are able to, there is a performance benefit from
+newfs'ing using OpenBSD. If you newfs using the OpenBSD newfs command,
+be sure to use the -O flag for your / partition, so that newfs will
+use the 4.3BSD filesystem format, rather than the new 4.4BSD filesystem
+format. If you forget, you will not be able to boot -- the Solaris boot
+blocks do not understand the extended 4.4BSD filesystem format.
+
+Mount those partitions in a tree formation, under /mnt; ie:
+
+ solaris# df -k
+ Filesystem kbytes used avail capacity Mounted on
+ [...]
+ /dev/dsk/c0t1d0s0 38427 0 38427 0% /mnt
+ /dev/dsk/c0t1d0s3 48249 0 48249 0% /mnt/tmp
+ /dev/dsk/c0t1d0s4 48249 0 48249 0% /mnt/var
+ /dev/dsk/c0t1d0s5 193536 0 193536 0% /mnt/var/tmp
+ /dev/dsk/c0t1d0s6 1564024 0 1564024 0% /mnt/usr
+
+Place the boot block in /mnt (your new root partition), and use the Solaris
+command "installboot" to make it work.
+The installboot man page says to do something like this:
+
+ solaris# cp /usr/platform/`uname -i`/lib/fs/ufs/bootblk /mnt/bootblk
+ solaris# sync; sync
+ solaris# /usr/sbin/installboot /mnt/bootblk /dev/rdsk/c0t1d0s0
+
+You can now extract the provided "*.tgz files onto your disk.
+
+ solaris# ls -FC
+ base{:--:}OSrev.tgz etc{:--:}OSrev.tgz misc{:--:}OSrev.tgz xserv{:--:}OSrev.tgz
+ bsd game{:--:}OSrev.tgz xbase{:--:}OSrev.tgz xshare{:--:}OSrev.tgz
+ comp{:--:}OSrev.tgz man{:--:}OSrev.tgz xfont{:--:}OSrev.tgz
+ solaris{:-#-:} gunzip < base{:--:}OSrev.tgz | (cd /mnt; tar xvpf -)
+ [...] for each set
+
+And finally copy the OpenBSD kernel onto your disk.
+
+ solaris# cp bsd /mnt/bsd
+
+The GNU gunzip program is not distributed as part of Solaris, but may be
+present in your /usr/local/bin. If not, you will need to obtain it from a
+GNU archive and install before proceeding.
+
+After the files have been extracted, setup /mnt/etc/fstab to match
+your actual disk layout. (Minus the "/mnt" component of each path, of
+course :-)
+
+Now proceed to reboot the machine and the customize your installation.
+
Net Boot or Diskless Setup Information: