aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Containerfile19
-rwxr-xr-xbuild.sh14
-rw-r--r--disk.rk.1bin2494464 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86.binbin52428800 -> 12582912 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk.txt4
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000000.binbin2097152 -> 4194304 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000001.binbin2097152 -> 4194304 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000002.binbin2097152 -> 4194304 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000003.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000004.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000005.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000006.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000007.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000008.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000009.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000010.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000011.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000012.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000013.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000014.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000015.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000016.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000017.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000018.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000019.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000020.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000021.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000022.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000023.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000024.binbin2097152 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000025.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000026.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000027.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000028.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000029.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000030.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000031.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000032.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000033.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000034.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000035.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000036.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000037.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000038.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000039.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000040.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000041.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000042.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000043.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000044.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000045.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000046.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000047.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000048.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000049.binbin1048576 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000050.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000051.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000052.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000053.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000054.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000055.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000056.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000057.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000058.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000059.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000060.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000061.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000062.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000063.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000064.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000065.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000066.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000067.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000068.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000069.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000070.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000071.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000072.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000073.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000074.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000075.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000076.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000077.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000078.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000079.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000080.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000081.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000082.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000083.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000084.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000085.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000086.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000087.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000088.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000089.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000090.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000091.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000092.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000093.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000094.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000095.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000096.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000097.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000098.binbin524288 -> 0 bytes
-rw-r--r--jslinux-2019-12-21/root-x86/blk000000099.binbin524288 -> 0 bytes
-rw-r--r--readme.md59
107 files changed, 85 insertions, 12 deletions
diff --git a/.gitignore b/.gitignore
index 2ebbe4a..d7b04ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
img.tar
disk.img
simh.zip
+pdp11
diff --git a/Containerfile b/Containerfile
index fa16c73..9303688 100644
--- a/Containerfile
+++ b/Containerfile
@@ -10,7 +10,8 @@ RUN apk add \
libpcap-dev \
libpng-dev \
sdl2-dev \
- pcre-dev
+ pcre-dev \
+ pcre-static
COPY simh.zip /opt/
@@ -18,7 +19,7 @@ RUN mkdir -p /opt/simh
WORKDIR /opt/simh
RUN bsdtar --strip-components=1 -xzvf /opt/simh.zip
# RUN make pdp11
-RUN make CFLAGS_G='-march=i386' pdp11 -j$(nproc)
+RUN make CFLAGS_G='-march=i386 -static -no-pie -s -O2' pdp11 -j$(nproc)
RUN cp BIN/pdp11 /usr/bin/pdp11
RUN mkdir /opt/unixv4
@@ -33,12 +34,20 @@ RUN apk del \
libedit-dev \
libpcap-dev \
libpng-dev \
+ libedit \
+ libpcap \
+ libpng \
+ sdl2 \
+ pcre \
sdl2-dev \
- pcre-dev
+ pcre-dev \
+ apk-tools \
+ alpine-keys \
+ pcre-static
+
-RUN rm -rf /var/cache/apk /opt/simh /opt/simh.zip
-RUN apk add pcre sdl2
+RUN rm -rf /var/cache/apk /opt/simh /opt/simh.zip
COPY entrypoint.sh /bin/
diff --git a/build.sh b/build.sh
index 285a76b..8ee46a5 100755
--- a/build.sh
+++ b/build.sh
@@ -6,6 +6,14 @@ sudo=sudo
docker=docker
[ -n "$(command -v podman)" ] && [ -x "$(command -v podman)" ] && docker=podman
+bin_only=false
+no_plat=false
+while [ $# -gt 0 ] ; do case $1 in
+ -bin-only) bin_only=true ; shift ;;
+ -no-platform) no_plat=true ; shift ;;
+ *) echo "bad arg: '$1'" ; exit 2 ;;
+esac ; done
+
simh_url="https://github.com/simh/simh/archive/master.zip"
simh_archive="./simh.zip"
if ! [ -e "$simh_archive" ] ; then
@@ -16,12 +24,12 @@ $docker build --platform=i386 -t unixv4 .
$docker run --name unixv4emulator --entrypoint=/bin/true --replace unixv4
$docker export unixv4emulator > img.tar
$docker container rm unixv4emulator
-truncate -s 50M disk.img
+tar --strip-components 2 -xf img.tar usr/bin/pdp11
+$bin_only && exit 0
+truncate -s 12M disk.img
$sudo kpartx -av disk.img
$sudo mkfs.ext2 /dev/loop0
$sudo mount /dev/loop0 /mnt
$sudo tar -C /mnt -xpvf img.tar
$sudo umount /mnt
$sudo kpartx -dv disk.img
-
-
diff --git a/disk.rk.1 b/disk.rk.1
deleted file mode 100644
index 9515630..0000000
--- a/disk.rk.1
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86.bin b/jslinux-2019-12-21/root-x86.bin
index a483489..027a49c 100644
--- a/jslinux-2019-12-21/root-x86.bin
+++ b/jslinux-2019-12-21/root-x86.bin
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk.txt b/jslinux-2019-12-21/root-x86/blk.txt
index 65791bb..096ffc7 100644
--- a/jslinux-2019-12-21/root-x86/blk.txt
+++ b/jslinux-2019-12-21/root-x86/blk.txt
@@ -1,4 +1,4 @@
{
- block_size: 2048,
- n_block: 25,
+ block_size: 4096,
+ n_block: 3,
}
diff --git a/jslinux-2019-12-21/root-x86/blk000000000.bin b/jslinux-2019-12-21/root-x86/blk000000000.bin
index c71e322..77ad686 100644
--- a/jslinux-2019-12-21/root-x86/blk000000000.bin
+++ b/jslinux-2019-12-21/root-x86/blk000000000.bin
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000001.bin b/jslinux-2019-12-21/root-x86/blk000000001.bin
index ac5b9eb..847b486 100644
--- a/jslinux-2019-12-21/root-x86/blk000000001.bin
+++ b/jslinux-2019-12-21/root-x86/blk000000001.bin
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000002.bin b/jslinux-2019-12-21/root-x86/blk000000002.bin
index 32d1f73..54fe8f4 100644
--- a/jslinux-2019-12-21/root-x86/blk000000002.bin
+++ b/jslinux-2019-12-21/root-x86/blk000000002.bin
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000003.bin b/jslinux-2019-12-21/root-x86/blk000000003.bin
deleted file mode 100644
index 3301331..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000003.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000004.bin b/jslinux-2019-12-21/root-x86/blk000000004.bin
deleted file mode 100644
index 9b94ccb..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000004.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000005.bin b/jslinux-2019-12-21/root-x86/blk000000005.bin
deleted file mode 100644
index 178a4a3..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000005.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000006.bin b/jslinux-2019-12-21/root-x86/blk000000006.bin
deleted file mode 100644
index 8464bbd..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000006.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000007.bin b/jslinux-2019-12-21/root-x86/blk000000007.bin
deleted file mode 100644
index 3301331..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000007.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000008.bin b/jslinux-2019-12-21/root-x86/blk000000008.bin
deleted file mode 100644
index 60fda4f..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000008.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000009.bin b/jslinux-2019-12-21/root-x86/blk000000009.bin
deleted file mode 100644
index d785f99..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000009.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000010.bin b/jslinux-2019-12-21/root-x86/blk000000010.bin
deleted file mode 100644
index 338f6e1..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000010.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000011.bin b/jslinux-2019-12-21/root-x86/blk000000011.bin
deleted file mode 100644
index 3301331..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000011.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000012.bin b/jslinux-2019-12-21/root-x86/blk000000012.bin
deleted file mode 100644
index 6a3a70c..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000012.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000013.bin b/jslinux-2019-12-21/root-x86/blk000000013.bin
deleted file mode 100644
index 3301331..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000013.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000014.bin b/jslinux-2019-12-21/root-x86/blk000000014.bin
deleted file mode 100644
index 9baa771..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000014.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000015.bin b/jslinux-2019-12-21/root-x86/blk000000015.bin
deleted file mode 100644
index 05f9258..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000015.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000016.bin b/jslinux-2019-12-21/root-x86/blk000000016.bin
deleted file mode 100644
index e5e0c64..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000016.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000017.bin b/jslinux-2019-12-21/root-x86/blk000000017.bin
deleted file mode 100644
index 6001d11..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000017.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000018.bin b/jslinux-2019-12-21/root-x86/blk000000018.bin
deleted file mode 100644
index 3301331..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000018.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000019.bin b/jslinux-2019-12-21/root-x86/blk000000019.bin
deleted file mode 100644
index d740e1e..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000019.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000020.bin b/jslinux-2019-12-21/root-x86/blk000000020.bin
deleted file mode 100644
index 9eef5bc..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000020.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000021.bin b/jslinux-2019-12-21/root-x86/blk000000021.bin
deleted file mode 100644
index 08d5daf..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000021.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000022.bin b/jslinux-2019-12-21/root-x86/blk000000022.bin
deleted file mode 100644
index 6f362b7..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000022.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000023.bin b/jslinux-2019-12-21/root-x86/blk000000023.bin
deleted file mode 100644
index 3301331..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000023.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000024.bin b/jslinux-2019-12-21/root-x86/blk000000024.bin
deleted file mode 100644
index ada4ca1..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000024.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000025.bin b/jslinux-2019-12-21/root-x86/blk000000025.bin
deleted file mode 100644
index fbc2212..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000025.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000026.bin b/jslinux-2019-12-21/root-x86/blk000000026.bin
deleted file mode 100644
index 9e0f96a..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000026.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000027.bin b/jslinux-2019-12-21/root-x86/blk000000027.bin
deleted file mode 100644
index 9e0f96a..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000027.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000028.bin b/jslinux-2019-12-21/root-x86/blk000000028.bin
deleted file mode 100644
index 44f596e..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000028.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000029.bin b/jslinux-2019-12-21/root-x86/blk000000029.bin
deleted file mode 100644
index 550b8ed..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000029.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000030.bin b/jslinux-2019-12-21/root-x86/blk000000030.bin
deleted file mode 100644
index 9e0f96a..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000030.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000031.bin b/jslinux-2019-12-21/root-x86/blk000000031.bin
deleted file mode 100644
index 9e0f96a..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000031.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000032.bin b/jslinux-2019-12-21/root-x86/blk000000032.bin
deleted file mode 100644
index c4112d8..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000032.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000033.bin b/jslinux-2019-12-21/root-x86/blk000000033.bin
deleted file mode 100644
index 0d990c3..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000033.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000034.bin b/jslinux-2019-12-21/root-x86/blk000000034.bin
deleted file mode 100644
index d387f2d..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000034.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000035.bin b/jslinux-2019-12-21/root-x86/blk000000035.bin
deleted file mode 100644
index deef736..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000035.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000036.bin b/jslinux-2019-12-21/root-x86/blk000000036.bin
deleted file mode 100644
index 9e0f96a..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000036.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000037.bin b/jslinux-2019-12-21/root-x86/blk000000037.bin
deleted file mode 100644
index 9e0f96a..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000037.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000038.bin b/jslinux-2019-12-21/root-x86/blk000000038.bin
deleted file mode 100644
index ea2d51a..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000038.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000039.bin b/jslinux-2019-12-21/root-x86/blk000000039.bin
deleted file mode 100644
index 7de6988..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000039.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000040.bin b/jslinux-2019-12-21/root-x86/blk000000040.bin
deleted file mode 100644
index 894ba25..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000040.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000041.bin b/jslinux-2019-12-21/root-x86/blk000000041.bin
deleted file mode 100644
index 0f41954..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000041.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000042.bin b/jslinux-2019-12-21/root-x86/blk000000042.bin
deleted file mode 100644
index 440277b..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000042.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000043.bin b/jslinux-2019-12-21/root-x86/blk000000043.bin
deleted file mode 100644
index da772d8..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000043.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000044.bin b/jslinux-2019-12-21/root-x86/blk000000044.bin
deleted file mode 100644
index ca05e30..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000044.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000045.bin b/jslinux-2019-12-21/root-x86/blk000000045.bin
deleted file mode 100644
index 9e0f96a..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000045.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000046.bin b/jslinux-2019-12-21/root-x86/blk000000046.bin
deleted file mode 100644
index 9e0f96a..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000046.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000047.bin b/jslinux-2019-12-21/root-x86/blk000000047.bin
deleted file mode 100644
index 9e0f96a..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000047.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000048.bin b/jslinux-2019-12-21/root-x86/blk000000048.bin
deleted file mode 100644
index 2eee8a3..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000048.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000049.bin b/jslinux-2019-12-21/root-x86/blk000000049.bin
deleted file mode 100644
index 9e0f96a..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000049.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000050.bin b/jslinux-2019-12-21/root-x86/blk000000050.bin
deleted file mode 100644
index 5c2339d..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000050.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000051.bin b/jslinux-2019-12-21/root-x86/blk000000051.bin
deleted file mode 100644
index d6a37c8..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000051.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000052.bin b/jslinux-2019-12-21/root-x86/blk000000052.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000052.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000053.bin b/jslinux-2019-12-21/root-x86/blk000000053.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000053.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000054.bin b/jslinux-2019-12-21/root-x86/blk000000054.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000054.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000055.bin b/jslinux-2019-12-21/root-x86/blk000000055.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000055.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000056.bin b/jslinux-2019-12-21/root-x86/blk000000056.bin
deleted file mode 100644
index d9233d8..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000056.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000057.bin b/jslinux-2019-12-21/root-x86/blk000000057.bin
deleted file mode 100644
index d0c7f05..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000057.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000058.bin b/jslinux-2019-12-21/root-x86/blk000000058.bin
deleted file mode 100644
index db4367a..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000058.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000059.bin b/jslinux-2019-12-21/root-x86/blk000000059.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000059.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000060.bin b/jslinux-2019-12-21/root-x86/blk000000060.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000060.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000061.bin b/jslinux-2019-12-21/root-x86/blk000000061.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000061.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000062.bin b/jslinux-2019-12-21/root-x86/blk000000062.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000062.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000063.bin b/jslinux-2019-12-21/root-x86/blk000000063.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000063.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000064.bin b/jslinux-2019-12-21/root-x86/blk000000064.bin
deleted file mode 100644
index f3577c9..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000064.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000065.bin b/jslinux-2019-12-21/root-x86/blk000000065.bin
deleted file mode 100644
index 50d2b31..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000065.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000066.bin b/jslinux-2019-12-21/root-x86/blk000000066.bin
deleted file mode 100644
index 188d2e6..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000066.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000067.bin b/jslinux-2019-12-21/root-x86/blk000000067.bin
deleted file mode 100644
index ae605d8..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000067.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000068.bin b/jslinux-2019-12-21/root-x86/blk000000068.bin
deleted file mode 100644
index 39785a2..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000068.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000069.bin b/jslinux-2019-12-21/root-x86/blk000000069.bin
deleted file mode 100644
index c31853c..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000069.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000070.bin b/jslinux-2019-12-21/root-x86/blk000000070.bin
deleted file mode 100644
index f01bfbf..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000070.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000071.bin b/jslinux-2019-12-21/root-x86/blk000000071.bin
deleted file mode 100644
index e6e9cba..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000071.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000072.bin b/jslinux-2019-12-21/root-x86/blk000000072.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000072.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000073.bin b/jslinux-2019-12-21/root-x86/blk000000073.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000073.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000074.bin b/jslinux-2019-12-21/root-x86/blk000000074.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000074.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000075.bin b/jslinux-2019-12-21/root-x86/blk000000075.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000075.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000076.bin b/jslinux-2019-12-21/root-x86/blk000000076.bin
deleted file mode 100644
index 3f4e16c..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000076.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000077.bin b/jslinux-2019-12-21/root-x86/blk000000077.bin
deleted file mode 100644
index 3449fb9..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000077.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000078.bin b/jslinux-2019-12-21/root-x86/blk000000078.bin
deleted file mode 100644
index 66a4f35..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000078.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000079.bin b/jslinux-2019-12-21/root-x86/blk000000079.bin
deleted file mode 100644
index 2822aec..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000079.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000080.bin b/jslinux-2019-12-21/root-x86/blk000000080.bin
deleted file mode 100644
index 5381d8f..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000080.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000081.bin b/jslinux-2019-12-21/root-x86/blk000000081.bin
deleted file mode 100644
index 61e96a3..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000081.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000082.bin b/jslinux-2019-12-21/root-x86/blk000000082.bin
deleted file mode 100644
index 855a4cb..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000082.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000083.bin b/jslinux-2019-12-21/root-x86/blk000000083.bin
deleted file mode 100644
index 58e79c3..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000083.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000084.bin b/jslinux-2019-12-21/root-x86/blk000000084.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000084.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000085.bin b/jslinux-2019-12-21/root-x86/blk000000085.bin
deleted file mode 100644
index 41ce963..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000085.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000086.bin b/jslinux-2019-12-21/root-x86/blk000000086.bin
deleted file mode 100644
index 8536003..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000086.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000087.bin b/jslinux-2019-12-21/root-x86/blk000000087.bin
deleted file mode 100644
index 5e753bc..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000087.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000088.bin b/jslinux-2019-12-21/root-x86/blk000000088.bin
deleted file mode 100644
index f0a23d9..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000088.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000089.bin b/jslinux-2019-12-21/root-x86/blk000000089.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000089.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000090.bin b/jslinux-2019-12-21/root-x86/blk000000090.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000090.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000091.bin b/jslinux-2019-12-21/root-x86/blk000000091.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000091.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000092.bin b/jslinux-2019-12-21/root-x86/blk000000092.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000092.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000093.bin b/jslinux-2019-12-21/root-x86/blk000000093.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000093.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000094.bin b/jslinux-2019-12-21/root-x86/blk000000094.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000094.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000095.bin b/jslinux-2019-12-21/root-x86/blk000000095.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000095.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000096.bin b/jslinux-2019-12-21/root-x86/blk000000096.bin
deleted file mode 100644
index 39d064f..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000096.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000097.bin b/jslinux-2019-12-21/root-x86/blk000000097.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000097.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000098.bin b/jslinux-2019-12-21/root-x86/blk000000098.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000098.bin
+++ /dev/null
Binary files differ
diff --git a/jslinux-2019-12-21/root-x86/blk000000099.bin b/jslinux-2019-12-21/root-x86/blk000000099.bin
deleted file mode 100644
index 8dd9b32..0000000
--- a/jslinux-2019-12-21/root-x86/blk000000099.bin
+++ /dev/null
Binary files differ
diff --git a/readme.md b/readme.md
index c7c44c6..883574b 100644
--- a/readme.md
+++ b/readme.md
@@ -5,5 +5,60 @@ Which itself is dumped from: https://archive.org/details/utah_unix_v4_raw
Also includes jslinux for running the image from a browser.
-This a hacky and messy repo put together in just a few hours to let people
-play around with Unix v4 in their web browser.
+This a bit hacky repo put together a few hours to let people play around with
+Unix v4 in their web browser.
+
+## Building it yourself:
+
+podman or docker on Linux x86 or amd64 is ideal.
+
+```
+$ sh ./build.sh
+```
+
+This will:
+
+ * Pull down simh from github
+ * create an alpine linux container, build simh, and strip down the deps
+ * export the container to a tarball
+ * create a disk image and setup a filesystem on a loopback device ( requires
+ `kpartx` )
+
+From there to load the disk image into the jslinux emulator you will need
+the `splitimg` utility, a binary is checked in if you're on a recent Linux
+machine, or compile it from the incuded sources:
+
+```
+$ cd jslinux-2019-12-21/
+$ cp ../disk.img ./
+$ ./splitimg root-x86.bin root-x86 4096
+```
+
+The `jslinux-2019-12-21` directory can then be copied to any plain HTTP server.
+
+## Running UnixV4 locally
+
+The `build.sh` script dumps out a statically linked `pdp11` simulator from
+the tarball, it should work on most x86 Linux machines, if you don't wish
+to build the image simply run the build script with the `-bin-only` flag,
+i.e.
+
+```
+$ ./build.sh -bin-only
+```
+
+From there you can run the `pdp11` binary from the local directory:
+
+```
+$ ./pdp11 boot.ini
+```
+
+
+### Building simh on other architectures
+
+Removing the `--platform` flag from the `build.sh` and `-march=i386`
+from the `Containerfile` should suffice assuming there's an upstream
+Alpine Linux container for your architecture.
+
+Note, this will not work with JSLinux. Though, you could in theory
+build for riscv and tweak the html to load that emulator instead.