b7bcba8b65
This optionally enabled the MMU in the PBL or during early startup for the non PBL case. The regular MMU init code will pickup the already enabled MMU later. This might complicate debugging early code, so this has been made optional. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
653 lines
14 KiB
Text
653 lines
14 KiB
Text
config ARCH
|
|
string
|
|
option env="ARCH"
|
|
|
|
config KERNELVERSION
|
|
string
|
|
option env="KERNELVERSION"
|
|
|
|
config DEFCONFIG_LIST
|
|
string
|
|
option defconfig_list
|
|
default "$ARCH_DEFCONFIG"
|
|
default "arch/$ARCH/defconfig"
|
|
|
|
config GREGORIAN_CALENDER
|
|
bool
|
|
|
|
config HAS_KALLSYMS
|
|
bool
|
|
|
|
config HAS_MODULES
|
|
bool
|
|
|
|
config CMD_MEMORY
|
|
bool
|
|
|
|
config ENV_HANDLING
|
|
select CRC32
|
|
bool
|
|
|
|
config GENERIC_GPIO
|
|
bool
|
|
|
|
config BLOCK
|
|
bool
|
|
|
|
config BLOCK_WRITE
|
|
bool
|
|
|
|
config FILETYPE
|
|
bool
|
|
|
|
config BINFMT
|
|
bool
|
|
select FILETYPE
|
|
|
|
config UIMAGE
|
|
select UNCOMPRESS
|
|
select CRC32
|
|
bool
|
|
|
|
config GLOBALVAR
|
|
bool
|
|
|
|
config STDDEV
|
|
bool
|
|
|
|
config BAREBOX_UPDATE
|
|
bool
|
|
|
|
menu "General Settings"
|
|
|
|
config LOCALVERSION
|
|
string "Local version - append to the version string"
|
|
help
|
|
Append an extra string to the end of your version string.
|
|
The string you set here will be appended after the contents of
|
|
any files with a filename matching localversion* in your
|
|
object and source tree, in that order. Your total string can
|
|
be a maximum of 64 characters.
|
|
|
|
config LOCALVERSION_AUTO
|
|
bool "Automatically append version information to the version string"
|
|
default y
|
|
help
|
|
This will try to automatically determine if the current tree is a
|
|
release tree by looking for git tags that belong to the current
|
|
top of tree revision.
|
|
|
|
A string of the format -gxxxxxxxx will be added to the localversion
|
|
if a git-based tree is found. The string generated by this will be
|
|
appended after any matching localversion* files, and after the value
|
|
set in CONFIG_LOCALVERSION.
|
|
|
|
(The actual string used here is the first eight characters produced
|
|
by running the command:
|
|
|
|
$ git rev-parse --verify HEAD
|
|
|
|
which is done within the script "scripts/setlocalversion".)
|
|
|
|
config BOARDINFO
|
|
string
|
|
|
|
config BANNER
|
|
bool "display banner"
|
|
default y
|
|
|
|
config MEMINFO
|
|
bool "display memory info"
|
|
default y
|
|
|
|
config ENVIRONMENT_VARIABLES
|
|
bool "environment variables support"
|
|
|
|
menu "memory layout"
|
|
|
|
source "pbl/Kconfig"
|
|
|
|
config MMU
|
|
bool "Enable MMU"
|
|
help
|
|
Saying yes here enables the MMU. This is useful on some architectures
|
|
to enable the data cache which depends on the MMU. See Documentation/mmu.txt
|
|
for further information.
|
|
|
|
config MMU_EARLY
|
|
bool "Enable MMU early"
|
|
depends on ARM
|
|
depends on MMU
|
|
default y
|
|
help
|
|
This enables the MMU during early startup. This speeds up things during startup
|
|
of barebox, but may lead to harder to debug code. If unsure say yes here.
|
|
|
|
config HAVE_CONFIGURABLE_TEXT_BASE
|
|
bool
|
|
|
|
config TEXT_BASE
|
|
depends on HAVE_CONFIGURABLE_TEXT_BASE
|
|
prompt "TEXT_BASE"
|
|
hex
|
|
default ARCH_TEXT_BASE
|
|
help
|
|
The Address barebox gets linked at.
|
|
|
|
config BAREBOX_MAX_IMAGE_SIZE
|
|
prompt "Maximum size of barebox"
|
|
hex
|
|
default 0xffffffff
|
|
help
|
|
Define the maximum size of barebox
|
|
|
|
config BAREBOX_MAX_BARE_INIT_SIZE
|
|
prompt "Maximum bare_init size"
|
|
hex
|
|
default 0xffffffff
|
|
help
|
|
Define the maximum size of bare_init
|
|
this will allow your bare_init will fit in SRAM as example
|
|
ARCH can overwrite it via ARCH_BAREBOX_MAX_BARE_INIT_SIZE
|
|
|
|
config HAVE_CONFIGURABLE_MEMORY_LAYOUT
|
|
bool
|
|
|
|
choice
|
|
prompt "select memory layout"
|
|
depends on HAVE_CONFIGURABLE_MEMORY_LAYOUT
|
|
default MEMORY_LAYOUT_DEFAULT
|
|
|
|
config MEMORY_LAYOUT_DEFAULT
|
|
bool "use default memory layout"
|
|
help
|
|
select this option to use bareboxs standard memory layout:
|
|
|
|
stack
|
|
-----
|
|
malloc heap
|
|
-----
|
|
TEXT_BASE
|
|
|
|
config MEMORY_LAYOUT_FIXED
|
|
bool "manually assign a memory layout"
|
|
help
|
|
select this option to manually assign stack base and malloc
|
|
heap base
|
|
|
|
endchoice
|
|
|
|
config STACK_BASE
|
|
depends on MEMORY_LAYOUT_FIXED
|
|
hex
|
|
prompt "STACK_BASE"
|
|
|
|
config STACK_SIZE
|
|
hex
|
|
default 0x8000
|
|
prompt "Stack size"
|
|
|
|
config MALLOC_BASE
|
|
depends on MEMORY_LAYOUT_FIXED
|
|
hex
|
|
prompt "MALLOC_BASE"
|
|
|
|
config MALLOC_SIZE
|
|
hex
|
|
default 0x400000
|
|
prompt "malloc area size"
|
|
endmenu
|
|
|
|
config BROKEN
|
|
bool
|
|
prompt "Prompt for broken or incomplete code"
|
|
|
|
config EXPERIMENTAL
|
|
bool
|
|
prompt "Prompt for experimental code"
|
|
|
|
choice
|
|
prompt "malloc implementation"
|
|
|
|
config MALLOC_DLMALLOC
|
|
bool "dlmalloc"
|
|
|
|
config MALLOC_TLSF
|
|
bool "tlsf"
|
|
|
|
config MALLOC_DUMMY
|
|
bool "dummy malloc"
|
|
depends on SHELL_NONE
|
|
help
|
|
select this option to use a dummy malloc implementation. With this
|
|
memory is never freed. This is suitable for well tested noninteractive
|
|
environments only.
|
|
|
|
endchoice
|
|
|
|
config MODULES
|
|
depends on HAS_MODULES
|
|
depends on EXPERIMENTAL
|
|
bool "module support"
|
|
help
|
|
This option enables support for loadable modules via insmod. Module
|
|
support is quite experimental at the moment. There is no convenient
|
|
way to compile modules and the list of exported symbols to actually
|
|
make use of modules is short to nonexistent
|
|
|
|
config KALLSYMS
|
|
depends on HAS_KALLSYMS
|
|
bool "kallsyms"
|
|
help
|
|
With Kallsyms enabled all symbols are compiled into the barebox image.
|
|
This is useful to print a nice backtrace when an exception occurs.
|
|
|
|
config RELOCATABLE
|
|
depends on PPC
|
|
bool "generate relocatable barebox binary"
|
|
help
|
|
A non relocatable barebox binary will run at it's compiled in
|
|
link address in RAM. This leads to smaller image sizes but may
|
|
put barebox just in the middle of RAM. With this option enabled
|
|
instead barebox can determine this address at runtime and thus
|
|
allowing it to relocate to the end of the available RAM. This
|
|
way you have the whole memory in a single piece.
|
|
|
|
config PROMPT
|
|
string
|
|
prompt "barebox command prompt"
|
|
default "barebox:"
|
|
|
|
config BAUDRATE
|
|
int
|
|
prompt "Default baudrate"
|
|
default 115200
|
|
|
|
config SIMPLE_READLINE
|
|
bool
|
|
default y
|
|
depends on !CMDLINE_EDITING
|
|
|
|
config LONGHELP
|
|
bool
|
|
prompt "Enable long help texts"
|
|
|
|
config CBSIZE
|
|
int
|
|
prompt "Buffer size for input from the Console"
|
|
default 1024
|
|
|
|
config MAXARGS
|
|
int
|
|
prompt "max. Number of arguments accepted for monitor commands"
|
|
default 16
|
|
|
|
choice
|
|
prompt "Select your shell"
|
|
|
|
config SHELL_HUSH
|
|
bool "hush parser"
|
|
select ENVIRONMENT_VARIABLES
|
|
select COMMAND_SUPPORT
|
|
select PARAMETER
|
|
select BINFMT
|
|
select STDDEV
|
|
help
|
|
Enable hush support. This is the most advanced shell available
|
|
for barebox.
|
|
|
|
config SHELL_SIMPLE
|
|
bool "Simple parser"
|
|
select ENVIRONMENT_VARIABLES
|
|
select COMMAND_SUPPORT
|
|
select PARAMETER
|
|
select STDDEV
|
|
help
|
|
simple shell. No if/then, no return values from commands, no loops
|
|
|
|
config SHELL_NONE
|
|
bool "no shell (noninteractive build)"
|
|
help
|
|
No shell at all. This means no shell is started and your board has
|
|
to overwrite the barebox_main function pointer which is then called
|
|
at the end of the barebox startup process.
|
|
endchoice
|
|
|
|
config GLOB
|
|
bool
|
|
prompt "hush globbing support"
|
|
depends on SHELL_HUSH
|
|
help
|
|
If you want to use wildcards like * or ? say y here.
|
|
|
|
config GLOB_SORT
|
|
select QSORT
|
|
bool
|
|
prompt "glob sort support"
|
|
depends on GLOB
|
|
|
|
config PROMPT_HUSH_PS2
|
|
string
|
|
depends on SHELL_HUSH
|
|
prompt "hush PS2"
|
|
default "> "
|
|
|
|
config HUSH_FANCY_PROMPT
|
|
bool
|
|
depends on SHELL_HUSH
|
|
select PROCESS_ESCAPE_SEQUENCE
|
|
prompt "allow fancy hush prompts"
|
|
help
|
|
Allow to set PS1 from the command line. PS1 can have several escaped commands
|
|
like \h for CONFIG_BOARDINFO or \w for the current working directory.
|
|
|
|
config HUSH_GETOPT
|
|
bool
|
|
depends on SHELL_HUSH
|
|
prompt "enable builtin getopt"
|
|
help
|
|
This enables a getopt function builtin to hush.
|
|
|
|
config CMDLINE_EDITING
|
|
bool
|
|
prompt "Enable command line editing"
|
|
|
|
config AUTO_COMPLETE
|
|
bool
|
|
depends on CMDLINE_EDITING
|
|
prompt "Enable auto completion"
|
|
|
|
config MENU
|
|
bool
|
|
prompt "Menu Framework"
|
|
help
|
|
a menu framework that allow us to create list menu to simplify
|
|
barebox and make it more user-frendly
|
|
|
|
config PASSWORD
|
|
bool
|
|
prompt "Password Framework"
|
|
select DIGEST
|
|
help
|
|
allow you to have password protection framework
|
|
|
|
if PASSWORD
|
|
|
|
choice
|
|
prompt "passwd checksum"
|
|
|
|
config PASSWD_SUM_MD5
|
|
bool "MD5"
|
|
select MD5
|
|
|
|
config PASSWD_SUM_SHA1
|
|
bool "SHA1"
|
|
select SHA1
|
|
|
|
config PASSWD_SUM_SHA256
|
|
bool "SHA256"
|
|
select SHA256
|
|
|
|
endchoice
|
|
|
|
endif
|
|
|
|
config DYNAMIC_CRC_TABLE
|
|
bool
|
|
depends on CRC32
|
|
prompt "Generate the crc32 table dynamically"
|
|
default y
|
|
help
|
|
Saying yes to this option saves around 800 bytes of binary size.
|
|
If unsure say yes.
|
|
|
|
config ERRNO_MESSAGES
|
|
bool
|
|
prompt "print error values as text"
|
|
default y
|
|
|
|
config TIMESTAMP
|
|
bool
|
|
default y
|
|
select GREGORIAN_CALENDER
|
|
prompt "print timestamp information from images"
|
|
help
|
|
When CONFIG_TIMESTAMP is selected, the timestamp
|
|
(date and time) of an image is printed by image
|
|
commands like bootm or iminfo. This option is
|
|
automatically enabled when you select CFG_CMD_DATE .
|
|
|
|
choice
|
|
prompt "console support"
|
|
default CONSOLE_FULL
|
|
|
|
config CONSOLE_FULL
|
|
bool
|
|
prompt "full"
|
|
help
|
|
This option enables full console support capable of
|
|
handling multiple consoles. Also the full console support
|
|
is able to store the output which comes before a console
|
|
is registered in a circular buffer which will be printed
|
|
once the first console is registered. Recommended for most
|
|
usecases.
|
|
|
|
config CONSOLE_SIMPLE
|
|
bool
|
|
prompt "simple"
|
|
|
|
config CONSOLE_NONE
|
|
bool
|
|
prompt "none"
|
|
|
|
endchoice
|
|
|
|
choice
|
|
prompt "Console activation strategy"
|
|
depends on CONSOLE_FULL
|
|
default CONSOLE_ACTIVATE_FIRST
|
|
|
|
config CONSOLE_ACTIVATE_FIRST
|
|
bool
|
|
prompt "activate first console on startup"
|
|
help
|
|
Normally on startup all consoles are disabled, so you won't
|
|
see anything from barebox starting. Enabling this option
|
|
enables the first console.
|
|
|
|
config CONSOLE_ACTIVATE_ALL
|
|
bool
|
|
prompt "activate all consoles on startup"
|
|
help
|
|
Enabling this options activates all consoles on startup, so
|
|
you will get output and a prompt on all consoles simultaneously.
|
|
Only the first registered console will have the full startup
|
|
log though.
|
|
|
|
config CONSOLE_ACTIVATE_NONE
|
|
prompt "leave all consoles disabled"
|
|
bool
|
|
help
|
|
Leave all consoles disabled on startup. Board code or environment
|
|
is responsible for enabling a console. Otherwise you'll get a working
|
|
barebox, you just won't see anything.
|
|
|
|
endchoice
|
|
|
|
config PARTITION
|
|
bool
|
|
prompt "Enable Partitions"
|
|
|
|
config PARTITION_DISK
|
|
depends on PARTITION
|
|
bool "DISK partition support"
|
|
help
|
|
Add support for handling common partition tables on all kind of disk
|
|
like devices (harddisks, CF cards, SD cards and so on)
|
|
|
|
config PARTITION_DISK_DOS
|
|
depends on PARTITION_DISK
|
|
default y
|
|
bool "DOS partition support"
|
|
help
|
|
Add support to handle partitions in DOS style.
|
|
|
|
config DEFAULT_ENVIRONMENT
|
|
bool
|
|
default y
|
|
select CMD_LOADENV
|
|
prompt "Compile in default environment"
|
|
help
|
|
Enabling this option will give you a default environment when
|
|
the environment found in the environment sector is invalid
|
|
|
|
config DEFAULT_ENVIRONMENT_COMPRESSED
|
|
bool
|
|
depends on DEFAULT_ENVIRONMENT
|
|
depends on !IMAGE_COMPRESSION_LZO
|
|
depends on !IMAGE_COMPRESSION_GZIP
|
|
default y if ZLIB
|
|
default y if BZLIB
|
|
default y if LZO_DECOMPRESS
|
|
|
|
if DEFAULT_ENVIRONMENT_COMPRESSED
|
|
|
|
choice
|
|
prompt "compression"
|
|
|
|
config DEFAULT_ENVIRONMENT_COMPRESSED_GZIP
|
|
bool "gzip"
|
|
depends on ZLIB
|
|
|
|
config DEFAULT_ENVIRONMENT_COMPRESSED_BZIP2
|
|
bool "bzip2"
|
|
depends on BZLIB
|
|
|
|
config DEFAULT_ENVIRONMENT_COMPRESSED_LZO
|
|
bool "lzo"
|
|
depends on LZO_DECOMPRESS
|
|
|
|
endchoice
|
|
|
|
endif
|
|
|
|
config HAVE_DEFAULT_ENVIRONMENT_NEW
|
|
bool
|
|
|
|
config DEFAULT_ENVIRONMENT_GENERIC_NEW
|
|
bool
|
|
depends on DEFAULT_ENVIRONMENT
|
|
depends on SHELL_HUSH
|
|
select HUSH_GETOPT
|
|
select GLOB
|
|
select GLOB_SORT
|
|
select CMD_GLOBAL
|
|
select CMD_AUTOMOUNT
|
|
select CMD_BASENAME
|
|
select FLEXIBLE_BOOTARGS
|
|
prompt "Generic environment template"
|
|
|
|
config DEFAULT_ENVIRONMENT_GENERIC
|
|
bool
|
|
depends on !HAVE_DEFAULT_ENVIRONMENT_NEW
|
|
depends on DEFAULT_ENVIRONMENT
|
|
depends on SHELL_HUSH
|
|
select HUSH_GETOPT
|
|
select CMD_CRC
|
|
select CMD_CRC_CMP
|
|
select CMD_AUTOMOUNT if HAVE_DEFAULT_ENVIRONMENT_NEW
|
|
select CMD_GLOBAL
|
|
prompt "Default environment generic"
|
|
help
|
|
With this option barebox will use the generic default
|
|
environment found under defaultenv/ in the src tree.
|
|
The Directory given with DEFAULT_ENVIRONMENT_PATH
|
|
will be added to the default environment. This should
|
|
at least contain a /env/config file.
|
|
This will be able to overwrite the files from defaultenv.
|
|
|
|
config DEFAULT_ENVIRONMENT_PATH
|
|
string
|
|
depends on DEFAULT_ENVIRONMENT
|
|
prompt "Default environment path"
|
|
help
|
|
Space separated list of pathes the default environment will be taken from.
|
|
Relative pathes will be relative to the barebox Toplevel dir, but absolute
|
|
pathes are fine aswell.
|
|
|
|
config BAREBOXENV_TARGET
|
|
bool
|
|
prompt "build bareboxenv tool for target"
|
|
help
|
|
'bareboxenv' is a tool to access the barebox environment from a running Linux
|
|
system. Say yes here to build it for the target.
|
|
|
|
config POLLER
|
|
bool "generic polling infrastructure"
|
|
|
|
config RESET_SOURCE
|
|
bool "detect Reset cause"
|
|
depends on GLOBALVAR
|
|
help
|
|
Provide a global variable at runtine which reflects the possible cause
|
|
of the reset and why the bootloader is currently running. It can be
|
|
useful for any kind of system recovery or repair.
|
|
|
|
endmenu
|
|
|
|
menu "Debugging"
|
|
|
|
config COMPILE_LOGLEVEL
|
|
int "loglevel"
|
|
default 6
|
|
help
|
|
This defines the maximum loglevel compiled into the binary. Less important
|
|
messages will be compiled away resulting in a smaller binary.
|
|
|
|
0 system is unusable (emerg)
|
|
1 action must be taken immediately (alert)
|
|
2 critical conditions (crit)
|
|
3 error conditions (err)
|
|
4 warning conditions (warn)
|
|
5 normal but significant condition (notice)
|
|
6 informational (info)
|
|
7 debug-level messages (debug)
|
|
|
|
config DEBUG_INFO
|
|
bool
|
|
prompt "enable debug symbols"
|
|
help
|
|
Enable build of barebox with -g.
|
|
|
|
config ENABLE_FLASH_NOISE
|
|
bool
|
|
prompt "verbose flash handling"
|
|
help
|
|
Enable this to get noisy flash handling routines
|
|
|
|
config ENABLE_PARTITION_NOISE
|
|
bool
|
|
prompt "verbose partition handling"
|
|
help
|
|
Enable this to get noisy partition handling routines
|
|
|
|
config ENABLE_DEVICE_NOISE
|
|
bool
|
|
prompt "verbose device handling"
|
|
help
|
|
Enable this to get noisy device handling routines
|
|
|
|
config DEBUG_LL
|
|
bool
|
|
depends on HAS_DEBUG_LL
|
|
prompt "low level debug messages"
|
|
help
|
|
Enable this to get low level debug messages during barebox initialization.
|
|
This requires SoC specific support. Most SoCs require the debug UART to be
|
|
initialized by a debugger or first stage bootloader.
|
|
|
|
endmenu
|
|
|
|
config HAS_DEBUG_LL
|
|
bool
|