XL1200-EMU Symbolics XL1200 Emulator
Plans & Roadmap SpecsPARTIAL docs/genera-autoinstall-plan.md

Genera 8.3 Unattended Full Install & Layered Products Plan

Status: Optional / Future Automation Plan (Tier 3) — Extends the working base installer scripts/install-genera-8.3-from-cdrom.sh. See docs/ROADMAP.md and docs/genera-8.3-cdrom-install.md.

Target Emulator: C11 XL1200 Emulator (emu/)
Media Policy: Requires user-supplied Symbolics Boot PROMs, Genera 8.3 distribution CD-ROM (P.N. 995854), and optional layered-product distribution tapes (.tap). Zero Symbolics binaries or media are distributed with this repository.


1. Current Baseline & Goal

scripts/install-genera-8.3-from-cdrom.sh already automates an unattended clean installation of base Genera 8.3 onto a fresh XL1200 FEPFS SCSI disk image:

  1. Formats an empty native 1,280-byte/sector XL1200 Initial FEPFS disk with ivory-fep-convert --create-fepfs.
  2. Boots authentic IFEP promJ (115988+115989 or rom.dump) with the distribution CD-ROM on SCSI target 4 (CART11:).
  3. Runs FEP Disk Restore, installs the FEP kernel, .flod overlays, paging files, and Genera-8-3.ilod.1.
  4. With --with-lmfs, boots Genera 8.3, initializes local LMFS (FEP7:>lmfs.file.1), copies SYS:SITE; and standalone namespace files, configures CDROM4: as the SYS: host, and fixes Local.boot.

This plan describes extending that workflow to unpack and load all known Genera 8.3 layered products from the distribution CD-ROM and optional user-supplied SIMH .tap distribution tapes, producing a ready-to-boot workstation disk image and an incremental world load (.ilod).


2. Known Genera 8.3 Layered Products & Distribution Sources

2.1 Bundled on the Genera 8.3 "All Platforms" CD-ROM (P.N. 995854)

The master CD-ROM (attached on SCSI target 4 / LOCAL|CDROM4:>) includes distribution directories and .TAPE / .SCT trees for:

  • Core System Sources & Fonts (SYS:): Full Genera 8.3 sources, bitmapped fonts, and online documentation (DOC / Concordia / Document Examiner).
  • Color Graphics System (Color): Univision and FrameThrower drivers, color screen utilities, and color_from_genera_8_3.ilod world.
  • Programming Languages: Symbolics C, Fortran, and Pascal compilers and runtimes.
  • Networking & Services: TCP/IP, NFS, DNS/Domain, Chaosnet services, Mail/ZMail, and Printing/Hardcopy support.

2.2 Optional User-Supplied Distribution Tapes (SIMH .tap on SCSI Target 5)

Users who hold additional Symbolics distribution media converted to SIMH .tap format can attach them via --scsi-tape 5:<path.tap>:ro (or --tape <path.tap>) for automated Restore Distribution runs:

  • CLIM 2.0 (Common Lisp Interface Manager)
  • Statice (object-oriented database)
  • Joshua (rule/inference system)
  • Concordia / Document Examiner extended documentation sets
  • MacIvory / UX / FrameThrower supplementary distributions and Genera 8.3 ECO patch tapes (including Y2K clock/date patches)

3. Proposed Automation Architecture

Rather than adding brittle shell sleeps, the extended installer should reuse s7 Scheme (emu_script.c + call/cc emu/wait-genera-idle) or the xl1200-ctl.sh AF_UNIX / TCP debug protocol, strictly obeying AGENTS.md (no synthetic guest code, authentic keyboard/SCSI input only, visual dump-panel checkpoints after each stage):

flowchart TD
    S0["Stage 0: Base Install<br/>install-genera-8.3-from-cdrom.sh --with-lmfs<br/>(1024-2048 MiB FEPFS + LMFS)"]
    S1["Stage 1: Restore CD-ROM Sources &amp; Docs<br/>Restore Distribution from LOCAL|CDROM4:><br/>(SYS sources, fonts, DOC/Concordia)"]
    S2["Stage 2: Load Selected Layered Systems<br/>(C, Fortran, Pascal, Color, CLIM, etc.)<br/>via SCT Load System + optional .tap target 5"]
    S3["Stage 3: Optional ECO / Y2K Patch Tapes<br/>Load System Patches from user-supplied .tap"]
    S4["Stage 4: Incremental World Save &amp; Verify<br/>Save World :Bootable Yes :Incremental Yes<br/>Update Hello.boot + cold-boot smoke test"]

    S0 --> S1 --> S2 --> S3 --> S4

Planned CLI Interface (scripts/install-genera-8.3-full.sh or --products flag)

./scripts/install-genera-8.3-from-cdrom.sh \
  --disk emu/disks/genera83-full.raw \
  --size-mb 2048 \
  --rom ivory-fep-roms/fep330/115988-e.bin \
  --cdrom /path/to/genera-8-3.iso \
  --with-lmfs --lmfs-blocks 600000 \
  --products "sources,doc,c,fortran,pascal,color" \
  --extra-tape /path/to/clim-2.0.tap \
  --extra-tape /path/to/statice.tap \
  --save-world "Genera-8-3-Full.ilod"

Known Genera 8.3 Operational Guardrails to Handle Automatically

  1. Disk & Paging File Sizing: Keep each individual FEP paging file <= 2047 MiB (Genera's OP_MULTIPLY overflows 32-bit signed fixnums above 2047.99 MiB). Default to 2048 MiB sparse disk (--lmfs-blocks 600000, ~732 MiB LMFS) when --products includes sources or doc.
  2. Unpatched Y2K Clock Prompt: Pass historical RTC year (1993, matching :rtc-offset (emu/rtc-year 1993)) during install or detect and answer Please type the date and time: cleanly before Login Lisp-Machine.
  3. Idle Detection: Never rely on vram_hash stability inside running Genera (the who-line clock updates VRAM continuously). Wait on scsi_act stability plus Merlin process run-light (leds & 0x02) == 0 (U1), and capture a dump-panel PNG + check for Debugger entry (bt / screen audit) after every Restore Distribution and Load System command.
  4. Clean Shutdown: Finish every stage with (lmfs:shutwarm) → Logout → Halt Machine :Query No before detaching disk images so LMFS metadata is flushed cleanly.

4. Verification Criteria

  • Dry-run unit check (--dry-run / manifest parser) verifying product flags, disk size bounds (<= 2047 MiB paging check), and missing-media error handling without requiring Symbolics media.
  • Full unattended run against user-supplied Genera 8.3 CD-ROM + optional .tap files producing a cold-bootable incremental .ilod where (sct:find-system-named ...) succeeds for every requested layered product and dump-panel confirms a clean Lisp Listener prompt.