From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A332DC433EF for ; Tue, 19 Oct 2021 08:55:16 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 05F0560D43 for ; Tue, 19 Oct 2021 08:55:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 05F0560D43 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 706C381F74; Tue, 19 Oct 2021 10:55:13 +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="GmjRJv8p"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0468781F0D; Tue, 19 Oct 2021 10:55:11 +0200 (CEST) Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) (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 91D0A81F0D for ; Tue, 19 Oct 2021 10:55:08 +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=bmeng.cn@gmail.com Received: by mail-yb1-xb2e.google.com with SMTP id n65so2404689ybb.7 for ; Tue, 19 Oct 2021 01:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NIu9Kdm3cN05ETxANC1FL6ECph5a6J1IjkgSBZTkG44=; b=GmjRJv8ptK26hj/Xei7OdfSWuLwHFaiYZHn2oQc/keUMtwAiWxy8AkUNXcIE4/gLlQ oU4BAtOFiTNGQBmpi6Wz3ZOn7UDgIPn8DBy+rxUqsQWNQO+9Z4DJeN8yf66xZTymbxzS zi/tc21vcmVjja1lfHWFkVSnsMYQ+9nOmHk0aV2emrJusAq92S5264j8POhSxdZ7rVp+ Po9956sG7eJv8d7Y4j5MZy5iDb7WQ5A3+3GZr8K41AVmOuNYwbWtCgyi79TYdO3YM+Dt MPU1aBPY36LmwncJiUPGpiB6sg1gsVLo5mBaEgwAvovnvYywm3YuWNC15cCdA1QOg5+S 5Mqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NIu9Kdm3cN05ETxANC1FL6ECph5a6J1IjkgSBZTkG44=; b=rJ1+Mjom6JmF0QgYJoXWnXar0gXOpoF0EU9JiymvwrZGDGrmZNp/kbKgjpWWLFtwjM Bo4pSyztTKZXDvWUMPdE5jN8XceLLTYCo1O7Fzb9lcl7CbxhsNTuhVWEnDiStOnJPzUt gugOdHFgIiqwySX49Pmgo7Uc/RlaRLHE5nMQkhS6R8CeSSyYtXiUipI7iq3TfKiahnqJ 7iYClUwDnxeedoWW60CBhGwlbCY7PaEgYLXNvndHz1gKlIaH83DJbk9kQRb5WfQW7xwo ZsVOCfZN61yD77NEI3q1ftH9KYbPZG9KwcYQVqAZ+wQEgcqKzSUErvmXitAj++NLxrcq D7jA== X-Gm-Message-State: AOAM532MLG20wFZhOzdfaFB6HduQzm80GddFPta6m6P7dFe7uQ8Q6vqx 5TVeJVSKhSYtcOiXqVeVEc4cI2dzvLF46m7DCbI= X-Google-Smtp-Source: ABdhPJxKEkFpRZg3kGRFbyduoGicw1zXsHHmyiFtfiSHE54p1goWGBSVgjhfiDrIYWU4eeaSOHrf2j/DEQ415MXeR8k= X-Received: by 2002:a25:c0d2:: with SMTP id c201mr17130454ybf.467.1634633707419; Tue, 19 Oct 2021 01:55:07 -0700 (PDT) MIME-Version: 1.0 References: <20211001113745.52797-1-heinrich.schuchardt@canonical.com> In-Reply-To: From: Bin Meng Date: Tue, 19 Oct 2021 16:54:56 +0800 Message-ID: Subject: Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE To: Alexandre Ghiti Cc: Heinrich Schuchardt , Tom Rini , Leo Yu-Chi Liang , Rick Chen , Pragnesh Patel , Dimitri John Ledkov , Zong Li , Green Wan , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean On Tue, Oct 19, 2021 at 4:32 PM Alexandre Ghiti wrote: > > Hi, > > On Fri, Oct 1, 2021 at 5:35 PM Bin Meng wrote: > > > > Hi Heinrich, > > > > On Fri, Oct 1, 2021 at 7:37 PM Heinrich Schuchardt > > wrote: > > > > > > Avoid an error like > > > > > > Could not get FIT buffer of 1725952 bytes > > > check CONFIG_SYS_SPL_MALLOC_SIZE > > > No device tree specified in SPL image > > > ### ERROR ### Please RESET the board ### > > > > > > Signed-off-by: Heinrich Schuchardt > > > --- > > > include/configs/sifive-unmatched.h | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/include/configs/sifive-unmatched.h b/include/configs/sifive-unmatched.h > > > index f8ad2cce1f..8d3deabdd3 100644 > > > --- a/include/configs/sifive-unmatched.h > > > +++ b/include/configs/sifive-unmatched.h > > > @@ -18,7 +18,7 @@ > > > #define CONFIG_SPL_BSS_MAX_SIZE 0x00100000 > > > #define CONFIG_SYS_SPL_MALLOC_START (CONFIG_SPL_BSS_START_ADDR + \ > > > CONFIG_SPL_BSS_MAX_SIZE) > > > -#define CONFIG_SYS_SPL_MALLOC_SIZE 0x00100000 > > > +#define CONFIG_SYS_SPL_MALLOC_SIZE 0x00200000 > > > > > > #define CONFIG_SPL_STACK (0x08000000 + 0x001D0000 - \ > > > GENERATED_GBL_DATA_SIZE) > > > > What caused this? > > > > Last time this was seen on Ax25-AE350, CONFIG_SPL_SYS_MALLOC_F_LEN was > > increased, instead of CONFIG_SYS_SPL_MALLOC_SIZE which the error > > messages point to > > > > https://lists.denx.de/pipermail/u-boot/2021-May/449447.html > > > > I fell into the same issue this morning and increasing > CONFIG_SYS_SPL_MALLOC_SIZE fixed it, though I had to increase it even > more than Heinrich. Is this default build that caused Unmatched boot failure? @Rick Chen can you comment on why CONFIG_SPL_SYS_MALLOC_F_LEN was needed on AE350? Regards, Bin