Added extra documentation about how the relocation address to RAM is picked for ARM.
PATCH 2/3 Added extra documentation about how the relocation address to RAM is picked for ARM.
--- doc/README.arm-relocation | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
doc/README.arm-relocation +8 -1
@@ -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
Signature · 10 lines
1.7.0.4 --------------090405040408060403080204 Content-Type: text/x-patch; name="0003-Removed-unused-define-CONFIG_ARMV7.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0003-Removed-unused-define-CONFIG_ARMV7.patch"