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=-7.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 AA879C432BE for ; Mon, 30 Aug 2021 17:46:41 +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 9F35760698 for ; Mon, 30 Aug 2021 17:46:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9F35760698 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.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 D1101833B6; Mon, 30 Aug 2021 19:46:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="LinSbm1v"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 36B7F833BE; Mon, 30 Aug 2021 19:46:36 +0200 (CEST) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (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 6736D833B0 for ; Mon, 30 Aug 2021 19:46:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82c.google.com with SMTP id s32so12352845qtc.12 for ; Mon, 30 Aug 2021 10:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Jamj+zW11zSKe/FsAm/FwS8dtiYtDc+U+wEKttYgk7Y=; b=LinSbm1vaT7Cg0/jwjGmcZUtVAaSRFC3BSFBe72f1tJEMh6vlXhrar8qRrfge82WvD dRMPKRTXFNT5pHiHfN3/TExvvZEBi5uxYg8oBgHxjSjeHFeeIVCxiasc7bwLRQZG6jst ysQggixxTSwVUpBcCs3t39aOZGqCnaqP+FTr0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Jamj+zW11zSKe/FsAm/FwS8dtiYtDc+U+wEKttYgk7Y=; b=N8THksdn3nkEfdntyPYj2ZDnG0xiPC0dYO43a2K363vCOuDI8jKcsYzKArpWDuW4Lc 1VXVF8VsnKxRxChukQrP1YESa/FKPd5kxmyflWnudQWaAnxoXFKyCQcdXb8d8FOk9b3+ peeZ+T0oHRybtcyIbpek24qtOTYHbtmEDqOc0WTxZRLY9JSzMN6F6lBwWYrI7KWxkWmf L+P78Y7hCqaHYfhcKCklQcf15Uy02+npElk5xhoxpaLkmV1X1jUd0YD98V5z6IlyY/eS 3/xnmpxb51InlUy0Txw73kxueBO2PEzeij2G9t+ww26qMervtt0HKoO7lRaHewFwFVwr sqqw== X-Gm-Message-State: AOAM531lVOOrnIFfo4DyfweYrOK/8Gsp3QMI2EDm1nXuoQ2FjtfrqJpR beBoAzfgg/v7tGOuSs+xQY6FEw== X-Google-Smtp-Source: ABdhPJwuy4NuyuHjlgdrvQJRX7hsA5pxMd7j3l4bdALBtC3AteR7S2dluJZMudYsBKW4gkkchTLMpQ== X-Received: by 2002:ac8:6894:: with SMTP id m20mr22231684qtq.332.1630345590250; Mon, 30 Aug 2021 10:46:30 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-8d75-4e9a-efec-7167.res6.spectrum.com. [2603:6081:7b01:cbda:8d75:4e9a:efec:7167]) by smtp.gmail.com with ESMTPSA id q184sm11987533qkd.35.2021.08.30.10.46.28 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Aug 2021 10:46:29 -0700 (PDT) Date: Mon, 30 Aug 2021 13:46:27 -0400 From: Tom Rini To: Marcel Ziswiler Cc: "marex@denx.de" , "oleksandr.suvorov@foundries.io" , "peng.fan@nxp.com" , "u-boot@lists.denx.de" , "festevam@gmail.com" , "oliver.graute@kococonnector.com" Subject: Re: [PATCH 3/3] imx8qm_mek: Increase CONFIG_SYS_BOOTM_LEN to 64MB Message-ID: <20210830174627.GF858@bill-the-cat> 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="R6ExqvpPLbUle7BA" Content-Disposition: inline In-Reply-To: <0e18e8abdeb4b231656acb21d7a2c8bb8b391101.camel@toradex.com> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) 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 --R6ExqvpPLbUle7BA Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 30, 2021 at 03:05:32PM +0000, 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: > > > >=20 > > > > 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: > > > > > =A0=A0=A0=A0=A0 Uncompressing Kernel Image > > > > > =A0=A0=A0=A0=A0 Error: inflate() returned -5 > > > > > =A0=A0=A0=A0=A0 Image too large: increase CONFIG_SYS_BOOTM_LEN > > > > > =A0=A0=A0=A0=A0 Must RESET board to recover > > > > >=20 > > > >=20 > > > > Maybe we should increase the default for arm64 instead ? 8 MiB is t= oo small. > > >=20 > > > I completely agree if NXP doesn't have objections. > > > @Peng Fan Do you mind? > >=20 > > Increase it for all of arm64 , or all of U-Boot even. This has nothing= =20 > > to do with NXP. >=20 > In general, I agree. However, in practice this can have devastating effec= ts on stuff as discussed here: >=20 > https://marc.info/?l=3Du-boot&m=3D162999598824381 In that yes, if we allow for larger kernels to be loaded, we also need to ensure platforms use sane relocation values, it also needs to be considered. But even if we have CONFIG_SYS_BOOTM_LEN set large, unless we then also disable device tree / initrd relocation, we don't have a silent problem? --=20 Tom --R6ExqvpPLbUle7BA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmEtGXMACgkQFHw5/5Y0 tyzCDgwAlj/OmzAPpZD4ANGb729WvMLHZMpHKFJWfrcxsvvFWSR3EJGgVTER+rXu tfxhRC1pjQtWwGd4MC/X/Dk0dGXgx0mJsZLZulTjHAY4NsOyRU3mcIySUpGdk2BE R/29GU2FeWOtvTMyxthg5P52/GH9DH+M0EGdrWYX700FMEw39T36mH6oiG4fDHsx 1qpKw3JDqTHLCpiXSr56sldPuAdzCMBTkKNGxn6vLC/G05pc5U8wJP1bSKaZz1ii x2bitwm42Hjf4CLeqrk91875oEKVVAqZQPcYqtu/IiDASYuN0ijdo4u3+rQGUFec Y2RSyUF649z/XTqO9HiRQ+BHh61ypZuDMpuhuLPrC3LjtL/NIa3E99Uaar/txQ5E ImMxOlsu+h27QGa8lmxcEp+uVzu9s5j89nUf+25oqBVbgpFWlXDzXpd25JCNYQ+m f7dscm0bypdKUa3MLTyZBp7rDnbnWJI4IMEqPtI5sJxeIZLtFIQ+13BBoUkXv0WY dlnCy7Ah =zR2l -----END PGP SIGNATURE----- --R6ExqvpPLbUle7BA--