From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot,V2] spl: Weed out CONFIG_SYS_TEXT_BASE usage
Date: Wed, 26 Sep 2018 08:42:46 -0400 [thread overview]
Message-ID: <20180926124246.GE9877@bill-the-cat> (raw)
In-Reply-To: <20180814092702.3290-1-marex@denx.de>
On Tue, Aug 14, 2018 at 11:27:02AM +0200, Marek Vasut wrote:
> The SPL loaders assume that the CONFIG_SYS_TEXT_BASE memory location
> is available and can be corrupted by loading ie. uImage or fitImage
> headers there. Sometimes it could be beneficial to load the headers
> elsewhere, ie. if CONFIG_SYS_TEXT_BASE is not yet writable while we
> still want to parse the image headers in some local onchip memory to
> ie. extract firmware from that image.
>
> Add the possibility to override the location where the headers get
> loaded by introducing new function, spl_get_load_buffer() which takes
> two arguments -- offset from the CONFIG_SYS_TEXT_BASE and size of the
> data that are to be loaded there -- and returns a valid buffer address
> or hangs the system. The default behavior is the same as before, add
> the offset to CONFIG_SYS_TEXT_BASE and return that address. User can
> override the weak spl_get_load_buffer() function though.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Tom Rini <trini@konsulko.com>
> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180926/c60c4946/attachment.sig>
next prev parent reply other threads:[~2018-09-26 12:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-14 9:27 [U-Boot] [PATCH V2] spl: Weed out CONFIG_SYS_TEXT_BASE usage Marek Vasut
2018-08-14 9:51 ` Simon Goldschmidt
2018-08-14 10:01 ` Marek Vasut
2018-08-14 10:22 ` Simon Goldschmidt
2018-08-14 10:42 ` Marek Vasut
2018-08-14 12:56 ` Simon Goldschmidt
2018-08-14 18:12 ` Marek Vasut
2018-08-14 18:25 ` Simon Goldschmidt
2018-08-15 7:52 ` Marek Vasut
2018-08-15 9:04 ` Simon Goldschmidt
2018-09-26 12:42 ` Tom Rini [this message]
2018-10-03 13:39 ` Michal Simek
2018-10-03 19:41 ` Marek Vasut
2018-10-04 6:00 ` Michal Simek
2018-10-04 7:02 ` Marek Vasut
2018-10-04 7:41 ` Michal Simek
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=20180926124246.GE9877@bill-the-cat \
--to=trini@konsulko.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