From: Philipp Hachtmann Date: Mon, 28 Sep 2015 15:15:45 +0000 (+0200) Subject: sw: Added bin folder and Kermit scripts X-Git-Url: http://gitweb.hachti.de/?p=pdp8.git;a=commitdiff_plain;h=3c4fa418fcf530bd9564bb4cc95007e1c1c5ae3e sw: Added bin folder and Kermit scripts Signed-off-by: Philipp Hachtmann --- diff --git a/bin/frosch b/bin/frosch new file mode 120000 index 0000000..d9ccbb3 --- /dev/null +++ b/bin/frosch @@ -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 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 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 index 0000000..42e4c83 --- /dev/null +++ b/bin/rktool @@ -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 index 0000000..4d6aeb0 --- /dev/null +++ b/sw/pc/kermit_script/frosch @@ -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 index 0000000..71bbedc --- /dev/null +++ b/sw/pc/kermit_script/frosch.k @@ -0,0 +1,7 @@ + +set line /dev/ttyUSB0 +#set speed 38400 +set carrier-watch off +set handshake none +set flow-control none +server