[openwrt/openwrt] uboot-envtools: add defaults for Bananapi BPi-R64
LEDE Commits
lede-commits at lists.infradead.org
Sat Feb 27 23:19:50 EST 2021
dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/b102e281a4de8f177adcabbff07072a3c926c367
commit b102e281a4de8f177adcabbff07072a3c926c367
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sat Feb 27 23:02:59 2021 +0000
uboot-envtools: add defaults for Bananapi BPi-R64
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
package/boot/uboot-envtools/files/mediatek | 7 +++++++
1 file changed, 7 insertions(+)
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
More information about the lede-commits
mailing list