Skip to content

Commit

Permalink
uboot-envtools: mediatek_filogic: update bpi-r3
Browse files Browse the repository at this point in the history
Unify env configuration now that BPi-R4 and BPi-R3 both use fitblk.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  • Loading branch information
dangowrt authored and pull[bot] committed Mar 18, 2024
1 parent e3891e8 commit 7856127
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions package/boot/uboot-envtools/files/mediatek_filogic
Expand Up @@ -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

Expand All @@ -63,6 +48,9 @@ bananapi,bpi-r4)
mmc*)
ubootenv_add_mmc_default "${bootdev%%p[0-9]*}"
;;
mtd*)
ubootenv_add_nor_default
;;
esac
;;
cmcc,rax3000m)
Expand Down

0 comments on commit 7856127

Please sign in to comment.