diff options
author | Marcin <marcin.mielczarczyk@gmail.com> | 2010-11-19 22:24:34 +0100 |
---|---|---|
committer | Marcin Mielczarczyk <marcin.mielczarczyk@tieto.com> | 2011-02-17 07:08:16 +0100 |
commit | 254b41cd0cedba34ca5f86fe6f3b75bc8a14e958 (patch) | |
tree | 2b286e757f14ad0c8254978fb53af6aa765f34d2 | |
parent | 6ef4ec129bd4b294bc25186fc373428633f9625c (diff) |
sciphone_g2: Changed load address
Loading U-Boot code at low addresses (begining of RAM) can cause problem.
Function get_ram_size() detects size of RAM writing pattern
between 256MB and 0MB. It takes highest address and divides
it by 2 on every iteration. It's possible that this function will
destroy code which is executed at the moment (writing detection pattern).
U-Boot will probably not occupy more than 2MB, so it's safe to
load code between 4MB and 8MB (excluding 0x400000 and 0x800000).
Loading U-Boot at address 0x500000 eliminates problem with get_ram_size()
function.
Signed-off-by: Marcin <marcin.mielczarczyk@gmail.com>
-rw-r--r-- | board/mtk/sciphone_g2/config.mk | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/board/mtk/sciphone_g2/config.mk b/board/mtk/sciphone_g2/config.mk index 77d6c2de9..4f41ffa5a 100644 --- a/board/mtk/sciphone_g2/config.mk +++ b/board/mtk/sciphone_g2/config.mk @@ -1 +1,12 @@ -CONFIG_SYS_TEXT_BASE = 0x8000 +# +# Loading U-Boot code at low addreses (begining of RAM) can cause problem. +# Function get_ram_size() detects size of RAM writing pattern +# between 256MB and 0MB. It takes highest address and divides +# it by 2 on every iteration. It's possible that this function will +# destroy code which is executed at the moment (writing detection pattern). +# U-Boot will probably not occupy more than 2MB, so it's safe to +# load code between 4MB and 8MB (excluding 0x400000 and 0x800000). +# Loading U-Boot at address 0x500000 eliminates problem with get_ram_size() +# function. +# +CONFIG_SYS_TEXT_BASE = 0x500000 |