Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E234EB64DC for ; Tue, 18 Jul 2023 14:57:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 17E0C86704; Tue, 18 Jul 2023 16:57:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="TkjsObIr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 04EA786703; Tue, 18 Jul 2023 16:57:23 +0200 (CEST) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) (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 E4E2B866E9 for ; Tue, 18 Jul 2023 16:57:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=knaerzche@gmail.com Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4fb863edcb6so9665722e87.0 for ; Tue, 18 Jul 2023 07:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689692239; x=1692284239; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XZ6pszZU7fa8KNLmqdOvcMQzgM7FmBz0o2aSiHP5dM0=; b=TkjsObIrDKC8JTeuPQlLn+QnTh1HnX18XKrTwmfmdU4cl/E/5RMFDLOMJgt82QazqB Mnd3OczZAQ7X7myrMDOuhEhb9pn/khtQl7owtntCEezqKpXsLUZb0fphxGa7xlfpLs+m hwFNhDb3VtHBQRlzO7CPgoR4d9FdVh1lP/tConyorZKvfVi4h0FbPZBU+OJKdJssp0Tu f/N49db7COHoDAlEf7UUw1yIMivyeNLGsAEZKamYB3JWqAiZZsmjoQlN7+6hvL4SYI1B FJvqOZtVQjUlNlAL9avksD28iJ6ye8up07bLjfRtVvYONARynM85WGfqZGedb5SuAvvE xorw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689692239; x=1692284239; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XZ6pszZU7fa8KNLmqdOvcMQzgM7FmBz0o2aSiHP5dM0=; b=Y7tTM+/ROl5FEHW2+Qf8fbUcJYiOMixPnT2SXoskPplnyOYX/JNgtwZ2wsVXoJxz4M VPMboHISnTRqf868G/KEkkj0e+/5vE9mcLs2IvX+W/8Vp2V8ubuwZ2n6GIABY0g2zFm3 HFj8OgGzUZmpzDGCvSwgBce/fErp7Cw22ZxyVDcOeWwwsH4SG9xoUKxF+ElsMCQZlDvF nooA2sZ/FMq7H75hpNccB0ZSvYK0kj9jJWUPcForxSa4WBv9Ls+qvuzoBLnEuOvGk6Kb YfyxQPWSZhMslKTeM92HBXd0To5pz5iY0ZaDqVbdt2tzEg9tHnrPySOx9wz77YC36rZk 11Bg== X-Gm-Message-State: ABy/qLaXNFSxJLkh7SmUHO10qM6FIxe+2/E7iyuhMX/bxGU52/j4HqbR lrj8U3mBGryaPUbKeVT5jAb7zdgcow== X-Google-Smtp-Source: APBJJlEt7P3hcUpuu8hNSLZuW3fQURUHRXoJcdQhwHc2+rWQ5vGaCit8ZpEPGG30BZXEXd3e1J4n/w== X-Received: by 2002:a05:6512:3e1b:b0:4f9:ec5e:d624 with SMTP id i27-20020a0565123e1b00b004f9ec5ed624mr2323109lfv.38.1689692238895; Tue, 18 Jul 2023 07:57:18 -0700 (PDT) Received: from U4.fritz.box ([2001:9e8:b960:df00:3afe:540e:d7ee:98ac]) by smtp.gmail.com with ESMTPSA id f25-20020aa7d859000000b0051de20c59d7sm1340797eds.15.2023.07.18.07.57.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jul 2023 07:57:18 -0700 (PDT) From: Alex Bee To: u-boot@lists.denx.de, Kever Yang , Philipp Tomsich , Simon Glass Cc: Alex Bee Subject: [PATCH v2 2/5] configs: evb-rk3229: Increase SPL_STACK_R_MALLOC_SIMPLE_LEN Date: Tue, 18 Jul 2023 16:57:12 +0200 Message-ID: <20230718145715.1280201-3-knaerzche@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230718145715.1280201-1-knaerzche@gmail.com> References: <20230716081034.1196995-1-knaerzche@gmail.com> <20230718145715.1280201-1-knaerzche@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.8 at phobos.denx.de X-Virus-Status: Clean An OP-TEE FIT image will fail to extract in SPL because the malloc stack size is currently limited to 0x2000 for evb-rk3229 board. In SPL we do not have to care about size limitations, since we are no longer bound to SRAM limits after DRAM initialization has been done in TPL. Use the default value for CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN in order successfully unpack the FIT image. Signed-off-by: Alex Bee --- configs/evb-rk3229_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/evb-rk3229_defconfig b/configs/evb-rk3229_defconfig index cf73afeded..73015f098c 100644 --- a/configs/evb-rk3229_defconfig +++ b/configs/evb-rk3229_defconfig @@ -31,7 +31,7 @@ CONFIG_SPL_PAD_TO=0x7f8000 CONFIG_SPL_NO_BSS_LIMIT=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_SPL_STACK_R=y -CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000 +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x100000 CONFIG_SPL_OPTEE_IMAGE=y CONFIG_SYS_BOOTM_LEN=0x4000000 CONFIG_CMD_GPT=y -- 2.41.0