KMK/JŻ IDE Interface
- Year
- 1995
- Type
- DIY project
- Category
- IDE hard disk interface (parallel bus device)
- Manufacturer
- Jacek Żuk (Simius), hardware; Konrad M. Kokoszkiewicz (KMK), software
Overview
The KMK/JŻ IDE interface is the Polish scene's home-grown answer to the hard disk. Konrad Kokoszkiewicz described the motivation in 1995: a few years earlier a 20 MB SCSI drive for the Atari cost over 600 USD, in a country where wages had been about 20 USD a month. Once cheap PC IDE drives appeared, he took a Western Digital Caviar technical reference manual to his friend Jacek Żuk ("Jack"), who designed the hardware, while Konrad wrote the software. After a year of building, testing and "learning, learning, learning", they posted a preliminary document to comp.sys.atari.8bit on 28 December 1995. They asked DOS authors to support the interface's 512-byte native sectors, large partitions and drives D10:–D15:.
Unlike MyIDE, this is a proper parallel bus device. It carries a 2 KB ROM handler that the XL/XE OS finds and calls through the standard parallel-device mechanism, so no OS patch is needed. The partitions behave like ordinary floppy drives to any program that calls DSKINV ($E453) or SIOV ($E459). It connects to the cartridge slot plus the XE's ECI port.
Specifications (v1.0 document, 1995)
| Feature | v1.0 (1995 document) | Later firmware (10.11.2009) |
|---|---|---|
| Target machine | 130XE and compatibles (cartridge + ECI) | XE (cartridge + ECI) |
| Partitions | 15, bootable from any | 16 |
| Max drive size | 8,388,607 physical blocks per device | 16,777,215 blocks (8 GiB) |
| Sector modes | native 512 B; emulation 2 × 256 B per block | 512 B native, 256 B or 128 B emulation |
| Speed | 58 KB/s native; 32 KB/s read, 7 KB/s write in emulation | 50–80 KB/s native |
| Drives | master + slave | dual drives, ATA-1 or later (ATA-2 recommended) |
| Device ID | 8 jumpers | jumper-selectable |
The package described in 1995 included the interface, a power supply for the drive, a ribbon cable and a utilities disk with MyDOS 4.53. A second-generation board, KMK/JŻ IDE 1.2, added more memory. Michał "Pasiu" Pasiecznik's 2005 IDEa is a clone of it. The successor IDE Plus 2.0 is covered in its own entry.
Setting it up
The original 27-step installation procedure, in short:
- With everything powered off, plug the interface into the back of the computer and connect the 3.5" IDE drive. Match pin 1 (the red stripe) at both ends, because a reversed cable can damage the drive.
- Power the drive and computer while holding SHIFT, which keeps the interface from taking over the boot. Boot the utilities disk.
- Run FDISK.COM. Do a surface test, then allocate partitions in 512-byte physical sectors. For example, 32,767 blocks gives a 65,534-sector DOS partition in emulation mode.
- Choose the boot partition and the boot type. "Control" lets the interface boot DOS from a partition other than D1:. "Pass" leaves booting to the OS and is required for SpartaDOS X. SDX users who want CONFIG.SYS on the hard disk must make it D1: and renumber the floppy.
- Write the partition table, soft-format the partitions (SpartaDOS 3.2 needs a separate formatter such as P_FORMAT.COM), copy DOS over, and cold-start with SELECT+RESET.
Keys: SHIFT+RESET hides the hard disk (requests then return error 138) until the next RESET. SELECT+RESET forces a cold boot. SHIFT+SELECT+RESET boots a non-DOS floppy with the hard disk invisible. Small hidden partitions (D10:–D15:) can hold copies of non-DOS disks and be booted through the "drive redirection" option.
Technical notes for programmers
- Sector numbers are 24-bit. The high byte lives in DAUX3 at $0307, a DCB byte the XL OS left unused.
- The status command reports write protection, master and slave presence, and the raw IDE error register. Errors are 138 (timeout or slave not ready), 139 (invalid command) and 144 (write-protected, out of range, or bad sector).
- The ROM uses RAM locations $01 and $34–$3C. Leave PDVMSK ($0247), PDVRS ($0248) and $0400–$06FF alone during a cold boot.
- Partition write protection can't be undone by software commands, a reboot or a power cycle. It is meant to guard against viruses, buggy software "or children".
Pitfalls
- Some IDE drives report READY before they have finished spinning up, so the ROM waits about 5 seconds on power-up. Don't switch off and on again quickly. Wait 10–15 seconds, or the firmware may mistake a power cycle for a warm boot and crash.
- The slave drive isn't initialised at power-up, so never boot DOS from it.
- Very old drives draw a lot of current, and the bundled power supply may not be enough.
Using it today
Real boards are scarce, but the design lives on in the IDEa clone, in IDE Plus 2.0, and in emulation: Altirra emulates KMK/JZ IDE, including slave devices, and supports it with SpartaDOS X through DLT's MNT add-on. Kokoszkiewicz's utilities and system software are on drac030.krap.pl.
Credits
- Picture: A cased KMK/JŻ IDE interface with its utility disk and user's manual, photographed by KMK. — KMK/JŻ IDE interface with its user's manual and utility disk, photo uploaded to Atariki by KMK (Konrad Kokoszkiewicz), 2005 (Atariki page 'KMK/JŻ IDE') (No explicit licence on the 2005 upload; used for identification/commentary)
- KMK — IDE Hard Drive Interface v.1.0, a preliminary document (comp.sys.atari.8bit, 28 Dec 1995; Nir Dary collection) — Nir Dary collection, 1995
- comp.sys.atari.8bit FAQ, section 3.3.4 (Michael Current, Feb 2026) — Michael Current (comp.sys.atari.8bit FAQ), 2026
- Altirra changelog (KMK/JZ IDE emulation) — Screenshot from Avery Lee's Altirra page, virtualdub.org
