[U-Boot] [PATCH 2/5] Added extra documentation about how the relocation address to RAM is picked for ARM.
Christopher Harvey
charvey at matrox.com
Mon Jul 4 19:43:48 CEST 2011
Signed-off-by: Christopher Harvey <charvey at matrox.com>
---
doc/README.arm-relocation | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/doc/README.arm-relocation b/doc/README.arm-relocation
index 5a9a2fb..954627d 100644
--- a/doc/README.arm-relocation
+++ b/doc/README.arm-relocation
@@ -22,7 +22,7 @@ At cpu level: modify linker file and add a relocation and fixup loop
At board level:
dram_init(): bd pointer is now at this point not accessible, so only
- detect the real dramsize, and store it in gd->ram_size. Bst detected
+ detect the real dramsize, and store it in gd->ram_size. Best detected
with get_ram_size().
TODO: move also dram initialization there on boards where it is possible.
@@ -38,6 +38,13 @@ At lib level:
Boards which are not fixed to support relocation will be REMOVED!
+The code that picks the location in RAM for ARM can be found in the
+arch/arm/lib/board.c file under the board_init_f function.
+The postfix _f means executed from flash, and _r means from RAM.
+The new location is picked with respect to the highest RAM address, and the
+exact final value depends heavily on compile time options. The source is the
+best documentation here.
+
-----------------------------------------------------------------------------
For boards which boot from nand_spl, it is possible to save one copy
--
1.7.3.4
More information about the U-Boot
mailing list