From f9a849ca84f596aafd7c167b2410ec5446c84784 Mon Sep 17 00:00:00 2001 From: Thibaut VARENE Date: Wed, 2 Aug 2017 16:28:16 +0200 Subject: [PATCH] ramips: mt7620: do not pad sysupgrade Archer images The current makefile unnecessarily pads sysupgrade image for Archer devices. This has three implications: 1. higher risk of OOM when uploading the binary image to the device 2. much slower upgrade due to time wasted erasing and writing padding 3. grows image beyond available flash size if metadata are appended This is already fixed in master, albeit in a completely different way (the whole target have been reworked) Fixes: FS#1025, FS#1039 Signed-off-by: Thibaut VARENE --- target/linux/ramips/image/mt7620.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index e27c405b3c..c2c0ae271d 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -38,7 +38,7 @@ define Device/ArcherC20i KERNEL := $(KERNEL_DTB) KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC20i -c IMAGE/factory.bin := append-kernel | tplink-header ArcherC20i -j - IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC20i -j | append-metadata + IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC20i -j -s | append-metadata IMAGES += factory.bin DEVICE_TITLE := TP-Link ArcherC20i endef @@ -50,7 +50,7 @@ define Device/ArcherC50 KERNEL := $(KERNEL_DTB) KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC50 -c IMAGE/factory.bin := append-kernel | tplink-header ArcherC50 -j - IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC50 -j | append-metadata + IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC50 -j -s | append-metadata IMAGES += factory.bin DEVICE_TITLE := TP-Link ArcherC50 endef @@ -61,7 +61,7 @@ define Device/ArcherMR200 SUPPORTED_DEVICES := mr200 KERNEL := $(KERNEL_DTB) KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherMR200 -c - IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherMR200 -j | append-metadata + IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherMR200 -j -s | append-metadata DEVICE_PACKAGES := kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb DEVICE_TITLE := TP-Link ArcherMR200 endef -- 2.30.2