mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Yegor Yefremov <yegorslists@googlemail.com>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox <barebox@lists.infradead.org>
Subject: Re: [PATCH] arm: baltos: use compressed DTB images
Date: Mon, 24 Feb 2020 11:35:50 +0100	[thread overview]
Message-ID: <CAGm1_ktrXnZLtrZN7RKZMuywD_+GsLxBvX+GOmr+nPKV2_qZ_Q@mail.gmail.com> (raw)
In-Reply-To: <de1b6c7a-10ba-a206-4c10-263aef0d29ed@pengutronix.de>

On Wed, Feb 19, 2020 at 4:34 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>
> Hello Sascha,
>
> On 2/19/20 8:52 AM, Sascha Hauer wrote:
> > On Mon, Feb 17, 2020 at 03:38:17PM +0100, yegorslists@googlemail.com wrote:
> >> From: Yegor Yefremov <yegorslists@googlemail.com>
> >>
> >> This reduces the size of MLO enough to fit into SRAM.
> >>
> >> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> >> ---
> >>  arch/arm/boards/vscom-baltos/lowlevel.c | 6 +++---
> >>  1 file changed, 3 insertions(+), 3 deletions(-)
> >>
> >> diff --git a/arch/arm/boards/vscom-baltos/lowlevel.c b/arch/arm/boards/vscom-baltos/lowlevel.c
> >> index 98bbbaae1..0a220f262 100644
> >> --- a/arch/arm/boards/vscom-baltos/lowlevel.c
> >> +++ b/arch/arm/boards/vscom-baltos/lowlevel.c
> >> @@ -66,7 +66,7 @@ static const struct am33xx_emif_regs ddr3_regs_256mb = {
> >>
> >>  };
> >>
> >> -extern char __dtb_am335x_baltos_minimal_start[];
> >> +extern char __dtb_z_am335x_baltos_minimal_start[];
> >>
> >>  /**
> >>   * @brief The basic entry point for board initialization.
> >> @@ -82,7 +82,7 @@ static noinline void baltos_sram_init(void)
> >>      uint32_t sdram_size;
> >>      void *fdt;
> >>
> >> -    fdt = __dtb_am335x_baltos_minimal_start;
> >> +    fdt = __dtb_z_am335x_baltos_minimal_start;
> >>
> >>      /* WDT1 is already running when the bootloader gets control
> >>       * Disable it to avoid "random" resets
> >> @@ -132,7 +132,7 @@ ENTRY_FUNCTION(start_am33xx_baltos_sdram, r0, r1, r2)
> >>       */
> >>      __raw_writel(0x000010ff, AM33XX_PRM_RSTTIME);
> >>
> >> -    fdt = __dtb_am335x_baltos_minimal_start;
> >> +    fdt = __dtb_z_am335x_baltos_minimal_start;
> >
> > You have to select ARM_USE_COMPRESSED_DTB from the boards Kconfig entry
> > to make sure the uncompressing functions are available.
>
> ARM_USE_COMPRESSED_DTB is enabled transitively because ARCH_AM33XX
> selects it.

So, no changes required then?

Yegor

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2020-02-24 10:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-17 14:38 yegorslists
2020-02-19  7:52 ` Sascha Hauer
2020-02-19 15:34   ` Ahmad Fatoum
2020-02-24 10:35     ` Yegor Yefremov [this message]
2020-02-25  7:47       ` Sascha Hauer

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=CAGm1_ktrXnZLtrZN7RKZMuywD_+GsLxBvX+GOmr+nPKV2_qZ_Q@mail.gmail.com \
    --to=yegorslists@googlemail.com \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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