Using COM3 and COM4 in OpenVMS

Usually an Alpha system has one or two serial ports. The first port is often used as a serial console. AlphaVM currently supports only serial console. Thus, there is only one serial port left for other purposes. Often it is desired to have more serial lines. Therefore, since the 1.6 release our implementation supports additional COM3 and COM4. The guest OS (OpenVMS or Tru64) has to be configured to use these additional ports. The serial drivers have to be loaded.

The additional serial lines are serial ISA devices, the same as COM1 and COM2. Our implementation registers the devices in the ISA configuration table. When a serial driver is loaded, it uses the information from the ISA configuration table.

Below are the instructions.

$ ana /sys
clue config


FFFFFFFF.8145BFD8 0 FFFFFFFF.83110000 C 0 MOUS
FFFFFFFF.8145C050 1 FFFFFFFF.83110000 1 1 KBD
FFFFFFFF.8145C0C8 2 FFFFFFFF.83110000 4 SRA: 2 Console Serial Line Driver
FFFFFFFF.8145C140 3 FFFFFFFF.83110000 3 TTA: 3 Serial Port
FFFFFFFF.8145C1B8 4 FFFFFFFF.83110000 6 DVA: 4 Floppy
FFFFFFFF.8145C230 5 FFFFFFFF.83110000 7 LRA: 5 Line Printer (parallel port)
FFFFFFFF.8145C2A8 6 FFFFFFFF.83110000 5 6 00000000.334D4F43 (COM3)
FFFFFFFF.8145C320 7 FFFFFFFF.83110000 E 7 00000000.344D4F43 (COM4)

Generic:
$ MCR SYSMAN
SYSMAN> IO CONNECT TTcn: /DRIVER=SYS$YSDRIVER /ADAPTER=<TR> /NODE=<Slot/Node> –
/VECTOR=<IRQ*4>/CSR=%x<ADDR>

In clue config
XBUS TR is 5
Node/Slot is 6 for COM3 and 7 for COM4.
Irq=5 for COM3 and 14 for COM4
CSR of XBUS is FFFFFFFF.83110000

$ MCR SYSMAN
IO CONNECT TTB0: /DRIVER=SYS$YSDRIVER /ADAPTER=5 /NODE=6 /VECTOR=20 /CSR=%xFFFFFFFF83110000
IO CONNECT TTC0: /DRIVER=SYS$YSDRIVER /ADAPTER=5 /NODE=7 /VECTOR=56 /CSR=%xFFFFFFFF83110000

or

mc sysman IO CONNECT TTB0: /DRIVER=SYS$YSDRIVER /ADAPTER=5 /NODE=6 –

/VECTOR=20 /CSR=%xFFFFFFFF83110000

mc sysman IO CONNECT TTC0: /DRIVER=SYS$YSDRIVER /ADAPTER=5 /NODE=7 –

/VECTOR=56 /CSR=%xFFFFFFFF83110000

To make it permanent

edit type DKA0:[SYS0.SYSCOMMON.SYSMGR]SYCONFIG.COM
$ sysman := $’f$edit(“sys$system:sysman.exe”,”upcase”)’
$ sysman IO CONNECT TTB0: /DRIVER=SYS$YSDRIVER /ADAPTER=5 /NODE=6 –
/VECTOR=20 /CSR=%xFFFFFFFF83110000
$ sysman IO CONNECT TTC0: /DRIVER=SYS$YSDRIVER /ADAPTER=5 /NODE=7 –
/VECTOR=56 /CSR=%xFFFFFFFF83110000

Leave a Reply