From patchwork Wed Jan 10 15:59:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 1885031 X-Patchwork-Delegate: sander@svanheule.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=NxApdRyY; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=terefe.re header.i=@terefe.re header.a=rsa-sha256 header.s=default header.b=E6Jqauwe; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4T9CGx2t02z1yPq for ; Thu, 11 Jan 2024 03:02:01 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :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=0tdBSI4GNGW6mcqHd0J5BxVxsTr82DCJgXdL+34v0BY=; b=NxApdRyYULe0Qu QnELaS+UgMN3l8eV/C1ziQgRF2tPnY/OH3BCTdef9WMEnn/7d7PbOq4KgtanUcJszYONybe4XGLsR s/74/4C7VYqThjtPnmlYccnUCdu5h707NhhKdFEiYgMY4WITsQVFHnShes6hrCPPIRR1kWFhdMXbK x3M512PG0IEpVAUZOLBHAzOQEWtnnMjH1F/gxTSsa1+pO3Mhf2F+Id0EfCiOgufIxlE6euY8Y0QoE j9AKQm6fjWg2ke9n15HQm857NLZ+N3R1JJSCh19/3YZjlY5kxZQEzAIZTHsGM+0WSqSmCxj7w/8sD wT4Y6/bcuLSwLKnFHThQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rNb0E-00Ck5K-0V; Wed, 10 Jan 2024 16:00:26 +0000 Received: from terefe.re ([2a04:52c0:101:a4a:0:ffff:5ff:60c8]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rNb02-00CjuN-0O for openwrt-devel@lists.openwrt.org; Wed, 10 Jan 2024 16:00:16 +0000 Received: from localhost.localdomain (unknown [212.106.161.103]) by terefe.re (Postfix) with ESMTPSA id 02FF01FFD8; Wed, 10 Jan 2024 17:00:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1704902411; bh=v8WmRo43dVi5UuLBUKsGud/vuep37HJyGrl4KjJBYSI=; h=From:To:Cc:Subject:Date:From; b=E6JqauweCr0eoxkJmeRctIPUJgLGyxKNYWaqlRAvUudvflfP+/HUHf1n9TuicXAw9 aY2pux824fLquvIalxuxAFP/kjcPhIyWlVIgoh0nxqFf3zoKdUXAltSZgnDkIr/ieO Z+EIsMANwOmUDRMJLqDtHb8imevO3mGq1INhHQaVFAF0WxJtblJ439Q1MLQ7xw90fs drq4NJoqbM2mX2u8dTD2nsu/02xUMqg2G7K7WRFSq6SJiQ3KtuS6RLRquQShV+NfN5 njeA2wKGhfBBMUN3ztPpveH2AwWK3lOuNBMgAjriyWcTmC/2CxMN5z9JrCLMvIbT1K Nos2FpwY64NWA== From: Tomasz Maciej Nowak To: openwrt-devel@lists.openwrt.org Cc: Tomasz Maciej Nowak , Sander Vanheule Subject: [PATCH] ramips: mt76x8: enable small_flash feature Date: Wed, 10 Jan 2024 16:59:48 +0100 Message-ID: <20240110160003.3065-1-tmn505@terefe.re> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240110_080014_304537_7608EAC2 X-CRM114-Status: UNSURE ( 8.66 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Tomasz Maciej Nowak Some of devices in this target have only 8 MiB space and are closing to borders of usable space. Particularly, TP-Link RE305 v1 already suffers from this issue[1], where with current partition layout, [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Tomasz Maciej Nowak Some of devices in this target have only 8 MiB space and are closing to borders of usable space. Particularly, TP-Link RE305 v1 already suffers from this issue[1], where with current partition layout, on release images, there's not enough space for overlay. So activate small_flash feature, which will remove some userspace hardening but will gain almost 1 MiB additional flash memory space. Here is small size comparison of similar device (RE365 v1) with default config + LuCI: kernel rootfs sysupgrade current: 2305728 3635044 5964584 small_flash: 1713571 3320132 5047080 1. https://github.com/openwrt/openwrt/issues/14215 Suggested-by: Sander Vanheule Signed-off-by: Tomasz Maciej Nowak --- target/linux/ramips/mt76x8/target.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ramips/mt76x8/target.mk b/target/linux/ramips/mt76x8/target.mk index 862736cb2f38..cfc2655cac18 100644 --- a/target/linux/ramips/mt76x8/target.mk +++ b/target/linux/ramips/mt76x8/target.mk @@ -4,7 +4,7 @@ SUBTARGET:=mt76x8 BOARDNAME:=MT76x8 based boards -FEATURES+=usb ramdisk +FEATURES+=usb ramdisk small_flash CPU_TYPE:=24kc DEFAULT_PACKAGES += kmod-mt7603 wpad-basic-mbedtls swconfig