open-simh / simh

The Open SIMH simulators package
https://opensimh.org/
Other
473 stars 89 forks source link

MicroVAX 3900 RQ device: Non-existent parameter - RRD42 #172

Closed CoherentLogic closed 1 year ago

CoherentLogic commented 1 year ago
 /home/danae/danae.ini-10> ATTACH RQ2 /home/danae/storage/vax-vms.iso
%SIM-INFO: RQ2: Unit is read only
%SIM-ERROR: RQ device: Non-existent parameter - RRD42
%SIM-ERROR: RQ2: Cannot set to drive type RRD42
sim> show version
MicroVAX 3900 simulator Open SIMH V4.1-0 Current
    Simulator Framework Capabilities:
        64b data
        64b addresses
        Threaded Ethernet Packet transports:PCAP:TAP:VDE:NAT:UDP
        Idle/Throttling support is available
        Virtual Hard Disk (VHD) support
        RAW disk and CD/DVD ROM support
        Asynchronous I/O support (Lock free asynchronous event queue)
        Asynchronous Clock support
        FrontPanel API Version 12
    Host Platform:
        Compiler: GCC 8.3.0
        Simulator Compiled as C arch: x64 (Release Build) on Feb  3 2023 at 06:58:48
        Build Tool: simh-makefile
        Memory Access: Little Endian
        Memory Pointer Size: 64 bits
        Large File (>2GB) support
        SDL Video support: SDL Version 2.0.9, PNG Version 1.6.36, zlib: 1.2.11
        PCRE RegEx (Version 8.39 2016-06-14) support for EXPECT commands
        OS clock resolution: 1ms
        Time taken by msleep(1): 1ms
        Ethernet packet info: libpcap version 1.8.1
        OS: Linux danae-host 4.19.0-23-amd64 #1 SMP Debian 4.19.269-1 (2022-12-20) x86_64 GNU/Linux
        Processor Name: Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz
        tar tool: tar (GNU tar) 1.30
        git commit id: 949359fd
        git commit time: 2023-02-02T15:34:02-0500

MicroVAX 3900 simulator Open SIMH V4.1-0 Current git commit id: 2374c3b6 Running Hardware Core Test (EHKAA)

*** PASSED - MicroVAX 3900 Hardware Core Instruction test EHKAA

- #### the simulator configuration file (or commands) which were used when the problem occurred.
<!--- The simulator configuration file, and any other relatively small files can be attached to this issue now or after it is created -->

LOAD -r /home/danae/rom/ka655x.bin ATTACH nvr /home/danae/nvram.bin

SET RQ0 RA92 SET RQ1 RA92 SET RQ2 RRD40 SET RQ3 RA92 ATTACH RQ0 /home/danae/storage/DANAE-RQ0.dsk ATTACH RQ1 /home/danae/storage/DANAE-RQ1.dsk ATTACH RQ2 /home/danae/storage/vax-vms.iso ATTACH RQ3 /home/danae/storage/DANAE-RQ3.dsk SET RL DISABLE SET TS DISABLE SET CPU 64M SET CPU IDLE ATTACH XQ ens224

SET CPU CONHALT DEP BDR 0 BOOT CPU EXIT


- #### the expected behavior and the actual behavior
<!--- Please provide the output the simulator produced when you experienced the problem -->
The expected behavior is to set device `RQ2` to type `RRD40`.

Actual behavior is:

danae@danae-host:~$ sudo /usr/local/bin/vax danae.ini

MicroVAX 3900 simulator Open SIMH V4.1-0 Current git commit id: 2374c3b6 /home/danae/danae.ini-2> ATTACH nvr /home/danae/nvram.bin %SIM-INFO: NVR: buffering file in memory /home/danae/danae.ini-8> ATTACH RQ0 /home/danae/storage/DANAE-RQ0.dsk %SIM-INFO: RQ0: '/home/danae/storage/DANAE-RQ0.dsk' Contains ODS2 File system %SIM-INFO: RQ0: Volume Name: DANAESYS Format: DECFILE11B Sectors In Volume: 2940951 /home/danae/danae.ini-10> ATTACH RQ2 /home/danae/storage/vax-vms.iso %SIM-INFO: RQ2: Unit is read only %SIM-ERROR: RQ device: Non-existent parameter - RRD42 %SIM-ERROR: RQ2: Cannot set to drive type RRD42 /home/danae/danae.ini-16> ATTACH XQ ens224 %SIM-INFO: Eth: opened OS device ens224

KA655-B V5.3, VMB 2.7 Performing normal system tests. 40..39..38..37..36..35..34.. Simulation stopped, PC: 20051B6B (SOBGTR R3,20051B60)

pkoning2 commented 1 year ago

I just tried this using a V5.4 condist ISO file (from Bitsavers) and it works just fine.
The ISO file size reported by the attach command is unexpected, that translates to 1.4 GB which of course is bigger than a CDROM. I wonder if that's the reason. But I have no idea where that message comes from; it doesn't appear in the source code for the RQ device.

CoherentLogic commented 1 year ago

The ISO filesize isn't listed in the above output. DANAE-RQ0.dsk is the system volume on which VMS is installed. vax-vms.iso is 523M:

danae@danae-host:~$ ls -l storage/vax-vms.iso
-rwxr-xr-x 1 danae danae 547375616 Feb  2 17:01 storage/vax-vms.iso
danae@danae-host:~$ ls -lh storage/vax-vms.iso
-rwxr-xr-x 1 danae danae 523M Feb  2 17:01 storage/vax-vms.iso
pkoning2 commented 1 year ago

It looks like I misread the log. But I don't see this behavior. Can you make the ISO file available?

CoherentLogic commented 1 year ago

http://216.223.229.240/~jpw/vax-vms.iso

CoherentLogic commented 1 year ago

Also of note, SimH 3.8 will use the same ISO with the same configuration. So, I installed VMS on the emulated VAX with 3.8, and I run it in OpenSimH so that I can use networking without a tun/tap device.

markpizz commented 1 year ago

That disk image was created using an InfoServer1000 simulator and it was done relatively early in the disk container with meta-data window.

The https://github.com/simh/simh repo has support for cross simulator accessing of disk containers where that concept makes sense. It makes sense to allow SCSI and most other disk containers to be attached to MSCP controllers and likewise for most disk containers to be attached on a SCSI controller.

That container might work just fine on simulators which have native SCSI devices. The Open-simh repo does not have support for mixed simulator disk container access, however to use this container attached to a MSCP disk controller, this should work:

sim> zap vax-vms.iso
sim> set rq1 cdrom
sim> attach rq1 vax-vms.iso
pkoning2 commented 1 year ago

Yes, just get rid of the metadata and things work. That is why SIMH 3.x worked -- it doesn't include the metadata stuff.

The "zap" command will strip any metadata from an existing container.

CoherentLogic commented 1 year ago

This definitely works! Thank you all very much.

Has your group considered taking donations? I would very much like to support the project with at least a little something, should you all decide to head in that direction.

SimH is wonderful.