2019-03-26 15:59:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2018-07-16 20:45:36 +02:00
|
|
|
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
2017-11-01 22:57:41 +01:00
|
|
|
|
2021-02-28 11:10:42 +01:00
|
|
|
if [ -f "${RELEASE_DIR}/3rdparty/bootloader/idbloader.img" ]; then
|
2017-11-01 22:57:41 +01:00
|
|
|
echo "image: burn idbloader.img to image..."
|
2021-02-28 11:10:42 +01:00
|
|
|
dd if="${RELEASE_DIR}/3rdparty/bootloader/idbloader.img" of="${DISK}" bs=32k seek=1 conv=fsync,notrunc >"${SAVE_ERROR}" 2>&1 || show_error
|
2017-11-01 22:57:41 +01:00
|
|
|
fi
|
2021-02-28 11:10:42 +01:00
|
|
|
if [ -f "${RELEASE_DIR}/3rdparty/bootloader/uboot.img" ]; then
|
2017-11-01 22:57:41 +01:00
|
|
|
echo "image: burn uboot.img to image..."
|
2021-02-28 11:10:42 +01:00
|
|
|
dd if="${RELEASE_DIR}/3rdparty/bootloader/uboot.img" of="${DISK}" bs=64k seek=128 conv=fsync,notrunc >"${SAVE_ERROR}" 2>&1 || show_error
|
2017-11-01 22:57:41 +01:00
|
|
|
fi
|
2021-02-28 11:10:42 +01:00
|
|
|
if [ -f "${RELEASE_DIR}/3rdparty/bootloader/trust.img" ]; then
|
2017-11-01 22:57:41 +01:00
|
|
|
echo "image: burn trust.img to image..."
|
2021-02-28 11:10:42 +01:00
|
|
|
dd if="${RELEASE_DIR}/3rdparty/bootloader/trust.img" of="${DISK}" bs=64k seek=192 conv=fsync,notrunc >"${SAVE_ERROR}" 2>&1 || show_error
|
2017-11-01 22:57:41 +01:00
|
|
|
fi
|