home *** CD-ROM | disk | FTP | other *** search
/ Hackers Toolkit v2.0 / Hackers_Toolkit_v2.0.iso / HTML / archive / Unix / HOWTOs / SRM-HOWT < prev    next >
Text File  |  1999-11-04  |  24KB  |  546 lines

  1.   SRM Firmware Howto
  2.   David Mosberger <mailto:davidm@azstarnet.com>
  3.   v0.5, 17 August 1996
  4.  
  5.   This document describes how to boot Linux/Alpha using the SRM
  6.   firmware, which is the firmware normally used to boot DEC Unix.  Gen¡
  7.   erally, it is preferable to use MILO instead of aboot since MILO is
  8.   perfectly adapted to the needs of Linux.  However, MILO is not always
  9.   available for a particular system and MILO does not presently have the
  10.   ability to boot over the network.  In either case, using the SRM con¡
  11.   sole may be  the right solution.
  12.  
  13.   Unless you're interested in technical details, you may want to skip
  14.   right to Section ``''.
  15.  
  16.   1.  How Does SRM Boot an OS?
  17.  
  18.   All versions of SRM can boot from SCSI disks and the versions for
  19.   recent platforms, such as the Noname or AlphaStations can boot from
  20.   floppy disks as well.  Network booting via bootp is supported.  Note
  21.   that older SRM versions (notably the one for the Jensen) cannot boot
  22.   from floppy disks.  Also, booting from IDE disk drives is unsupported.
  23.  
  24.   Booting Linux with SRM is a two step process: first, SRM loads and
  25.   transfers control to the secondary bootstrap loader.  Then the
  26.   secondary bootstrap loader sets up the environment for Linux, reads
  27.   the kernel image from a disk filesystem and finally transfers control
  28.   to Linux.
  29.  
  30.   Currently, there are two secondary bootstrap loaders for Linux: the
  31.   raw loader that comes with the Linux kernel and aboot which is
  32.   distributed separately.  These two loaders are described in more
  33.   detail below.
  34.  
  35.   1.1.  Loading The Secondary Bootstrap Loader
  36.  
  37.   SRM knows nothing about filesystems or disk-partitions.  It simply
  38.   expects that the secondary bootstrap loader occupies a consecutive
  39.   range of physical disk sector, starting from a given offset.  The
  40.   information on the size of the secondary bootstrap loader and the
  41.   offset of its first disk sector is stored in the first 512 byte
  42.   sector.  Specifically, the long integer at offset 480 stores the size
  43.   of the secondary bootstrap loader (in 512-byte blocks) and the long at
  44.   offset 488 gives the sector number at which the secondary bootstrap
  45.   loader starts.  The first sector also stores a flag-word at offset 496
  46.   which is always 0 and a checksum at offset 504.  The checksum is
  47.   simply the sum of the first 63 long integers in the first sector.
  48.  
  49.   If the checksum in the first sector is correct, SRM goes ahead and
  50.   reads the size sectors starting from the sector given in the sector
  51.   number field and places them in virtual memory at address 0x20000000.
  52.   If the reading completes successfully, SRM performs a jump to address
  53.   0x20000000.
  54.  
  55.   2.  The Raw Loader
  56.  
  57.   The sources for this loader can be found in directory
  58.  
  59.                linux/arch/alpha/boot
  60.  
  61.   of the Linux kernel source distribution.  It loads the Linux kernel by
  62.   reading START_SIZE bytes starting at disk offset BOOT_SIZE+512 (also
  63.   in bytes).  The constants START_SIZE and BOOT_SIZE are defined in
  64.   linux/include/asm-alpha/system.h.  START_SIZE must be at least as big
  65.   as the kernel image (i.e., the size of the BOOT_SIZE must be at least
  66.   as big as the image of the raw bootstrap loader.  Both constants
  67.   should be an integer multiple of the sector size, which is 512 bytes.
  68.   The default values are currently 2MB for START_SIZE and 16KB for
  69.   BOOT_SIZE.  Note that if you want to boot from a 1.44MB floppy disk,
  70.   you have to reduce START_SIZE to 1400KB and make sure that the kernel
  71.   you want to boot is no bigger than that.
  72.  
  73.   To build a raw loader, simply type make rawboot in /usr/src/linux.
  74.   This should produce the following files in arch/alpha/boot:
  75.  
  76.      tools/lxboot:
  77.         The first sector on the disk.  It contains the offset and size
  78.         of the next file in the format described above.
  79.  
  80.      tools/bootlx:
  81.         The raw boot loader that will load the file below.
  82.  
  83.      vmlinux.nh:
  84.         The raw kernel image consisting of the .text, .data, and .bss
  85.         segments of the object file in /usr/src/linux/vmlinux.  The
  86.         extension .nh indicates that this file has no object-file
  87.         header.
  88.  
  89.   The concatenation of these three files should be written to the disk
  90.   from which you want to boot.  For example, to boot from a floppy,
  91.   insert an empty floppy disk in, say, /dev/fd0 and then type:
  92.  
  93.        cat tools/lxboot tools/bootlx vmlinux >/dev/fd0
  94.  
  95.   You can then shutdown the system and boot from the floppy by issueing
  96.   the command boot dva0.
  97.  
  98.   3.  The aboot Loader
  99.  
  100.   When using the SRM firmware, aboot is the preferred way of booting
  101.   Linux.  It supports:
  102.  
  103.   ╖  direct booting from various filesystems (ext2, ISO9660, and UFS,
  104.      the DEC Unix filesystem)
  105.  
  106.   ╖  booting of executable object files (both ELF and ECOFF)
  107.  
  108.   ╖  booting compressed kernels
  109.  
  110.   ╖  network booting (using bootp)
  111.  
  112.   ╖  partition tables in DEC Unix format (which is compatible with BSD
  113.      Unix partition tables)
  114.  
  115.   ╖  interactive booting and default configurations for SRM consoles
  116.      that cannot pass long option strings
  117.  
  118.   3.1.  Getting and Building aboot
  119.  
  120.   The latest sources for aboot are available in this ftp directory
  121.   <ftp://ftp.azstarnet.com/pub/linux/axp/aboot>.  The description in
  122.   this manual applies to aboot version 0.5 or newer.
  123.  
  124.   Once you downloaded and extracted the latest tar file, take a look at
  125.   the README and INSTALL files for installation hints.  In particular,
  126.   be sure to adjust the variables in Makefile and in include/config.h to
  127.   match your environment.  Normally, you won't need to change anything
  128.   when building under Linux, but it is always a good idea to double
  129.   check.  If you're satisfied with the configuration, simply type make
  130.   to build it (if you're not building under Linux, be advised that aboot
  131.   requires GNU make).
  132.  
  133.   After running make, the aboot directory should contain the following
  134.   files:
  135.  
  136.      aboot
  137.         This is the actual aboot executable (either an ECOFF or ELF
  138.         object file).
  139.  
  140.      bootlx
  141.         Same as above, but it contains only the text, data and bss
  142.         segments---that is, this file is not an object file.
  143.  
  144.      sdisklabel/writeboot
  145.         Utility to install aboot on a hard disk.
  146.  
  147.      tools/e2writeboot
  148.         Utility to install aboot on an ext2 filesystem (usually used for
  149.         floppies only).
  150.  
  151.      tools/isomarkboot
  152.         Utility to install aboot on a iso9660 filesystem (used by CD-ROM
  153.         distributors).
  154.  
  155.      tools/abootconf
  156.         Utility to configure an installed aboot.
  157.  
  158.   3.2.  Floppy Installation
  159.  
  160.   The bootloader can be installed on a floppy using the e2writeboot
  161.   command (note: this can't be done on a Jensen since its firmware does
  162.   not support booting from floppy).  This command requires that the disk
  163.   is not overly fragmented as it needs to find enough contiguous file
  164.   blocks to store the entire aboot image (currently about 90KB).  If
  165.   e2writeboot fails because of this, reformat the floppy and try again
  166.   (e.g., with fdformat(1)).  For example, the following steps install
  167.   aboot on floppy disk assuming the floppy is in drive /dev/fd0:
  168.  
  169.   fdformat /dev/fd0
  170.   mke2fs /dev/fd0
  171.   e2writeboot /dev/fd0 bootlx
  172.  
  173.   3.3.  Harddisk Installation
  174.  
  175.   Since the e2writeboot command may fail on highly fragmented disks and
  176.   since reformatting a harddisk is not without pain, it is generally
  177.   safer to install aboot on a harddisk using the swriteboot command.
  178.   swriteboot requires that the first few sectors are reserved for
  179.   booting purposes.  We suggest that the disk be partitioned such that
  180.   the first partition starts at an offset of 2048 sectors.  This leaves
  181.   1MB of space for storing aboot.  On a properly partitioned disk, it is
  182.   then possible to install aboot as follows (assuming the disk is
  183.   /dev/sda):
  184.  
  185.        swriteboot /dev/sda bootlx
  186.  
  187.   On a Jensen, you will want to leave some more space, since you need to
  188.   write a kernel to this place, too---2MB should be sufficient when
  189.   using compressed kernels.  Use swriteboot as described in Section ``''
  190.   to write bootlx together with the Linux kernel.
  191.  
  192.   3.4.  CD-ROM Installation
  193.  
  194.   To make a CD-ROM bootable by SRM, simply build aboot as described
  195.   above.  Then, make sure that the bootlx file is present on the iso9660
  196.   filesystem (e.g., copy bootlx to the directory that is the filesystem
  197.   master, then run mkisofs on that directory).  After that, all that
  198.   remains to be done is to mark the filesystem as SRM bootable.  This is
  199.   achieved with a command of the form:
  200.  
  201.        isomarkboot filesystem bootlx
  202.  
  203.   The command above assumes that filesystem is a file containing the
  204.   iso9660 filesystem and that bootlx has been copied into the root
  205.   directory of that filesystem.  That's it!
  206.  
  207.   3.5.  Building the Linux Kernel
  208.  
  209.   A bootable Linux kernel can be built with the following steps.  During
  210.   the make config, be sure to answer "yes" to the question whether you
  211.   want to boot the kernel via SRM.
  212.  
  213.   cd /usr/src/linux
  214.   make config
  215.   make dep
  216.   make boot
  217.  
  218.   The last command will build the file arch/alpha/boot/vmlinux.gz which
  219.   can then be copied to the disk from which you want to boot from.  In
  220.   our floppy disk example above, this would entail:
  221.  
  222.        mount /dev/fd0 /mnt
  223.        cp arch/alpha/boot/vmlinux.gz /mnt
  224.        umount /mnt
  225.  
  226.   3.6.  Booting Linux
  227.  
  228.   With the SRM firmware and aboot installed, Linux is generally booted
  229.   with a command of the form:
  230.  
  231.        boot devicename -fi filename -fl flags
  232.  
  233.   The filename and flags arguments are optional.  If they are not
  234.   specified, SRM uses the default values stored in environment variables
  235.   BOOT_OSFILE and BOOT_OSFLAGS.  The syntax and meaning of these two
  236.   arguments is described in more detail below.
  237.  
  238.   3.6.1.  Boot Filename
  239.  
  240.   The filename argument takes the form:
  241.  
  242.        [n/]filename
  243.  
  244.   n is a single digit in the range 1..8 that gives the partition number
  245.   from which to boot from.  filename is the path of the file you want
  246.   boot.  For example to boot from the second partition of SCSI device 6,
  247.   you would enter:
  248.  
  249.        boot dka600 -file 2/vmlinux.gz
  250.  
  251.   Or to boot from floppy drive 0, you'd enter:
  252.  
  253.        boot dva0 -file vmlinux.gz
  254.  
  255.   If a disk has no partition table , aboot pretends the disk contains
  256.   one ext2 partition starting at the first diskblock.  This allows
  257.   booting from floppy disks.
  258.  
  259.   As a special case, partition number 0 is used to request booting from
  260.   a disk that does not (yet) contain a file system.  When specifying
  261.   "partition" number 0, aboot assumes that the Linux kernel is stored
  262.   right behind the aboot image.  Such a layout can be achieved with the
  263.   swriteboot command.  For example, to setup a filesystem-less boot from
  264.   /dev/sda, one could use the command:
  265.  
  266.        swriteboot /dev/sda bootlx vmlinux.gz
  267.  
  268.   Booting a system in this way is not normally necessary.  The reason
  269.   this feature exists is to make it possible to get Linux installed on a
  270.   systems that can't boot from a floppy disk (e.g., the Jensen).
  271.  
  272.   3.6.2.  Boot Flags
  273.  
  274.   A number of bootflags can be specified.  The syntax is:
  275.  
  276.        -flags "options..."
  277.  
  278.   Where "options..." is any combination the following options (separated
  279.   by blanks).  There are many more bootoptions, depending on what
  280.   drivers your kernel has installed.  The options listed below are
  281.   therefore just examples to illustrate the general idea:
  282.  
  283.      load_ramdisk=1
  284.         Copy root file system from a (floppy) disk to the RAM disk
  285.         before starting the system.  The RAM disk will be used in lieu
  286.         of the root device.  This is useful to bootstrap Linux on a
  287.         system with only one floppy drive.
  288.  
  289.      floppy=str
  290.         Sets floppy configuration to str.
  291.  
  292.      root=dev
  293.         Select device dev as the root-file system. The device can be
  294.         specified as a major/minor hex number (e.g., 0x802 for
  295.         /dev/sda2) or one of a few canonical names (e.g., /dev/fd0,
  296.         /dev/sda2).
  297.  
  298.      single
  299.         Boot system in single user mode.
  300.  
  301.      kgdb
  302.         Enable kernel-gdb (works only if CONFIG_KGDB is enabled; a
  303.         second Alpha system needs to be connected over the serial port
  304.         in order to make this work)
  305.  
  306.   Some SRM implementations (e.g., the one for the Jensen) are
  307.   handicapped and allow only short option strings (e.g., at most 8
  308.   characters).  In such a case, aboot can be booted with the single-
  309.   character boot flag "i".  With this flag, aboot will prompt the user
  310.   to interacively enter a boot option string of up to 256 characters.
  311.   For example:
  312.  
  313.        boot dka0 -fl i
  314.        aboot> 3/vmlinux.gz root=/dev/sda3 single
  315.  
  316.   Since booting in that manner quickly becomes tedious, aboot allows to
  317.   define short-hands for frequently used commandlines.  In particular, a
  318.   single digit option (0-9) requests that aboot uses the corresponding
  319.   option string stored in file /etc/aboot.conf.  A sample aboot.conf is
  320.   shown below:
  321.  
  322.        #
  323.        # aboot default configurations
  324.        #
  325.        0:3/vmlinux.gz root=/dev/sda3
  326.        1:3/vmlinux.gz root=/dev/sda3 single
  327.        2:3/vmlinux.new.gz root=/dev/sda3
  328.        3:3/vmlinux root=/dev/sda3
  329.        8:- root=/dev/sda3            # fs-less boot of raw kernel
  330.        9:0/vmlinux.gz root=/dev/sda3 # fs-less boot of (compressed) ECOFF kernel
  331.        -
  332.  
  333.   With this configuration file, the command
  334.  
  335.        boot dka0 -fl 1
  336.  
  337.   corresponds exactly to the boot command shown above.  It is quite easy
  338.   to forget what number corresponds to what option string.  To alleviate
  339.   this problem, boot with option "h" and aboot will print the contents
  340.   of /etc/aboot.conf before issueing the prompt for the full option
  341.   string.
  342.  
  343.   Finally, whenever aboot prompts for an option string, it is possible
  344.   to enter one of the single character flags ("i", "h", or "0"-"9") to
  345.   get the same effect as if that flag had been specified in the boot
  346.   command line.  For example, you could boot with flag "i" and then type
  347.   "h" (followed by return) to remind yourself of the contents of
  348.   /etc/aboot.conf
  349.  
  350.   3.6.2.1.  Selecting the Partition of /etc/aboot.conf
  351.  
  352.   When installed on a harddisk, aboot needs to know what partition to
  353.   search for the /etc/aboot.conf file.  A newly compiled aboot will
  354.   search the second partition (e.g., /dev/sda2).  Since it would be
  355.   inconvenient to have to recompile aboot just to change the partition
  356.   number, abootconf allows to directly modify an installed aboot.
  357.   Specifically, if you want to change aboot to use the third partition
  358.   on disk /dev/sda, you'd use the command:
  359.  
  360.        abootconf /dev/sda 3
  361.  
  362.   You can verify the current setting by simply omitting the partition
  363.   number.  That is: abootconf /dev/sda will print the currently selected
  364.   partition number.  Note that aboot does have to be installed already
  365.   for this command to succeed.  Also, when installing a new aboot, the
  366.   partition number will fall back to the default (i.e., it will be
  367.   necessary to rerun abootconf).
  368.  
  369.   Since aboot version 0.5, it is also possible to select the aboot.conf
  370.   partition via the boot command line. This can be done with a command
  371.   line of the form a:b where a is the partition that holds
  372.   /etc/aboot.conf and b is a single-letter option as described above
  373.   (0-9, i, or h). For example, if you type boot -fl "3:h" dka100 the
  374.   system boots from SCSI ID 1, loads /etc/aboot.conf from the third
  375.   partition, prints its contents on the screen and waits for you to
  376.   enter the boot options.
  377.  
  378.   3.7.  Booting Over the Network
  379.  
  380.   Two prelimenary steps are necessary before Linux can be booted via a
  381.   network.  First, you need to set the SRM environment variables to
  382.   enable booting via the bootp protocol and second you need to setup
  383.   another machine as the your boot server.  Please refer to the SRM
  384.   documentation that came with your machine for information on how to
  385.   enable bootp.  Setting up the boot server is obviously dependent on
  386.   what operating system that machine is running, but typically it
  387.   involves starting the program bootpd in the background after
  388.   configuring the /etc/bootptab file.  The bootptab file has one entry
  389.   describing each client that is allowed to boot from the server.  For
  390.   example, if you want to boot the machine myhost.cs.arizona.edu, then
  391.   an entry of the following form would be needed:
  392.  
  393.        myhost.cs.arizona.edu:\
  394.                :hd=/remote/:bf=vmlinux.bootp:\
  395.                :ht=ethernet:ha=08012B1C51F8:hn:vm=rfc1048:\
  396.                :ip=192.12.69.254:bs=auto:
  397.  
  398.   This entry assumes that the machine's Ethernet address is 08012B1C51F8
  399.   and that its IP address is 192.12.69.254.  The Ethernet address can be
  400.   found with the show device command of the SRM console or, if Linux is
  401.   running, with the ifconfig command.  The entry also defines that if
  402.   the client does not specify otherwise, the file that will be booted is
  403.   vmlinux.bootp in directory /remote.  For more information on
  404.   configuring bootpd, please refer to its man page.
  405.  
  406.   Next, build aboot with with the command make netboot.  Make sure the
  407.   kernel that you want to boot has been built already.  By default, the
  408.   aboot Makefile uses the kernel in
  409.   /usr/src/linux/arch/alpha/boot/vmlinux.gz (edit the Makefile if you
  410.   want to use a different path).  The result of make netboot is a file
  411.   called vmlinux.bootp which contains aboot and the Linux kernel, ready
  412.   for network booting.
  413.  
  414.   Finally, copy vmlinux.bootp to the bootsever's directory.  In the
  415.   example above, you'd copy it into /remote/vmlinux.bootp.  Next, power
  416.   up the client machine and boot it, specifying the Ethernet adapter as
  417.   the boot device.  Typically, SRM calls the first Ethernet adapter
  418.   ewa0, so to boot from that device, you'd use the command:
  419.  
  420.        boot ewa0
  421.  
  422.   The -fi and -fl options can be used as usual.  In particular, you can
  423.   ask aboot to prompt for Linux kernel arguments by specifying the
  424.   option -fl i.
  425.  
  426.   4.  Sharing a Disk With DEC Unix
  427.  
  428.   Unfortunately, DEC Unix doesn't know anything about Linux, so sharing
  429.   a single disk between the two OSes is not entirely trivial.  However,
  430.   it is not a difficult task if you heed the tips in this section.  The
  431.   section assumes you are using aboot version 0.5 or newer.
  432.  
  433.   4.1.  Partitioning the disk
  434.  
  435.   First and foremost: never use any of the Linux partitioning programs
  436.   (minlabel or fdisk) on a disk that is also used by DEC Unix.  The
  437.   Linux minlabel program uses the same partition table format as DEC
  438.   Unix disklabel, but there are some incompatibilities in the data that
  439.   minlabel fills in, so DEC Unix will simply refuse to accept a
  440.   partition table generated by minlabel.  To setup a Linux ext2
  441.   partition under DEC Unix, you'll have to change the disktab entry for
  442.   your disk.  For the purpose of this discussion, let's assume that you
  443.   have an rz26 disk (a common 1GB drive) on which you want to install
  444.   Linux.  The disktab entry under DEC Unix v3.2 looks like this (see
  445.   file /etc/disktab):
  446.  
  447.        rz26|RZ26|DEC RZ26 Winchester:\
  448.                :ty=winchester:dt=SCSI:ns#57:nt#14:nc#2570:\
  449.                :oa#0:pa#131072:ba#8192:fa#1024:\
  450.                :ob#131072:pb#262144:bb#8192:fb#1024:\
  451.                :oc#0:pc#2050860:bc#8192:fc#1024:\
  452.                :od#393216:pd#552548:bd#8192:fd#1024:\
  453.                :oe#945764:pe#552548:be#8192:fe#1024:\
  454.                :of#1498312:pf#552548:bf#8192:ff#1024:\
  455.                :og#393216:pg#819200:bg#8192:fg#1024:\
  456.                :oh#1212416:ph#838444:bh#8192:fh#1024:
  457.  
  458.   The interesting fields here are o?, and p?, where ? is a letter in the
  459.   range a-h (first through 8-th partition).  The o value gives the
  460.   starting offset of the partition (in sectors) and the p value gives
  461.   the size of the partition (also in sectors).  See disktab(4) for more
  462.   info.  Note that DEC Unix likes to define overlapping partitions.  For
  463.   the entry above, the partition layout looks like this (you can verify
  464.   this by adding up the various o and p values):
  465.  
  466.          a     b         d           e           f
  467.        |---|-------|-----------|-----------|-----------|
  468.  
  469.                                c
  470.        |-----------------------------------------------|
  471.  
  472.                             g                 h
  473.                    |-----------------|-----------------|
  474.  
  475.   DEC Unix insists that partition a starts at offset 0 and that
  476.   partition c spans the entire disk.  Other than that, you can setup the
  477.   partition table any way you like.
  478.  
  479.   Let's suppose you have DEC Unix using partition g and want to install
  480.   Linux on partition h with partition b being a (largish) swap
  481.   partition.  To get this layout without destroying the existing DEC
  482.   Unix partition, you need to set the partition types explicitly.  You
  483.   can do this by adding a t field for each partition.  In our case, we
  484.   add the following line to the above disktab entry.
  485.  
  486.                :ta=unused:tb=swap:tg=4.2BSD:th=resrvd8:
  487.  
  488.   Now why do we mark partition h as "reservd8" instead of "ext2"?  Well,
  489.   DEC Unix doesn't know about Linux.  It so happens that partition type
  490.   "ext2" corresponds to a numeric value of 8, and DEC Unix uses the
  491.   string "reservd8" for that value.  Thus, in DEC Unix speak, "reservd8"
  492.   means "ext2".  OK, this was the hard part.  Now we just need to
  493.   install the updated disktab entry on the disk.  Let's assume the disk
  494.   has SCSI id 5.  In this case, we'd do:
  495.  
  496.        disklabel -rw /dev/rrz5c rz26
  497.  
  498.   You can verify that everything is all right by reading back the
  499.   disklabel with disklabel -r /dev/rrz5c.  At this point, you may want
  500.   to reboot DEC Unix and make sure the existing DEC Unix partition is
  501.   still alive and well.  If that is the case, you can shut down the
  502.   machine and start with the Linux installation.  Be sure to skip the
  503.   disk partitioning step during the install.  Since we already installed
  504.   a good partition table, you should be able to proceed and select the
  505.   8th partition as the Linux root partition and the 2nd partition as the
  506.   swap partition.  If the disk is, say, the second SCSI disk in the
  507.   machine, then the device name for these partitions would be /dev/sdb8
  508.   and /dev/sdb2, respectively (note that Linux uses letters to name the
  509.   drives and numbers to name the partitions, which is exactly reversed
  510.   from what DEC Unix does; the Linux scheme makes more sense, of course
  511.   ;-).
  512.  
  513.   4.2.  Installing aboot
  514.  
  515.   First big caveat: with the SRM firmware, you can boot one and only one
  516.   operating system per disk.  For this reason, it is generally best to
  517.   have at least two SCSI disks in a machine that you want to dualboot
  518.   between Linux and DEC Unix.  Of course, you could also boot Linux from
  519.   a floppy if speed doesn't matter or over the network, if you have a
  520.   bootp-capable server.  But in this section we assume you want to boot
  521.   Linux from a disk that contains one or more DEC Unix partitions.
  522.  
  523.   Second big caveat: installing aboot on a disk shared with DEC Unix
  524.   renders the first and third partition unusable (since those must have
  525.   a starting offset of 0).  For this reason, we recommend that you
  526.   change the size of partition a to something that is just big enough to
  527.   hold aboot (1MB should be plenty).
  528.  
  529.   Once these two caveats are taken care of, installing aboot is almost
  530.   as easy as usual: since partition a and c will overlap with aboot, we
  531.   need to tell swriteboot that this is indeed OK.  We can do this under
  532.   Linux with a command line of the following form (again, assuming we're
  533.   trying to install aboot on the second SCSI disk):
  534.  
  535.        swriteboot -f1 -f3 /dev/sdb bootlx
  536.  
  537.   The -f1 means that we want to force writing bootlx even though it
  538.   overlaps with partition 1.  The corresponding applies for partition 3.
  539.  
  540.   This is it.  You should now be able to shutdown the system and boot
  541.   Linux from the harddisk.  In our example, the SRM command line to do
  542.   this would be:
  543.  
  544.        boot dka5 -fi 8/vmlinux.gz -fl root=/dev/sdb8
  545.  
  546.