[openwrt/openwrt] uboot-envtools: use ubootenv_add_mtd function
LEDE Commits
lede-commits at lists.infradead.org
Thu Sep 11 14:02:44 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/0575c3a181261cfaa8fe014e8e9c20ddc19c5996
commit 0575c3a181261cfaa8fe014e8e9c20ddc19c5996
Author: Paweł Owoc <frut3k7 at gmail.com>
AuthorDate: Sat Sep 6 19:45:58 2025 +0200
uboot-envtools: use ubootenv_add_mtd function
Use ubootenv_add_mtd function for:
- Teltonika RUTC50
- Yuncore AX830
Signed-off-by: Paweł Owoc <frut3k7 at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19967
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
package/boot/uboot-tools/uboot-envtools/files/mediatek_filogic | 3 +--
package/boot/uboot-tools/uboot-envtools/files/qualcommax_ipq50xx | 4 +---
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/package/boot/uboot-tools/uboot-envtools/files/mediatek_filogic b/package/boot/uboot-tools/uboot-envtools/files/mediatek_filogic
index 0a5c6004de..8f75c85915 100644
--- a/package/boot/uboot-tools/uboot-envtools/files/mediatek_filogic
+++ b/package/boot/uboot-tools/uboot-envtools/files/mediatek_filogic
@@ -129,8 +129,7 @@ ubnt,unifi-6-plus)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x80000" "0x10000"
;;
teltonika,rutc50)
- local envdev=/dev/mtd$(find_mtd_index "u-boot-env")
- ubootenv_add_uci_config "$envdev" "0x0" "0x10000" "0x10000"
+ ubootenv_add_mtd "u-boot-env" "0x0" "0x10000" "0x10000"
;;
xiaomi,mi-router-ax3000t|\
xiaomi,mi-router-wr30u-stock|\
diff --git a/package/boot/uboot-tools/uboot-envtools/files/qualcommax_ipq50xx b/package/boot/uboot-tools/uboot-envtools/files/qualcommax_ipq50xx
index 3e590228d6..c73507423b 100644
--- a/package/boot/uboot-tools/uboot-envtools/files/qualcommax_ipq50xx
+++ b/package/boot/uboot-tools/uboot-envtools/files/qualcommax_ipq50xx
@@ -26,9 +26,7 @@ xiaomi,ax6000)
ubootenv_add_sys_mtd "bdata" "0x0" "0x10000" "0x20000"
;;
yuncore,ax830)
- idx="$(find_mtd_index 0:APPSBLENV)"
- [ -n "$idx" ] && \
- ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
+ ubootenv_add_mtd "0:APPSBLENV" "0x0" "0x10000" "0x10000"
;;
esac
More information about the lede-commits
mailing list