Sinclair QL

QubIDE [Sinclair QL]

Last updated on

QubIDE [Sinclair QL]

QubIDE is an AT/IDE hard disk interface for QL systems, developed by Zeljko Nastasic and marketed by Qubbesoft (1996). On the original, the connector is passed through, so that further interfaces (memory or disk) could be attached. Version 1.53 of the ROM added the ability to use “foreign” disk cartridges such as Syquest removable media. Version 2.0 of the ROM (which also required an update of the GAL1 and GAL2 chips) added a “recycle bin” function, as well as the ability to use ATAPI IDE devices such as the Iomega ZIP drive. On the Sinclair QL Homepage you can download the various ROM versions and support programs.

Unfortunately my replica of the QubIDE has no pass-through interface connector, so it cannot be used together with, for example, a disk interface. To use it with another interface all the same, a so-called “backplane” could be used. One is available, for example, from Tetroid, the developer of the Tetroid Disk Interface (see conclusion). I do not know whether it is still available. The ROM version used is 1.56. On SellMyRetro there was an update to ROM 2.02. It no longer seems to be available there, but you can burn the ROM yourself – the file (qub202rom.zip) can be found on Dilwyn’s page linked above.

As no original documentation is available, there were already attempts some years ago to rebuild the QubIDE, but the project was abandoned. In 2013 a hobbyist from Spain, José Leandro, set about developing a board on the basis of the documents now available. Here, too, the question arose of how data could get onto the storage media. After that it was quiet for a long time, until early 2015 news suddenly came from Spain that the first batch had been produced and that PC software for data transfer was also available. With this software you can access a medium formatted with the QubIDE directly!

The original manual and the software for using the QubIDE interface can be found here – this is also José Leandro’s page for the clone that I describe here: Sinclair QL QubIDE Interface

For my example I use a “normal” QL – the medium in the QubIDE is a 128 MB DiskOnModule from pqi (from Pollin Electronic for €2) – my QL has an MGG ROM with Toolkit II (hence no jumpers on the interface, because this combination belongs to the 64K group).

Once again, here is my rendering of the manual, kept as close to the original as I can.
Further down there are also instructions for using the “Image Editor” software developed by Habi.
Editing Sinclair QL ZIP files

Step 1: QubIDE jumper settings
First you need to work out in which memory location the QubIDE EPROM will sit. This location depends on your Sinclair QL ROM and the other interfaces installed.

– Sinclair QL 48K ROM: JM, JS, Minerva, …
Recommended option: 0C000h – jumpers J3, J4 and J5

QubIDE - Jumper1
QubIDE – Jumper1

– Sinclair QL 64K ROM: JS+TK2, Minerva+TK2, MGG+TK2, …
Recommended option: FC000h – no jumpers

QubIDE - Jumper2
QubIDE – Jumper2

Important: Jumpers J6 and J7 connect +9 V to +5 V and are intended only for use with a Qplane. On a standard QL they must stay open, otherwise the QubIDE will be destroyed. If you use a Gold Card (Yellow Board), the manual also says that J5 should be removed.

Step 2: Connecting the interface to the Sinclair QL
– Remove the cover on the left-hand side
– Plug in the interface
The QubIDE’s connector sometimes sits slightly lower than the QL’s port, which makes it hard to insert. Push the interface in until you feel it line up with the QL’s port, then press down with some force – it will then slide in about another 0.5 cm.

QubIDE - connected
QubIDE – connected

Step 3: Connecting the IDE device (HD, CD-IDE, SD-IDE adapter, DOM)
The QubIDE has been tested with several adapters: an SD-IDE adapter and a CF-IDE adapter. All of them work, but the CF adapter may have a minor problem with the drive geometry. In some cases the adapter has to be modified so that it receives power from the IDE connector on pin 20.

It has also been tested with a DOM (DiskOnModule):

QubIDE - DOM module
QubIDE – DOM module

I use DOM modules because they are very cheap – the drawback is that you need an adapter to connect them to a computer. CF adapters might be somewhat more practical here.

Step 4: Switching on the Sinclair
When you start your Sinclair for the first time, the following screen appears (from the line “QubIDE/REBEL …” onwards) – the earlier messages come from the QL-SD 🙂

QubIDE - boot screen
QubIDE – boot screen

– QubIDE ROM (1.56) is displayed
– An IDE device was found, in this example a 128 MB DiskOnModule.
– The IDE device is not formatted.

Step 5: Formatting the IDE device
Be sure to read the original explanation before you format the IDE device. Depending on the memory, the capacity of the IDE device and the size of the primary partition, you will need to choose different options.

You start formatting in SuperBASIC with the command FORMAT WIN1_, optionally followed by a name (up to 10 characters; if it contains spaces or punctuation, put it in quotation marks). The QubIDE then responds with “Formatting IDE win1_” and asks:

– Number of cylinders: “How many cylinders ? (0=all)” – with 0 the entire memory is used. If you enter a number, formatting starts immediately without further confirmation. ENTER without input cancels (“Format Failed”).
– Block size: “Block size ?” – according to the manual 4 or 8. With 4 a partition is limited to 128 MB, with 8 to 256 MB.

QubIDE - formatting
QubIDE – formatting
QubIDE - formatting 2
QubIDE – formatting 2
QubIDE - formatting 3
QubIDE – formatting 3

The QL then formats in two passes (“Pass 1” and “Pass 2”, with the number counting down) and finally reports “Format complete”. Individual messages such as “ID not found” or “Command Abort” are mostly harmless. If they pile up, something is probably wrong with the configuration or compatibility.

QubIDE - formatting - pass 1
QubIDE – formatting – pass 1
QubIDE - formatting - pass 2
QubIDE – formatting – pass 2

Example 1: SD card with a size of <= 128 MB
– 32 MB SD memory card
– one partition with the entire memory (number of cylinders: 0)
– block size 8
– the QL formats the card in two passes

Example 2: CF card/DOM module with a size of <= 128 MB
– With CF cards the error “FAT is wrong” may occur during formatting. The original manual therefore recommends knowing the card’s actual values and entering the number of cylinders directly instead of using 0. Under Windows you can read out the values with Drive Image by Pera Putnik. For this the card is connected via a USB card reader; the CHS values can be adjusted by hand if necessary. In the original manual it is 980 cylinders for a 128 MB CF card.

– 128 MB
– one partition with all the space
– block size 8 (16 is also a good size)

For my DOM with 128 MB I entered 0 as the number of cylinders and chose block size 8.

Example 3: Devices with a capacity of > 128 MB or several partitions
For this you need the program partition_exe, which is included in the QubIDE Disk Utilities 2.01 (version 1.56 does not work). It is a QL program and runs directly on the QL. You can download the program here:

https://sinclairql.net/djw/qlrom/qub201disk.zip

– partition_exe cannot create or change the primary partition WIN1_. Create it first as described above. After that you can use the program to create the further partitions (up to 8 partitions in total are possible).
– The size of WIN1_ determines how much space is left for further partitions: with 0 as the number of cylinders the maximum size is used (128 MB with block size 4, 256 MB with block size 8). If you want some space to remain, enter a smaller number of cylinders instead. That is my conclusion from the manual; I have not tried it yet.
– To be able to start partition_exe, it has to be on a drive that the QL can read. There are two ways to do this: either you copy it onto the freshly created WIN1_ partition with the Image Editor (procedure further down), or you connect a disk interface with a floppy drive to the QL via a bus expander and start the program from disk.
– Caution: QL programs need their header. If it is lost when unpacking or copying, the program becomes unusable. Please therefore note the header settings in the section on the Image Editor further down.
– It is best to start the QL in monitor mode and, if the program is on WIN1_, enter EXEC_W WIN1_PARTITION_EXE (when starting from disk, use the drive name accordingly, e.g. flp1_).
– Select the drive (1, ENTER) and confirm with ENTER the question whether the activity LED of the selected drive is lit.
– In the management screen you can change, remove, zero and format partitions. The example in the original manual shows a 12 MB primary partition and two 25 MB secondary partitions (WIN2_ and WIN3_).
– Then quit the program and restart the QL.

I was not able to try this part myself; the description follows the original manual.

Using ZIP files for the Sinclair QL with the “Image Editor” program

Notes:
– equipment used in this example: Sinclair QL with JS+TK2 ROM (64K), QubIDE with 512K memory expansion, SD-IDE adapter and 32 MB SD memory card
– PC with Windows XP

Download the program, unpack it and start it (on Windows 10, run it with administrator rights).

Select the ZIP file: -> File -> Open Image -> select the ZIP file

QubIDE - Manual 1
QubIDE – Manual 1

A ZIP file for the Sinclair QL is recognised -> OK

QubIDE - Manual 2
QubIDE – Manual 2

This shows you the files contained in the archive.

QubIDE - Manual 3
QubIDE – Manual 3

Export the files: -> Options -> Headers -> Extract and -> QL

QubIDE - Manual 4
QubIDE – Manual 4

Select the files you want to export (otherwise the next option will not be shown)
-> Files -> Extract Files

QubIDE - Manual 5
QubIDE – Manual 5

Choose the destination where the files are to be saved.

QubIDE - Manual 6
QubIDE – Manual 6

Save the programs on the IDE device:

-> Disc -> Open Disc

QubIDE - Manual 7
QubIDE – Manual 7

Select the QL IDE storage and click “OK”

QubIDE - Manual 8
QubIDE – Manual 8

The program will detect that the device is in QubIDE format -> OK

Now you have to tell it that nothing is to be done with the QL headers -> Options -> Headers -> None

QubIDE - Manual 9
QubIDE – Manual 9

-> File -> Insert Files

QubIDE - Manual 10
QubIDE – Manual 10

Select the programs. The software automatically changes the extension from “.” to the QL extension “_”. The programs are then inserted into the selected directory.

QubIDE - Manual 11
QubIDE – Manual 11
QubIDE - directory listing
QubIDE – directory listing

QubIDE commands – specific to this expansion (included in the ROM)
WIN_DRIVE number
WIN_DRIVE 1 – “unloads” WIN 1 (if it is not in use)
WIN_DRIVE 2,1,4 – makes WIN2 the fourth partition on the first drive

MAKE_DIR (in case you do not have a current TK2)
MAKE_DIR win1_c68_ (the final underscore is optional) creates a subdirectory called c68_ on WIN1
If there is already a file with, for example, the name win1_c68_doc, creating the directory gives an error message -> “In Use”

WIN_USE is used to make the IDE pretend that it has a different name
WIN_USE FLP – the QubIDE pretends to be called FLP
WIN_USE or WIN_USE WIN resets the setting

FORMAT WIN1_xxxxxxxxxx, where xxxxxxxxxx is the name

Conclusion
It is good to see the QubIDE brought back to life. That gives the small QL market one more mass storage device based on proven technology that works reliably. A pass-through interface connector in the standard version would have been nice, so that you could use it together with a disk interface or a Gold Card. An alternative that combines QubIDE/QubATA logic, a disk interface and 768 KB of memory expansion on one card is the Tetroid Disk Interface CF – there is a separate article on it (in German): Tetroid disk interface CF [Sinclair QL]. You do, however, have to get to grips with the subject and should already have a basic knowledge of the QL in order to use it sensibly.

Support this site

Do you like what I’m doing on this site? If so, I would appreciate your support, which enables me to keep the website running.

2 responses to “QubIDE [Sinclair QL]”

Leave a Reply

Your email address will not be published. Required fields are marked *