mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +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"
|
||||
if [ -f "${BOOTLOADER_PATH}" ]; then
|
||||
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
|
||||
echo "image: bootloader ${BOOTLOADER_PATH} does not exist.";
|
||||
exit 1
|
||||
|
@ -59,7 +59,7 @@ fi
|
||||
# update bootloader
|
||||
if [ -f ${SYSTEM_ROOT}/usr/share/bootloader/u-boot-rockchip.bin ]; then
|
||||
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"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user