public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Cc: "marex@denx.de" <marex@denx.de>,
	"oleksandr.suvorov@foundries.io" <oleksandr.suvorov@foundries.io>,
	"peng.fan@nxp.com" <peng.fan@nxp.com>,
	"u-boot@lists.denx.de" <u-boot@lists.denx.de>,
	"festevam@gmail.com" <festevam@gmail.com>,
	"oliver.graute@kococonnector.com"
	<oliver.graute@kococonnector.com>
Subject: Re: [PATCH 3/3] imx8qm_mek: Increase CONFIG_SYS_BOOTM_LEN to 64MB
Date: Mon, 30 Aug 2021 13:46:27 -0400	[thread overview]
Message-ID: <20210830174627.GF858@bill-the-cat> (raw)
In-Reply-To: <0e18e8abdeb4b231656acb21d7a2c8bb8b391101.camel@toradex.com>

[-- Attachment #1: Type: text/plain, Size: 1505 bytes --]

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 <marex@denx.de> 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

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?

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  parent reply	other threads:[~2021-08-30 17:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-29 19:39 [PATCH 1/3] imx8mm_evk: Increase CONFIG_SYS_BOOTM_LEN to 64MB Oleksandr Suvorov
2021-08-29 19:39 ` [PATCH 2/3] imx8mq_evk: " Oleksandr Suvorov
2021-08-29 19:39   ` [PATCH 3/3] imx8qm_mek: " Oleksandr Suvorov
2021-08-29 19:55     ` Marek Vasut
2021-08-29 20:53       ` Tom Rini
2021-08-30 11:11       ` Oleksandr Suvorov
2021-08-30 12:18         ` Marek Vasut
2021-08-30 15:05           ` Marcel Ziswiler
2021-08-30 15:10             ` Marek Vasut
2021-08-30 16:34               ` Marcel Ziswiler
2021-08-30 16:49                 ` Marek Vasut
2021-08-30 17:46             ` Tom Rini [this message]
2021-08-30 19:42               ` Marcel Ziswiler
2021-09-15  3:06         ` Peng Fan (OSS)
2021-10-07 14:13     ` sbabic
2021-10-07 14:13   ` [PATCH 2/3] imx8mq_evk: " sbabic
2021-10-07 14:13 ` [PATCH 1/3] imx8mm_evk: " sbabic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210830174627.GF858@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=festevam@gmail.com \
    --cc=marcel.ziswiler@toradex.com \
    --cc=marex@denx.de \
    --cc=oleksandr.suvorov@foundries.io \
    --cc=oliver.graute@kococonnector.com \
    --cc=peng.fan@nxp.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox