From patchwork Sun Feb 19 15:06:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 1744698 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.a=rsa-sha256 header.s=s1 header.b=pGwzR7A6; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PKTS04sj0z23j7 for ; Mon, 20 Feb 2023 02:07:28 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F2F32857C2; Sun, 19 Feb 2023 16:07:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="pGwzR7A6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3F0F7854C8; Sun, 19 Feb 2023 16:06:43 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 Received: from cskrhhvt.outbound-mail.sendgrid.net (cskrhhvt.outbound-mail.sendgrid.net [198.21.0.135]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2017185704 for ; Sun, 19 Feb 2023 16:06:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:in-reply-to:references:mime-version:to:cc: content-transfer-encoding:content-type:cc:content-type:from:subject:to; s=s1; bh=PwSpyMm4wDKwSISgYpxZT+9kCdzDnFxwMUEM6dxb9/k=; b=pGwzR7A6r5jcAbVtMVwJFreM8nNdcka0mnKsudk+x+3OF1Ggup9ckrAmvY7R+wO+t9li 987gEQ5Pvsno49/vlOQ75jejG751H0ie3BPYvxQr6KlfQUmLcN4tS04vSDjlKF3qXy3kdF XLD5mt0PlMw+vemVYELXbgm25xAfZrNbrXzZmCE81k+vMOH1amw31tQRduQsRd9/eDmE1i 8rSoqrCVGKt9eMA/qY66Lrv3Axw7feVEFKKDMmibjcKK84HUOge3z/HYY2IrkNswq4pywJ Ns/bm1auiHa+d0a7MZbN+yKaF5sVRGeUTtRJFdaGQ+fd5bYgZp9UIEb6pJeufaVQ== Received: by filterdrecv-7dfc98557c-wqt5r with SMTP id filterdrecv-7dfc98557c-wqt5r-1-63F23AFB-19 2023-02-19 15:06:35.704580931 +0000 UTC m=+763766.066696551 Received: from bionic.localdomain (unknown) by geopod-ismtpd-1-1 (SG) with ESMTP id 61WxuLJaS2OJXr4orcUukA Sun, 19 Feb 2023 15:06:35.398 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v4 4/4] rockchip: mkimage: Update init size limit for RK3328 and RK3568 Date: Sun, 19 Feb 2023 15:06:35 +0000 (UTC) Message-Id: <20230219150629.4012377-5-jonas@kwiboo.se> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230219150629.4012377-1-jonas@kwiboo.se> References: <20230219150629.4012377-1-jonas@kwiboo.se> MIME-Version: 1.0 X-SG-EID: TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxAfZekEeQsTe+RrMu3cja6a0h6bME0B7M2k77BQ1s8/uP8n3XT3wS7bAvd7082GLWbrKPu1jrqQgZctvuaZ8hm1JI+cG9zZltYfnCfctz2OeOYIW2CW+Ci5r5EeCw3YMDKvYrbTHGnUEzKaVL7qjPzrOWlhU22RPvytgy03Ek8ArXvNH1LIQo54R3atbMNMWA9cn To: Simon Glass , Philipp Tomsich , Kever Yang , Joseph Chen , Alper Nebi Yasak Cc: Quentin Schulz , Jagan Teki , Heinrich Schuchardt , u-boot@lists.denx.de, Jonas Karlman X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Latest vendor TPL for RK3328 has grown past the current init size limit of 28KiB and the current init size limit for RK3568 of 76KiB is too big to fit in 64KiB SRAM. Sync init size limit from vendor u-boot for the following SoCs: rk3328: 30KiB (+2KiB) rk3568: 60KiB (-16KiB) This makes it possible to use latest vendor TPL on RK3328 without getting a size limit error running the mkimage command. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v4: - Only change limit for rk3328 and rk3568 v3: - Sync with vendor u-boot as-is - Update commit message to include size changes v2: - New patch tools/rkcommon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 1f1eaa16752b..0d29110a4dec 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -129,12 +129,12 @@ static struct spl_info spl_infos[] = { { "rk322x", "RK32", 0x8000 - 0x1000, false, RK_HEADER_V1 }, { "rk3288", "RK32", 0x8000, false, RK_HEADER_V1 }, { "rk3308", "RK33", 0x40000 - 0x1000, false, RK_HEADER_V1 }, - { "rk3328", "RK32", 0x8000 - 0x1000, false, RK_HEADER_V1 }, + { "rk3328", "RK32", 0x8000 - 0x800, false, RK_HEADER_V1 }, { "rk3368", "RK33", 0x8000 - 0x1000, false, RK_HEADER_V1 }, { "rk3399", "RK33", 0x30000 - 0x2000, false, RK_HEADER_V1 }, { "rv1108", "RK11", 0x1800, false, RK_HEADER_V1 }, { "rv1126", "110B", 0x10000 - 0x1000, false, RK_HEADER_V1 }, - { "rk3568", "RK35", 0x14000 - 0x1000, false, RK_HEADER_V2 }, + { "rk3568", "RK35", 0x10000 - 0x1000, false, RK_HEADER_V2 }, }; /**