Amlogic: also update u-boot on /dev/mmcblk0 if this is not the boot device

This commit is contained in:
adamg 2024-01-28 15:51:08 +00:00
parent 5b9f168293
commit c47fcce54e

View file

@ -116,6 +116,10 @@ fi
if [ -f $SYSTEM_ROOT/usr/share/bootloader/${SUBDEVICE}_u-boot ]; then
echo "Updating u-boot on: $BOOT_DISK..."
dd if=$SYSTEM_ROOT/usr/share/bootloader/${SUBDEVICE}_u-boot of=$BOOT_DISK conv=fsync,notrunc bs=512 seek=1 &>/dev/null
if [ $BOOT_DISK != /dev/mmcblk0 ]; then
echo "Updating u-boot on: /dev/mmcblk0..."
dd if=$SYSTEM_ROOT/usr/share/bootloader/${SUBDEVICE}_u-boot of=/dev/mmcblk0 conv=fsync,notrunc bs=512 seek=1 &>/dev/null
fi
fi
if [ -f $BOOT_ROOT/ODROIDBIOS.BIN ]; then