From patchwork Fri Mar 1 13:40:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1050180 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FBZ050Lq"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 449rD62ykyz9s70 for ; Sat, 2 Mar 2019 00:41:10 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=P2WslG3sLn6N9XEx4ZVPmC1FHZ1eO8SXTekH2FxJTgI=; b=FBZ050LqZDAant SftBowetyORvvBXZPcUehvwljoSHZcU65SIFzup/Tj/MOSL4elLbTKDN+NscQ+0PnGQfpFpX4zBsW D5oJ/BjBPJOKoRatMCmrwlyYPcsK1a5aCc5vOc13ZERj1FyH82dBXFETWXBdMkoSbyLP6Ce/oEWj2 Gz5DuaAAJlbWH24/rLKgMX14sm09nK7jLQdIc3w/Nb7r0QfsBxttY/DUyqd4+JC80oD1F0dSx/O/W VnQrJdYbD1CR6Q1A1b0tp6af7F+hXEO7ZRZ/pQQuQaJlWbACNz9TnNOGuUmjv2DjhVX+D+zIb2Qpe CTZg3fi5+IIM9dIs9jkA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gziPI-0005Qu-1F; Fri, 01 Mar 2019 13:40:56 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gziPD-0005Q8-Gs for openwrt-devel@lists.openwrt.org; Fri, 01 Mar 2019 13:40:54 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 5C3B752E3; Fri, 1 Mar 2019 14:40:49 +0100 (CET) Received: by meh.true.cz (OpenSMTPD) with ESMTP id 5a72f322; Fri, 1 Mar 2019 14:40:38 +0100 (CET) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Fri, 1 Mar 2019 14:40:42 +0100 Message-Id: <1551447642-31393-1-git-send-email-ynezz@true.cz> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190301_054051_869401_C7FA5752 X-CRM114-Status: UNSURE ( 6.30 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [178.217.244.18 listed in list.dnswl.org] Subject: [OpenWrt-Devel] [PATCH] ramips: rt305x: Disable image generation for small devices X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Petr_=C5=A0tetiar?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org It was reported in FS#2110 that there are currently no images being generated for rt305x as a result of a build breakage due to image generation. I've found out, that plenty of the devices have fallen of a cliff already due to the small flash, so this patch disables image generation for those devices. Signed-off-by: Petr Štetiar --- target/linux/ramips/image/rt305x.mk | 53 ++++++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/target/linux/ramips/image/rt305x.mk b/target/linux/ramips/image/rt305x.mk index 163726e..18ab730 100644 --- a/target/linux/ramips/image/rt305x.mk +++ b/target/linux/ramips/image/rt305x.mk @@ -40,6 +40,7 @@ TARGET_DEVICES += 3g150b define Device/3g300m DTS := 3G300M IMAGE_SIZE := $(ralink_default_fw_size_4M) + IMAGES := UIMAGE_NAME := 3G150M_SPI Kernel Image DEVICE_TITLE := Tenda 3G300M DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport @@ -49,6 +50,7 @@ TARGET_DEVICES += 3g300m define Device/3g-6200n DTS := 3G-6200N IMAGE_SIZE := 3648k + IMAGES := IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \ edimax-header -s CSYS -m 3G62 -f 0x50000 -S 0x01100000 | pad-rootfs | \ append-metadata | check-size $$$$(IMAGE_SIZE) @@ -58,6 +60,7 @@ TARGET_DEVICES += 3g-6200n define Device/3g-6200nl DTS := 3G-6200NL + IMAGES := IMAGE_SIZE := 3648k IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \ edimax-header -s CSYS -m 3G62 -f 0x50000 -S 0x01100000 | pad-rootfs | \ @@ -69,7 +72,7 @@ TARGET_DEVICES += 3g-6200nl define Device/a5-v11 DTS := A5-V11 IMAGE_SIZE := $(ralink_default_fw_size_4M) - IMAGES += factory.bin + IMAGES := IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B A5-V11 -F 4M DEVICE_TITLE := A5-V11 @@ -80,6 +83,7 @@ TARGET_DEVICES += a5-v11 define Device/air3gii DTS := AIR3GII BLOCKSIZE := 64k + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := AirLive Air3GII endef @@ -87,6 +91,7 @@ TARGET_DEVICES += air3gii define Device/all0256n-4M DTS := ALL0256N-4M + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := Allnet ALL0256N (4MB) DEVICE_PACKAGES := rssileds @@ -145,6 +150,7 @@ TARGET_DEVICES += atp-52b define Device/awm002-evb-4M DTS := AWM002-EVB-4M + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := AsiaRF AWM002-EVB (4M) DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 \ @@ -193,6 +199,7 @@ TARGET_DEVICES += carambola define Device/d105 DTS := D105 BLOCKSIZE := 64k + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := Huawei D105 endef @@ -212,6 +219,7 @@ TARGET_DEVICES += dap-1350 define Device/dcs-930 DTS := DCS-930 + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := D-Link DCS-930 DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core kmod-usb-audio kmod-usb-core kmod-usb-dwc2 @@ -220,6 +228,7 @@ TARGET_DEVICES += dcs-930 define Device/dcs-930l-b1 DTS := DCS-930L-B1 + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := D-Link DCS-930L B1 DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core kmod-usb-audio kmod-usb-core kmod-usb-ohci kmod-usb2 @@ -228,8 +237,8 @@ TARGET_DEVICES += dcs-930l-b1 define Device/dir-300-b1 DTS := DIR-300-B1 + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) - IMAGES += factory.bin IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | wrg-header wrgn23_dlwbr_dir300b DEVICE_TITLE := D-Link DIR-300 B1 @@ -254,7 +263,7 @@ define Device/dir-600-b1 DTS := DIR-600-B1 IMAGE_SIZE := $(ralink_default_fw_size_4M) SUPPORTED_DEVICES := dir-600-b1 dir-600-b2 - IMAGES += factory.bin + IMAGES := IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | wrg-header wrgn23_dlwbr_dir600b DEVICE_TITLE := D-Link DIR-600 B1/B2 @@ -275,8 +284,8 @@ TARGET_DEVICES += dir-610-a1 define Device/dir-615-d DTS := DIR-615-D + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) - IMAGES += factory.bin IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | wrg-header wrgn23_dlwbr_dir615d DEVICE_TITLE := D-Link DIR-615 D @@ -327,6 +336,7 @@ TARGET_DEVICES += dwr-512-b define Device/esr-9753 DTS := ESR-9753 BLOCKSIZE := 64k + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := EnGenius ESR-9753 endef @@ -404,7 +414,7 @@ TARGET_DEVICES += ip2202 define Device/jhr-n805r DTS := JHR-N805R IMAGE_SIZE := $(ralink_default_fw_size_4M) - IMAGES += factory.bin + IMAGES := IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | jcg-header 29.24 DEVICE_TITLE := JCG JHR-N805R @@ -414,7 +424,7 @@ TARGET_DEVICES += jhr-n805r define Device/jhr-n825r DTS := JHR-N825R IMAGE_SIZE := $(ralink_default_fw_size_4M) - IMAGES += factory.bin + IMAGES := IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | jcg-header 23.24 DEVICE_TITLE := JCG JHR-N825R @@ -424,7 +434,7 @@ TARGET_DEVICES += jhr-n825r define Device/jhr-n926r DTS := JHR-N926R IMAGE_SIZE := $(ralink_default_fw_size_4M) - IMAGES += factory.bin + IMAGES := IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | jcg-header 25.24 DEVICE_TITLE := JCG JHR-N926R @@ -444,7 +454,7 @@ TARGET_DEVICES += m2m define Device/m3 DTS := M3 IMAGE_SIZE := $(ralink_default_fw_size_4M) - IMAGES += factory.bin + IMAGES := IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B M3 -F 4M DEVICE_TITLE := Poray M3 @@ -456,7 +466,7 @@ TARGET_DEVICES += m3 define Device/m4-4M DTS := M4-4M IMAGE_SIZE := $(ralink_default_fw_size_4M) - IMAGES += factory.bin + IMAGES := IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B M4 -F 4M DEVICE_TITLE := Poray M4 (4MB) @@ -520,6 +530,7 @@ TARGET_DEVICES += mr-102n define Device/mzk-dp150n DTS := MZK-DP150N BLOCKSIZE := 64k + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := Planex MZK-DP150N DEVICE_PACKAGES := kmod-spi-dev @@ -529,7 +540,7 @@ TARGET_DEVICES += mzk-dp150n define Device/mzk-w300nh2 DTS := MZK-W300NH2 IMAGE_SIZE := 3648k - IMAGES += factory.bin + IMAGES := IMAGE/factory.bin := $$(sysupgrade_bin) | \ edimax-header -s CSYS -m RN52 -f 0x50000 -S 0xc0000 DEVICE_TITLE := Planex MZK-W300NH2 @@ -545,6 +556,7 @@ TARGET_DEVICES += mzk-wdpr define Device/nbg-419n DTS := NBG-419N BLOCKSIZE := 64k + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := ZyXEL NBG-419N endef @@ -585,6 +597,7 @@ TARGET_DEVICES += nixcore-x1-16M define Device/nw718 DTS := NW718 + IMAGES := IMAGE_SIZE := 3712k UIMAGE_NAME:= ARA1B4NCRNW718;1 DEVICE_TITLE := Netcore NW718 @@ -593,6 +606,7 @@ TARGET_DEVICES += nw718 define Device/psr-680w DTS := PSR-680W + IMAGES := BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := Petatel PSR-680W Wireless 3G Router @@ -608,6 +622,7 @@ TARGET_DEVICES += pwh2004 define Device/px-4885-4M DTS := PX-4885-4M + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := 7Links PX-4885 (4M) DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci \ @@ -652,6 +667,7 @@ TARGET_DEVICES += rt-g32-b1 define Device/rt-n10-plus DTS := RT-N10-PLUS BLOCKSIZE := 64k + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := Asus RT-N10+ endef @@ -674,6 +690,7 @@ TARGET_DEVICES += rut5xx define Device/sl-r7205 DTS := SL-R7205 BLOCKSIZE := 64k + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := Skyline SL-R7205 Wireless 3G Router endef @@ -682,6 +699,7 @@ TARGET_DEVICES += sl-r7205 define Device/tew-638apb-v2 DTS := TEW-638APB-V2 BLOCKSIZE := 64k + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGE/sysupgrade.bin := $$(sysupgrade_bin) | umedia-header 0x026382 | \ append-metadata | check-size $$$$(IMAGE_SIZE) @@ -698,6 +716,7 @@ TARGET_DEVICES += tew-714tru define Device/ur-326n4g DTS := UR-326N4G BLOCKSIZE := 64k + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := UPVEL UR-326N4G DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport @@ -714,6 +733,7 @@ TARGET_DEVICES += ur-336un define Device/v22rw-2x2 DTS := V22RW-2X2 BLOCKSIZE := 64k + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := Ralink AP-RT3052-V22RW-2X2 endef @@ -743,6 +763,7 @@ TARGET_DEVICES += vocore-16M define Device/w150m DTS := W150M + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) UIMAGE_NAME:= W150M Kernel Image DEVICE_TITLE := Tenda W150M @@ -751,6 +772,7 @@ TARGET_DEVICES += w150m define Device/w306r-v20 DTS := W306R_V20 + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) UIMAGE_NAME:= linkn Kernel Image DEVICE_TITLE := Tenda W306R V2.0 @@ -766,6 +788,7 @@ TARGET_DEVICES += w502u define Device/wcr-150gn DTS := WCR150GN BLOCKSIZE := 64k + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := Sparklan WCR-150GN endef @@ -776,7 +799,7 @@ define Device/whr-g300n BLOCKSIZE := 64k IMAGE_SIZE := 3801088 DEVICE_TITLE := Buffalo WHR-G300N - IMAGES += tftp.bin + IMAGES := IMAGE/tftp.bin := $$(sysupgrade_bin) | \ check-size $$$$(IMAGE_SIZE) | buffalo-tftp-header endef @@ -817,6 +840,7 @@ define Device/wl-351 DTS := WL-351 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) + IMAGES := DEVICE_TITLE := Sitecom WL-351 v1 DEVICE_PACKAGES := kmod-switch-rtl8366rb kmod-swconfig swconfig endef @@ -825,7 +849,7 @@ TARGET_DEVICES += wl-351 define Device/wnce2001 DTS := WNCE2001 IMAGE_SIZE := $(ralink_default_fw_size_4M) - IMAGES += factory.bin factory-NA.bin + IMAGES := IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ dap-header -s RT3052-AP-WNCE2001-3 -r WW -v 1.0.0.99 IMAGE/factory-NA.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ @@ -836,6 +860,7 @@ TARGET_DEVICES += wnce2001 define Device/wr512-3gn-4M DTS := WR512-3GN-4M + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := WR512-3GN (4M) endef @@ -856,7 +881,7 @@ TARGET_DEVICES += wr6202 define Device/wt1520-4M DTS := WT1520-4M IMAGE_SIZE := $(ralink_default_fw_size_4M) - IMAGES += factory.bin + IMAGES := IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B WT1520 -F 4M DEVICE_TITLE := Nexx WT1520 (4MB) @@ -896,6 +921,7 @@ TARGET_DEVICES += x8 define Device/xdxrn502j DTS := XDXRN502J BLOCKSIZE := 64k + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := XDX RN502J endef @@ -904,6 +930,7 @@ TARGET_DEVICES += xdxrn502j define Device/kn DTS := kn BLOCKSIZE := 64k + IMAGES := IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_TITLE := ZyXEL Keenetic DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ehci kmod-usb-ledtrig-usbport