[openwrt/openwrt] uboot-envtools: mediatek_filogic: update bpi-r3
LEDE Commits
lede-commits at lists.infradead.org
Thu Feb 15 11:35:13 PST 2024
dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/8afce4893bed773212d8896856b6da0f32dfafa6
commit 8afce4893bed773212d8896856b6da0f32dfafa6
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Thu Jan 18 22:18:14 2024 +0000
uboot-envtools: mediatek_filogic: update bpi-r3
Unify env configuration now that BPi-R4 and BPi-R3 both use fitblk.
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
package/boot/uboot-envtools/files/mediatek_filogic | 20 ++++----------------
1 file changed, 4 insertions(+), 16 deletions(-)
diff --git a/package/boot/uboot-envtools/files/mediatek_filogic b/package/boot/uboot-envtools/files/mediatek_filogic
index 1050277292..829ce4e1f9 100644
--- a/package/boot/uboot-envtools/files/mediatek_filogic
+++ b/package/boot/uboot-envtools/files/mediatek_filogic
@@ -36,22 +36,7 @@ case "$board" in
asus,rt-ax59u)
ubootenv_add_uci_config "/dev/mtd0" "0x100000" "0x20000" "0x20000"
;;
-bananapi,bpi-r3)
- rootdev="$(cmdline_get_var root)"
- rootdev="${rootdev##*/}"
- rootdev="${rootdev%%p[0-9]*}"
- case "$rootdev" in
- mmc*)
- ubootenv_add_mmc_default
- ;;
- mtd*)
- ubootenv_add_nor_default
- ;;
- ubi*)
- ubootenv_add_ubi_default
- ;;
- esac
- ;;
+bananapi,bpi-r3|\
bananapi,bpi-r4)
. /lib/upgrade/platform.sh
@@ -63,6 +48,9 @@ bananapi,bpi-r4)
mmc*)
ubootenv_add_mmc_default "${bootdev%%p[0-9]*}"
;;
+ mtd*)
+ ubootenv_add_nor_default
+ ;;
esac
;;
cmcc,rax3000m)
More information about the lede-commits
mailing list