[openwrt/openwrt] ath79: D-Link DIR-825 B1 add factory.bin recipe

LEDE Commits lede-commits at lists.infradead.org
Sun Nov 27 07:18:45 PST 2022


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/0b22e87db0db1a232714657e2f44a83450f8caf7

commit 0b22e87db0db1a232714657e2f44a83450f8caf7
Author: Will Moss <willormos at gmail.com>
AuthorDate: Thu Nov 10 19:55:11 2022 +0000

    ath79: D-Link DIR-825 B1 add factory.bin recipe
    
    - Bring back factory.bin image which was missing after porting device to ath79 target
    - Use default sysupgrade.bin image recipe
    - Adjust max image size according to new firmware partition size after
    "ath79: expand rootfs for DIR-825-B1 with unused space (aca8bb5)" changes
    - Remove support of upgrading from version 19.07, because partition size changes mentioned above
    
    Signed-off-by: Will Moss <willormos at gmail.com>
    (cherry picked from commit a58146d452c50387256d4a616c055ddf3248496f)
---
 target/linux/ath79/image/generic.mk | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk
index d088f91019..31d296fb62 100644
--- a/target/linux/ath79/image/generic.mk
+++ b/target/linux/ath79/image/generic.mk
@@ -969,12 +969,14 @@ define Device/dlink_dir-825-b1
   DEVICE_VENDOR := D-Link
   DEVICE_MODEL := DIR-825
   DEVICE_VARIANT := B1
-  IMAGE_SIZE := 6208k
-  IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
-	check-size | append-metadata
   DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
 	kmod-leds-reset kmod-owl-loader
-  SUPPORTED_DEVICES += dir-825-b1
+  IMAGE_SIZE := 7808k
+  FACTORY_SIZE := 6144k
+  IMAGES += factory.bin
+  IMAGE/factory.bin = append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
+	pad-rootfs | check-size $$$$(FACTORY_SIZE) | pad-to $$$$(FACTORY_SIZE) | \
+	append-string 01AP94-AR7161-RT-080619-00
 endef
 TARGET_DEVICES += dlink_dir-825-b1
 




More information about the lede-commits mailing list