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 00EE5C433F5 for ; Tue, 19 Oct 2021 08:32:26 +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 2CA2060F8F for ; Tue, 19 Oct 2021 08:32:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2CA2060F8F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.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 5506E82006; Tue, 19 Oct 2021 10:32:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.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=canonical.com header.i=@canonical.com header.b="XsCjsCqd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 433C381BC8; Tue, 19 Oct 2021 10:32:20 +0200 (CEST) Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F1A0882D95 for ; Tue, 19 Oct 2021 10:32:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alexandre.ghiti@canonical.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id B61553FFDC for ; Tue, 19 Oct 2021 08:32:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1634632335; bh=3cBey7jlON9QlSJ18VRqtmxt+AIh6kb1TSCjtZMyGeY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=XsCjsCqdydvWsEmpq4cnZZF0vZ4vgq75hOY8oe6ySkB1H6T2khViC4OuqoXVPLXTU +I6BwG0L1bc7ZcYrerj88l0fyUvhZx0gYpIw1eadvKrV7zitvcke2o6HKprNb6trMS wOiqJc6VDadL9Jenq3AfDRrF+tJ8+C3LCmo97QOQPf5yTFFcG/+wKFcYRj3Jf/ery5 mlKv/HuZn7aWhxsen+dZf6XxiT0DsCT/UOMEbwikp1vaUcxD4QvmKHI3rDWAvRw1UL rT+BUDe7oLcZmHuaUNfDv9Y9qDBqiXAbmXOIHl3Noz9MSNnsiuMZ5MmLyosqi2jIsD pFMeIKf7LSvRw== Received: by mail-ed1-f72.google.com with SMTP id c30-20020a50f61e000000b003daf3955d5aso16905836edn.4 for ; Tue, 19 Oct 2021 01:32:15 -0700 (PDT) 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=3cBey7jlON9QlSJ18VRqtmxt+AIh6kb1TSCjtZMyGeY=; b=79o8mhstHi0+NC9JhLxjBtReyio40e2nXdZlCn9tLXtrONNo4dEvhtsizJUy98eVKL F3l3LR1k5i+EQm4NLiJwTcxVvO8PLNIqWwRjJQuBmsvSb19m8DqAZKVRrznbxt9Dotzx h10rEeG3O47KiFCDzBjV0b6QwL8CU86jP7Mu3UmF/6hofrLgGawsuDNdD9J+iVVnTI6e Jo6xGT4ca490EqqJBUdAs429W3xAnTY9Jwm2nL/AZ5Bnvq4wQzxpGwpS6NosKEKHEJDM LA5nDmexCxs2i0ai9+BYNLp4l/M0gGI3YemGdus6j37r/poMJ3rno5LCvx5cAleNdGk/ qwLA== X-Gm-Message-State: AOAM532bmWKbVNvlPPAza0EFq1RULr5bjvEVJN/tT9S7//nQSKBbIABM My+nIqLVhvfCJVg8akuWrEXBj3+KPfTqWxKVrRu3XKFf/6FCiy0agiVufqimmEBG4tbWV3PEoA3 wz/lBzYSTFFLaScazkIdW4mDK5EAuK9l8rdof7ZdQeZQLKZ8= X-Received: by 2002:a17:906:5a8d:: with SMTP id l13mr38240887ejq.95.1634632335488; Tue, 19 Oct 2021 01:32:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcee6NwusNk8MHAr/1rjiPb+QZGG0OfjhJVKVHVQ+lZ6jbN8a/UzoydAJ1je+B+9+kY4Dfcdpa23SSFWNiVD4= X-Received: by 2002:a17:906:5a8d:: with SMTP id l13mr38240867ejq.95.1634632335302; Tue, 19 Oct 2021 01:32:15 -0700 (PDT) MIME-Version: 1.0 References: <20211001113745.52797-1-heinrich.schuchardt@canonical.com> In-Reply-To: From: Alexandre Ghiti Date: Tue, 19 Oct 2021 10:32:04 +0200 Message-ID: Subject: Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE To: Bin Meng 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 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. Alex > Regards, > Bin