We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ea1060 commit a232f39Copy full SHA for a232f39
util/load_demo_system.sh
@@ -1,7 +1,7 @@
1
+#!/bin/sh
2
# Copyright lowRISC contributors.
3
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
4
# SPDX-License-Identifier: Apache-2.0
-#!/bin/sh
5
6
if [ $# -ne 2 ]; then
7
echo "Usage $0 run|halt elf_file"
@@ -24,7 +24,7 @@ if [ $1 = "run" ]; then
24
EXIT_CMD='-c "exit"'
25
fi
26
27
-SCRIPT_DIR="$(dirname "$(readlink -e "$BASH_SOURCE")")"
+SCRIPT_DIR="$(dirname "$(readlink -e "$0")")"
28
29
openocd -f $SCRIPT_DIR/arty-a7-openocd-cfg.tcl -c "load_image $2 0x0" \
30
-c "verify_image $2 0x0" \
0 commit comments