Skip to content

Commit

Permalink
Merge pull request #280 from sydarn/install-new-dtbs-rockchip
Browse files Browse the repository at this point in the history
rockchip: install new dtbs also on update
  • Loading branch information
sydarn authored Jun 11, 2024
2 parents bc7a484 + c243cff commit 65284af
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions projects/Rockchip/bootloader/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ fi
# mount $BOOT_ROOT rw
mount -o remount,rw $BOOT_ROOT

for all_dtb in $BOOT_ROOT/*.dtb; do
dtb=$(basename $all_dtb)
if [ -f $SYSTEM_ROOT/usr/share/bootloader/$dtb ]; then
echo "Updating $dtb..."
cp -p $SYSTEM_ROOT/usr/share/bootloader/$dtb $BOOT_ROOT
for dtb in $SYSTEM_ROOT/usr/share/bootloader/*.dtb; do
dtb_base=$(basename $dtb)
if [ -f $BOOT_ROOT/$dtb_base ]; then
echo "Updating $dtb_base..."
cp -p $dtb $BOOT_ROOT
else
echo "Installing $dtb_base..."
cp -p $dtb $BOOT_ROOT
fi
done

Expand Down

0 comments on commit 65284af

Please sign in to comment.