Commit 0938b6094ee0389e3231db667d0263cac8bff258
Committed by
York Sun
1 parent
18c0144542
Exists in
v2017.01-smarct4x
and in
40 other branches
powerpc/mpc85xx:Avoid fix address of bootpg section
It is not necessary for bootpg to be present at text + 512KB. With increase of u-boot size (768KB), bootpg section's address cannot be fixed. Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Showing 2 changed files with 12 additions and 2 deletions Side-by-side Diff
arch/powerpc/cpu/mpc85xx/u-boot-nand.lds
... | ... | @@ -4,6 +4,12 @@ |
4 | 4 | * SPDX-License-Identifier: GPL-2.0+ |
5 | 5 | */ |
6 | 6 | |
7 | +#include "config.h" /* CONFIG_BOARDDIR */ | |
8 | + | |
9 | +#ifndef CONFIG_SYS_MONITOR_LEN | |
10 | +#define CONFIG_SYS_MONITOR_LEN 0x80000 | |
11 | +#endif | |
12 | + | |
7 | 13 | OUTPUT_ARCH(powerpc) |
8 | 14 | /* Do we need any of these for elf? |
9 | 15 | __DYNAMIC = 0; */ |
... | ... | @@ -76,7 +82,7 @@ |
76 | 82 | KEEP(arch/powerpc/cpu/mpc85xx/start.o (.bootpg)) |
77 | 83 | } :text = 0xffff |
78 | 84 | |
79 | - . = ADDR(.text) + 0x80000; | |
85 | + . = ADDR(.text) + CONFIG_SYS_MONITOR_LEN; | |
80 | 86 | |
81 | 87 | __bss_start = .; |
82 | 88 | .bss (NOLOAD) : |
arch/powerpc/cpu/mpc85xx/u-boot.lds
... | ... | @@ -12,6 +12,10 @@ |
12 | 12 | #define RESET_VECTOR_ADDRESS 0xfffffffc |
13 | 13 | #endif |
14 | 14 | |
15 | +#ifndef CONFIG_SYS_MONITOR_LEN | |
16 | +#define CONFIG_SYS_MONITOR_LEN 0x80000 | |
17 | +#endif | |
18 | + | |
15 | 19 | OUTPUT_ARCH(powerpc) |
16 | 20 | ENTRY(_start_e500) |
17 | 21 | |
... | ... | @@ -85,7 +89,7 @@ |
85 | 89 | { |
86 | 90 | KEEP(arch/powerpc/cpu/mpc85xx/start.o (.bootpg)) |
87 | 91 | } :text = 0xffff |
88 | - . = ADDR(.text) + 0x80000; | |
92 | + . = ADDR(.text) + CONFIG_SYS_MONITOR_LEN; | |
89 | 93 | #else |
90 | 94 | .bootpg RESET_VECTOR_ADDRESS - 0xffc : |
91 | 95 | { |