fwupd/plugins/vbe/example/build.sh
Simon Glass cbfda0739c vbe: Add a new plugin for writing Flat Image Trees
This adds the logic for the VBE plugin. It supports reading information
from the system to determine which VBE method (a device in fwupd) is in
use, then creating those devices to handle the actual update.

Verified Boot for Embedded (VBE) relies on FIT files to operate.
FIT is a way of packaging multiple images along with information about
them.

Signed-off-by: Simon Glass <sjg@chromium.org>
2022-07-11 08:28:42 +01:00

15 lines
486 B
Bash
Executable File

#!/bin/sh
set -e
appstream-util validate-relax com.Vbe.Board.metainfo.xml
#dd if=/dev/zero of=update.bin bs=1M count=1
mkimage -D "-p 0x100" -n "v1.2.4" -O U-Boot -A arm64 -C none -T firmware -f auto -d update.bin firmware.fit
fdtput firmware.fit -t s /configurations/conf-1 version "1.2.4"
# Make the data external, now that we have finished fiddling with the FDT
mkimage -E -F firmware.fit
gcab --create --zip --nopath Vbe-Board-1.2.4.cab firmware.fit com.Vbe.Board.metainfo.xml