Imagebuilder dynamic addresses and sizes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest1 patch 0 repliesNew
- v33 patches 3 repliesSuperseded
- v24 patches 3 repliesSuperseded
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | uboot-script-gen: Dynamically compute addr and size when loading binariesscripts/ | +80 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
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