diff options
Diffstat (limited to 'distrib/notes/sparc64')
-rw-r--r-- | distrib/notes/sparc64/install | 96 | ||||
-rw-r--r-- | distrib/notes/sparc64/xfer | 34 |
2 files changed, 115 insertions, 15 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: diff --git a/distrib/notes/sparc64/xfer b/distrib/notes/sparc64/xfer index a4e0909cb09..0a377916b45 100644 --- a/distrib/notes/sparc64/xfer +++ b/distrib/notes/sparc64/xfer @@ -28,11 +28,11 @@ dnl the target system's disk. OpenBSDXferFloppyFromDOS -OpenBSDXferFloppyFromUnix +OpenBSDXferFloppyFromUNIX dnl XXX make sure to adapt text, especially examples, once miniroot dnl is available as well. -Creating a bootable hard disk using SunOS or other Un*x-like system: +Creating a bootable hard disk using SunOS, Solaris or other Un*x-like system: dnl If you don't have a floppy drive you can copy the floppy dnl installation image "floppy{:--:}OSrev.fs" or the mini-root "miniroot{:--:}OSrev.fs" @@ -56,11 +56,14 @@ dnl single user mode), and then booting from that partition. which have a compatible view of SunOS disk labels and partitions. Use the dd(1) utility to copy the file to the hard drive. - Under SunOS, the command would be: - + The command would likely be, under SunOS: dd if=floppy{:--:}OSrev.fs of=/dev/rsd0b bs=36b dnl - or - dnl dd if=miniroot{:--:}OSrev.fs of=/dev/rsd0b bs=36b + and under Solaris: + dd if=floppy{:--:}OSrev.fs of=/dev/c0t0d0s1 bs=36b +dnl - or - +dnl dd if=miniroot{:--:}OSrev.fs of=/dev/c0t0d0s1 bs=36b The blocksize is arbitrary as long as it's a multiple of 512-bytes and within the maximum supported by the driver, i.e. bs=126b may @@ -83,10 +86,22 @@ dnl dd if=miniroot{:--:}OSrev.fs of=/dev/rsd0b bs=36b create a "fictitious label" that will let you access the whole disk. + The floppy image is used only for booting, and can be placed in + a partition that will be overwritten during the install process, + since it actually runs off a ram-disk image in the kernel. +dnl XXX uncomment end of paragraph once miniroot available +dnl since it actually runs off a ram-disk image in the kernel. In +dnl contrast the miniroot is a normal unix root filesystem and you +dnl must place in a partition that will not be overwritten until you've +dnl completed the installation process. + To copy the floppy image to the hard disk, preserving SunOS, Solaris, NetBSD or OpenBSD labels: - + Under SunOS: dd if=floppy{:--:}OSrev.fs of=/dev/rsdXc bs=1b skip=1 seek=1 + and Solaris: + dd if=floppy{:--:}OSrev.fs of=/dev/rdsk/c0tXd0s2 \ + bs=1b skip=1 seek=1 You need to be sure that your version of dd(1) supports the skip and seek operands, otherwise you can try a technique like: @@ -116,15 +131,8 @@ Creating a network bootable setup using SunOS or other Un*x-like system: OpenBSDXferPrelude -The floppy installation allows installing OpenBSD directly from FTP -mirror sites over the internet, however you must consider the speed and -reliability of your internet connection for this option. It may save -much time and frustration to use ftp get/reget to transfer the -distribution sets to a local server or disk and perform the installation -from there, rather than directly from the internet. - -OpenBSDXferBareTape +OpenBSDXferBareTape(xbase xfont xserv xshare) OpenBSDXferNFS |