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 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 B44F3ECAAD3 for ; Wed, 14 Sep 2022 08:02:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A9F8084AEF; Wed, 14 Sep 2022 10:02:31 +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="myJXU2AB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ABB1684607; Wed, 14 Sep 2022 10:02:30 +0200 (CEST) Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 A16DB84AF7 for ; Wed, 14 Sep 2022 10:02:25 +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=heiko.thiery@gmail.com Received: by mail-wr1-x433.google.com with SMTP id z12so6062017wrp.9 for ; Wed, 14 Sep 2022 01:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=EwuaWIAXegSVtSM5dNr4kehZBSFz/nYl56aZu3ig8oY=; b=myJXU2ABSwtOeIu/O/Gx1dc2h5GsX/YIX9PxGSDjY1/15HCp46ZFlQNVt14V4PI4XY oKalwiu7p6j4XJWsApK7w+c322H44ABzVVSjM6Gv8/9QvWtCCgP10VVwprgtCsRBRSmY RVFSAmSkY7+6+EO3VNV/JWzjA4A7CVdbMykG1jAMROCSzqJT5hgcyngWROw56f3iEC6D xzYBqh9FOXz0N7ffTw7oqhna2KHPosXttuxTQhrHq+uu2X6BWG09NUjgoksr7/nru88q mkEpUuYW5F5s6M4IrwBk5ksGoiPqqWas/gfm5Iss+fzXLvAzqnL4yYrvrq/VAAx4xapH W3Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=EwuaWIAXegSVtSM5dNr4kehZBSFz/nYl56aZu3ig8oY=; b=QXvPTFAEbkGwJEsLCrhNa6j7pDu8e6+EPhrG0XVrGLl2nCvE8ZubQAOGf9NqlVU5LI uhKzuGxThh5F/Q1QRWCZ2ciPxHb2vB0uLHtJT6sD4eT6H8Hl0xVAqZBJ8H/IYuIn8O8Q HZZM3QGOo/RX0poBjqWWNZZaxqSo3AlzSzY/7akfAveUL3N7DuoFEtB+gY+YbN7BqQ76 TGj4DYRa7tPQ+WPUOXvET8/oHzFvCv8bOdUke7oP+4/sLLU8VEhXFIAIfOFMEdo+DeY0 zJrETZM9K/TkUIqJAU6ixD3RBMByO4HskYPu6+kxAO4bxFIIFzxSXAK+YzkdxM8rK1Jx kTPQ== X-Gm-Message-State: ACgBeo2y+nW6QnrqDP/pOMMjsAfSQ89HrTOtCC+5SAf6V5OBRckoKlxE oUsUBrJC9dK8QByaAdTcoBB8ZKkOx/37Og== X-Google-Smtp-Source: AA6agR4mPJ3tnIAn7IDGIEnIpwtG3cH6fydU03VHoZBvpMxb2m/a4VfPrHq48E7991smR873srYX5g== X-Received: by 2002:a05:6000:1845:b0:22a:4b7a:6f55 with SMTP id c5-20020a056000184500b0022a4b7a6f55mr11291605wri.288.1663142544562; Wed, 14 Sep 2022 01:02:24 -0700 (PDT) Received: from hthiery.kontron.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id n5-20020a05600c304500b003b3307fb98fsm15436193wmh.24.2022.09.14.01.02.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 01:02:23 -0700 (PDT) From: Heiko Thiery To: u-boot@lists.denx.de Cc: Peng Fan , Fabio Estevam , Marek Vasut , Marcel Ziswiler , Tim Harvey , Sean Anderson , Stefano Babic , Tom Rini , Heiko Thiery Subject: [PATCH] kontron_pitx_imx8m: enlarge SYS_MALLOC_F_LEN Date: Wed, 14 Sep 2022 10:02:11 +0200 Message-Id: <20220914080210.14103-1-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.30.2 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.6 at phobos.denx.de X-Virus-Status: Clean There is "alloc space exhausted" that can be seen with DEBUG_UART options enabled and leeds to an non-functional board. CONFIG_DEBUG_UART_BASE=0x30880000 # for serial3 CONFIG_DEBUG_UART_CLOCK=24000000 It is because CONFIG_SYS_MALLOC_F_LEN is too small, enlarge it. And set CONFIG_SPL_STACK to 0x188000 to not waste the top 16bytes. Signed-off-by: Heiko Thiery --- configs/kontron_pitx_imx8m_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/kontron_pitx_imx8m_defconfig b/configs/kontron_pitx_imx8m_defconfig index 284aa6d6b8..a57b5cf552 100644 --- a/configs/kontron_pitx_imx8m_defconfig +++ b/configs/kontron_pitx_imx8m_defconfig @@ -2,6 +2,7 @@ CONFIG_ARM=y CONFIG_ARCH_IMX8M=y CONFIG_SYS_TEXT_BASE=0x40200000 CONFIG_SYS_MALLOC_LEN=0x600000 +CONFIG_SYS_MALLOC_F_LEN=0x10000 CONFIG_SPL_GPIO=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y @@ -35,7 +36,7 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y CONFIG_SPL_BSS_START_ADDR=0x180000 CONFIG_SPL_BSS_MAX_SIZE=0x2000 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set -CONFIG_SPL_STACK=0x187ff0 +CONFIG_SPL_STACK=0x188000 CONFIG_SYS_SPL_MALLOC=y CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x42200000 -- 2.30.2