The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Paul Ruizendaal <pnr@planet.nl>
To: paul@rileyriot.com, TUHS main list <tuhs@minnie.tuhs.org>
Subject: [TUHS] DEC RL01/RL02 RX01/RX02 Disk Image Creator
Date: Mon, 1 Jun 2020 17:04:22 +0200	[thread overview]
Message-ID: <94C31414-D9DF-41C5-B0D9-9FB92994B513@planet.nl> (raw)

> Team Unix, Is there a Windows or Linux utility to create a disk image in any of the above formats, from a local folder tree? Paul *Paul Riley*

It seems you are asking for two tools in the BK-UNIX toolbox, fsutil and dskutil
https://github.com/sergev/bkunix/tree/master/fsutil
https://github.com/sergev/bkunix/tree/master/diskutil

The first generates a Unix 6th edition file system from a local directory tree. The result is a binary file with the 512 byte disk blocks stored in sequence. Maybe this is what SIMH needs, I’m not into the details of SIMH.

The second appears to be a tool to take the a file generated by the fsutil tool and split that into sectors and tracks. I’m not familiar with this tool, but it looks like you might need something similar (I assume that you have some way to hook up a 8” drive to your PC?). Sector interleaving may be an issue to look out for.

When preparing a LSX system disk, you will need to think carefully about the layout:

Presumably the disk works with 128 byte sectors and 4 sectors are grouped together to create a 512 byte unix block. Check out the disk driver code for details:
https://www.tuhs.org/cgi-bin/utree.pl?file=LSX/sys/decfd.c

Block 0 contains bootstrap code which is loaded/called from the monitor rom (or from a short code sequence keyed in on a “blinkenpanel” console).

The filesystem itself starts at block 1 and runs up to a block N (you need to tell fsutil how big the filesystem needs to be).

After block N up to the end of the disk is space to contain 2 swapped out programs plus 1 block for the return code of the third (default LSX has a maximum of 3 processes). You have to figure out how many 512 blocks are on your floppy and subtract out the swap space to arrive at a figure for N.

In the LSX source code ’N’ is known as the define SWPLO, see param.h for details:
https://www.tuhs.org/cgi-bin/utree.pl?file=LSX/sys/param.h

In this file, 99 blocks are reserved for swap, corresponding to processes with 24KB memory; total disk size is defined as 500 blocks, 250KB - note that this slightly exceeds the 241KB offered by the standard IBM 77 track 26 sector formatting for 8” disks. Probably you will need to tweak the values in param.h

Be careful with size units in the source code. Often sizes are expressed in words (2 bytes). Where memory is concerned it is often expressed in ‘clicks’, 64 bytes.





             reply	other threads:[~2020-06-01 15:04 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-01 15:04 Paul Ruizendaal [this message]
2020-06-01 22:54 ` Paul Riley
  -- strict thread matches above, loose matches on Subject: below --
2020-06-02  0:14 Noel Chiappa
2020-06-02  1:26 ` Ronald Natalie
2020-06-01 15:18 Paul Ruizendaal
2020-06-01 10:18 Paul Riley
2020-06-01 13:01 ` Ronald Natalie
2020-06-01 22:35   ` Paul Riley
2020-06-01 13:04 ` Clem Cole
2020-06-01 22:45   ` Paul Riley
2020-06-01 23:59     ` Ronald Natalie
2020-06-02  4:57       ` Paul Riley
2020-06-02 13:31     ` Clem Cole
2020-06-02 13:52     ` Clem Cole
2020-06-02 15:44       ` Ronald Natalie
2020-06-02 16:26         ` Warner Losh
2020-06-02 18:08         ` Clem Cole
2020-06-02 18:59         ` Paul Winalski
2020-06-02 19:08           ` Adam Thornton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=94C31414-D9DF-41C5-B0D9-9FB92994B513@planet.nl \
    --to=pnr@planet.nl \
    --cc=paul@rileyriot.com \
    --cc=tuhs@minnie.tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).