Fix RK3399 u-boot update.

This commit is contained in:
fewtarius 2024-03-12 19:47:24 +00:00 committed by sydarn
parent 4a1096c718
commit 404a546fda

View file

@ -144,7 +144,7 @@ if [ -f $SYSTEM_ROOT/usr/share/bootloader/idbloader.img ]; then
echo "done"
fi
for BOOT_IMAGE in u-boot.itb u-boot.img rk3399-uboot.bin
for BOOT_IMAGE in u-boot.itb u-boot.img
do
if [ -f "$SYSTEM_ROOT/usr/share/bootloader/${BOOT_IMAGE}" ]; then
echo "Updating ${BOOT_IMAGE}..."
@ -153,6 +153,12 @@ do
fi
done
if [ -f $SYSTEM_ROOT/usr/share/bootloader/rk3399-uboot.bin ]; then
echo -n "Updating uboot.bin... "
dd if=$SYSTEM_ROOT/usr/share/bootloader/rk3399-uboot.bin of=$BOOT_DISK bs=512 seek=64 conv=fsync &>/dev/null
echo "done"
fi
if [ -f $SYSTEM_ROOT/usr/share/bootloader/trust.img ]; then
echo -n "Updating trust.img... "
dd if=$SYSTEM_ROOT/usr/share/bootloader/trust.img of=$BOOT_DISK bs=512 seek=24576 conv=fsync &>/dev/null