* Re: BOOT-U-I/O ERROR and "Set" [not found] <1ce5920a.34cf70ce@aol.com> @ 1998-01-30 5:00 ` Jerome Fine 1998-01-30 5:00 ` Tim Shoppa 0 siblings, 1 reply; 3+ messages in thread From: Jerome Fine @ 1998-01-30 5:00 UTC (permalink / raw) To: Tigger LAS >Tigger LAS wrote: >Actually, I don't have ANY problem; I was pointing out a possible >suggestion as to why SOMEONE ELSE might be getting a BOOT-U-I/O ERROR >on their RT11 system when booting from an RX50. >The example that I provided: >SET DU0: UNIT 2 PORT 0 >SET DU1: UNIT 3 PORT 0 >SET DU2: UNIT 0 PORT 0 >SET DU3: UNIT 1 PORT 0 >. . .is a perfectly valid configuration; in fact, it's how my system >is configured right now, with two RD51's and an RX50. >This wasn't the issue I was trying to bring up. . . . >Once these "SET" commands are issued, RT11 (I'm assuming) will use these >values every time it boots. . . (But this isn't the issue, either.) Jerome Fine replies: I have asked Tigger LAS to allow me to post a reply to his understanding of the RT-11 mapping within an RT-11 MSCP device driver. I asked that he respond by Friday if he felt that I should not post my reply so that other interested parties might also understand the situation a bit better. I am assuming that the physical units for the above set of drives are: First RD51 - UNIT 0 Second RD51 - UNIT 1 First RX50 - UNIT 2 Second RX50 - UNIT 3 since this is how an RQDX1,2,3 would autoconfigure the physical 4 units when the controller is first initialized. The above configuration is definitely legal and bootable via DUP AFTER the system has first been booted (let us say on some other device such as an RL02 or a RX02). I just did basically what you have on the example you used by starting with a normal set up and copying it to the VM: at which point I gave the commands (I only used an RX50): "SET DU0: PORT=0,UNIT=1,PART=0" "SET DU1: PORT=0,UNIT=0,PART=0" I had started with a floppy: an RX50 that was normal which I copied to VM: which I then booted and issued the above "SETS". Then I created two more floppies (RX50s) which were identical to the first floppy with the normal definitions of DUX.SYS and copied the new DUX.SYS (with the reversed SETS) over the normal DUX.SYS (with the normal SETS). Thus, the two floppies in PHYSICAL DU0: and DU1: (now logical DU1: and DU0:, respectively) had exactly two words different which was due to the switched mapping. Naturally, the DUX.SYS on VM0: also had the reversed mapping. Now, I then tried to: "BOOT DU0:" and naturally PHYSICAL DU1: was booted. Then I tried the other floppy by: "BOOT DU1:" and naturally PHYSICAL DU0: was booted. Then I booted the VM0: and started again. I tried to: "BOOT/FOREIGN DU1:" and the system crashed with a "?-U-Boot I/O Error" message and went into ODT. Then I tried the DEC boot ROMs and said to: "B DU0" (I was using a KDJ11-BB) and again the system crashed with the same error message. The above tests were done using V5.4G of RT-11. However, if the tests are repeated using V5.6, the results are somewhat different. Now all modes of booting function correctly. However, the big winner is using the DEC BOOT ROMs which are now able to function in an interesting manner. If BOTH DU0: and DU1: are on-line, then specifying "B DU0" results in the boot block on physical unit "0" being read followed thereafter by physical unit "1" being used for the rest of the booting. On the other hand, if "B DU1" is requested, then the boot block on physical unit "1" is read followed by physical unit "0" being used for the rest of the booting. I didn't try to boot using the DEC BOOT ROMs with only one floppy on-line as I strongly suspect the system would have just crashed. Now, I am not sure what floppies are mounted when Tim boots the system, nor which version of RT-11 was being used. So it would be interesting to find out what software was where on which drive. In addition, were there any other devices that were used first. Now, I realize I have tried to specify everything in the utmost detail so that there would not be a misunderstanding. If I left anything out and you don't understand something, please feel free to e-mail me for clarification either via a post or in private. 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. As far as I know, all of the standard device drivers distributed by DEC for RT-11 in the past have NOT had this additional feature for V5.4G and prior thereto. V5.6 of RT-11 does have this feature for booting. I have not bothered to test V5.5 and it may or not. RT-11 BOOT ROMs are able to accommodate this difference IF BOTH the PHYSICAL device and the final LOGICAL device (whatever it may be as a physical device) are on-line and the BOOT BLOCK of the PHYSICAL device has the same mapping as the final LOGICAL DEVICE AND the boot block has the extra mapping to allow this situation to occur. As far as I know, V5.4G and prior do not. At least V5.6 versions of the MSCP device drivers do. It is also possible to boot all 64 partitions of an MSCP hard disk drive as opposed to the 8 partitions allowed by the standard MSCP device driver produced by DEC for V5.6 of RT-11. I really don't expect anyone to ask since no one else has responded to such offers in the past with regard to other topics of interest. Is there no one out there on the internet (or otherwise) who is still using RT-11 in anything but a now standard application which will never change? Surely there must be some hobby users (a few contacts have indicated as such) who are still interested in sharing RT-11 bug fixes and other aspects of RT-11. >Now, if I create a bootable floppy, and then power down the system, >and then physically REMOVE the 2nd hard drive, what's going to happen >when I try to boot the floppy? >The hardware bootstrap will work just fine. But when RT11 tries to start, >it's going to EXPECT to find the RX50 associated with DU2:, but it is now >going to be at DU1:. Is RT11 smart enough to realize this, and adjust >accordingly? >Again, I really don't need an ANSWER to any of this; >my system works fine. I'm just posing a hypothetical situation, >based on my limited knowledge of RT11. I suppose, though, that >the best way to find out would be to pull the system out of moth-balls, >and try it myself. . . . That would be the best way to attack the question. I would like nothing better than to be proved completely wrong. If that were the case, I would have to correct some bugs in the device drivers which I would have produced as a result of not understanding the situation and I would be very grateful if anyone out there can prove me to be incorrect in anything I have written. In a direct response to Tim's question, I would first want to know which version of RT-11 is being used. For V5.4G and prior, I doubt that the DEC BOOT ROMs will be able to boot at all. For V5.6, I would speculate that "B DU0" would result in the second RX50 being booted, but if I am incorrect, then having been advised of the result, I would probably be able to re-think and understand why the answer I gave as speculation was wrong. "B DU1" would probably crash and "B DU2" would probably boot the hard drive. Almost certainly, "B DU3" would crash since a physical unit 3 no longer exists. I would appreciate knowing the answers when V5.6 is used. Does anyone have an hour or two, a couple of hard drives and an RX50? Sincerely yours, Jerome Fine RT-11/TSX-PLUS User/Addict Year 2000 Solutions for Legacy RT-11 Applications (Sources not always required) ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BOOT-U-I/O ERROR and "Set" 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 0 siblings, 1 reply; 3+ messages in thread From: Tim Shoppa @ 1998-01-30 5:00 UTC (permalink / raw) In article <34D22981.150DD1C4@idirect.com>, Jerome Fine <jhfine@idirect.com> wrote: >>Tigger LAS wrote: >>Actually, I don't have ANY problem; I was pointing out a possible >>suggestion as to why SOMEONE ELSE might be getting a BOOT-U-I/O ERROR >>on their RT11 system when booting from an RX50. >>The example that I provided: >>SET DU0: UNIT 2 PORT 0 >>SET DU1: UNIT 3 PORT 0 >>SET DU2: UNIT 0 PORT 0 >>SET DU3: UNIT 1 PORT 0 >>. . .is a perfectly valid configuration; in fact, it's how my system >>is configured right now, with two RD51's and an RX50. >>This wasn't the issue I was trying to bring up. . . . >>Once these "SET" commands are issued, RT11 (I'm assuming) will use these >>values every time it boots. . . (But this isn't the issue, either.) > >The above configuration is definitely legal and bootable via DUP AFTER >the system has first been booted (let us say on some other device such >as an RL02 or a RX02). True. >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. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BOOT-U-I/O ERROR and "Set" 1998-01-30 5:00 ` Tim Shoppa @ 1998-01-31 5:00 ` Jerome Fine 0 siblings, 0 replies; 3+ messages in thread From: Jerome Fine @ 1998-01-31 5:00 UTC (permalink / raw) To: Tim Shoppa >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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-01-31 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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 is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox