tools: add script: mkimage_signed.sh for sign u-boot binary
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Thu, 10 Apr 2014 13:03:40 +0000 (15:03 +0200)
committerLukasz Majewski <l.majewski@samsung.com>
Thu, 30 Oct 2014 08:27:13 +0000 (09:27 +0100)
commit9584bdb696a3abfc8e90708e8b2bcbebf5b1b8b1
tree9492b68c7a989dc51892ea104019827c2dd4a268
parentdc90dd1de91db293168f43cec66097ff3faa3800
tools: add script: mkimage_signed.sh for sign u-boot binary

This script appends given binary image by signature header.
Script takes two arguments:
- @arg1: binary name
- @arg2: config name

Script usage:
./mkimage_signed.sh binary.img config_name
e.g.:
./mkimage_signed.sh u-boot-dtb.bin trats2_config

Sign header is stored on last 512 bytes of input binary.
Maximum imput binary size is 1MB - 512 Bytes = 1048064 Bytes.

The maximum size is limited by first bootloader (s-boot).
Now it is configured to load exactly 2048 blocks (1MB).
Current u-boot-dtb.bin size for trats2 is less than 600 KBytes,
so the size limit should not be an issue.

Change-Id: Ia7472be693df8d4135312971d963d27f2ea20f0f
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
tools/mkimage_signed.sh [new file with mode: 0755]