summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
authorDavid Vincent <freesilicon@gmail.com>2014-02-04 08:53:15 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-02-09 09:43:33 +0100
commit34ab8ddd04ae08e8bca6d277b4f692f4f303c20d (patch)
treec1fc055f0d106c049fd05a9ba4ebc25702d962ea /common/Kconfig
parent4f2f9150b748f278a02c7874e9fc3fd026082581 (diff)
downloadbarebox-34ab8ddd04ae08e8bca6d277b4f692f4f303c20d.tar.gz
barebox-34ab8ddd04ae08e8bca6d277b4f692f4f303c20d.tar.xz
Load PBL into SRAM
This allows to load all the lowlevel init code, including the uncompressor, inside SRAM and not just the bare init part. This is useful when pbl is used as a first-stage bootloader but is loaded by an external firmware. Signed-off-by: David Vincent <freesilicon@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig13
1 files changed, 12 insertions, 1 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 8af7ec1a8d..b65bdd8b27 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -145,13 +145,24 @@ config BAREBOX_MAX_IMAGE_SIZE
help
Define the maximum size of barebox
+config BAREBOX_MAX_PBL_SIZE
+ depends on PBL_IMAGE
+ prompt "Maximum pre-bootloader size"
+ hex
+ default 0xffffffff
+ help
+ On some hardware the ROM code can load the pbl into SRAM, but not
+ the whole image. This option specifies how big the pbl may get.
+
config BAREBOX_MAX_BARE_INIT_SIZE
prompt "Maximum bare_init size"
hex
+ range 0x0 BAREBOX_MAX_PBL_SIZE if LOAD_PBL_SRAM
+ default BAREBOX_MAX_PBL_SIZE if LOAD_PBL_SRAM
default 0xffffffff
help
Define the maximum size of bare_init
- this will allow your bare_init will fit in SRAM as example
+ this will allow your bare_init to fit in SRAM as example
ARCH can overwrite it via ARCH_BAREBOX_MAX_BARE_INIT_SIZE
config HAVE_CONFIGURABLE_MEMORY_LAYOUT