From 584997ba599c5af38769c363a1813b5dd9d92806 Mon Sep 17 00:00:00 2001 From: "G. Naveen Kumar" Date: Sat, 18 Apr 2026 13:06:58 +0530 Subject: [PATCH 1/5] utils: add ipq-art-editor Add a new package, ipq-art-editor, a userspace utility designed to modify Qualcomm IPQ ART (Atheros Radio Test) partition fields and recalculate the required checksums. This tool allows for on-the-fly modification of the ART partition on target devices or offline editing of partition copies. It is specifically designed for factory-line automation to facilitate bulk updates of MAC addresses and customer-specific data. Features: - Update MAC1 and MAC2 fields. - Update CUSTOMER_DATA fields. - Write arbitrary raw bytes at a specified offset. - Recompute and write the ART checksum. - Support for direct file paths or 0:ART partition lookup. Package details: - Name: ipq-art-editor - Version: 1.0.0 - License: GPL-3.0 - Binary: /usr/sbin/ipq-art-editor Source: https://github.com/gvvsnrnaveen/ipq-art-editor Signed-off-by: G. Naveen Kumar --- utils/ipq-art-editor/Makefile | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 utils/ipq-art-editor/Makefile diff --git a/utils/ipq-art-editor/Makefile b/utils/ipq-art-editor/Makefile new file mode 100644 index 00000000000000..33d406e2f520db --- /dev/null +++ b/utils/ipq-art-editor/Makefile @@ -0,0 +1,44 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=ipq-art-editor +PKG_VERSION:=1.0.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=1.0.1.tar.gz +PKG_SOURCE_URL:=https://github.com/gvvsnrnaveen/ipq-art-editor/archive/refs/tags/ +PKG_HASH:=a6cb8191f9f06c7538c5ee7328c850a8ecd085573460e1afeae4e3b82f7b559e +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +PKG_LICENSE:=GPL-3.0-only +PKG_LICENSE_FILES:=LICENSE +PKG_MAINTAINER:=G. Naveen Kumar + +include $(INCLUDE_DIR)/package.mk + +define Package/ipq-art-editor + SECTION:=utils + CATEGORY:=Utilities + TITLE:=IPQ ART partition editor utility +endef + +define Package/ipq-art-editor/description + Utility to update MAC addresses, customer data, and raw bytes in + Qualcomm IPQ ART partitions/files and recalculate ART checksum. + Supports IPQ60xx and IPQ80xx platforms +endef + +TARGET_CFLAGS += -Wall -Wextra + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR)/src \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" +endef + +define Package/ipq-art-editor/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ipq_art_editor $(1)/usr/sbin/ipq-art-editor +endef + +$(eval $(call BuildPackage,ipq-art-editor)) From ff205ecd012162ae793ba82ea5de43211aa04735 Mon Sep 17 00:00:00 2001 From: Naveen Kumar <61074314+gvvsnrnaveen@users.noreply.github.com> Date: Sat, 18 Apr 2026 20:49:58 +0530 Subject: [PATCH 2/5] Adding URL in the package description Adding package url Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Naveen Kumar <61074314+gvvsnrnaveen@users.noreply.github.com> --- utils/ipq-art-editor/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/ipq-art-editor/Makefile b/utils/ipq-art-editor/Makefile index 33d406e2f520db..ce862852d113dc 100644 --- a/utils/ipq-art-editor/Makefile +++ b/utils/ipq-art-editor/Makefile @@ -19,6 +19,7 @@ define Package/ipq-art-editor SECTION:=utils CATEGORY:=Utilities TITLE:=IPQ ART partition editor utility + URL:=https://github.com/gvvsnrnaveen/ipq-art-editor endef define Package/ipq-art-editor/description From 0dde053a46baafdb73f3c3f4033f2fed1612a8fd Mon Sep 17 00:00:00 2001 From: Naveen Kumar <61074314+gvvsnrnaveen@users.noreply.github.com> Date: Sat, 18 Apr 2026 21:16:55 +0530 Subject: [PATCH 3/5] Update utils/ipq-art-editor/Makefile Using PKG_VERSION variable in PKG_SOURCE Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Naveen Kumar <61074314+gvvsnrnaveen@users.noreply.github.com> --- utils/ipq-art-editor/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ipq-art-editor/Makefile b/utils/ipq-art-editor/Makefile index ce862852d113dc..ff3638802a26e5 100644 --- a/utils/ipq-art-editor/Makefile +++ b/utils/ipq-art-editor/Makefile @@ -4,7 +4,7 @@ PKG_NAME:=ipq-art-editor PKG_VERSION:=1.0.1 PKG_RELEASE:=1 -PKG_SOURCE:=1.0.1.tar.gz +PKG_SOURCE:=$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/gvvsnrnaveen/ipq-art-editor/archive/refs/tags/ PKG_HASH:=a6cb8191f9f06c7538c5ee7328c850a8ecd085573460e1afeae4e3b82f7b559e PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) From 69e7a709b08ebbd7dc32f9d5f16ebff3e3b4dbe3 Mon Sep 17 00:00:00 2001 From: Naveen Kumar <61074314+gvvsnrnaveen@users.noreply.github.com> Date: Sat, 18 Apr 2026 21:17:17 +0530 Subject: [PATCH 4/5] Update utils/ipq-art-editor/Makefile Adding . to the end of the description. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Naveen Kumar <61074314+gvvsnrnaveen@users.noreply.github.com> --- utils/ipq-art-editor/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ipq-art-editor/Makefile b/utils/ipq-art-editor/Makefile index ff3638802a26e5..621c684485e638 100644 --- a/utils/ipq-art-editor/Makefile +++ b/utils/ipq-art-editor/Makefile @@ -25,7 +25,7 @@ endef define Package/ipq-art-editor/description Utility to update MAC addresses, customer data, and raw bytes in Qualcomm IPQ ART partitions/files and recalculate ART checksum. - Supports IPQ60xx and IPQ80xx platforms + Supports IPQ60xx and IPQ80xx platforms. endef TARGET_CFLAGS += -Wall -Wextra From 9b6db21e84b6be4b5a8821a2b516706c5695fa05 Mon Sep 17 00:00:00 2001 From: Naveen Kumar <61074314+gvvsnrnaveen@users.noreply.github.com> Date: Sun, 19 Apr 2026 07:08:27 +0530 Subject: [PATCH 5/5] Adding PKG_JOBS variable and CFLAGS += Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Naveen Kumar <61074314+gvvsnrnaveen@users.noreply.github.com> --- utils/ipq-art-editor/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/ipq-art-editor/Makefile b/utils/ipq-art-editor/Makefile index 621c684485e638..e4ffd669961a78 100644 --- a/utils/ipq-art-editor/Makefile +++ b/utils/ipq-art-editor/Makefile @@ -31,9 +31,9 @@ endef TARGET_CFLAGS += -Wall -Wextra define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR)/src \ + $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/src \ $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS)" \ + CFLAGS+=" $(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" endef