summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish Pandey <manish.pandey2@arm.com>2018-05-30 17:22:15 +0100
committerManish Pandey <manish.pandey2@arm.com>2018-05-30 17:32:38 +0100
commitb587a336ee01b162a8ceb4d292f828e27744eb74 (patch)
tree1f4d444ab108a7d0603dd800c510ab449a2c02ae
parent0af2cccada0156363102174dee6c09ce4b7c6eef (diff)
Move initrd address up to allow large kernels.
Move start address of the initrd up to kernel start + 0x02000000, so that we can handle latest kernels which has grown in size over the time. Change-Id: I16efa3c5cf0f6942beaaec721b54f686409e0834 Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
-rw-r--r--model.lds.S2
-rw-r--r--semi_loader.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/model.lds.S b/model.lds.S
index 07fae8c..ed1221c 100644
--- a/model.lds.S
+++ b/model.lds.S
@@ -38,7 +38,7 @@ SECTIONS
#endif
kernel_end = .;
- . = PHYS_OFFSET + 0x00d00000;
+ . = PHYS_OFFSET + 0x02000000;
fs_start = .;
#if defined(USE_INITRD) && !defined(SEMIHOSTING)
.filesystem : { ./filesystem.cpio.gz }
diff --git a/semi_loader.h b/semi_loader.h
index 6afba40..d58f0d3 100644
--- a/semi_loader.h
+++ b/semi_loader.h
@@ -58,7 +58,7 @@ static const char uboot_image_header_magic[] = {
#define PHYS_SIZE 0x80000000 /* can limit on kernel cmdline if necessary */
#define ATAGS_OFFSET 0x100
#define TEXT_OFFSET 0x8000
-#define INITRD_OFFSET 0xD00000 /* qemu uses the same random offset */
+#define INITRD_OFFSET 0x2000000 /* qemu uses the same random offset */
#define FDT_SIZE_MAX 0x10000 /* maximum size allowed for device tree blob */