Skip to content
Snippets Groups Projects
Commit f7ee071a authored by Jeffy Chen's avatar Jeffy Chen Committed by Simon Glass
Browse files

ARM: bootm: Try to use relocated ramdisk


After boot_ramdisk_high(), ramdisk would be relocated to
initrd_start & initrd_end, so use them instead of rd_start & rd_end.

Signed-off-by: default avatarJeffy Chen <jeffy.chen@rock-chips.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent e70cc438
No related branches found
No related tags found
No related merge requests found
...@@ -225,7 +225,17 @@ static void boot_prep_linux(bootm_headers_t *images) ...@@ -225,7 +225,17 @@ static void boot_prep_linux(bootm_headers_t *images)
if (BOOTM_ENABLE_MEMORY_TAGS) if (BOOTM_ENABLE_MEMORY_TAGS)
setup_memory_tags(gd->bd); setup_memory_tags(gd->bd);
if (BOOTM_ENABLE_INITRD_TAG) { if (BOOTM_ENABLE_INITRD_TAG) {
if (images->rd_start && images->rd_end) { /*
* In boot_ramdisk_high(), it may relocate ramdisk to
* a specified location. And set images->initrd_start &
* images->initrd_end to relocated ramdisk's start/end
* addresses. So use them instead of images->rd_start &
* images->rd_end when possible.
*/
if (images->initrd_start && images->initrd_end) {
setup_initrd_tag(gd->bd, images->initrd_start,
images->initrd_end);
} else if (images->rd_start && images->rd_end) {
setup_initrd_tag(gd->bd, images->rd_start, setup_initrd_tag(gd->bd, images->rd_start,
images->rd_end); images->rd_end);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment