Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Jerome Fine <jhfine@idirect.com>
To: Tim Shoppa <shoppa@alph02.triumf.ca>
Subject: Re: BOOT-U-I/O ERROR and "Set"
Date: 1998/01/31	[thread overview]
Message-ID: <34D3F71F.F917858C@idirect.com> (raw)
In-Reply-To: 6atbsl$f5c$1@nntp.ucs.ubc.ca


>Tim Shoppa wrote:
>Jerome Fine wrote:
>>In summary, setting up a device with a MSCP mapping table that has
>>entries where the logical and the physical units are different (but
>>at least the partition numbers are zero) will allow DUP to boot
>>the device, but DEC BOOT ROMs (at least from my understanding and
>>very limited testing to verify that understanding) can't boot an
>>MSCP device when the PHYSICAL  and  the  LOGICAL device mapping
>>is NOT  IDENTICAL  UNLESS the BOOT block has been set up in a
>>manner which is able to accommodate this situation being different.

>This agrees with the 5.6 release notes (page 3-3):

>   For an MSCP device to be hard-bootable, the MSCP unit number for
>   that device must be the same as the RT-11 unit number.  Further,
>   only partition 0 is hardware bootable.  All partitions are software
>   bootable.
>
> As you and Tim have both pointed out, by cleverly modifying the boot
> block or by having bootable media present in multiple drives you can
> get around this restriction.  Understandably, the "restrictions"
> in the release notes don't tell you that a particular method won't work,
> it's just warning you that it's not supported.
>
> I, though, am opposed to such "work-arounds" because they don't
> make anything work more clearly.  For example, suppose I've mapped
> the hard drives (MSCP units 0 and 1) to DU units 2 and 3, then I map
> the floppy drives (MSCP units 2 and 3) to DU units 0 and 1.  Then
> I SYSGEN a new system on the hard drives and boot it.  The new "virgin"
> DU driver will have default mappings.  If I don't carefully take this
> into account, and I try to INIT a floppy by saying INIT DU0: (which
> usually worked on my floppy because of my custom mapping), I'll
> have INITed my hard drive.  Oops!
>
> In summary: DU -> MSCP mapping is a powerful feature of RT-11.
> It's plenty powerful enough to shoot yourself in the foot with it.
> (And I think most of us have, at some point!)  If I want the same
> name for my floppy drives on all systems, I use logical assignments.
>
> Tim.

Jerome Fine replies:

In principle, I also agree totally with what Tim Shoppa has just written.
I also disagree, in principle, with having to use two different physical
units to hard-boot a system from the power up condition.  Not only
is the potential for confusion increased, but there is also a much greater
risk of hardware problems causing unexpected and catastrophic
difficulties which are not worth the effort to get around having the
same name for floppy drives on all systems or any other reason that
I have ever encountered when using RT-11 in such a manner.  As
Tim Shoppa also pointed out, the use of logical assignments for
physical units is a far better method of accomplishing any such
objective.

Eventually however, it would be worthwhile to have non-DEC
BOOT ROM code which could be used to boot any desired
MSCP physical device for any combination of:
(Logical unit, Port, Physical Unit, Partition) that the user had
assigned to an RT-11 partition.  The probable reason why
this had never been done previously was that DEC never
had this "problem" with any other operating system since the
concept of a "partition" is unique to RT-11 and seems to have
been the method chosen by both MS-DOS and RT-11 at about
the same time.  Indeed, if my memory serves me correctly,
V3.2 of MS-DOS had the same 32 MByte partition limitation
as RT-11 still retains as its basic working device size due to
reasons which have to do, I suspect, with the CSWs (Channel
Status Words).  Remember that the "partition" was first
introduced in RT-11 in V5.3 in 1985.  At some point in the
numerous V5.4x series, DEC finally allowed multi-port
controllers for MSCP which also then allowed a non-zero
port to be booted.  Up until at least V5.4G of RT-11, the
MSCP device driver in the RT-11 did not ever allow any
non-zero partition to be booted at all.  While I am not
familiar with the code for the MSCP device driver for
every version of RT-11, I have seen the code in the MSCP
DU device driver for V5.4G which does allow a mapping
table to be used to allow multiple controllers and host
adapters for one MSCP device driver.  However, V5.4G
still did not allow a non-zero partition to be booted since
the boot code in the boot block was missing the one
instruction which allows a non-zero partition to be booted
(along with the few supporting instructions in the SET code).
I have helped a friend to make the few changes necessary
for V5.4G and now that system can boot non-zero partitions.
Naturally, this simple modification is not supported by DEC.
Note however, that V5.6 has this feature as a standard
part of the MSCP device driver, although the feature is
limited in the DEC version to the first 8 partitions, even
if extended device drivers are SYSGENed and the MSCP
device driver has been given the DEC limit of 64 active
partitions.  As a consequence, if a user has RD54s, it
is now possible to boot all of the first 8 defined logical
partitions via a software boot, although the DEC BOOT
ROMs are still limited to booting the devices which have
the logical unit and the physical unit defined to be identical
and a zero partition (subject to the above considerations
which I have noted that I disagree with in principle).

However, there is one additional aspect which DEC BOOT
ROMs are able to do in a standard way.  As many of you
who are reading this post are aware, the standard MSCP
CSR is 172150.  If an RQDX1,2,3 is used, then the
standard choice for booting is first an active and available
floppy (RX50 for sure and probably RX33), then a
hard drive (unit zero if present with a correct boot block
following which I am uncertain - if I want a particular
hard drive other than unit zero booted, I always CTRL/C
and specify the "B DUn" in any case).  BUT, if there are
no active drives available on the RQDX1,2,3, then the
DEC BOOT ROMs will automatically select the next
standard CSR address to be booted.  I found this out
by accident with a friends system which had an RD51
on the RQDX1 which was used solely to boot an ESDI
drive on a SIGMA controller (CSR=160334).  One day
the RD51 died a little bit and the system automatically
booted the EDSI 600 MByte hard drive, UNIT=0,
PARTITION=0 called HI0: (it was an Hitachi DK515-78
hard drive and the MSCP device driver was called HIX.SYS).
Following that discovery, my friend just keeps the RD51
turned off and happily boots the EDSI hard drive each
time the system is powered up, following which, the
actual partition is booted that needs to be used.  There
are three drives used normally, units 0, 1, and 2.  Usually
units 1 and 2 serve as the backup and are turned off, or at
the very least WRITE PROTECTED.  Normally, units 1
and 2 are an exact copy of unit 0 when any given backup
is complete.  It takes about an hour to go through all 20
partitions on unit 0 and compare them with the corresponding
partitions on either of the other two units.  But the big advantage,
as opposed to tape, is that only the modifications to the
backup units need to be made when there are any changes.
In addition, this situation gave rise to the need to be able to
software boot the other 56 available partitions on the one
ESDI controller.  As a consequence, a modification was
added to my friends V5.6 boot block - the additional 56
entries to the mapping tables in the boot block so that all
64 partitions can now be booted - sometimes a fourth
scratch drives is added and the 4 partitions on unit 3 are
then used for temporary testing.  Because keeping track
of 64 partitions that were in a random order would likely
prove impossible, the partitions are numbered as:
UNIT 0: H00: -> H23:
UNIT 1: H30: -> H53:
UNIT 2: H60: -> H83:
     and ASSIGN  H54:  H80:
           ASSIGN  H55:  H81:
           ASSIGN  H56:  H82:
           ASSIGN  H57:  H83:
UNIT 3: H90: -> H93:
    and ASSIGN  H24:  H90:
           ASSIGN  H25:  H91:
           ASSIGN  H26:  H92:
           ASSIGN  H27:  H93:
The result of this use of the numbering of the logical
partitions is that units 1, 2 and 3 cannot be hardware booted
at present.  Since units 1 and 2 are used a backups, this is
not considered a problem at present, especially since the EDSI
controller is at a non-standard CSR and a hardware boot with
DEC BOOT ROMs can't be done in any case.  Eventually, that
non-standard unsupported new device (maybe MP from MSCP
or Multi Port - anyone have any other suggestions?) could have
code put on the user portion of the DEC BOOT ROMs that
can handle non-zero partitions.

Sincerely yours,

Jerome Fine





      reply	other threads:[~1998-01-31  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1ce5920a.34cf70ce@aol.com>
1998-01-30  5:00 ` BOOT-U-I/O ERROR and "Set" Jerome Fine
1998-01-30  5:00   ` Tim Shoppa
1998-01-31  5:00     ` Jerome Fine [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox