summaryrefslogtreecommitdiff
path: root/farm/magnus/tftpd-magnus
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2020-03-16 10:23:27 +0100
committerGeert Uytterhoeven <geert+renesas@glider.be>2020-03-16 10:23:27 +0100
commit1a43a66986f91df9f0d0a2377394deab74422fb5 (patch)
treed9643ba3629f0de5466833339abfde6b9e2920fb /farm/magnus/tftpd-magnus
parent7457c4d2416d39b53ed7a55184fa39fed4ba2d8e (diff)
farm: magnus: Add basic tools
Add basic tools to use Magnus' board farm. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'farm/magnus/tftpd-magnus')
-rwxr-xr-xfarm/magnus/tftpd-magnus19
1 files changed, 19 insertions, 0 deletions
diff --git a/farm/magnus/tftpd-magnus b/farm/magnus/tftpd-magnus
new file mode 100755
index 0000000..4ec30e2
--- /dev/null
+++ b/farm/magnus/tftpd-magnus
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+TARGET=${0#*-}
+
+case "$1" in
+start)
+ ssh $TARGET-mgr qemu-system-i386 -machine none -net nic,vlan=0 \
+ -net tap,vlan=0,ifname=tap0,script=no,downscript=no \
+ -net user,vlan=0,tftp=/home/user/ &
+ ;;
+
+stop)
+ ssh $TARGET-mgr killall qemu-system-i386
+ ;;
+
+*)
+ echo "Usage: $0 (start|stop)"
+ exit 1
+esac