Skip to content

Imagebuilder dynamic addresses and sizes

Andrei Cherechesu (OSS) xen-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 0 repliesNew
  2. v33 patches 3 repliesSuperseded
  3. v24 patches 3 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1uboot-script-gen: Dynamically compute addr and size when loading binariesscripts/uboot-script-gen+80 -340 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [ImageBuilder][PATCH v4 0/1] Imagebuilder dynamic addresses and sizes

From: Andrei Cherechesu <[email protected]>

This sent patch adds support for dynamically computing the addresses and sizes for loaded binaries via the boot script generated by Imagebuilder.

Compared to the v3 version of the patch, this includes Stefano's suggestions of not adding as many "if" statements on the $dynamic_loading_opt parameter added by the patch, along with keeping compatibility with the FDTEDIT case.

The sent patch extends Stefano's suggestion, by also keeping the normal flow (without "-s" parameter) mostly unaltered: the addresses inside the generated script are literals, and the $memaddr variable is not re-computed after each binary loaded since it's unused. The only difference in the normal flow is that the binaries' sizes and addresses are stored after loading each binary. Also, removed the "0x" prefix of $memaddr set on the first line in the generated script.

These mentioned changes, compared to Stefano's suggestion, need an additional 2 "if" branches on $dynamic_loading_opt, which I find a worthy tradeoff for keeping the normal flow mostly unaltered. Otherwise, I'm also happy to go with Stefano's suggestion, but the script generated on the normal flow would contain many unnecessary steps.

Andrei Cherechesu (1):
uboot-script-gen: Dynamically compute addr and size when loading
binaries

 scripts/uboot-script-gen | 114 +++++++++++++++++++++++++++------------
 1 file changed, 80 insertions(+), 34 deletions(-)
Signature · 1 line
2.35.1