mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
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: Jeffy Chen <jeffy.chen@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
e70cc43831
commit
f7ee071a22
1 changed files with 11 additions and 1 deletions
|
@ -225,7 +225,17 @@ static void boot_prep_linux(bootm_headers_t *images)
|
|||
if (BOOTM_ENABLE_MEMORY_TAGS)
|
||||
setup_memory_tags(gd->bd);
|
||||
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,
|
||||
images->rd_end);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue