mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Lior Weintraub <liorw@pliops.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>,
	Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: RE: Barebox PBL with uncompressed barebox proper
Date: Wed, 16 Aug 2023 11:23:26 +0000	[thread overview]
Message-ID: <PR3P195MB0555F57333C5D9E6A4951C00C315A@PR3P195MB0555.EURP195.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20230816104429.GG5650@pengutronix.de>

Thanks Sascha!

Before applying the recommended change the trace showed:
uncompress.c: memory at 0xc000000000, size 0x00300000
uncompress.c: uncompressing barebox binary at 0x000000c000002b60 (size 0x00030def) to 0xc000100000 (uncompressed size: 0x0005a9a0)
uncompress.c: jumping to uncompressed image at 0x000000c000100000

After applying this configuration, the .img file was increased (as expected) and the trace shows:
uncompress.c: memory at 0xc000000000, size 0x00300000
uncompress.c: uncompressing barebox binary at 0x000000c000002480 (size 0x0005a9a4) to 0xc000100000 (uncompressed size: 0x0005a9a0)
uncompress.c: jumping to uncompressed image at 0x000000c000100000

Indeed is seems link an uncompressed image because the sizes of the "compressed" match to the uncompress (well except 4 bytes which probably indicate the image size or the compression type (just a guess)).

I assume that the decompress function detects the header and know that it is an uncompressed image and then just copy it to another location (in my case 0xc000100000).

Can we avoid this step?
Since the image was loaded into SRAM we wish to run locally without the extra relocation (which also takes simulation time).

Cheers,
Lior.



> -----Original Message-----
> From: Sascha Hauer <s.hauer@pengutronix.de>
> Sent: Wednesday, August 16, 2023 1:44 PM
> To: Lior Weintraub <liorw@pliops.com>
> Cc: barebox@lists.infradead.org; Ahmad Fatoum
> <a.fatoum@pengutronix.de>
> Subject: Re: Barebox PBL with uncompressed barebox proper
> 
> CAUTION: External Sender
> 
> On Wed, Aug 16, 2023 at 10:36:16AM +0000, Lior Weintraub wrote:
> > Hi,
> >
> > Is there as option to build a barebox PBL with uncompressed barebox
> proper?
> > The incentive for that is to accelerate RTL simulations.
> 
> Yes, just enable CONFIG_IMAGE_COMPRESSION_NONE.
> 
> Sascha
> 
> --
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       | http://secure-
> web.cisco.com/1UnbNIgGun7ZeK6m1EHXDowsycba0F_lMTYur4_RVJsp4rB1
> ereLHOgvggoEbLoWjLGwrPExhSzzQ8_G3V0h3ExWVvBuKIKqI0Os4LQS49bsp
> VjE-
> CO4T3S2ZjTMOr6Zn4i26fhtU5aEQyC8IVbO5bS9GaPkn7N7HCoMkRdp9iJEN
> 1yyziAlcWL6E3-HooXhzCvJNDgJVGS6Cwtu0RJS7Q9HRM0wWC5maq1_-
> Th0JtrOdGEfrEhRM0eunMSxkkz28iCJx83LpDEt_uOnC9j--
> S7DjsTGkGApcwPIRy1Dml3Ebg1BkbYQ0UQZqxwJcIPKK/http%3A%2F%2Fww
> w.pengutronix.de%2F  |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




  reply	other threads:[~2023-08-16 11:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-16 10:36 Lior Weintraub
2023-08-16 10:44 ` Sascha Hauer
2023-08-16 11:23   ` Lior Weintraub [this message]
2023-08-16 14:28     ` Sascha Hauer
2023-08-16 16:48       ` Lior Weintraub
2023-08-16 19:18         ` Lior Weintraub
2023-08-17  5:34         ` 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=PR3P195MB0555F57333C5D9E6A4951C00C315A@PR3P195MB0555.EURP195.PROD.OUTLOOK.COM \
    --to=liorw@pliops.com \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.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