blob: 02cbfd2a4cd6119e342ae6fa9452738c29f7fdbb [file] [log] [blame]
#
# Copyright (C) 2013 Samsung Electronics Co., Ltd.
# http://www.samsung.com/
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
####################################
if [ -z $1 ]
then
echo "usage: ./sd_fusing.sh <SD Reader's device file>"
exit 0
fi
if [ -b $1 ]
then
echo "$1 reader is identified."
else
echo "$1 is NOT identified."
exit 0
fi
####################################
# fusing images
signed_bl1_position=1
bl2_position=31
uboot_position=63
tzsw_position=719
#<BL1 fusing>
echo "BL1 fusing"
dd iflag=dsync oflag=dsync if=./E3250.N.bl1.bin of=$1 seek=$signed_bl1_position
#<BL2 fusing>
echo "BL2 fusing"
dd iflag=dsync oflag=dsync if=./espresso3250-spl.bin of=$1 seek=$bl2_position
#<u-boot fusing>
echo "u-boot fusing"
dd iflag=dsync oflag=dsync if=./u-boot.bin of=$1 seek=$uboot_position
#<TrustZone S/W fusing>
echo "TrustZone S/W fusing"
dd iflag=dsync oflag=dsync if=./E3250.N.tzsw.bin of=$1 seek=$tzsw_position
####################################
#<Message Display>
echo "U-boot image is fused successfully."
echo "Eject SD card and insert it again."