From patchwork Mon Mar 15 17:40:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 1453420 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=dzLcGeBL; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=hauke-m.de header.i=@hauke-m.de header.a=rsa-sha256 header.s=MBO0001 header.b=T78Oj3uX; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DzkMj1kL7z9sVb for ; Tue, 16 Mar 2021 04:45:05 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=dTJ++kwKrpgKft+MpRosPyetBj2Kr/l3z1YXeKhydr8=; b=dzLcGeBLOjHdlxkaEp1JGBqXAt sFOuI80yC5FVVgewkA9pecHZUXz+Qk0OG8b4kfmCHAO28wjXCk1kMuhOSe0vRhItB4E9uB6A2B+NA nBbquUPZb69a5mIqrMIMK29+n5b5Kv7RjbI5479uInXPTc/wouWMDOHnqkDYBm1J9zkqQ9TFKPDYB kdH6O6qsx93gHHRKnu4Ig6j5iKp+QPC3LCHHtno7UV0DjFquP622sp7PuaW+jEnxbVZa2KnKMFr95 yzjeEuJRJfQvOGFzFtamdGnn/GEJWhZV36dLcMZkPi/cMl71r6jbw+9CQyHXk82CKvek6wgqcpYsk Blj3Yymw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lLrEk-00GZFK-Ud; Mon, 15 Mar 2021 17:42:40 +0000 Received: from mout-p-202.mailbox.org ([2001:67c:2050::465:202]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLrCg-00GYT0-Gu for openwrt-devel@lists.openwrt.org; Mon, 15 Mar 2021 17:40:33 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4DzkGP4gNKzQjx8; Mon, 15 Mar 2021 18:40:29 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hauke-m.de; s=MBO0001; t=1615830027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=32XB3qsKIOVGbw6Ocelulom2QxRAwrdj4Mo0u5P5hu4=; b=T78Oj3uX9vLFNC9nPxdw8Bi5d09pLZhHSCGDgTRYQIJxUUQtygc2Y9rAgt7VPxW/kctKYm pKynFeSYAmfb/j6zFf2Gd6whE2VFzGwVE1jce3e7nn7s4hgPZ1RZDxjQE2eVLx/bEv9y53 xeuoy4gboPyx0NlC1B0CZ5gBKtaawaVxP9kzvfosJHx1a5PM4pEG93NUNbHYT2zocgbFm7 1SHs3XVqRJVAgRWFXj+0c5JcV3YgTVG/xADKQRrx+WBYMzg9sd76czzDLTVlfZG3IupJ7+ J9LqPPNbnbNV9F4+Kt7/u+leFrVoh1v57HFDzcECScBUo+AOve+fv3lYx3Xi0g== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id twqqjhVNykvq; Mon, 15 Mar 2021 18:40:23 +0100 (CET) From: Hauke Mehrtens To: openwrt-devel@lists.openwrt.org Cc: musashino.open@gmail.com, Hauke Mehrtens Subject: [PATCH] mediatek: Fix writing U-Boot env on Buffalo WSR-2533DHP2 Date: Mon, 15 Mar 2021 18:40:14 +0100 Message-Id: <20210315174014.597108-1-hauke@hauke-m.de> MIME-Version: 1.0 X-MBO-SPAM-Probability: ** X-Rspamd-Score: 1.89 / 15.00 / 15.00 X-Rspamd-Queue-Id: C8B5611F7 X-Rspamd-UID: 192e17 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210315_174030_927368_42985D31 X-CRM114-Status: UNSURE ( 8.16 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: Spam detection software, running on the system "desiato.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: This fixes writing to the U-Boot environment by making the partition writable and setting the correct flash sector size of 128K. Signed-off-by: Hauke Mehrtens --- package/boot/uboot-envtools/files/mediatek | 2 +- target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts | 1 - 2 files changed, 1 insertion(+), [...] Content analysis details: (-0.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [2001:67c:2050:0:0:0:465:202 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 Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's 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 This fixes writing to the U-Boot environment by making the partition writable and setting the correct flash sector size of 128K. Signed-off-by: Hauke Mehrtens --- package/boot/uboot-envtools/files/mediatek | 2 +- target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package/boot/uboot-envtools/files/mediatek b/package/boot/uboot-envtools/files/mediatek index ce28fb31cbca..4db1c6ef4d96 100644 --- a/package/boot/uboot-envtools/files/mediatek +++ b/package/boot/uboot-envtools/files/mediatek @@ -25,7 +25,7 @@ case "$board" in ubootenv_add_uci_config "$envdev" "0x80000" "0x80000" "0x80000" "1" ;; buffalo,wsr-2533dhp2) - ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x1000" "0x1000" + ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x1000" "0x20000" ;; esac diff --git a/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts b/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts index 397be1445bbf..ce5cd1c9be00 100644 --- a/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts +++ b/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts @@ -269,7 +269,6 @@ partition@140000 { label = "Config"; reg = <0x140000 0x80000>; - read-only; }; factory: partition@1c0000 {