forked from drovak/os8diskserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makeos8diskserver
79 lines (73 loc) · 2.22 KB
/
makeos8diskserver
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
#
# force recompile of pal.c
#
cd os8diskserver/SerialDisk/tools
if [ -f pal ]; then
echo -e "\r\nRemoving existing pal executable"
rm pal
fi
#
# compile pal.c
#
echo -e "\r\nCompiling pal.c\r\n"
gcc pal.c -o pal
#
# Force the recompile of server.c
#
cd ../server
if [ -f server ] ; then
echo -e "\r\nRemoving existing server executable"
rm server
fi
echo -e "\r\nCompiling server"
make -f Makefile
#
# install simh in the simh folder
#
cd ../simh
echo -e "\r\nInstalling simh"
git clone https://github.com/simh/simh
#
# Build the pdp8 simulator
#
echo -e "\r\nBuilding the PDP-8 simulator. This might take some time\r\n"
cd simh
make BIN/pdp8
#
# Copy the pdp8 simulator to the installer tools directory
#
echo -e "\r\nCopying the PDP-8 simulator to the installer directory"
cp BIN/pdp8 ../../tools
#
# run sdsk
#
echo -e "\r\n\nBuilding OS/8 image"
echo -e "\r\nPlease read README.md, SIMH.md & SDSK.md in the ../os8diskserver/Server/installer/ directory\r\n\r\n"
cd ../../installer
./sdsk
#
# Create default startup script
#
echo "./server -1 ../installer/diagpack2.new -2 ../disks/diag-games-kermit.dsk -3 ../disks/diagpack2_new2.dsk -4 ../disks/diagpack2.dsk" > ../server/StartServer
chmod +777 ../server/StartServer
#
# Display final message
#
echo -e "\r\n\r\nSerialDisk is now installed in ~/os8diskserver. Any previous version"
echo -e "of that directory has been renamed with todays date and time"
echo -e "\r\nPlease modify the ~/os8diskserver/SerialDisk/server/disk.cfg file for your serial port and baud rate."
echo -e "To start Serial Disk run ./StartServer in ~/os8diskserver/SerialDisk/server/."
echo -e "This will start Serial Disk with the following drives assigned (if you boot from SerialDisk):"
echo -e " SYS: ../installer/diagpack2.0"
echo -e " DSK: ../installer/diagpack2.0"
echo -e " SDA0: ../installer/diagpack2.0"
echo -e " SDB0: ../installer/diagpack2.1"
echo -e " SDA1: ../disks/diag-games-kermit.0"
echo -e " SDB1: ../disks/diag-games-kermit.1"
echo -e " SDA2: ../disks/diagpack2_new2.0"
echo -e " SDB2: ../disks/diagpack2_new2.1"
echo -e " SDA3: ../disks/diagpack2.0"
echo -e " SDB3: ../disks/diagpack2.1"
echo -e " RFB0: ../disks/diagpack2_new2.0"
echo -e " RFB1: ../disks/diagpack2.0\r\n\r\n"