From 13f4ea5cd14e779d9a4413d567ac38ff39c969ab Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 14 Aug 2023 12:24:03 -0500 Subject: [PATCH] generate payload.bin from u-boot.bin and hss Signed-off-by: Robert Nelson --- .gitignore | 2 ++ create_sdcard_img.sh | 2 ++ generate_payload.bin.sh | 8 ++++++++ 3 files changed, 12 insertions(+) create mode 100755 generate_payload.bin.sh diff --git a/.gitignore b/.gitignore index 7ed2161..b49a76d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ deploy/images/ deploy/input/ deploy/hss-payload-generator +deploy/src.bin +deploy/u-boot.bin mirror/ riscv-toolchain/ hart-software-services/ diff --git a/create_sdcard_img.sh b/create_sdcard_img.sh index 211ff04..5358c2d 100755 --- a/create_sdcard_img.sh +++ b/create_sdcard_img.sh @@ -5,3 +5,5 @@ if [ ! -d ./root/ ] ; then mkdir ./root/ || true fi sudo genimage --config genimage.cfg + +# diff --git a/generate_payload.bin.sh b/generate_payload.bin.sh new file mode 100755 index 0000000..1dcbbe9 --- /dev/null +++ b/generate_payload.bin.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +cd ./deploy/ +cp -v ./u-boot.bin ./src.bin +./hss-payload-generator -c config.yaml -v ./input/payload.bin +sha256sum ./input/payload.bin + +#