diff --git a/boot/arm/odroid-c2/sd_fuse/bl1.bin.hardkernel b/boot/arm/odroid-c2/sd_fuse/bl1.bin.hardkernel new file mode 100644 index 0000000..571fc46 Binary files /dev/null and b/boot/arm/odroid-c2/sd_fuse/bl1.bin.hardkernel differ diff --git a/boot/arm/odroid-c2/sd_fuse/sd_fusing.sh b/boot/arm/odroid-c2/sd_fuse/sd_fusing.sh new file mode 100755 index 0000000..48f0a6f --- /dev/null +++ b/boot/arm/odroid-c2/sd_fuse/sd_fusing.sh @@ -0,0 +1,35 @@ +#!/bin/sh +# +# Copyright (C) 2015 Hardkernel Co,. Ltd +# Dongjin Kim +# +# SPDX-License-Identifier: GPL-2.0+ +# + +DIR=$(dirname "${0}") + +BL1="${DIR}/bl1.bin.hardkernel" +UBOOT="${DIR}/u-boot.bin" + +if [ -z $1 ]; then + echo "Usage ./sd_fusing.sh " + exit 1 +fi + +if [ ! -f $BL1 ]; then + echo "error: $BL1 is not exist" + exit 1 +fi + +if [ ! -f $UBOOT ]; then + echo "error: $UBOOT is not exist" + exit 1 +fi + +sudo dd if=$BL1 of=$1 conv=fsync bs=1 count=442 +sudo dd if=$BL1 of=$1 conv=fsync bs=512 skip=1 seek=1 +sudo dd if=$UBOOT of=$1 conv=fsync bs=512 seek=97 + +sudo sync + +echo Finished. diff --git a/boot/arm/odroid-c2/sd_fuse/u-boot.bin b/boot/arm/odroid-c2/sd_fuse/u-boot.bin new file mode 100644 index 0000000..447410a Binary files /dev/null and b/boot/arm/odroid-c2/sd_fuse/u-boot.bin differ diff --git a/boot/arm/odroid-u2-x2/sd_fuse/bl1.HardKernel b/boot/arm/odroid-u2-x2/sd_fuse/bl1.HardKernel new file mode 100644 index 0000000..4fd71d4 Binary files /dev/null and b/boot/arm/odroid-u2-x2/sd_fuse/bl1.HardKernel differ diff --git a/boot/arm/odroid-u2-x2/sd_fuse/bl2.HardKernel b/boot/arm/odroid-u2-x2/sd_fuse/bl2.HardKernel new file mode 100644 index 0000000..1b90c1d Binary files /dev/null and b/boot/arm/odroid-u2-x2/sd_fuse/bl2.HardKernel differ diff --git a/boot/arm/odroid-u2-x2/sd_fuse/sd_fusing.sh b/boot/arm/odroid-u2-x2/sd_fuse/sd_fusing.sh new file mode 100755 index 0000000..39869dd --- /dev/null +++ b/boot/arm/odroid-u2-x2/sd_fuse/sd_fusing.sh @@ -0,0 +1,54 @@ +#!/bin/sh +# +# Copyright (C) 2011 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. +# +#################################### + +DIR=$(dirname "${0}") + +if [ -z $1 ] +then + echo "usage: ./sd_fusing.sh " + 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=2111 + +# +echo "BL1 fusing" +dd iflag=dsync oflag=dsync if="${DIR}/bl1.HardKernel" of="${1}" seek="${signed_bl1_position}" || exit 1 + +# +echo "BL2 fusing" +dd iflag=dsync oflag=dsync if="${DIR}/bl2.HardKernel" of="${1}" seek="${bl2_position}" || exit 1 + +# +echo "u-boot fusing" +dd iflag=dsync oflag=dsync if="${DIR}/../u-boot.bin" of="${1}" seek="${uboot_position}" || exit 1 + +# +echo "TrustZone S/W fusing" +dd iflag=dsync oflag=dsync if="${DIR}/tzsw.HardKernel" of="${1}" seek="${tzsw_position}" || exit 1 + +#################################### +# +echo "U-boot image is fused successfully." diff --git a/boot/arm/odroid-u2-x2/sd_fuse/tzsw.HardKernel b/boot/arm/odroid-u2-x2/sd_fuse/tzsw.HardKernel new file mode 100644 index 0000000..88b2487 Binary files /dev/null and b/boot/arm/odroid-u2-x2/sd_fuse/tzsw.HardKernel differ diff --git a/boot/arm/odroid-u2-x2/u-boot.bin b/boot/arm/odroid-u2-x2/u-boot.bin new file mode 100644 index 0000000..9052b7a Binary files /dev/null and b/boot/arm/odroid-u2-x2/u-boot.bin differ diff --git a/boot/arm/rpi/keep b/boot/arm/rpi/keep new file mode 100644 index 0000000..e69de29 diff --git a/boot/arm/udooneo/sd_fuse/SPL b/boot/arm/udooneo/sd_fuse/SPL new file mode 100644 index 0000000..93758f4 Binary files /dev/null and b/boot/arm/udooneo/sd_fuse/SPL differ diff --git a/boot/arm/udooneo/sd_fuse/sd_fuse.sh b/boot/arm/udooneo/sd_fuse/sd_fuse.sh new file mode 100755 index 0000000..eaccb1d --- /dev/null +++ b/boot/arm/udooneo/sd_fuse/sd_fuse.sh @@ -0,0 +1,44 @@ +#!/bin/sh +# +# mudler@sabayon.org +# +# 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. +# +#################################### + +DIR=$(dirname "${0}") + +if [ -z $1 ] +then + echo "usage: ./sd_fusing.sh " + exit 0 +fi + +if [ -b $1 ] +then + echo "$1 reader is identified." +else + echo "$1 is NOT identified." + exit 0 +fi + +#################################### +# fusing images + +spl_position=1 +uboot_position=69 + +#SPL fusing> +echo "SPL fusing" +dd iflag=dsync oflag=dsync if="${DIR}/SPL" of="${1}" seek="${spl_position}" || exit 1 + +#u-boot fusing> +echo "u-boot fusing" +dd iflag=dsync oflag=dsync if="${DIR}/u-boot.img" of="${1}" seek="${uboot_position}" || exit 1 + + +#################################### +# +echo "U-boot image is fused successfully." diff --git a/boot/arm/udooneo/sd_fuse/u-boot.img b/boot/arm/udooneo/sd_fuse/u-boot.img new file mode 100644 index 0000000..3a8077b Binary files /dev/null and b/boot/arm/udooneo/sd_fuse/u-boot.img differ