Skip to content

Commit

Permalink
imx8m: Change mkimage for mscale to support HAB sign
Browse files Browse the repository at this point in the history
1. Add 8K dummy CSF area for SPL-DDR image (SPL + DDR FW)
2. We use -p option to generate FIT image, which locates the image from 0x3000,
   so there is a space reserved for IVT and CSF of FIT. The imx-mkimage will generate the
   FIT IVT at default and set its CSF pointer to this reserved space.

   In the CSF file of FIT, we have to sign multiple blocks since the FIT loads different
   images to different addresses. Also the FIT FDT part needs to be signed as it has the
   configurations.

Signed-off-by: Ye Li <[email protected]>
  • Loading branch information
Ye Li committed Nov 13, 2017
1 parent b342ce3 commit 812db50
Show file tree
Hide file tree
Showing 3 changed files with 287 additions and 33 deletions.
16 changes: 16 additions & 0 deletions iMX8M/mkimage_fit_atf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
if [ ! -f $BL31 ]; then
echo "WARNING: BL31 file $BL31 NOT found, resulting binary is non-functional" >&2
BL31=/dev/null
else
echo "bl31.bin size: " >&2
ls -lct bl31.bin | awk '{print $5}' >&2
fi

BL32="tee.bin"
Expand All @@ -18,15 +21,28 @@ if [ ! -f $BL32 ]; then
BL32=/dev/null
else
echo "Building with TEE support, make sure your bl31 is compiled with spd. If you do not want tee, please delete tee.bin" >&2
echo "tee.bin size: " >&2
ls -lct tee.bin | awk '{print $5}' >&2
fi

BL33="u-boot-nodtb.bin"

if [ ! -f $BL33 ]; then
echo "WARNING: $BL33 file NOT found" >&2
exit 0
else

echo "u-boot-nodtb.bin size: " >&2
ls -lct u-boot-nodtb.bin | awk '{print $5}' >&2
fi

for dtname in $*
do
echo "$dtname size: " >&2
ls -lct $dtname | awk '{print $5}' >&2
done


cat << __HEADER_EOF
/dts-v1/;
Expand Down
Loading

0 comments on commit 812db50

Please sign in to comment.