File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ SIGN=${SIGN:- " --ecc256" }
4+ HASH=${HASH:- " --sha256" }
15
26cp /tmp/br-linux-wolfboot/output/images/bzImage .
3- tools/keytools/sign --ecc384 --sha384 bzImage wolfboot_signing_private_key.der 8
4- tools/keytools/sign --ecc384 --sha384 bzImage wolfboot_signing_private_key.der 2
7+ tools/keytools/sign $SIGN $HASH bzImage wolfboot_signing_private_key.der 8
8+ tools/keytools/sign $SIGN $HASH bzImage wolfboot_signing_private_key.der 2
59
610cp base-part-image app.bin
711dd if=bzImage_v8_signed.bin of=app.bin bs=1k seek=1024 conv=notrunc
Original file line number Diff line number Diff line change 11#! /bin/bash
2+ SIGN=${SIGN:- " --ecc256" }
3+ HASH=${HASH:- " --sha256" }
4+
25IMAGE=bzImage
36
47dd if=/dev/zero of=app.bin bs=1M count=64
1518w
1619EOF
1720# copy bzImage in the root folder
18- tools/keytools/sign --ecc384 --sha384 ${IMAGE} wolfboot_signing_private_key.der 1
19- tools/keytools/sign --ecc384 --sha384 ${IMAGE} wolfboot_signing_private_key.der 2
21+ tools/keytools/sign $SIGN $HASH ${IMAGE} wolfboot_signing_private_key.der 1
22+ tools/keytools/sign $SIGN $HASH ${IMAGE} wolfboot_signing_private_key.der 2
2023dd if=${IMAGE} _v1_signed.bin of=app.bin bs=512 seek=2048 conv=notrunc
2124dd if=${IMAGE} _v2_signed.bin of=app.bin bs=512 seek=34816 conv=notrunc
You can’t perform that action at this time.
0 commit comments