aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-02-27 23:02:59 +0000
committerDaniel Golle <daniel@makrotopia.org>2021-02-28 04:12:23 +0000
commitb102e281a4de8f177adcabbff07072a3c926c367 (patch)
treeb092148ad137c8b7df580b993df5b8387de435a5 /package
parent0246e48434920829f949fbc6aed0048bf66393f8 (diff)
downloadupstream-b102e281a4de8f177adcabbff07072a3c926c367.tar.gz
upstream-b102e281a4de8f177adcabbff07072a3c926c367.tar.bz2
upstream-b102e281a4de8f177adcabbff07072a3c926c367.zip
uboot-envtools: add defaults for Bananapi BPi-R64
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package')
-rw-r--r--package/boot/uboot-envtools/files/mediatek7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/boot/uboot-envtools/files/mediatek b/package/boot/uboot-envtools/files/mediatek
index c821a1f25a..ba6d780c49 100644
--- a/package/boot/uboot-envtools/files/mediatek
+++ b/package/boot/uboot-envtools/files/mediatek
@@ -17,6 +17,13 @@ case "$board" in
ubootenv_add_uci_config "/dev/ubi0_0" "0x0" "0x1f000" "0x1f000" "1"
ubootenv_add_uci_config "/dev/ubi0_1" "0x0" "0x1f000" "0x1f000" "1"
;;
+"bananapi,bpi-r64")
+ . /lib/upgrade/platform.sh
+ local rootdev=$(get_rootdev)
+ local envdev=/dev/$(get_partition $rootdev ubootenv)
+ ubootenv_add_uci_config "$envdev" "0x0" "0x80000" "0x80000" "1"
+ ubootenv_add_uci_config "$envdev" "0x80000" "0x80000" "0x80000" "1"
+ ;;
esac
config_load ubootenv