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)
committerPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 17 Sep 2014 14:28:41 +0000 (16:28 +0200)
commit91fb646749ad0d69da57ac45e2282caf2fd41480
tree17d88677f61be3382844ca462120aa95424cd1dd
parentaf83a4258331f9bfc759f82b9278aadfc0831e7e
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]