Commit 4943dc2f1977cf89297b87f93f96ad4d7f09d24d
Committed by
Tom Rini
1 parent
9b6ef528d0
Exists in
smarc_8mq_lf_v2020.04
and in
22 other branches
bootz/booti: relocate ramdisk if CONFIG_SYS_BOOT_RAMDISK_HIGH set
In commit c2e7e72, the ramdisk relocation code was moved from image_setup_linux to do_bootm, leaving the bootz and booti cases broken. This patch fixes both by adding the BOOTM_STATE_RAMDISK state in their call to do_bootm_states if CONFIG_SYS_BOOT_RAMDISK_HIGH is set. Signed-off-by: Cédric Schieli <cschieli@gmail.com> Reviewed-by: Rick Altherr <raltherr@google.com> Tested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Showing 2 changed files with 6 additions and 0 deletions Side-by-side Diff
cmd/booti.c
... | ... | @@ -132,6 +132,9 @@ |
132 | 132 | |
133 | 133 | images.os.os = IH_OS_LINUX; |
134 | 134 | ret = do_bootm_states(cmdtp, flag, argc, argv, |
135 | +#ifdef CONFIG_SYS_BOOT_RAMDISK_HIGH | |
136 | + BOOTM_STATE_RAMDISK | | |
137 | +#endif | |
135 | 138 | BOOTM_STATE_OS_PREP | BOOTM_STATE_OS_FAKE_GO | |
136 | 139 | BOOTM_STATE_OS_GO, |
137 | 140 | &images, 1); |
cmd/bootz.c