Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4583503rwl; Mon, 3 Apr 2023 07:03:33 -0700 (PDT) X-Google-Smtp-Source: AKy350Z68S3rHbYbUIeMaTfeynUVVrRhXibPmpagAMwVpyvcFBfZCSWZdpUZNH1dGmL0ekcgk0t+ X-Received: by 2002:a17:90a:7a8e:b0:240:b21d:41e0 with SMTP id q14-20020a17090a7a8e00b00240b21d41e0mr22288425pjf.34.1680530612762; Mon, 03 Apr 2023 07:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680530612; cv=none; d=google.com; s=arc-20160816; b=PIwMDyVlF3UCO1/Galx4R1+s2OQfBTvwW2O+2lhwXzClsIVo6hfkCc9hErugPN727l U/X42+ce4QJujbjdYxzEXxrMmB8vV6DqHa/d9zG43XH2IStwbTkp5wEjNUWjZrgzXK8q vyzHWeWImyZ/jq29LWg0nuncK4YZ9C2Bveek8xPhzh53S8ehkY8N01WM3YtdH2xxmfl0 G58aR4DWkl+cVq/eXcjIVYY5jdAMTd9aGapNawafqWfdjz2NvwMJLHE0cXZh8GjjhGNf vnb4FoU4xPuaw3NUso9j8FiyVptq7R+wmII3H0H3mrcPdZYZdqZW0FzF0Z83P1ex7Nve iyOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:ui-outboundreport :references:in-reply-to:sensitivity:importance:date:subject:cc:to :from:message-id:mime-version:dkim-signature; bh=Xb/Aqcr8/6tCqOXQhpDwDqrXqkHQUMERdzS8z5C5aaE=; b=sEOWIxA55FSOxHo6hLZw0Dmm/k0XhVeqR0i2lw0mbI6eibF9RmYTZ82ZZSF0OtrQUC R3aUbQd1ZGd9xwG/MwddMj0pJY7huYvovoLJ/V+3RcpS9UaGrl29C7wf8ibAHeol/5W4 fib/SY97XKFdEGfRfPKayPoVUKJW916TEKzLZdZrdMIq0vvgbMKBSVelPTYn+o6Z1pIQ Xcm66GVba+PMpmJ9Z2bxi/0hmOwJQgagSZRseaiNZvLLtmVK4Lzd5zsnOCfZDCgUvxDv wf+omeWUq92gUZ0XWjYeWLAc4m47Dyy4HZgKFTlTsW1aMjtk8J9zYXq0drHFuBVgcQI/ Xd1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@public-files.de header.s=s31663417 header.b=WVgWtMLN; 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 i18-20020a170902e49200b001a1c7fe5bccsi7726132ple.248.2023.04.03.07.03.00; Mon, 03 Apr 2023 07:03:32 -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; dkim=pass header.i=@public-files.de header.s=s31663417 header.b=WVgWtMLN; 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 S232742AbjDCN4q (ORCPT + 99 others); Mon, 3 Apr 2023 09:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232299AbjDCN4o (ORCPT ); Mon, 3 Apr 2023 09:56:44 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61427195; Mon, 3 Apr 2023 06:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=public-files.de; s=s31663417; t=1680530175; i=frank-w@public-files.de; bh=Xb/Aqcr8/6tCqOXQhpDwDqrXqkHQUMERdzS8z5C5aaE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=WVgWtMLNJip3AWjjsW3c2NEI8/oR0kJHkFcWc8LIzEOS5noCTYVSWlKivGM7TXk1c sK3FeMkjgroYVQ3pq9/jXOA/krprjV0Bo5aBA+WYVI5C6LTCvEImrFpQchEzyDb1yx a3aBhQKOsaZCzFlOuvmHSkvCx8qwAPPxF7E0pFZcRRjCz/QjfXqOQd2YxVPo7YM0kq KEhaRcLyaEOp80/+npwZJ3jiasFpzsOFHWlvY/uy92PCK7FaLBVkQkdDvwNyalxwfo DvWZQIHjFOzeCwyadhDttGjYi1HXl4etdfE3/DRigXd5yjn/hCt8DDvIyFpOcSScDQ qzxZURiAEGDMQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [217.61.152.94] ([217.61.152.94]) by web-mail.gmx.net (3c-app-gmx-bap35.server.lan [172.19.172.105]) (via HTTP); Mon, 3 Apr 2023 15:56:15 +0200 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: AngeloGioacchino Del Regno Cc: Frank Wunderlich , linux-mediatek@lists.infradead.org, Rob Herring , Krzysztof Kozlowski , Matthias Brugger , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Aw: Re: [RFC] arm64: dts: use size of reserved partition for bl2 Content-Type: text/plain; charset=UTF-8 Date: Mon, 3 Apr 2023 15:56:15 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <601a8435-8e2a-2c25-5fe3-40be62269469@collabora.com> References: <20230403105818.29624-1-linux@fw-web.de> <601a8435-8e2a-2c25-5fe3-40be62269469@collabora.com> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:1JUsxUleXcKrPCYwE3ay4MIocxMSb4QWHITw42EQ/QR0OVKQS9PGhbSC81u83cP4k1dMp S1et19Ypg4uLyI/QckCamlb8kcfn1bY4ymdZGUt3Ph7J38bdfIThEnQiirBQ6gDD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ryBqjQdgm3Ehw+FCuzQl7U4BpRRLv6Qqk 6XB0KjI07hnPTIA== Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2, 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 > Gesendet: Montag, 03. April 2023 um 14:43 Uhr > Von: "AngeloGioacchino Del Regno" > Il 03/04/23 12:58, Frank Wunderlich ha scritto: > > From: Frank Wunderlich > > > > To store uncompressed bl2 more space is required than partition is > > actually defined. > > > > Signed-off-by: Frank Wunderlich > > If this doesn't get changed anymore, I'm fine with it... but a question = arises: > did you send patches to add your BPI-r3 board(s) to upstream u-boot? currently i use the rfb dts for r3 in uboot: arch/arm/dts/mt7986a-sd-rfb.d= ts this file in upstream uboot has no partitions defined https://source.denx.de/u-boot/u-boot/-/blob/master/arch/arm/dts/mt7986a-sd= -rfb.dts#L144 but i added them there too and i wrote content by offsets to main device (= not to partitions). https://github.com/frank-w/u-boot/blob/2023-04-bpi/arch/arm/dts/mt7986a-sd= -rfb.dts#L154 so yes basicly it needs to be send there too, maybe as additional dts. regards Frank > > --- > > 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=3Dopenwrt/openwrt.git;a=3Dblob;f=3Dtarget/l= inux/mediatek/dts/mt7986a-bananapi-bpi-r3-nor.dts;h=3Df597b869abc80d1a73f4= 4ebb85ad4da17376bb52;hb=3DHEAD#l22 > > > > so imho it should be same in mainline to not require complex bl2 > > compression. > > Regards, > Angelo > >