summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish Pandey <manish.pandey2@arm.com>2018-09-13 13:37:38 +0100
committerArvind Chauhan <arvind.chauhan@arm.com>2018-09-13 15:14:35 +0100
commitd059b13670be0ba356fdd0172bd5f6d701fb6e43 (patch)
tree026b8c9041b5412ec96707c12a128d03db1e41fb
parentfa402ea937eef4cb6756e5df542b61ab95b76340 (diff)
Move initrd address below to 512KB.tinylinux_giot_demo
A5VE is memory constrained system and we do not want to waste memory by reserving it for kernel, as kernel is XIP and it does not require more than 512KB. Change-Id: I6c5ea935b923d5b255c73d4c5ddf1b379cfcec41 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 ed1221c..48193df 100644
--- a/model.lds.S
+++ b/model.lds.S
@@ -38,7 +38,7 @@ SECTIONS
#endif
kernel_end = .;
- . = PHYS_OFFSET + 0x02000000;
+ . = PHYS_OFFSET + 0x00080000;
fs_start = .;
#if defined(USE_INITRD) && !defined(SEMIHOSTING)
.filesystem : { ./filesystem.cpio.gz }
diff --git a/semi_loader.h b/semi_loader.h
index d58f0d3..6667870 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 0x2000000 /* qemu uses the same random offset */
+#define INITRD_OFFSET 0x80000 /* qemu uses the same random offset */
#define FDT_SIZE_MAX 0x10000 /* maximum size allowed for device tree blob */