]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: wlr-7100: move to tiny target
authorTomasz Maciej Nowak <tmn505@gmail.com>
Mon, 4 May 2026 17:48:41 +0000 (19:48 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 7 May 2026 16:27:16 +0000 (18:27 +0200)
On 25.12.0 the device has not enough free blocks to initialize overlay.
Move the device to tiny target and consume backup with storage
partitions, which were previously unused. This operation will reclaim
~800 KiB of flash memory. OEM used storage partition for configuration,
while backup was used to store copy of U-Boot environment and copy of
calibration data.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
target/linux/ath79/dts/ar1022_sitecom_wlr-7100.dts
target/linux/ath79/generic/base-files/etc/board.d/02_network
target/linux/ath79/generic/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
target/linux/ath79/image/generic.mk
target/linux/ath79/image/tiny.mk
target/linux/ath79/tiny/base-files/etc/board.d/02_network
target/linux/ath79/tiny/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac

index 840503933b96cb3624458715241afd8041551dd4..9e4601e0c6214dc4a763355f0a98e11a758faa2e 100644 (file)
                        partition@40000 {
                                compatible = "denx,uimage";
                                label = "firmware";
-                               reg = <0x040000 0x750000>;
-                       };
-
-                       partition@790000 {
-                               label = "backup";
-                               reg = <0x790000 0x010000>;
-                               read-only;
-                       };
-
-                       partition@7a0000 {
-                               label = "storage";
-                               reg = <0x7a0000 0x050000>;
-                               read-only;
+                               reg = <0x040000 0x7b0000>;
                        };
 
                        partition@7f0000 {
index ee8fe2edd11888a8c902535080db8edfd43195ec..6be9d44cf8cce8e6e5f5d43103add0651e074634 100644 (file)
@@ -338,7 +338,6 @@ ath79_setup_interfaces()
        engenius,esr1200|\
        engenius,esr1750|\
        engenius,esr900|\
-       sitecom,wlr-7100|\
        tplink,archer-c2-v3|\
        tplink,tl-wr1043nd-v4|\
        tplink,tl-wr1043n-v5)
@@ -806,11 +805,6 @@ ath79_setup_macs()
                lan_mac=$(mtd_get_mac_binary board-data 0x807E)
                label_mac=$lan_mac
                ;;
-       sitecom,wlr-7100)
-               lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
-               wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
-               label_mac=$lan_mac
-               ;;
        sitecom,wlr-8100)
                wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
                ;;
index cde032c0fd2d73bec98565c210f54d549f422385..0ef322e898ec8d3c7a6a4dfe21457fabf386a62e 100644 (file)
@@ -103,11 +103,6 @@ case "$board" in
        siemens,ws-ap3610)
                mtd_get_mac_ascii cfg1 RADIOADDR${PHYNBR} > /sys${DEVPATH}/macaddress
                ;;
-       sitecom,wlr-7100)
-               [ "$PHYNBR" -eq 0 ] && \
-                       macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1 > /sys${DEVPATH}/macaddress
-               [ "$PHYNBR" -eq 1 ] && \
-                       macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" > /sys${DEVPATH}/macaddress
        tplink,deco-s4-v2)
                base_mac=$(mtd_get_mac_encrypted_deco $(find_mtd_part config))
                [ "$PHYNBR" -eq 0 ] && \
index 26ebdb3b947ba23c99340e8a8212fbf3300d921a..b1a37807991c1d243e2a15f9779e9ebdb785c489 100644 (file)
@@ -3005,19 +3005,6 @@ define Device/siemens_ws-ap3610
 endef
 TARGET_DEVICES += siemens_ws-ap3610
 
-define Device/sitecom_wlr-7100
-  SOC := ar1022
-  DEVICE_VENDOR := Sitecom
-  DEVICE_MODEL := WLR-7100
-  DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct-smallbuffers kmod-usb2
-  IMAGES += factory.dlf
-  IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
-       append-rootfs | pad-rootfs | check-size | \
-       senao-header -r 0x222 -p 0x53 -t 2
-  IMAGE_SIZE := 7488k
-endef
-TARGET_DEVICES += sitecom_wlr-7100
-
 define Device/sitecom_wlr-8100
   SOC := qca9558
   DEVICE_VENDOR := Sitecom
index 951c9aa48d34991834bbe691e5d9268f086ebcea..23d39b9df940e64928ca5f22548b2ff108d23bd2 100644 (file)
@@ -187,3 +187,17 @@ define Device/pqi_air-pen
   DEFAULT := n
 endef
 TARGET_DEVICES += pqi_air-pen
+
+define Device/sitecom_wlr-7100
+  SOC := ar1022
+  DEVICE_VENDOR := Sitecom
+  DEVICE_MODEL := WLR-7100
+  DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct-smallbuffers kmod-usb2
+  BLOCKSIZE := 4k
+  IMAGES += factory.dlf
+  IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
+       append-rootfs | pad-rootfs | check-size | \
+       senao-header -r 0x222 -p 0x53 -t 2
+  IMAGE_SIZE := 7872k
+endef
+TARGET_DEVICES += sitecom_wlr-7100
index 608b6b7f8674b58f21ad328e9512eedf77d8a954..414a36f2d76ea99718047d271ca04357f7ba4804 100644 (file)
@@ -63,7 +63,8 @@ ath79_setup_interfaces()
                ;;
        dlink,dir-859-a1|\
        dlink,dir-859-a3|\
-       dlink,dir-869-a1)
+       dlink,dir-869-a1|\
+       sitecom,wlr-7100)
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan"
                ;;
@@ -163,6 +164,11 @@ ath79_setup_macs()
                wan_mac=$(mtd_get_mac_binary config 0xc)
                label_mac=$wan_mac
                ;;
+       sitecom,wlr-7100)
+               lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
+               wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
+               label_mac=$lan_mac
+               ;;
        tplink,tl-wr941-v2|\
        tplink,tl-wr941n-v7-cn)
                base_mac=$(mtd_get_mac_binary u-boot 0x1fc00)
index 0a950d8582ef969fd104ce0b59064aebb33b50ca..9810685375314e1ce8fb0cb8f60fb0e0eca25173 100755 (executable)
@@ -16,4 +16,10 @@ case "$board" in
                [ "$PHYNBR" -eq 0 ] && \
                        mtd_get_mac_ascii "nvram" "lan_mac" > /sys${DEVPATH}/macaddress
                ;;
+       sitecom,wlr-7100)
+               [ "$PHYNBR" -eq 0 ] && \
+                       macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1 > /sys${DEVPATH}/macaddress
+               [ "$PHYNBR" -eq 1 ] && \
+                       macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" > /sys${DEVPATH}/macaddress
+               ;;
 esac