From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vs1-xe43.google.com ([2607:f8b0:4864:20::e43]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j6B69-0007tZ-G1 for barebox@lists.infradead.org; Mon, 24 Feb 2020 10:36:27 +0000 Received: by mail-vs1-xe43.google.com with SMTP id x123so5380353vsc.2 for ; Mon, 24 Feb 2020 02:36:24 -0800 (PST) MIME-Version: 1.0 References: <20200217143817.31360-1-yegorslists@googlemail.com> <20200219075241.i6lcrc5q4myhdbxz@pengutronix.de> In-Reply-To: From: Yegor Yefremov Date: Mon, 24 Feb 2020 11:35:50 +0100 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] arm: baltos: use compressed DTB images To: Ahmad Fatoum Cc: barebox On Wed, Feb 19, 2020 at 4:34 PM Ahmad Fatoum 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 > >> > >> This reduces the size of MLO enough to fit into SRAM. > >> > >> Signed-off-by: Yegor Yefremov > >> --- > >> 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