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

Commit

Permalink
Merge pull request #2822 from adamg88/fix-amlogic-updates
Browse files Browse the repository at this point in the history
Amlogic: fix updates and align with the rest of the project
  • Loading branch information
spycat88 authored Feb 4, 2024
2 parents 8ff5701 + 07b9bfe commit 69637dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion projects/Amlogic/bootloader/boot.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ JELOS-UBOOT-CONFIG
setenv dtb_loadaddr "0x10000000"
setenv loadaddr "0x1B00000"

setenv bootargs "boot=UUID=@BOOT_UUID@ disk=UUID=@DISK_UUID@ @EXTRA_CMDLINE@"
setenv bootargs "boot=UUID=@UUID_SYSTEM@ disk=UUID=@UUID_STORAGE@ @EXTRA_CMDLINE@"

load mmc ${devno}:1 ${loadaddr} KERNEL
load mmc ${devno}:1 ${dtb_loadaddr} ${fdtfile}
Expand Down
2 changes: 1 addition & 1 deletion projects/Amlogic/bootloader/extlinux/extlinux.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LABEL JELOS
LINUX /KERNEL
FDTDIR /
APPEND boot=UUID=@BOOT_UUID@ disk=UUID=@DISK_UUID@ @EXTRA_CMDLINE@
APPEND boot=UUID=@UUID_SYSTEM@ disk=UUID=@UUID_STORAGE@ @EXTRA_CMDLINE@
8 changes: 4 additions & 4 deletions projects/Amlogic/bootloader/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ if [ -f $BOOT_ROOT/extlinux/extlinux.conf ] || [ -n "${1}" ]; then
mkdir "${BOOT_ROOT}/extlinux"
fi
cp -p $SYSTEM_ROOT/usr/share/bootloader/extlinux/extlinux.conf $BOOT_ROOT/extlinux
sed -e "s/@BOOT_UUID@/$BOOT_UUID/" \
-e "s/@DISK_UUID@/$DISK_UUID/" \
sed -e "s/@UUID_SYSTEM@/$UUID_SYSTEM/" \
-e "s/@UUID_STORAGE@/$UUID_STORAGE/" \
-i $BOOT_ROOT/extlinux/extlinux.conf
fi
fi
Expand All @@ -107,8 +107,8 @@ if [ -f $BOOT_ROOT/boot.ini ] || [ -n "${1}" ]; then
if [ -f /usr/share/bootloader/boot.ini ]; then
echo "Updating boot.ini"
cp -p /usr/share/bootloader/boot.ini $BOOT_ROOT/boot.ini
sed -e "s/@BOOT_UUID@/$BOOT_UUID/" \
-e "s/@DISK_UUID@/$DISK_UUID/" \
sed -e "s/@UUID_SYSTEM@/$UUID_SYSTEM/" \
-e "s/@UUID_STORAGE@/$UUID_STORAGE/" \
-i $BOOT_ROOT/boot.ini
fi
fi
Expand Down

0 comments on commit 69637dd

Please sign in to comment.