summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-03-30 10:24:31 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-03-30 10:24:31 -0600
commit57ace28851638b1da5e03da8b4941f4dc2547f8c (patch)
tree01736969739fbb7fa0a99d11190f7ba2917309bd
parentaf418b4d616f1b31e465913894a908bc0302c2da (diff)
downloadnuttx-57ace28851638b1da5e03da8b4941f4dc2547f8c.tar.gz
nuttx-57ace28851638b1da5e03da8b4941f4dc2547f8c.tar.bz2
nuttx-57ace28851638b1da5e03da8b4941f4dc2547f8c.zip
SAMA5 Boards: When running from SDRAM, a 32KB offset is needed by the bootloader
-rw-r--r--nuttx/configs/sama5d3-xplained/scripts/ddram.ld9
-rw-r--r--nuttx/configs/sama5d3x-ek/scripts/ddram.ld9
2 files changed, 10 insertions, 8 deletions
diff --git a/nuttx/configs/sama5d3-xplained/scripts/ddram.ld b/nuttx/configs/sama5d3-xplained/scripts/ddram.ld
index 84a52de51..edb3f63a4 100644
--- a/nuttx/configs/sama5d3-xplained/scripts/ddram.ld
+++ b/nuttx/configs/sama5d3-xplained/scripts/ddram.ld
@@ -33,9 +33,10 @@
*
****************************************************************************/
-/* The SAMA5D36 has 128 KB of ISRAM beginning at virtual address 0x0030:0000.
- * This memory configuration, however, loads into the 256 MB SDRAM on board
- * the SAMA5D3-Xplained which lies at 0x2000:0000
+/* The SAMA5D3 has 128 KB of ISRAM beginning at virtual address 0x0030:0000.
+ * This memory configuration, however, loads into the 256MB SDRAM on board
+ * the SAMA5D3 Xplained which lies at 0x2000:0000. An offset 0x00008000 is
+ * reserved by the bootloader.
*
* Vectors in low memory are assumed and 16KB of ISRAM is reserved at the
* high end of ISRAM for the page table.
@@ -44,7 +45,7 @@
MEMORY
{
isram (W!RX) : ORIGIN = 0x300000, LENGTH = 128K - 16K
- sdram (W!RX) : ORIGIN = 0x20000000, LENGTH = 256M
+ sdram (W!RX) : ORIGIN = 0x20008000, LENGTH = 256M - 32K
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
diff --git a/nuttx/configs/sama5d3x-ek/scripts/ddram.ld b/nuttx/configs/sama5d3x-ek/scripts/ddram.ld
index 61c61219a..8735df50a 100644
--- a/nuttx/configs/sama5d3x-ek/scripts/ddram.ld
+++ b/nuttx/configs/sama5d3x-ek/scripts/ddram.ld
@@ -1,7 +1,7 @@
/****************************************************************************
* configs/sama5d3x-ek/scripts/ddram.ld
*
- * Copyright (C) 2013 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2013-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -34,8 +34,9 @@
****************************************************************************/
/* The SAMA5D3 has 128 KB of ISRAM beginning at virtual address 0x0030:0000.
- * This memory configuration, however, loads into the 64 MB SDRAM on board
- * the SAMA5D3x-EK which lies at 0x2000:0000
+ * This memory configuration, however, loads into the 2Gb SDRAM on board
+ * the SAMA5D3x-EK which lies at 0x2000:0000. An offset 0x00008000 is
+ * reserved by the bootloader.
*
* Vectors in low memory are assumed and 16KB of ISRAM is reserved at the
* high end of ISRAM for the page table.
@@ -44,7 +45,7 @@
MEMORY
{
isram (W!RX) : ORIGIN = 0x300000, LENGTH = 128K - 16K
- sdram (W!RX) : ORIGIN = 0x20000000, LENGTH = 64M
+ sdram (W!RX) : ORIGIN = 0x20008000, LENGTH = 2G - 32K
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")