summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2013-12-26 00:46:49 +0100
committerMarek Vasut <marex@denx.de>2014-01-13 12:39:10 +0100
commit67decc71ed887d91fd17a1731533ff7a277e6fb5 (patch)
tree2cd6713594eb1d7f25fdada102c902dda01756d7 /board
parent7f673c99c2d8d1aa21996c5b914f06d784b080ca (diff)
downloadu-boot-imx-67decc71ed887d91fd17a1731533ff7a277e6fb5.zip
u-boot-imx-67decc71ed887d91fd17a1731533ff7a277e6fb5.tar.gz
u-boot-imx-67decc71ed887d91fd17a1731533ff7a277e6fb5.tar.bz2
ARM: pxa: Fix OneNAND SPL builds
The OneNAND SPL used on PXA is slightly obscure. Due to the OneNAND limitation, where we have only the first 1KiB of the OneNAND available upon power-up as a memory-mapped area, from which the CPU starts executing, we place only the most essential code into this first 1KiB . This code copies the rest of the SPL into SRAM and jumps to it. This code is stored in section .text.0 . The rest of the SPL is stored in section .text.1 . When running the OBJCOPY on the SPL, it will preserve only .text section, but the .text.0 and .text.1 are stripped away from the result, thus making the SPL binary empty. The patch adds additional -j parameters to the OBJCOPY for PXA during the SPL build, which will preserve the .text.0 and .text.1 sections. Moreover, this patch also adds missing functions into the .text.0 section, since otherwise the PXA270 with 1KiB-window OneNAND won't be able to boot. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Tom Rini <trini@ti.com>
Diffstat (limited to 'board')
-rw-r--r--board/vpac270/u-boot-spl.lds1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/vpac270/u-boot-spl.lds b/board/vpac270/u-boot-spl.lds
index 02d107c..b6fdde4 100644
--- a/board/vpac270/u-boot-spl.lds
+++ b/board/vpac270/u-boot-spl.lds
@@ -20,6 +20,7 @@ SECTIONS
.text.0 :
{
arch/arm/cpu/pxa/start.o (.text*)
+ arch/arm/lib/built-in.o (.text*)
board/vpac270/built-in.o (.text*)
drivers/mtd/onenand/built-in.o (.text*)
}