mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
projects/Amlogic: amend device trees update
* remove useless mesaage - users will have to use one of device trees we provide and they all include le-dt-id except for C2, where the message is useless * fix updating device tree for C2
This commit is contained in:
@@ -51,8 +51,6 @@ for arg in $(cat /proc/cmdline); do
|
||||
|
||||
if [ -f "/proc/device-tree/le-dt-id" ] ; then
|
||||
LE_DT_ID=$(cat /proc/device-tree/le-dt-id)
|
||||
else
|
||||
echo "*** remember to update your device tree! ***"
|
||||
fi
|
||||
|
||||
if [ -f "$UPDATE_DTB_IMG" ] ; then
|
||||
@@ -76,6 +74,15 @@ for arg in $(cat /proc/cmdline); do
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
for all_dtb in /flash/*.dtb /flash/DTB; do
|
||||
dtb=$(basename $all_dtb)
|
||||
if [ -f $SYSTEM_ROOT/usr/share/bootloader/$dtb ]; then
|
||||
echo "*** updating Device Tree Blob: $dtb ..."
|
||||
mount -o rw,remount $BOOT_ROOT
|
||||
cp -p $SYSTEM_ROOT/usr/share/bootloader/$dtb $BOOT_ROOT
|
||||
fi
|
||||
done
|
||||
;;
|
||||
disk=*)
|
||||
echo "*** updating DISK partition label ..."
|
||||
|
||||
Reference in New Issue
Block a user