User Tools

Site Tools


qbone_cheat

QBone Dual on a PDP-11/23 with demo and .cmd scripts

Running the QBone Dual QBUS emulator in an H9273 (BA11-N) backplane beside an M8186 (KDF11-A) CPU: enabling devices, editing the startup scripts, booting RT-11. Verified on QUniBone demo build Dec 9 2024 and RT-11 V5.5.

QBone at 10.1.1.213, login root. Disk images and .cmd files live in ~/10.03_app_demo/5_applications/rt11.rl02/. Console is the emulated DL11 on UART2. The bus is 18-bit: 248 KB of memory, top word 757776.

Quick Reference

Task Command
Start the RT-11 configuration ./rt11_games.sh
List devices and addresses lsd
Enable / disable a device en DL11 / dis DL11
Show a device's parameters sd DL11 then p
Set a parameter p baudrate 9600
Install all memory, 18-bit m i 757776
Boot RT-11 from the ODT prompt 10000G
Copy an image to the QBone scp x.rl02 root@10.1.1.213:10.03_app_demo/5_applications/rt11.rl02/
Leave demo q

How the pieces fit

The QBone runs Linux. A program called demo makes it answer on the QBUS as memory, a console serial line (DL11), a line clock (KW11) and disk controllers. Disk drives are image files on the QBone. A launcher shell script cds into the image folder and starts demo with a .cmd file — a list of demo commands. Edit the .cmd file to change what the PDP-11 sees.

  • ~/ — launcher scripts (rt11v5.5sj_dl1.sh and friends), autostart.sh
  • ~/10.03_app_demo/4_deploy/demo — the demo program
  • ~/10.03_app_demo/5_applications/rt11.rl02/ — images and .cmd files

Front panel

POWER and HALT up. RESTART rests down — flick it up momentarily to restart, and it springs back.

The gotcha that cost an evening

# 1. A RESTART switch stuck up holds the whole bus in reset.

RESTART drops the power-good signals (BDCOK/BPOK). Gummed up and stuck in the restart position, it kept them low permanently. The symptoms looked like three different faults:

  • HALT does nothing, no @ on the console — the CPU sits in reset
  • m i hangs at size physical memory — the QBone refuses the bus
  • the same hang with the CPU removed and demo in dc mode

The QBone itself still boots, because it only needs +5 V. Cleaned with contact cleaner, the switch now springs back on its own. If those symptoms return, look at the switch first.

Launcher scripts

The stock script, verbatim:

# start RT11 5.5 with "demo" application
cd ~/10.03_app_demo/5_applications/rt11.rl02
~/10.03_app_demo/4_deploy/demo --verbose --cmdfile rt11v5.5_dl.cmd $*

The cd matters: image file names inside the .cmd file resolve in that folder.

# Copy a launcher to point at your own .cmd file:

sed 's/rt11v5.5_dl.cmd/rt11v5.5_games.cmd/' rt11v5.5sj_dl1.sh > rt11_games.sh

# Make it executable:

chmod +x rt11_games.sh

# Copy a .cmd file before editing it:

cp rt11v5.5_dl.cmd rt11v5.5_games.cmd

# Find the drive blocks in a .cmd file:

grep -n -i rl rt11v5.5_games.cmd

demo menus

demo opens at a main menu. You want d almost every time. The device menu prompt is D»>.

Menu What it does
d Emulate devices with the real CPU — normal mode
dc Emulate devices and a CPU — real CPU card removed
m Memory emulation with DMA functions
ti Test interrupts — needs the real CPU
ts Test QBone memory as a bus slave
tl bs tm Bus tests — CPU removed only, they drive the bus
tg tp Card GPIO and panel driver tests — safe any time
i / q Info / quit

dc is the sanity test: if the emulated CPU gets a console with the real CPU pulled, the QBone is good and the fault is elsewhere.

Device commands

# List devices, enabled state and bus addresses:

lsd

# Enable a device:

en DL11

# Disable a device:

dis DL11

# Select a device and show its parameters:

sd DL11
p

# Set a parameter on the selected device:

p baudrate 9600

# Install emulated memory up to the I/O page, 18-bit:

m i 757776

Plain m i fills to the top for the configured address width. At 22-bit that is 4 MB, which the KDF11-A cannot address — give the end address.

Parameters are read-only while the device runs

# 2. Set parameters while the device is disabled.

D>>>p baudrate 2400
Error : Parameter "baudrate" is read-only

Not read-only — just enabled. Disable, set, enable:

# Change the console speed:

dis DL11
p baudrate 2400
en DL11

Same order in a .cmd file: sd, p, then en.

Devices on this QBone

Name Emulates Address Vector RT-11 name
DL11 console serial line 177560 60/64 TT:
KW11 KW11-L line clock 177546 100 —
rl rl0-rl3 RLV12 + RL02 drives 174400 160 DL0:-DL3:
rk rk0-rk7 RKV11 + RK05 drives 177400 220 RK0:-RK7:
uda uda0-uda7 UDA50 + RA81 drives 172150 software DU0:-DU7:
rx rx0-rx1 RXV11 + RX01 177170 264 DX0:-DX1:
ry ry0-ry1 RXV21 + RX02 177170 264 DY0:-DY1:
rf rs0 RF11 + RS11 177460 204 —

rx and ry share an address — enable one, never both. Same rule against real cards: a real DLV11 at 177560 means dis DL11 first. Memory is not a device; use m i.

No CPU device shows in lsd from the d menu. CPU emulation lives in dc.

The .cmd file

One demo command per line, in the order you would type them. # starts a comment. .print shows a message.

rt11v5.5_games.cmd
# console and clock first: set parameters while disabled
sd DL11
p baudrate 9600
en DL11
sd KW11
en KW11
 
en rl                        # enable RL11 controller
 
# mount RT11 v5.5 in RL02 #0
en rl0                       # enable drive #0
sd rl0                       # select
p type rl02
p image rt11v5.5.rl02
 
# games disk in RL02 #1
en rl1
sd rl1
p type rl02
p image rt11v5.5_games_crlf.rl02
 
# tu58fs games pack in RL02 #2
en rl2
sd rl2
p type rl02
p image rt11games_rl02_crlf.dsk
 
.print RL drives ready.

Parameter names other than type, image and baudrate are unconfirmed here. Check with sd NAME then p before relying on one.

Recipes

Swap the disk in a drive

# Copy the new image into the image folder:

scp new.rl02 root@10.1.1.213:10.03_app_demo/5_applications/rt11.rl02/

Then change that drive's p image line. Quit demo first if it has the old image mounted.

Add a drive

Duplicate a drive block, change rl1 to rl2 everywhere in it, point p image at the new file. Keep p type rl02.

Real time of day

Add the KW11 lines above before booting — RT-11 looks for the clock at boot. A KW11-L only interrupts once software enables it, so it is safe while the bootstrap overwrites vector 100. A front panel LTC switch is not. If p shows a frequency, set 60 while disabled.

# Check the clock from RT-11:

TIME 12:00:00

Wait, run TIME again. It must have moved.

Mount an RX02 floppy image

# Pad a short RX02 image to full size first:

truncate -s 512512 BASIC.DSK

Then en ry, en ry0, sd ry0, p image BASIC.DSK. Disable rx.

Booting RT-11

  1. Run the launcher on the QBone: ./rt11_games.sh
  2. POWER and HALT up. The console on UART2 shows @
  3. Type 10000G — the script has already loaded the bootstrap there
  4. At the RT-11 dot: SET TT SCOPE, set DATE and TIME

No bootstrap typing needed. The M8186 has no boot ROM, but the script preloads one into QBone memory.

Moving files

# Desktop to QBone:

scp file.rl02 root@10.1.1.213:10.03_app_demo/5_applications/rt11.rl02/

# QBone to desktop:

scp root@10.1.1.213:10.03_app_demo/5_applications/rt11.rl02/rt11v5.5_games.rl02 .

# Check the QBone's network address from its console:

ip -br addr

Troubleshooting

Symptom Cause Fix
No @, HALT ignored RESTART stuck up Free the switch; it must spring back down
No @, panel normal DL11 not enabled lsd, then en DL11
No @, DL11 enabled terminal on wrong UART or speed UART2, speed from sd DL11 + p
m i hangs at sizing power-good low, QBone can't get the bus RESTART down, check BDCOK/BPOK
Parameter … is read-only device is enabled dis, set, en
Drive missing in RT-11 controller or drive not enabled en rl and en rl1
RT-11 time stands still KW11 enabled after boot, or not at all Enable in the .cmd file, reboot
.VT animations smear right files have LF without CR Use the _crlf disk images
Two devices fight shared address — rx/ry or real + emulated Disable one
Program halts with PC 000002 jumped through an empty vector Set up vectors and SP before G

Rule of thumb: change the .cmd file, not the live session — anything typed at D»> is gone next boot.

Related: RT-11 commands, Q/CD backplane pinout, games disk contents.

qbone_cheat.txt · Last modified: by admin