Skip to content

Commit

Permalink
Merge pull request JustEnoughLinuxOS#3033 from fewtarius/dev
Browse files Browse the repository at this point in the history
Fix RK3399 u-boot update.
  • Loading branch information
fewtarius committed Mar 12, 2024
2 parents 1b3a047 + 195e145 commit ad0dd72
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion projects/Rockchip/bootloader/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}..."
Expand All @@ -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
Expand Down

0 comments on commit ad0dd72

Please sign in to comment.