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 X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1025C432BE for ; Mon, 30 Aug 2021 16:49:17 +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 C91CE60E90 for ; Mon, 30 Aug 2021 16:49:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C91CE60E90 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de 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 7639783387; Mon, 30 Aug 2021 18:49:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1630342154; bh=MdckGRvuy3+yHJnzgVv1B0fSktmGEVsjRLtFIVnH3Sg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=HlVRt28yiuvNvu5PrLmFqdLlIEoDUaDDWW74jVNmaBAe+w2gYBkKnteDXQHSrKpHp TFgnaP1qRknWUN507dYSDcG9Ou0JIk1blnZljE6ap5x4tTC/rdpP+ki3qgRI6/48t9 GLGTcCNTTPwAK7mo/Q/Tm6+PQe/ugkyOKYx5XuI5im3p8lztXBm8eWHVe6CsElh8bN u4cjCDaPGYB7jSux0MRWAtZ0eBx+r459cTLkssCuIYnKThCK7wxfbwl57lHYB6KHdE p0R1+6EnqFSQ2vHqruK0O6yxvSNSXJfHfdm8D3ztHlG8f+pTJLxjTZqMFCEIg2PuJV pCrGNTXlAokxA== Received: from [IPv6:::1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 230D78337D; Mon, 30 Aug 2021 18:49:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1630342151; bh=MdckGRvuy3+yHJnzgVv1B0fSktmGEVsjRLtFIVnH3Sg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=nRsDDfVsnQfbI1/I1n5Zj6SCITQzhTKnOc9lP+esZ7E4JbmrRQT8I4jg7GmfvLpV3 sraPUGvZNKCufxGoE7KR5F8oV43G8T5XoOBTiowkf64F5//DLl2dLQw2Cwh/oiEh9C o/EW8vCEdXWyJbRGEkA+BJmhVqtZhfPctgM03BEkCNmPYSVEUYn4/Gn+Fmh+nRcve5 /AvXQEcUT2BJw3Koy5yxvE1CUKOahkr5eDJIiiW7mbE/cPgH+/zf04qGWbl9wIFfhu jMvBpIVhAJnQQy/qvN/k+yk9h08a3JXx8OdBdIxK85rPAOHi/b9qIRp1bsbJtB6ZTJ VGFL++IwEwoAg== Subject: Re: [PATCH 3/3] imx8qm_mek: Increase CONFIG_SYS_BOOTM_LEN to 64MB To: Marcel Ziswiler , "oleksandr.suvorov@foundries.io" Cc: "peng.fan@nxp.com" , "u-boot@lists.denx.de" , "festevam@gmail.com" , "oliver.graute@kococonnector.com" References: <20210829193913.124217-1-oleksandr.suvorov@foundries.io> <20210829193913.124217-2-oleksandr.suvorov@foundries.io> <20210829193913.124217-3-oleksandr.suvorov@foundries.io> <9233078c-7ef9-4234-0c90-01f8de6f0600@denx.de> <0e18e8abdeb4b231656acb21d7a2c8bb8b391101.camel@toradex.com> From: Marek Vasut Message-ID: Date: Mon, 30 Aug 2021 18:49:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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 8/30/21 6:34 PM, Marcel Ziswiler wrote: > On Mon, 2021-08-30 at 17:10 +0200, Marek Vasut wrote: >> On 8/30/21 5:05 PM, Marcel Ziswiler wrote: >>> On Mon, 2021-08-30 at 14:18 +0200, Marek Vasut wrote: >>>> On 8/30/21 1:11 PM, Oleksandr Suvorov wrote: >>>>> On Sun, Aug 29, 2021 at 10:55 PM Marek Vasut wrote: >>>>>> >>>>>> On 8/29/21 9:39 PM, Oleksandr Suvorov wrote: >>>>>>> The BSP platform LmP supports the board NXP iMX8QM MEK. The >>>>>>> kernel size in LmP exceeds 32Mb. Increase the maximum size >>>>>>> of an uncompressed kernel to fix the following error: >>>>>>>        Uncompressing Kernel Image >>>>>>>        Error: inflate() returned -5 >>>>>>>        Image too large: increase CONFIG_SYS_BOOTM_LEN >>>>>>>        Must RESET board to recover >>>>>>> >>>>>> >>>>>> Maybe we should increase the default for arm64 instead ? 8 MiB is too small. >>>>> >>>>> I completely agree if NXP doesn't have objections. >>>>> @Peng Fan Do you mind? >>>> >>>> Increase it for all of arm64 , or all of U-Boot even. This has nothing >>>> to do with NXP. >>> >>> In general, I agree. However, in practice this can have devastating effects on stuff as discussed here: >>> >>> https://marc.info/?l=u-boot&m=162999598824381 >> >> I suspect the correct solution for that is to use bootm_size and let >> U-Boot figure out where to place the kernel / DT / etc. > > Sure, but how would that work with FIT images e.g. containing kernel binary, device tree(s) and an initrd? I think I must really be missing something from the discussion you linked, sorry. Can you briefly summarize it, so we are on the same page? I would say, increase BOOTM_LEN for everyone, or at least arm64, because right now it is too small. You say it can cause issues. I clearly do not see the issues it can cause, so, please help clarify it.