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)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 15 Jan 2015 06:35:38 +0000 (15:35 +0900)
commit63dd8896c9851a14523548e9a927bced3f0af8cc
tree674f51a93e56ed468ba4d3ac648ef5afb5c9211f
parent44a9d8f790d0547f3756abbe80a496b98a26359a
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]