From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 12/13] binman: Add documentation for the symbol feature
Date: Tue, 14 Nov 2017 10:35:34 +0100 [thread overview]
Message-ID: <20171114103534.6f87d969@jawa> (raw)
In-Reply-To: <20171114015506.25673-13-sjg@chromium.org>
Hi Simon,
> Add this feature to the README.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> tools/binman/README | 32 +++++++++++++++++++++++++++++++-
> 1 file changed, 31 insertions(+), 1 deletion(-)
>
> diff --git a/tools/binman/README b/tools/binman/README
> index 4ef76c8f089..08c3e56bdef 100644
> --- a/tools/binman/README
> +++ b/tools/binman/README
> @@ -439,6 +439,8 @@ contents of an entry in some way. For example, it
> would be possible to create an entry containing a hash of the
> contents of some other entries. At this stage the position and size
> of entries should not be adjusted.
> +6. WriteEntryInfo()
> +
> 7. BuildImage() - builds the image and writes it to a file. This is
> the final step.
>
> @@ -471,6 +473,33 @@ the 'warning' line in scripts/Makefile.lib to
> see what it has found: # u_boot_dtsi_options_debug =
> $(u_boot_dtsi_options_raw)
>
> +Access to binman entry positions at run time
> +--------------------------------------------
> +
> +Binman assembles images and determines where each entry is placed in
> the image. +This information may be useful to U-Boot at run time. For
> example, in SPL it +is useful to be able to find the location of
> U-Boot so that it can be executed +when SPL is finished.
> +
> +Binman allows you to declare symbols in the SPL image which are
> filled in +with their correct values during the build. For example:
> +
> + binman_sym_declare(ulong, u_boot_any, pos);
> +
> +declares a ulong value which will be assigned to the position of any
> U-Boot +image (u-boot.bin, u-boot.img, u-boot-nodtb.bin) that is
> present in the image. +You can access this value with something like:
> +
> + ulong u_boot_pos = binman_sym(ulong, u_boot_any, pos);
> +
> +Thus u_boot_pos will be set to the position of U-Boot in memory,
> assuming that +the whole image has been loaded, or is available in
> flash. You can then jump to +that address to start U-Boot.
> +
> +At present this feature is only supported in SPL. In principle it is
> possible +to fill in such symbols in U-Boot proper, as well.
> +
> +
> Code coverage
> -------------
>
> @@ -543,7 +572,8 @@ To do
>
> Some ideas:
> - Fill out the device tree to include the final position and size of
> each
> - entry (since the input file may not always specify these)
> + entry (since the input file may not always specify these). See also
> + 'Access to binman entry positions at run time' above
> - Use of-platdata to make the information available to code that is
> unable to use device tree (such as a very small SPL image)
> - Write an image map to a text file
Great feature - thanks Simon.
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171114/8a1d5609/attachment.sig>
next prev parent reply other threads:[~2017-11-14 9:35 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-14 1:54 [U-Boot] [PATCH 00/13] binman: Support run-time access to binman image positions Simon Glass
2017-11-14 1:54 ` [U-Boot] [PATCH 01/13] binman: Add a function to read ELF symbols Simon Glass
2017-12-08 17:12 ` sjg at google.com
2017-11-14 1:54 ` [U-Boot] [PATCH 02/13] binman: Add support for including spl/u-boot-spl.dtb Simon Glass
2017-12-08 17:12 ` sjg at google.com
2017-11-14 1:54 ` [U-Boot] [PATCH 03/13] binman: Add support for including spl/u-boot-spl-nodtb.bin Simon Glass
2017-12-08 17:12 ` sjg at google.com
2017-11-14 1:54 ` [U-Boot] [PATCH 04/13] binman: Drop a stale comment about the 'board' feature Simon Glass
2017-12-08 17:12 ` sjg at google.com
2017-11-14 1:54 ` [U-Boot] [PATCH 05/13] binman: Add tests binaries with binman symbols Simon Glass
2017-12-08 17:12 ` sjg at google.com
2017-11-14 1:54 ` [U-Boot] [PATCH 06/13] binman: Adjust size of test SPL binary Simon Glass
2017-12-08 17:12 ` sjg at google.com
2017-11-14 1:55 ` [U-Boot] [PATCH 07/13] binman: Support enabling debug in tests Simon Glass
2017-12-08 17:12 ` sjg at google.com
2017-11-14 1:55 ` [U-Boot] [PATCH 08/13] binman: Support accessing binman tables at run time Simon Glass
2017-12-08 17:11 ` sjg at google.com
2017-11-14 1:55 ` [U-Boot] [PATCH 09/13] binman: arm: Include the binman symbol table Simon Glass
2017-12-08 17:11 ` sjg at google.com
2017-11-14 1:55 ` [U-Boot] [PATCH 10/13] binman: Add binman symbol support to SPL Simon Glass
2017-12-08 17:11 ` sjg at google.com
2017-11-14 1:55 ` [U-Boot] [PATCH 11/13] binman: Add binman support to spl_ram.c Simon Glass
2017-12-08 17:11 ` sjg at google.com
2017-11-14 1:55 ` [U-Boot] [PATCH 12/13] binman: Add documentation for the symbol feature Simon Glass
2017-11-14 9:35 ` Lukasz Majewski [this message]
2017-12-08 17:11 ` sjg at google.com
2017-11-14 1:55 ` [U-Boot] [PATCH 13/13] binman: tegra: Convert to use binman Simon Glass
2017-11-14 20:23 ` Stephen Warren
2017-11-29 13:08 ` Simon Glass
2017-12-08 17:11 ` sjg at google.com
2017-11-25 22:34 ` [U-Boot] [PATCH 00/13] binman: Support run-time access to binman image positions Simon Glass
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=20171114103534.6f87d969@jawa \
--to=lukma@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox