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 2FD8DC432BE for ; Mon, 30 Aug 2021 15:10:44 +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 2AFD560E77 for ; Mon, 30 Aug 2021 15:10:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2AFD560E77 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 BF75483396; Mon, 30 Aug 2021 17:10:40 +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=1630336241; bh=BRvWR6bCd+93XTW5ktc9TtZdohKC5/7YLdq0+JMEvoM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=jsXCycNtvOB8BWWdyCKnyhM+5sZLytmAHhX+lD/fB+FkLPS3LD1mNCS0yfBY6R4DM oMu3UBuFvzV246+4CvYz/x2p5sJz7opMiVe9L1zJyhw+X01Vq8eugQV9LQiujsFndI oJDtAFO08/kOhTuz5Pl6/H3J71qauXnyMD3B8W9dVjGy1QUQWTQ2Yseadxd7eI5fbZ ECkwULWkr1fEU/EbqdbbguY55gbjggHztM7kBCaDHS4XgwcuzT+rAy3E/8l8zP8YGC FfW2PHWaHrUQPWWrw0mdo6ciECzchDnWQXcawxamYkC/O6UxZ7sjFdMRWhCUgXAOj9 yYefQh8yBlbHg== 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 2930A8338E; Mon, 30 Aug 2021 17:10:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1630336238; bh=BRvWR6bCd+93XTW5ktc9TtZdohKC5/7YLdq0+JMEvoM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=a1UOgp78Mcy6+u3eN2Oh6tLJFZoZBkhu87FfhEpoe5avAXdUuulRK5SCLJBkHQoFu xhL+NlOjkb+Z4HYLJ9xw3pPsrc0aIMtaGBBzfv6PQzPmuOTN91jojGJ7z1BiOR7CPK up2daOcyac/fbIMgHuOIkJa8JrRfDYRjzuBpbPkDUsnx5/UxfFOJs7stScr6Rfo4rf ryocK2a2jHkVu+776u4dhHvxRibGz9nFSNALG0Eg9yCZfZk1We3zXRFvbVePn48RWN cAWhrYuLLm7U3yTjbSurZygGsh3L59yL0gtaUaD3r0FnZHJL6eBpwd5TdMf+CWrNoU YXRuGcaZDsoKQ== 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 17:10:37 +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: <0e18e8abdeb4b231656acb21d7a2c8bb8b391101.camel@toradex.com> 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 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.