You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BeagleV-Fire-ubuntu/05_generate_payload.bin.sh

37 lines
745 B
Bash

#!/bin/bash
cd ./deploy/
if [ -f ./src.bin ] ; then
if [ -f ./input/payload.bin ] ; then
rm -rf ./input/payload.bin || true
fi
tree -s ./input/
./hss-payload-generator -vv -c config.yaml ./input/payload.bin
unset test_var
test_var=$(strings ./u-boot.bin | grep 'U-Boot 20' | head -n1 || true)
if [ ! "x${test_var}" = "x" ] ; then
echo "[u-boot.bin: ${test_var}]"
fi
unset test_var
test_var=$(strings ./src.bin | grep 'U-Boot 20' | head -n1 || true)
if [ ! "x${test_var}" = "x" ] ; then
echo "[src.bin: ${test_var}]"
fi
unset test_var
test_var=$(strings ./input/payload.bin | grep 'U-Boot 20' | head -n1 || true)
if [ ! "x${test_var}" = "x" ] ; then
echo "[payload.bin:${test_var}]"
fi
tree -s ./input/
fi
#