diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-15 13:43:04 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-15 13:43:04 +0100 |
commit | 337e76c21f28198e29df548a0a2be6864f9c2654 (patch) | |
tree | 88460a484c38d17ac2bd24929205e7572bc79f71 /scripts | |
parent | 4220bd7d064378752adcec8847d9af4a589190dd (diff) | |
parent | 76f745ea295aca912ff69355f9145d17fd2eecbf (diff) | |
download | barebox-337e76c21f28198e29df548a0a2be6864f9c2654.tar.gz barebox-337e76c21f28198e29df548a0a2be6864f9c2654.tar.xz |
Merge branch 'for-next/risc-V'
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/erizo-nmon-image | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/erizo-nmon-image b/scripts/erizo-nmon-image new file mode 100755 index 0000000000..b56fd365c6 --- /dev/null +++ b/scripts/erizo-nmon-image @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ $# != 2 ]; then + echo "Usage:" + echo " erizo-nmon-image <input-binary-file> <output-expect-file>" + + exit 1 +fi + +hexdump -v -e '/4 "%08x\n"' $1 | perl -e '$a = 0x80000000; while (<>) { chop; printf("expect \"nmon> \"\n"); printf("send \"w%08x$_\"\n", $a); $a = $a + 4; }' > $2 |