Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4373605rwl; Mon, 3 Apr 2023 04:11:38 -0700 (PDT) X-Google-Smtp-Source: AKy350Zg5m0eClk3nBotGIglBfyy7dDgRCQYPucQrq3iGOldjdKhPvf5d+wcNLL2hV3SNctWrJFJ X-Received: by 2002:a17:906:9453:b0:932:b7ce:2aaa with SMTP id z19-20020a170906945300b00932b7ce2aaamr37904076ejx.28.1680520297851; Mon, 03 Apr 2023 04:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680520297; cv=none; d=google.com; s=arc-20160816; b=sMqVbu9FcG25mFKRGczERwJYJFaGHe+YYG6l77BTHcG2J5tHjR6Aqt7ZdK5SKF3cgu 2g7xO/2cHulVMff7CQEpqO1PC7P3ahbwA+69NW/gg715tjvuYTw1tzKDGkYnkxGNXYmc T8dmaWATVTyiA6DaQE+fTCy+P699tiNqfe0TIL+Drj0gJvE/1Tvv5LvvZSUIN1kXi5u8 57WX3/+7ZCGN5SHg96psIjdcBgkiErCtIVO6tfbxw/LQO5eIZiV3Wh3RERKR7rSHOLM6 4oJkjjwMfDsIFXrOa4f8ghIUKFk2l+Ly48P/AXmFioeA+o9fye1xS/erYHmnWnbLingw fh3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BZ9tPE6ls/muuZObj8Q8K01GmUnkjtbnL+JF6Rq/x1c=; b=GK+rMuCc/Wix8CYR4WZp4LJ2Gluu1lwd5Y2n5EHssmAaAZJsgLOsA710BkoSxRr5Qg bNoN4fVoXgIAK64RLWW9mheWP6PCZyhmdzmqutPVOrcbtTy3G1PFy+aaVkph3sNeOPnS BDqHt/3S9aybKqZChiyVeVO15BxUarQBhhaceSI3K63E/sfmMSX/jjkC5FjKFmaLOox9 hYYD3jWg9yW4gDVTiSsZGF3SFjLS3dJPqEouMDnBi0sBeX97euUpwqmJl40gC9hnNBBI M0jDvXIyQ9GMsE3mK/Hyx7L8oTBegBPsgw+Cja0imDbHLrbR9yL9gV5C+pCXp+LsZqZb QFkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e16-20020a170906315000b008bc4db74272si7188572eje.471.2023.04.03.04.11.12; Mon, 03 Apr 2023 04:11:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231997AbjDCLGo (ORCPT + 99 others); Mon, 3 Apr 2023 07:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231836AbjDCLGk (ORCPT ); Mon, 3 Apr 2023 07:06:40 -0400 X-Greylist: delayed 490 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 03 Apr 2023 04:06:38 PDT Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89C984C17; Mon, 3 Apr 2023 04:06:38 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id 8AB655FB9D; Mon, 3 Apr 2023 10:58:26 +0000 (UTC) Received: from frank-G5.. (fttx-pool-217.61.152.94.bambit.de [217.61.152.94]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id C0B2E3608ED; Mon, 3 Apr 2023 10:58:25 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RFC] arm64: dts: use size of reserved partition for bl2 Date: Mon, 3 Apr 2023 12:58:18 +0200 Message-Id: <20230403105818.29624-1-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: ff39b839-2afa-4e8f-82c9-0ea90158acdd X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Wunderlich To store uncompressed bl2 more space is required than partition is actually defined. Signed-off-by: Frank Wunderlich --- I used the definition i got from mtk used in their SDK uboot. Openwrt uses also the first reserved partition to give bl2 more space: https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-nor.dts;h=f597b869abc80d1a73f44ebb85ad4da17376bb52;hb=HEAD#l22 so imho it should be same in mainline to not require complex bl2 compression. --- .../boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nor.dtso | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nor.dtso b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nor.dtso index 84aa229e80f3..e48881be4ed6 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nor.dtso +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nor.dtso @@ -27,15 +27,10 @@ partitions { partition@0 { label = "bl2"; - reg = <0x0 0x20000>; + reg = <0x0 0x40000>; read-only; }; - partition@20000 { - label = "reserved"; - reg = <0x20000 0x20000>; - }; - partition@40000 { label = "u-boot-env"; reg = <0x40000 0x40000>; -- 2.34.1