From 1a43a66986f91df9f0d0a2377394deab74422fb5 Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Mon, 16 Mar 2020 10:23:27 +0100 Subject: farm: magnus: Add basic tools Add basic tools to use Magnus' board farm. Signed-off-by: Geert Uytterhoeven --- farm/magnus/tftpd-magnus | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 farm/magnus/tftpd-magnus (limited to 'farm/magnus/tftpd-magnus') 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 -- cgit v1.2.3