Add demo for wolfBoot + wolfIP on AMD UltraScale+ MPSoC (ZCU102)#12
Open
dgarske wants to merge 3 commits into
Open
Add demo for wolfBoot + wolfIP on AMD UltraScale+ MPSoC (ZCU102)#12dgarske wants to merge 3 commits into
dgarske wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new ZCU102 (ZynqMP) example demonstrating secure boot of a bare-metal wolfIP application chain-loaded by wolfBoot, including a signed OTA update flow staged to the SD card.
Changes:
- New ZCU102 demo README documenting boot chain, build, SD programming, and OTA update steps.
- New
build.shto build wolfBoot, build/sign the wolfIP app, and assembleBOOT.BINviabootgen. - New
program-sd.shto provisionBOOT.BINand the signed application onto an SD card, plus supportingboot.bif.inand.gitignore.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
zynqmp-zcu102-wolfip/README.md |
Documents the demo’s boot chain, build steps, SD provisioning, and OTA update workflow. |
zynqmp-zcu102-wolfip/build.sh |
Automates building wolfBoot + wolfIP app, signing, and generating BOOT.BIN. |
zynqmp-zcu102-wolfip/program-sd.sh |
Writes BOOT.BIN to the FAT partition and the signed app to the raw slot on SD. |
zynqmp-zcu102-wolfip/boot.bif.in |
bootgen template describing the ZynqMP boot image composition. |
zynqmp-zcu102-wolfip/.gitignore |
Ignores build artifacts under out/. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
… + turnkey update/partition helpers
Comment on lines
+44
to
+46
| ( cd "$WOLFBOOT" && make keytools >/dev/null \ | ||
| && make clean >/dev/null 2>&1 || true ) | ||
| ( cd "$WOLFBOOT" && make CROSS_COMPILE="$CROSS" wolfboot.elf ) |
| cp "$OUT/wolfip_app_v${UPDATE_VERSION}_signed.bin" "$OUT/wolfip_update.bin" | ||
|
|
||
| echo "== 3/3 BOOT.BIN (FSBL+PMUFW+BL31+wolfBoot) ==" | ||
| sed -e "s|@FW@|$FW|g" -e "s|@WOLFBOOT@|$OUT|g" "$HERE/boot.bif.in" > "$OUT/boot.bif" |
Comment on lines
+42
to
+45
| MNT="$(mktemp -d)" | ||
| sudo mount "${SD}${P}1" "$MNT" | ||
| sudo cp "$OUT/BOOT.BIN" "$MNT/BOOT.BIN" | ||
| sync; sudo umount "$MNT"; rmdir "$MNT" |
Comment on lines
+25
to
+27
| [ -f "$IMG" ] || { echo "ERROR: $IMG not found - run ./build.sh first" >&2; exit 1; } | ||
| [ -d "$TFTP_ROOT" ] || { echo "ERROR: TFTP_ROOT $TFTP_ROOT is not a directory - start a TFTP server or set TFTP_ROOT=" >&2; exit 1; } | ||
| command -v nc >/dev/null || { echo "ERROR: 'nc' (netcat) not found" >&2; exit 1; } |
| ## Prerequisites | ||
|
|
||
| - **wolfBoot** - the `../wolfBoot` submodule: `git submodule update --init --recursive wolfBoot` | ||
| - **wolfIP** - a sibling clone of [wolfssl/wolfip](https://github.com/wolfSSL/wolfip) (the AMD/Xilinx ports + the ZCU102 OTA support): `git clone https://github.com/wolfSSL/wolfip ../../wolfip` (override with `WOLFIP=/path/to/wolfip`). |
… trap, TFTP writability, README link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.