2011-09-18 22:09:42 +02:00
|
|
|
config BR2_TARGET_UBOOT
|
2010-06-12 12:42:49 +02:00
|
|
|
bool "U-Boot"
|
2008-03-11 19:26:07 +01:00
|
|
|
help
|
|
|
|
Build "Das U-Boot" Boot Monitor
|
|
|
|
|
2009-01-02 12:18:09 +01:00
|
|
|
if BR2_TARGET_UBOOT
|
2015-07-16 21:19:04 +02:00
|
|
|
choice
|
|
|
|
prompt "Build system"
|
|
|
|
default BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
|
|
|
bool "Legacy"
|
|
|
|
help
|
|
|
|
Select this option if you use an old U-Boot (older than 2015.04),
|
|
|
|
so that we use the old build system.
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
|
|
|
|
bool "Kconfig"
|
|
|
|
help
|
|
|
|
Select this option if you use a recent U-Boot version (2015.04 or
|
|
|
|
newer), so that we use the Kconfig build system.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
if BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
|
2009-01-03 01:02:07 +01:00
|
|
|
config BR2_TARGET_UBOOT_BOARDNAME
|
2010-06-12 12:42:49 +02:00
|
|
|
string "U-Boot board name"
|
2009-01-03 01:02:07 +01:00
|
|
|
help
|
|
|
|
One of U-Boot supported boards to be built.
|
|
|
|
This will be suffixed with _config to meet U-Boot standard naming.
|
2012-08-26 13:57:04 +02:00
|
|
|
See boards.cfg in U-Boot source code for the list of available
|
|
|
|
configurations.
|
2015-07-16 21:19:04 +02:00
|
|
|
endif
|
2009-01-03 01:02:07 +01:00
|
|
|
|
2009-01-02 12:18:09 +01:00
|
|
|
choice
|
|
|
|
prompt "U-Boot Version"
|
|
|
|
help
|
2009-01-08 15:58:51 +01:00
|
|
|
Select the specific U-Boot version you want to use
|
|
|
|
|
2013-05-06 23:07:46 +02:00
|
|
|
config BR2_TARGET_UBOOT_LATEST_VERSION
|
2015-10-24 10:49:21 +02:00
|
|
|
bool "2015.10"
|
2013-04-24 09:14:53 +02:00
|
|
|
|
2013-05-06 23:07:46 +02:00
|
|
|
config BR2_TARGET_UBOOT_CUSTOM_VERSION
|
2013-11-11 17:23:23 +01:00
|
|
|
bool "Custom version"
|
2013-05-06 23:07:46 +02:00
|
|
|
help
|
|
|
|
This option allows to use a specific official versions
|
2011-07-11 22:46:17 +02:00
|
|
|
|
2010-06-12 13:18:04 +02:00
|
|
|
config BR2_TARGET_UBOOT_CUSTOM_TARBALL
|
|
|
|
bool "Custom tarball"
|
|
|
|
|
2011-07-11 22:46:12 +02:00
|
|
|
config BR2_TARGET_UBOOT_CUSTOM_GIT
|
|
|
|
bool "Custom Git repository"
|
|
|
|
|
2013-09-02 22:07:55 +02:00
|
|
|
config BR2_TARGET_UBOOT_CUSTOM_HG
|
|
|
|
bool "Custom Mercurial repository"
|
|
|
|
|
2009-01-02 12:18:09 +01:00
|
|
|
endchoice
|
|
|
|
|
2013-05-06 23:07:46 +02:00
|
|
|
config BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE
|
|
|
|
string "U-Boot version"
|
|
|
|
depends on BR2_TARGET_UBOOT_CUSTOM_VERSION
|
|
|
|
|
2010-06-12 13:18:04 +02:00
|
|
|
config BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION
|
|
|
|
string "URL of custom U-Boot tarball"
|
2013-09-02 22:07:56 +02:00
|
|
|
depends on BR2_TARGET_UBOOT_CUSTOM_TARBALL
|
|
|
|
|
|
|
|
if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_CUSTOM_REPO_URL
|
|
|
|
string "URL of custom repository"
|
|
|
|
default BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL \
|
|
|
|
if BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL != "" # legacy
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION
|
|
|
|
string "Custom repository version"
|
|
|
|
default BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION \
|
|
|
|
if BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION != "" # legacy
|
|
|
|
help
|
|
|
|
Revision to use in the typical format used by Git/Mercurial
|
|
|
|
E.G. a sha id, a tag, branch, ..
|
2010-06-12 13:18:04 +02:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2010-06-12 13:24:49 +02:00
|
|
|
config BR2_TARGET_UBOOT_VERSION
|
2009-01-02 12:18:09 +01:00
|
|
|
string
|
2015-10-24 10:49:21 +02:00
|
|
|
default "2015.10" if BR2_TARGET_UBOOT_LATEST_VERSION
|
2013-09-02 22:07:55 +02:00
|
|
|
default BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE \
|
|
|
|
if BR2_TARGET_UBOOT_CUSTOM_VERSION
|
2010-06-12 13:18:04 +02:00
|
|
|
default "custom" if BR2_TARGET_UBOOT_CUSTOM_TARBALL
|
2013-09-02 22:07:55 +02:00
|
|
|
default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \
|
|
|
|
if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
|
2009-01-02 12:18:09 +01:00
|
|
|
|
2010-03-15 23:25:53 +01:00
|
|
|
config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR
|
|
|
|
string "custom patch dir"
|
2015-04-18 22:27:43 +02:00
|
|
|
depends on BR2_DEPRECATED_SINCE_2015_05
|
2008-03-11 19:26:07 +01:00
|
|
|
help
|
2010-03-15 23:25:53 +01:00
|
|
|
If your board requires custom patches, add the path to the
|
|
|
|
directory containing the patches here. The patches must be
|
2013-04-11 00:16:10 +02:00
|
|
|
named uboot-<something>.patch.
|
2010-03-15 23:25:53 +01:00
|
|
|
|
2008-03-11 19:26:07 +01:00
|
|
|
Most users may leave this empty
|
|
|
|
|
2015-04-18 22:27:43 +02:00
|
|
|
NOTE: Use BR2_TARGET_UBOOT_PATCH instead.
|
|
|
|
|
2015-04-18 22:27:42 +02:00
|
|
|
config BR2_TARGET_UBOOT_PATCH
|
|
|
|
string "Custom U-Boot patches"
|
|
|
|
help
|
|
|
|
A space-separated list of patches to apply to U-Boot.
|
|
|
|
Each patch can be described as an URL, a local file path,
|
|
|
|
or a directory. In the case of a directory, all files
|
|
|
|
matching *.patch in the directory will be applied.
|
|
|
|
|
|
|
|
Most users may leave this empty
|
|
|
|
|
2015-07-16 21:19:04 +02:00
|
|
|
if BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
|
|
|
|
choice
|
|
|
|
prompt "U-Boot configuration"
|
|
|
|
default BR2_TARGET_UBOOT_USE_DEFCONFIG
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_USE_DEFCONFIG
|
|
|
|
bool "Using an in-tree board defconfig file"
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
|
|
|
|
bool "Using a custom board (def)config file"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_BOARD_DEFCONFIG
|
|
|
|
string "Board defconfig"
|
|
|
|
depends on BR2_TARGET_UBOOT_USE_DEFCONFIG
|
|
|
|
help
|
|
|
|
Name of the board for which U-Boot should be built, without
|
|
|
|
the _defconfig suffix.
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE
|
|
|
|
string "Configuration file path"
|
|
|
|
depends on BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
|
|
|
|
help
|
|
|
|
Path to the U-Boot configuration file.
|
|
|
|
endif
|
|
|
|
|
2015-10-03 21:44:13 +02:00
|
|
|
config BR2_TARGET_UBOOT_NEEDS_DTC
|
|
|
|
bool "U-Boot needs dtc"
|
|
|
|
select BR2_PACKAGE_HOST_DTC
|
|
|
|
help
|
|
|
|
Select this option if your U-Boot board configuration
|
|
|
|
requires the Device Tree compiler to be available.
|
|
|
|
|
2010-07-26 16:14:41 +02:00
|
|
|
choice
|
|
|
|
prompt "U-Boot binary format"
|
2012-08-09 20:11:09 +02:00
|
|
|
default BR2_TARGET_UBOOT_FORMAT_BIN
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_FORMAT_AIS
|
|
|
|
bool "u-boot.ais"
|
|
|
|
help
|
|
|
|
AIS (Application Image Script) is a format defined by TI.
|
|
|
|
It is required to load code/data on OMAP-L1 processors.
|
|
|
|
u-boot.ais contains U-Boot with the SPL support.
|
2010-07-26 16:14:41 +02:00
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_FORMAT_BIN
|
|
|
|
bool "u-boot.bin"
|
|
|
|
|
2015-07-14 17:14:01 +02:00
|
|
|
config BR2_TARGET_UBOOT_FORMAT_DTB_IMG
|
|
|
|
bool "u-boot-dtb.img"
|
|
|
|
|
2012-03-18 23:04:51 +01:00
|
|
|
config BR2_TARGET_UBOOT_FORMAT_IMG
|
|
|
|
bool "u-boot.img"
|
|
|
|
|
2013-09-26 16:41:25 +02:00
|
|
|
config BR2_TARGET_UBOOT_FORMAT_IMX
|
|
|
|
bool "u-boot.imx"
|
|
|
|
|
2011-12-01 16:04:58 +01:00
|
|
|
config BR2_TARGET_UBOOT_FORMAT_NAND_BIN
|
|
|
|
bool "u-boot-nand.bin"
|
|
|
|
|
2010-07-26 16:14:41 +02:00
|
|
|
config BR2_TARGET_UBOOT_FORMAT_KWB
|
|
|
|
depends on BR2_arm
|
|
|
|
bool "u-boot.kwb (Marvell)"
|
|
|
|
|
2011-02-07 06:49:11 +01:00
|
|
|
config BR2_TARGET_UBOOT_FORMAT_LDR
|
|
|
|
depends on BR2_bfin
|
|
|
|
bool "u-boot.ldr"
|
|
|
|
|
2013-05-16 01:12:02 +02:00
|
|
|
config BR2_TARGET_UBOOT_FORMAT_ELF
|
|
|
|
bool "u-boot.elf"
|
|
|
|
|
2012-12-05 17:48:27 +01:00
|
|
|
config BR2_TARGET_UBOOT_FORMAT_SB
|
|
|
|
depends on BR2_arm
|
2015-07-11 14:10:56 +02:00
|
|
|
bool "u-boot.sb (Freescale i.MX28)"
|
2012-12-05 17:48:27 +01:00
|
|
|
|
2015-03-22 14:25:14 +01:00
|
|
|
config BR2_TARGET_UBOOT_FORMAT_SD
|
|
|
|
depends on BR2_arm
|
2015-07-11 14:10:56 +02:00
|
|
|
bool "u-boot.sd (Freescale i.MX28)"
|
2015-03-22 14:25:14 +01:00
|
|
|
help
|
|
|
|
This is Freescale i.MX28 SB format, with a header for booting
|
|
|
|
from an SD card.
|
|
|
|
|
|
|
|
U-boot includes an mxsboot tool to generate this format,
|
|
|
|
starting from 2011.12.
|
|
|
|
|
|
|
|
See doc/README.mxs (or doc/README.mx28_common before 2013.07)
|
|
|
|
|
2015-03-29 18:10:46 +02:00
|
|
|
config BR2_TARGET_UBOOT_FORMAT_NAND
|
|
|
|
depends on BR2_arm
|
2015-07-11 14:10:56 +02:00
|
|
|
bool "u-boot.nand (Freescale i.MX28)"
|
2015-03-29 18:10:46 +02:00
|
|
|
help
|
|
|
|
This is Freescale i.MX28 BootStream format (.sb), with a header
|
|
|
|
for booting from a NAND flash.
|
|
|
|
|
|
|
|
U-boot includes an mxsboot tool to generate this format,
|
|
|
|
starting from 2011.12.
|
|
|
|
|
|
|
|
There are two possibilities when preparing an image writable to
|
|
|
|
NAND flash:
|
|
|
|
1) The NAND was not written at all yet or the BCB (Boot Control
|
|
|
|
Blocks) is broken. In this case, the NAND image 'u-boot.nand'
|
|
|
|
needs to written.
|
|
|
|
2) The NAND flash was already written with a good BCB. This
|
|
|
|
applies after 'u-boot.nand' was correctly written. There is no
|
|
|
|
need to write the BCB again. In this case, the bootloader can be
|
|
|
|
upgraded by writing 'u-boot.sb'.
|
|
|
|
|
|
|
|
To satisfy both cases, the 'u-boot.nand' image obtained from
|
|
|
|
mxsboot as well as the U-Boot make target 'u-boot.sb' are copied
|
|
|
|
to the binaries directory.
|
|
|
|
|
|
|
|
See doc/README.mxs (or doc/README.mx28_common before 2013.07)
|
|
|
|
|
|
|
|
if BR2_TARGET_UBOOT_FORMAT_NAND
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_FORMAT_NAND_PAGE_SIZE
|
|
|
|
int "NAND page size"
|
|
|
|
default 2048
|
|
|
|
help
|
|
|
|
The NAND page size of the targets NAND flash in bytes as a
|
|
|
|
decimal integer value.
|
|
|
|
|
|
|
|
The value provided here is passed to the -w option of mxsboot.
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_FORMAT_NAND_OOB_SIZE
|
|
|
|
int "NAND OOB size"
|
|
|
|
default 64
|
|
|
|
help
|
|
|
|
The NAND OOB size of the targets NAND flash in bytes as a
|
|
|
|
decimal integer value.
|
|
|
|
|
|
|
|
The value provided here is passed to the -o option of mxsboot.
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_FORMAT_NAND_ERASE_SIZE
|
|
|
|
int "NAND erase size"
|
|
|
|
default 131072
|
|
|
|
help
|
|
|
|
The NAND eraseblock size of the targets NAND flash in bytes as
|
|
|
|
a decimal integer value.
|
|
|
|
|
|
|
|
The value provided here is passed to the -e option of mxsboot.
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2013-07-24 11:50:14 +02:00
|
|
|
config BR2_TARGET_UBOOT_FORMAT_CUSTOM
|
|
|
|
bool "Custom (specify below)"
|
|
|
|
help
|
|
|
|
On some platforms, the standard U-Boot binary is not called
|
|
|
|
u-boot.bin, but u-boot<something>.bin. If this is your case,
|
|
|
|
you should select this option and specify the correct name
|
|
|
|
in BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME.
|
|
|
|
|
2010-07-26 16:14:41 +02:00
|
|
|
endchoice
|
|
|
|
|
2013-07-24 11:50:14 +02:00
|
|
|
config BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
|
|
|
|
string "U-Boot binary format: custom name"
|
|
|
|
depends on BR2_TARGET_UBOOT_FORMAT_CUSTOM
|
|
|
|
help
|
|
|
|
Specify the correct name of the output binary created by
|
|
|
|
U-Boot, if it is not one of the default names. For example:
|
|
|
|
u-boot_magic.bin
|
|
|
|
|
2012-05-17 12:11:31 +02:00
|
|
|
config BR2_TARGET_UBOOT_OMAP_IFT
|
|
|
|
depends on BR2_TARGET_UBOOT_FORMAT_BIN
|
|
|
|
depends on BR2_arm || BR2_armeb
|
|
|
|
select BR2_PACKAGE_HOST_OMAP_U_BOOT_UTILS
|
|
|
|
bool "produce a .ift signed image (OMAP)"
|
|
|
|
help
|
|
|
|
Use gpsign to produce an image of u-boot.bin signed with
|
|
|
|
a Configuration Header for booting on OMAP processors.
|
|
|
|
This allows U-Boot to boot without the need for an
|
|
|
|
intermediate bootloader (e.g. x-loader) if it is written
|
|
|
|
on the first sector of the boot medium.
|
|
|
|
This only works for some media, such as NAND. Check your
|
|
|
|
chip documentation for details. You might also want to
|
|
|
|
read the documentation of gpsign, the tool that generates
|
|
|
|
the .ift image, at:
|
|
|
|
https://github.com/nmenon/omap-u-boot-utils/blob/master/README
|
|
|
|
|
|
|
|
if BR2_TARGET_UBOOT_OMAP_IFT
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_OMAP_IFT_CONFIG
|
|
|
|
string "gpsign Configuration Header config file"
|
|
|
|
help
|
|
|
|
The Configuration Header (CH) config file defines the
|
|
|
|
desired content of the CH for the signed image.
|
|
|
|
It usually contains external RAM settings and
|
|
|
|
possibly other external devices initialization.
|
|
|
|
The omap-u-boot-utils software contains example
|
|
|
|
configuration files for some boards:
|
|
|
|
https://github.com/nmenon/omap-u-boot-utils/tree/master/configs
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2012-03-18 23:04:50 +01:00
|
|
|
config BR2_TARGET_UBOOT_SPL
|
2014-12-13 00:16:05 +01:00
|
|
|
bool "Install U-Boot SPL binary image"
|
2012-03-18 23:04:50 +01:00
|
|
|
depends on !BR2_TARGET_XLOADER
|
|
|
|
help
|
2014-12-13 00:16:05 +01:00
|
|
|
Install the U-Boot SPL binary image to the images
|
|
|
|
directory.
|
|
|
|
SPL is a first stage bootloader loaded into internal
|
|
|
|
memory in charge of enabling and configuring the
|
|
|
|
external memory (DDR), and load the u-boot program
|
|
|
|
into DDR.
|
2012-03-18 23:04:50 +01:00
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_SPL_NAME
|
2014-12-13 00:16:06 +01:00
|
|
|
string "U-Boot SPL binary image name"
|
2014-05-29 23:13:02 +02:00
|
|
|
default "spl/u-boot-spl.bin"
|
2012-03-18 23:04:50 +01:00
|
|
|
depends on BR2_TARGET_UBOOT_SPL
|
|
|
|
help
|
|
|
|
This is the name of the SPL binary, generated during
|
2014-05-29 23:13:02 +02:00
|
|
|
u-boot build. For most platform it is spl/u-boot-spl.bin
|
2012-03-18 23:04:50 +01:00
|
|
|
but not always. It is MLO on OMAP for example.
|
|
|
|
|
2015-07-14 17:16:02 +02:00
|
|
|
config BR2_TARGET_UBOOT_ZYNQ_IMAGE
|
|
|
|
bool "Generate image for Xilinx Zynq"
|
|
|
|
depends on BR2_arm
|
|
|
|
depends on BR2_TARGET_UBOOT_SPL
|
|
|
|
depends on BR2_TARGET_UBOOT_FORMAT_DTB_IMG
|
|
|
|
help
|
|
|
|
Generate the BOOT.BIN file from U-Boot's SPL. The image
|
|
|
|
boots the Xilinx Zynq chip without any FPGA bitstream.
|
|
|
|
A bitstream can be loaded by the U-Boot. The SPL searchs
|
|
|
|
for u-boot-dtb.img file so this U-Boot format is required
|
|
|
|
to be set.
|
|
|
|
|
2012-12-20 03:47:18 +01:00
|
|
|
menuconfig BR2_TARGET_UBOOT_ENVIMAGE
|
|
|
|
bool "Environment image"
|
|
|
|
help
|
|
|
|
Generate a valid binary environment image from a text file
|
|
|
|
describing the key=value pairs of the environment.
|
|
|
|
|
|
|
|
The environment image will be called uboot-env.bin.
|
|
|
|
|
|
|
|
if BR2_TARGET_UBOOT_ENVIMAGE
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_ENVIMAGE_SOURCE
|
|
|
|
string "Source file for environment"
|
|
|
|
help
|
|
|
|
Text file describing the environment.
|
|
|
|
|
|
|
|
config BR2_TARGET_UBOOT_ENVIMAGE_SIZE
|
|
|
|
string "Size of environment"
|
|
|
|
help
|
|
|
|
Size of envronment, can be prefixed with 0x for hexadecimal
|
|
|
|
values.
|
|
|
|
|
2013-12-09 18:51:13 +01:00
|
|
|
config BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT
|
|
|
|
bool "Environment has two copies"
|
|
|
|
help
|
|
|
|
Some platforms define in their U-Boot configuration that the
|
|
|
|
U-Boot environment should be duplicated in two locations (for
|
|
|
|
extra safety). Check your U-Boot configuration for the
|
|
|
|
CONFIG_ENV_ADDR_REDUND and CONFIG_ENV_SIZE_REDUND settings to
|
|
|
|
see if this is the case for your platform.
|
|
|
|
|
|
|
|
If it is the case, then you should enable this option to
|
|
|
|
ensure that the U-Boot environment image generated by
|
|
|
|
Buildroot is compatible with the "redundant environment"
|
|
|
|
mechanism of U-Boot.
|
|
|
|
|
2012-12-20 03:47:18 +01:00
|
|
|
endif # BR2_TARGET_UBOOT_ENVIMAGE
|
|
|
|
|
2009-01-08 15:58:54 +01:00
|
|
|
endif # BR2_TARGET_UBOOT
|