From patchwork Fri Jan 8 12:42:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander 'lynxis' Couzens X-Patchwork-Id: 1423763 X-Patchwork-Delegate: lynxis@fe80.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=fe80.eu 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=merlin.20170209 header.b=RxOCudOm; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=fe80.eu header.i=@fe80.eu header.a=rsa-sha256 header.s=20190804 header.b=UDBUzFaH; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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 4DC2wW285Zz9sW8 for ; Fri, 8 Jan 2021 23:48:59 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=mZOkSijoCGKFYKniA8rinShzwmSITA2o5fFCBuVZRtc=; b=RxOCudOm3geyDSzTewu1YrKs11 ArM/rfJZ3S3/cexGIsyagdtnrx/nf+upX7HbkrCDzYalzE7MNj6Gyw0mg69+O/1ASI/0UpRr4mo4S yDaedrkGWkpWSW895XnHqPDrgUUNIGdo9+dicAhWL9q+caHo6DxGy/lHSBNVc4HCGYYWnILDndlQK ey0LpJvvDQwxNcFAuYbcvpnvPMdXUbxz3GTh7f2sj0ejkR9ab8hui2kw4K88SZRt5mAvyM/EJ8dAI gUSm30sC7uWCGlAcdnIpH0x2B9Nv4qMWqKeBkdEbFF0ywE189uydbyKFDRukbnfIrpvP6L42jFFoh B8q2pr0Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxr7W-0001P8-GR; Fri, 08 Jan 2021 12:43:58 +0000 Received: from mail.base45.de ([2001:67c:2050:320::77]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxr7R-0001Mz-UH for openwrt-devel@lists.openwrt.org; Fri, 08 Jan 2021 12:43:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fe80.eu; s=20190804; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=iiE7r6g62zaHpQY41J7L+Xif87KkKDGUjYSpDbqa+XU=; b=UDBUzFaHLELB2odMo12vLM33yr AS0bydx0mvoHVmMScJY31/CXosVsDkcD+n/YcbxRgiw6I+ex/R2Nar4k58oRmzAzwrvcLbDHAUOEV sDj+t/HQ6Zlie/f1WJhG/uaRNFVTjvsGGeFn90qd5lFnTRYjZMv2294hOAzBvCc8Sv5sDB43Heo/b gRY/wnP98/2XwitMmP2GSf4wkA7qqHgftqgaNRApT+izgzov03k7UTybqggchUuRVFx05vu+RRw3E 4tM6MY5J6E6SfrBUZefwPRVieWm6acsY8AUKs+EBDwbk/HEioGEtDmApljnbpn1LhKZS+vEG1jcMC OQvBcobQ==; Received: from [92.206.250.226] (helo=lazus.yip) by mail.base45.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxr7L-00072M-0Y; Fri, 08 Jan 2021 12:43:47 +0000 From: Alexander Couzens To: openwrt-devel@lists.openwrt.org Subject: [PATCH] ramips: fix partition layout of xiaomi mi router 4a 100mbit Date: Fri, 8 Jan 2021 13:42:46 +0100 Message-Id: <20210108124246.1467019-1-lynxis@fe80.eu> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210108_074354_121047_7E174F93 X-CRM114-Status: GOOD ( 10.49 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -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 Message has at least one valid DKIM or DK signature X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Couzens Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The partition layout doesn't match the partition layout read out by OEM version. It's unclear to me if different firmware version have different partition layouts. --- target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts index 37797fc368cb..ea7e99d0b3fc 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts +++ b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts @@ -10,13 +10,13 @@ &partitions { partition@60000 { label = "overlay"; - reg = <0x60000 0x100000>; + reg = <0x60000 0x200000>; read-only; }; partition@160000 { label = "firmware"; - reg = <0x160000 0xea0000>; + reg = <0x260000 0xda0000>; compatible = "denx,uimage"; }; };