Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Fix RK3399 u-boot update. #3033

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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