diff options
author | Zhang Qiang <qiang.z.zhang@intel.com> | 2014-04-03 15:53:09 +0800 |
---|---|---|
committer | Zhang Qiang <qiang.z.zhang@intel.com> | 2014-04-03 15:53:09 +0800 |
commit | b979ae3b9b879ce19582770e2ba89eb3e66f964a (patch) | |
tree | 758e7684bbaa43d8899ccbc49b133ff0112d3a88 /emulator | |
download | build-b979ae3b9b879ce19582770e2ba89eb3e66f964a.tar.gz build-b979ae3b9b879ce19582770e2ba89eb3e66f964a.tar.bz2 build-b979ae3b9b879ce19582770e2ba89eb3e66f964a.zip |
Imported Upstream version 2013.11.12upstream/2013.11.12
Diffstat (limited to 'emulator')
-rwxr-xr-x | emulator/emulator.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/emulator/emulator.sh b/emulator/emulator.sh new file mode 100755 index 0000000..0051172 --- /dev/null +++ b/emulator/emulator.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +echo "ERROR: the emulator.sh script got not changed to support your emulator!" +exit 1 + + +### +### Example for the aarch64 emulator: +### + +LOG=$(mktemp) +./Foundation_v8 --image ./img-foundation.axf \ + --block-device "$1" \ + --network=none &> $LOG & +while test 0$(grep -c terminal_0: $LOG ) -lt 1; do + echo ".." + sleep 1 +done +cat $LOG +# terminal_0: Listening for serial connection on port 5012 +PORT=$(grep terminal_0: $LOG | head -n 1 | cut -d " " -f 8) +rm -f $LOG +# telnet dies when emulator is quiting +telnet 127.0.0.1 $PORT || exit 0 + + |