From c73ad5b4dab9be0daa6badd1a990ff9786f5c9ab Mon Sep 17 00:00:00 2001 From: 57ca2b96b7444cb986b2d6cf51d25ffd86c57743 Date: Mon, 23 Oct 2017 18:15:02 -0400 Subject: [PATCH] Some basic BASH scripts to help update the proxmark firmware and to start the application. Both scripts perform simple checks to autodetect the proxmark device. --- proxmark3.sh | 12 ++++++++++++ update.sh | 16 ++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 proxmark3.sh create mode 100755 update.sh diff --git a/proxmark3.sh b/proxmark3.sh new file mode 100755 index 000000000..6f648cabf --- /dev/null +++ b/proxmark3.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +function wait4proxmark { + echo "Waiting for Proxmark to appear..." + while [ ! -e /dev/ttyACM? ]; do + sleep .1 + done +} + +# start proxmark with first detected interface +wait4promark +client/proxmark3 /dev/ttyACM? diff --git a/update.sh b/update.sh new file mode 100755 index 000000000..3ffd43e80 --- /dev/null +++ b/update.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +function wait4proxmark { + echo "Waiting for Proxmark to appear..." + while [ ! -e /dev/ttyACM? ]; do + sleep .1 + done +} + +# flash bootroom +wait4proxmark +client/flasher /dev/ttyACM? -b bootrom/obj/bootrom.elf + +# flash system image +wait4proxmark +client/flasher /dev/ttyACM? armsrc/obj/fullimage.elf