uboot-envtools: mediatek_filogic: update bpi-r3
authorDaniel Golle <daniel@makrotopia.org>
Thu, 18 Jan 2024 22:18:14 +0000 (22:18 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 15 Feb 2024 19:30:08 +0000 (19:30 +0000)
Unify env configuration now that BPi-R4 and BPi-R3 both use fitblk.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/boot/uboot-envtools/files/mediatek_filogic

index 1050277292a2c9789c4efe61ce28c18a55dcc747..829ce4e1f923cf129fe7b815612064719351c432 100644 (file)
@@ -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)