From patchwork Mon Jul 1 07:37:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Enrico Mioso X-Patchwork-Id: 1954528 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=eoVwVrd9; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=JyPwFM+X; 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 4WCHzr1x0wz1xpf for ; Mon, 1 Jul 2024 17:41:43 +1000 (AEST) 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:References:In-Reply-To: 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: List-Owner; bh=qadj9nwqNvVOhW89BPH8rh28P8txmaxwoAHQ2EY9hVU=; b=eoVwVrd9i7Z7XP 4Nzlgdu5DOxv23lLWt9T9jT29GmbiWi8S2SIY/8/22UCPZWPPU/MnfRKgGV8Qg9BSjGY2SYhbvE/D JjahFPkOgFjmH72tHI8SDhw0iwFhfJCP4Ym69ydyDB1+W+M1j3qPNbydTirWxU79i7NsG0CHyGz9t a3fPc+7dbIbHQHfhSR0N9jw5oC1zNEkcGG3D8j4bQO6UJ3EysHOqbXFDmQviuE0LMh41F/I6dmgYW 6wlGL/gz+g69WaZLoBi9ZX+nrNeihEmYqhjqMfXQtHRchJt2eqMK+yZ5Xti/5Zkzl1x/n6NCv4ot7 EU3rCe3WNUd9Po0QGiVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOBds-000000024pf-3IcD; Mon, 01 Jul 2024 07:40:04 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOBdp-000000024o5-2lpi for openwrt-devel@lists.openwrt.org; Mon, 01 Jul 2024 07:40:03 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-52cd717ec07so3295595e87.0 for ; Mon, 01 Jul 2024 00:40:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719819600; x=1720424400; darn=lists.openwrt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2yD8ksCXdr9WKQARPsha60Lc9futIZc0YD0cIdQ2swk=; b=JyPwFM+X3oljSrryIgX8ot07qlLWjQ00f5X8jkLMtKxncAdSTAIMR6rdGlW1mWyiah FA6Pm3osHEpCWVjbVQVRZeMpGlGPDY8tZyMWBAnZX/ObVh4n9kZxy2uX8DOApBsavKC3 lmJh6zNaov1UH7Cc36kYOehZ3bm9YFduT6vtjvvD8OIxrOFKauAt74Q6GDQM/GyYjKgo tTllqkPiL/dRgE4Rk6D0gOExMIHwzd9DsU6NR0/WSzXYj6R9cYNnhcwSLA5KOeq+5Ebu Nh4uMBJevJLgFMBylkQlprncbzAVwNfthf+537LrglPYw8rzLP8U6f+2FGv6zp5mK193 p95g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719819600; x=1720424400; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2yD8ksCXdr9WKQARPsha60Lc9futIZc0YD0cIdQ2swk=; b=b9xuoFKnkKyyCDW7y3Bn8X9ZxnyywWNu/HD/l972NV1W4axl2FiOmos+dR4BtTrZH0 vZuMI5E4+gr3jr29rpN4g38OPUQzGmqSpH0NLo3GqKThmxI/cAOx6OuQ4KC6rXqkrZNZ FdG5Lb5SXYDcoZx5OzYFM8KlKyQ4wpBen/O9Zmzi9dt3qDJ1RIbdVx0KDsoB4JPJcJob 5rjGgQbTo2+g0nyBRo55WCkDjiRnHFYOC3y1OPssN9WnDUDppUhn51gGeE/i3+wzlDnI VdAoeA3DHDLH4yBfsYcAnhChHrbVl21HNRmpuWVcQn2dcSMgVu0snRXivC72VrwFUgkI WGjg== X-Gm-Message-State: AOJu0YxMYtJOm2UKNni2uuiKk4z2SNzWc1SmPUFpeB1WpII7C+ep71wM BH+WaVQegwGEcdRxE4WTNB+XjssZL9m2XwAGkRIcWQmYBsvOv9qXg8ZkcnKJ X-Google-Smtp-Source: AGHT+IFgTuGYddyR8jAU92B1v7oPKxXbNWGhcgn+dmF8zaePYT7sekkVd4wZ++AKyyY+/Oc9fVlPjg== X-Received: by 2002:a05:6512:2245:b0:52c:8aa6:4e9c with SMTP id 2adb3069b0e04-52e82752786mr3589583e87.65.1719819599608; Mon, 01 Jul 2024 00:39:59 -0700 (PDT) Received: from localhost.localdomain (u-k-77-240-224.4bone.mynet.it. [77.240.224.17]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3675a0cd5fcsm9203148f8f.11.2024.07.01.00.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jul 2024 00:39:59 -0700 (PDT) From: Enrico Mioso To: OpenWrt Development List Cc: Enrico Mioso Subject: [PATCH 2/2] mvebu: enable 4K sectors config option Date: Mon, 1 Jul 2024 09:37:59 +0200 Message-ID: <20240701073943.3886539-2-mrkiko.rs@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240701073943.3886539-1-mrkiko.rs@gmail.com> References: <20240701073943.3886539-1-mrkiko.rs@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240701_004001_729632_07632546 X-CRM114-Status: GOOD ( 10.46 ) 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: Enable the CONFIG_MTD_SPI_NOR_USE_4K_SECTORS kernel option to allow for U-Boot environment writing. This might be hiding a problem somewhere else, since the w25q128fw chip supports 32K erases, still t [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:131 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [mrkiko.rs(at)gmail.com] 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 Enable the CONFIG_MTD_SPI_NOR_USE_4K_SECTORS kernel option to allow for U-Boot environment writing. This might be hiding a problem somewhere else, since the w25q128fw chip supports 32K erases, still this change makes it much easier to switch the GL-MV1000 boot media without an UART cable connection. Thanks to @robimarko for the precious hints. Signed-off-by: Enrico Mioso --- target/linux/mvebu/config-6.6 | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/mvebu/config-6.6 b/target/linux/mvebu/config-6.6 index 88e5fff4d9..b8302eb798 100644 --- a/target/linux/mvebu/config-6.6 +++ b/target/linux/mvebu/config-6.6 @@ -270,6 +270,7 @@ CONFIG_MTD_NAND_ECC_SW_HAMMING=y CONFIG_MTD_NAND_MARVELL=y CONFIG_MTD_RAW_NAND=y CONFIG_MTD_SPI_NOR=y +CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y CONFIG_MTD_SPLIT_FIRMWARE=y CONFIG_MTD_UBI=y CONFIG_MTD_UBI_BEB_LIMIT=20