All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH] imx8mp_evk: Make SPL binary size smaller
Date: Thu, 7 May 2020 14:02:08 +0200	[thread overview]
Message-ID: <33fb5197-d51e-6a4a-ced0-c77ceb95031a@denx.de> (raw)
In-Reply-To: <20200507120029.3172-1-festevam@gmail.com>

On 5/7/20 2:00 PM, Fabio Estevam wrote:
> Commit f24dea4e1b52 ("ARM: imx8m: Fix reset in SPL on NXP iMX8MP EVK") caused
> the u-boot-spl.bin binary size to grow by around 2000 bytes, which makes the
> board to fail to boot.
> 
> Reduce the SPL size by the same amount so that it can boot again.
> 
> Further SPL reduction work is needed, such as removing driver model support
> in SPL.
> 
> Just to provide a comparison: NXP U-Boot tree has a SPL binary size of 64kB
> versus 96KB in U-Boot mainline.
> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
> Hi,
> 
> I plan to reduce SPL size even further by removing SPL_DM=y, but this
> needs more time to accomplish, so I prefer to give a small SPL reduction
> at this time, just to allow the board to boot again.
> 
> Also, will try to come up with a SPL size detection in build time, as it
> is hard to debug such issues in run-time.
> 
>  configs/imx8mp_evk_defconfig | 4 ----
>  1 file changed, 4 deletions(-)

So the obvious question is, if you call hang(), does the SPL still reset
or does it fail?

  reply	other threads:[~2020-05-07 12:02 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-07 12:00 [PATCH] imx8mp_evk: Make SPL binary size smaller Fabio Estevam
2020-05-07 12:02 ` Marek Vasut [this message]
2020-05-07 12:08 ` Harald Seiler
2020-05-07 12:37   ` Fabio Estevam
2020-05-08  1:07 ` Fabio Estevam
2020-05-08  1:40   ` Marek Vasut
2020-05-08  2:56     ` Fabio Estevam
2020-05-08  2:59       ` Marek Vasut
2020-05-08  3:34         ` Fabio Estevam
2020-05-08  4:53       ` Fabio Estevam
2020-05-08 11:49         ` Fabio Estevam
2020-05-08 11:57           ` Marek Vasut
2020-05-08 12:04             ` Fabio Estevam
2020-05-08 12:04               ` Marek Vasut
2020-05-08 15:54                 ` Fabio Estevam
2020-05-10 14:32   ` Peng Fan
2020-05-10 14:34     ` Marek Vasut

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=33fb5197-d51e-6a4a-ced0-c77ceb95031a@denx.de \
    --to=marex@denx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.