sw: Added bin folder and Kermit scripts
authorPhilipp Hachtmann <hachti@hachti.de>
Mon, 28 Sep 2015 15:15:45 +0000 (17:15 +0200)
committerPhilipp Hachtmann <hachti@hachti.de>
Mon, 28 Sep 2015 15:15:45 +0000 (17:15 +0200)
Signed-off-by: Philipp Hachtmann <hachti@hachti.de>
bin/frosch [new symlink]
bin/hpgl [new symlink]
bin/rb [new file with mode: 0755]
bin/rktool [new symlink]
sw/pc/kermit_script/frosch [new file with mode: 0755]
sw/pc/kermit_script/frosch.k [new file with mode: 0644]

diff --git a/bin/frosch b/bin/frosch
new file mode 120000 (symlink)
index 0000000..d9ccbb3
--- /dev/null
@@ -0,0 +1 @@
+../sw/pc/kermit_script/frosch
\ No newline at end of file
diff --git a/bin/hpgl b/bin/hpgl
new file mode 120000 (symlink)
index 0000000..40b5469
--- /dev/null
+++ b/bin/hpgl
@@ -0,0 +1 @@
+../sw/plot_hpgl/pc/hpgl
\ No newline at end of file
diff --git a/bin/rb b/bin/rb
new file mode 100755 (executable)
index 0000000..a877b8f
--- /dev/null
+++ b/bin/rb
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# AUTO BOOT THE PDP8 VIA RIM LOADER
+
+PORT=`cat ~/.minirc.dfl | grep "port" | awk '{print $3}'`
+if [ ! "$PORT" ]; then PORT="/dev/ttyS0"; fi
+
+SPEED=`cat ~/.minirc.dfl | grep "baudrate" | awk '{print $3}'`
+AUTO_RIM=~/pdp8/work/autobin/autobin.rim
+echo "PORT : $PORT"
+echo "SPEED: $SPEED"
+
+error(){
+    echo "ERROR: $1" >&2
+    bad
+    exit $1
+}
+
+stty -F $PORT $SPEED  raw -crtscts -echo cs8 cstopb clocal || error 1
+
+cat $AUTO_RIM > $PORT || error 2
+
+sleep 0.1
+
+if [ -f "$1" ]; then
+    cat $1 > $PORT || error 3
+fi
diff --git a/bin/rktool b/bin/rktool
new file mode 120000 (symlink)
index 0000000..42e4c83
--- /dev/null
@@ -0,0 +1 @@
+../sw/speed8/pc/rktool
\ No newline at end of file
diff --git a/sw/pc/kermit_script/frosch b/sw/pc/kermit_script/frosch
new file mode 100755 (executable)
index 0000000..4d6aeb0
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+rm -f /var/lock/LCK..ttyUSB0
+stty -F /dev/ttyUSB0 38400 raw -echo clocal -crtscts
+kermit /$HOME/pdp8/sw/pc/kermit_script/frosch.k
\ No newline at end of file
diff --git a/sw/pc/kermit_script/frosch.k b/sw/pc/kermit_script/frosch.k
new file mode 100644 (file)
index 0000000..71bbedc
--- /dev/null
@@ -0,0 +1,7 @@
+
+set line /dev/ttyUSB0
+#set speed 38400
+set carrier-watch off
+set handshake none
+set flow-control none
+server