summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2023-07-27 07:34:54 +0300
committerTom Rini <trini@konsulko.com>2023-07-28 17:11:01 +0300
commitbadaa1f6a7a910e9dc62c9a53af0997182261ecf (patch)
treeb03a75e0d49dcf8759621ba16badbd1faa9f8efc /tools
parent35ae06fb866831e6323db43dbee6572664ecdc18 (diff)
downloadu-boot-badaa1f6a7a910e9dc62c9a53af0997182261ecf.tar.xz
boards: siemens: iot2050: Unify PG1 and PG2/M.2 configurations again
This avoids having to maintain to defconfigs that are 99% equivalent. The approach is to use binman to generate two flash images, flash-pg1.bin and flash-pg2.bin. With the help of a template dtsi, we can avoid duplicating the common binman image definitions. Suggested-by: Andrew Davis <afd@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/iot2050-sign-fw.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/iot2050-sign-fw.sh b/tools/iot2050-sign-fw.sh
index 3f953c09ed..6b426c854c 100755
--- a/tools/iot2050-sign-fw.sh
+++ b/tools/iot2050-sign-fw.sh
@@ -39,8 +39,10 @@ CERT_X509=$(mktemp XXXXXXXX.crt)
openssl req -new -x509 -key $1 -nodes -outform DER -out $CERT_X509 -config $TEMP_X509 -sha512
cat $CERT_X509 tispl.bin > tispl.bin_signed
-source/tools/binman/binman replace -i flash.bin -f tispl.bin_signed fit@0x180000
+source/tools/binman/binman replace -i flash-pg1.bin -f tispl.bin_signed fit@180000
+source/tools/binman/binman replace -i flash-pg2.bin -f tispl.bin_signed fit@180000
rm $TEMP_X509 $CERT_X509
-source/tools/binman/binman sign -i flash.bin -k $1 -a sha256,rsa4096 fit@0x380000
+source/tools/binman/binman sign -i flash-pg1.bin -k $1 -a sha256,rsa4096 fit@380000
+source/tools/binman/binman sign -i flash-pg2.bin -k $1 -a sha256,rsa4096 fit@380000