[openwrt/openwrt] uboot-envtools: mt7622: make use of find_mmc_part

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 1 11:22:26 PDT 2021


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/cb5953635ed66e66c25624201c3b3289212be73f

commit cb5953635ed66e66c25624201c3b3289212be73f
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Mon Nov 1 14:00:57 2021 +0000

    uboot-envtools: mt7622: make use of find_mmc_part
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 package/boot/uboot-envtools/files/mediatek_mt7622 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/boot/uboot-envtools/files/mediatek_mt7622 b/package/boot/uboot-envtools/files/mediatek_mt7622
index 495a837274..65ced284c3 100644
--- a/package/boot/uboot-envtools/files/mediatek_mt7622
+++ b/package/boot/uboot-envtools/files/mediatek_mt7622
@@ -22,7 +22,7 @@ bananapi,bpi-r64)
 	export_partdevice rootdev 0
 	case "$rootdev" in
 	mmc*)
-		local envdev=/dev/$(get_partition_by_name $rootdev ubootenv)
+		local envdev=$(find_mmc_part "ubootenv" $rootdev)
 		ubootenv_add_uci_config "$envdev" "0x0" "0x80000" "0x80000" "1"
 		ubootenv_add_uci_config "$envdev" "0x80000" "0x80000" "0x80000" "1"
 		;;



More information about the lede-commits mailing list