aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-09-26 08:14:36 -0600
committerTom Rini <trini@konsulko.com>2023-09-26 11:25:25 -0400
commit0f2b1863b319dd0d90ddf49a4421ce5e381dbd51 (patch)
tree4172e6edd0582283d62ceff046ae4fd06f5da4ff
parentcb8565c9a956b6bdd6761824600abba6b8eb8a75 (diff)
downloadu-boot-0f2b1863b319dd0d90ddf49a4421ce5e381dbd51.zip
u-boot-0f2b1863b319dd0d90ddf49a4421ce5e381dbd51.tar.gz
u-boot-0f2b1863b319dd0d90ddf49a4421ce5e381dbd51.tar.bz2
spl: Move bloblist writing until the image is known
The bloblist should not be finalised until the image is fully set up. This allows any final handoff information to be included in the bloblist. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/spl/spl.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c
index f3cbd6c..f7608f1 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -728,18 +728,6 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
}
spl_perform_fixups(&spl_image);
- if (CONFIG_IS_ENABLED(HANDOFF)) {
- ret = write_spl_handoff();
- if (ret)
- printf(SPL_TPL_PROMPT
- "SPL hand-off write failed (err=%d)\n", ret);
- }
- if (CONFIG_IS_ENABLED(BLOBLIST)) {
- ret = bloblist_finish();
- if (ret)
- printf("Warning: Failed to finish bloblist (ret=%d)\n",
- ret);
- }
os = spl_image.os;
if (os == IH_OS_U_BOOT) {
@@ -786,6 +774,18 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
dev->name, rc);
}
}
+ if (CONFIG_IS_ENABLED(HANDOFF)) {
+ ret = write_spl_handoff();
+ if (ret)
+ printf(SPL_TPL_PROMPT
+ "SPL hand-off write failed (err=%d)\n", ret);
+ }
+ if (CONFIG_IS_ENABLED(BLOBLIST)) {
+ ret = bloblist_finish();
+ if (ret)
+ printf("Warning: Failed to finish bloblist (ret=%d)\n",
+ ret);
+ }
spl_board_prepare_for_boot();
jump_to_image_no_args(&spl_image);