[openwrt/openwrt] ramips: Add factory image for Qding QC202

LEDE Commits lede-commits at lists.infradead.org
Sun Oct 5 09:51:16 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/e8df99cf7c9e966376bc355599d8ead76070f26c

commit e8df99cf7c9e966376bc355599d8ead76070f26c
Author: Coia Prant <coiaprant at gmail.com>
AuthorDate: Sat Sep 20 17:54:10 2025 +0800

    ramips: Add factory image for Qding QC202
    
    Added factory image using mkqdimg.
    
    Signed-off-by: Coia Prant <coiaprant at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/20102
    (cherry picked from commit d0383bb17522f1d307d07c4c4b31085c4a495fd9)
    Link: https://github.com/openwrt/openwrt/pull/20159
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/ramips/image/mt76x8.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk
index 5930d62a0b..3573d16a45 100644
--- a/target/linux/ramips/image/mt76x8.mk
+++ b/target/linux/ramips/image/mt76x8.mk
@@ -21,6 +21,12 @@ define Build/elecom-header
 	mv $@.new $@
 endef
 
+define Build/qding-header
+  $(STAGING_DIR_HOST)/bin/mkqdimg \
+    -B $(1) -f $@ -o $@.new
+  mv $@.new $@
+endef
+
 define Build/ravpower-wd009-factory
 	mkimage -A mips -T standalone -C none -a 0x80010000 -e 0x80010000 \
 		-n "OpenWrt Bootloader" -d $(UBOOT_PATH) $@.new
@@ -538,6 +544,8 @@ define Device/qding_qc202
   DEVICE_VENDOR := Qding
   DEVICE_MODEL := QC202
   DEVICE_PACKAGES := kmod-i2c-mt7628 kmod-gpio-beeper kmod-input-matrix-keypad kmod-input-evdev uboot-envtools
+  IMAGES += factory.bin
+  IMAGE/factory.bin := $$(sysupgrade_bin) | qding-header qc202
 endef
 TARGET_DEVICES += qding_qc202
 




More information about the lede-commits mailing list