mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 06:36:41 +00:00
Rockchip: Speedup bootloader writing
This commit is contained in:
parent
db3e880208
commit
4dd23ad162
@ -5,7 +5,7 @@ if [ -n "${UBOOT_SYSTEM}" ]; then
|
|||||||
BOOTLOADER_PATH="${RELEASE_DIR}/3rdparty/bootloader/u-boot-rockchip.bin"
|
BOOTLOADER_PATH="${RELEASE_DIR}/3rdparty/bootloader/u-boot-rockchip.bin"
|
||||||
if [ -f "${BOOTLOADER_PATH}" ]; then
|
if [ -f "${BOOTLOADER_PATH}" ]; then
|
||||||
echo "image: burn bootloader to image..."
|
echo "image: burn bootloader to image..."
|
||||||
dd if="${BOOTLOADER_PATH}" of="${DISK}" seek=64 conv=fsync,notrunc >"${SAVE_ERROR}" 2>&1 || show_error
|
dd if="${BOOTLOADER_PATH}" of="${DISK}" bs=32k seek=1 conv=fsync,notrunc >"${SAVE_ERROR}" 2>&1 || show_error
|
||||||
else
|
else
|
||||||
echo "image: bootloader ${BOOTLOADER_PATH} does not exist.";
|
echo "image: bootloader ${BOOTLOADER_PATH} does not exist.";
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -59,7 +59,7 @@ fi
|
|||||||
# update bootloader
|
# update bootloader
|
||||||
if [ -f ${SYSTEM_ROOT}/usr/share/bootloader/u-boot-rockchip.bin ]; then
|
if [ -f ${SYSTEM_ROOT}/usr/share/bootloader/u-boot-rockchip.bin ]; then
|
||||||
echo -n "Updating fit image u-boot-rockchip.bin ... "
|
echo -n "Updating fit image u-boot-rockchip.bin ... "
|
||||||
dd if=${SYSTEM_ROOT}/usr/share/bootloader/u-boot-rockchip.bin of=${BOOT_DISK} seek=64 conv=fsync &>/dev/null
|
dd if=${SYSTEM_ROOT}/usr/share/bootloader/u-boot-rockchip.bin of=${BOOT_DISK} bs=32k seek=1 conv=fsync,notrunc &>/dev/null
|
||||||
echo "done"
|
echo "done"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user