05 Mar, 2018
2 commits
-
Thomas reported U-Boot failed to build host tools if libfdt-devel
package is installed because tools include libfdt headers from
/usr/include/ instead of using internal ones.This commit moves the header code:
include/libfdt.h -> include/linux/libfdt.h
include/libfdt_env.h -> include/linux/libfdt_env.hand replaces include directives:
#include -> #include
#include -> #includeReported-by: Thomas Petazzoni
Signed-off-by: Masahiro Yamada -
Rename CONFIG_SPL_USBETH_SUPPORT to CONFIG_SPL_USB_ETHER.
This enables users to block text using CONFIG_IS_ENABLED() instead
of resorting to #if ladders with SPL and non-SPL cases.Signed-off-by: Faiz Abbas
22 Feb, 2018
1 commit
-
Cosmetic change.
Signed-off-by: Andre Heider
Reviewed-by: Lukasz Majewski
Acked-by: Stefan Agner
15 Feb, 2018
1 commit
-
Migrate the option CONFIG_SPL_FRAMEWORK and make this gate most of the
current set of options we have in Kconfig. We will need to have some
options available for SPL and !SPL_FRAMEWORK so this is important. In a
few cases we re-order existing options so that we have less escapes from
the SPL_FRAMEWORK guard.Signed-off-by: Tom Rini
08 Feb, 2018
1 commit
-
The goal of this patch is to clean up the code related to choosing SPL
MMC boot mode.The spl_boot_mode() now is called only in spl_mmc_load_image() function,
which is only compiled in if CONFIG_SPL_MMC_SUPPORT is enabled.To achieve the goal, all per mach/arch implementations eligible for
unification has been replaced with one __weak implementation.Signed-off-by: Lukasz Majewski
Reviewed-by: Marek Vasut
Reviewed-by: Stefano Babic
Acked-by: Michal Simek (For ZynqMP)
Reviewed-by: Fabio Estevam
30 Jan, 2018
1 commit
-
Include the timezone in the SPL banner so the timestamp matches with
that from u-boot proper.Signed-off-by: Klaus Goger
Reviewed-by: Philipp Tomsich
29 Jan, 2018
4 commits
-
Selecting this option will reduce SPL boot time by approx. 6 ms
(e. g. with 70 bytes long banner string at 115200 baud).Signed-off-by: Anatolij Gustschin
Tested-by: Lukasz Majewski
Reviewed-by: Philipp Tomsich -
SPL and TPL may not always need spl_board_init() at the same time.
Signed-off-by: Kever Yang
Reviewed-by: Philipp Tomsich -
ATF use bl32_ep_info->pc to decide if thre is an available bl32,
let's mark it as NULL first.Signed-off-by: Kever Yang
Acked-by: Philipp Tomsich
Reviewed-by: Philipp Tomsich
12 Jan, 2018
1 commit
-
This allows using CONFIG_IS_ENABLED(MMC_WRITE) to compile out code
needed only if write support is required.
The option is added for u-boot and for SPLSigned-off-by: Jean-Jacques Hiblot
03 Jan, 2018
1 commit
-
While we expect to call a pointer to a valid FDT (or NULL) as the
platform parameter to an ATF, some ATF versions are not U-Boot aware
and have an insufficiently robust (or an overzealour) parameter
validation: either way, this may cause a hard-stop with uncooperative
ATF versions.This change adds the option to suppress passing a platform parameter
and will always pass NULL.Debug output from ATF w/ this option disabled (i.e. default):
INFO: plat_param_from_bl2: 0x291450
Debug output from ATF w/ this option enabled:
INFO: plat_param_from_bl2: 0Signed-off-by: Philipp Tomsich
Tested-by: Philipp Tomsich
Reviewed-by: Kever Yang
15 Dec, 2017
1 commit
13 Dec, 2017
3 commits
-
SPL supports reading U-Boot from a RAM location. At present this is
hard-coded to the U-Boot text base address. Use binman to allow this to
come from the image file, if binman is used.Signed-off-by: Simon Glass
-
Allow SPL to access binman symbols and use this to get the address of
U-Boot. This falls back to CONFIG_SYS_TEXT_BASE if the binman symbol
is not available.Signed-off-by: Simon Glass
-
For external data, FIT has a optional property "data-position" which
can set the external data to a fixed offset to FIT beginning.
Add the support for this property in SPL FIT.Signed-off-by: Ye Li
Signed-off-by: Peng Fan
Reviewed-by: Simon Glass
Reviewed-by: Tomas Melin
Cc: Pantelis Antoniou
Cc: "Andrew F. Davis"
Cc: Igor Grinberg
Cc: "tomas.melin@vaisala.com"
Cc: Kever Yang
Cc: Andre Przywara
Cc: York Sun
Cc: Lokesh Vutla
Cc: "Cooper Jr., Franklin"
Cc: George McCollister
Cc: Tuomas Tynkkynen
Cc: Jean-Jacques Hiblot
Cc: Rick Altherr
Cc: Tom Rini
Reviewed-by: Lokesh Vutla
Reviewed-by: York Sun
28 Nov, 2017
1 commit
-
This option prevents booting on am335x_evm at least along with most
likely other platforms.Fixes: 337bbb629777 ("spl: fit: add SPL_FIT_IMAGE_TINY config to reduce code-size")
Signed-off-by: Tom Rini
26 Nov, 2017
6 commits
-
A minor code-size increase from the changes for tracking the os-type
of FIT images and from infrastructure for recording the loadables into
the the loaded FDT, broke the builds for sun50i and some OMAP2+ devices.This change adds a new config option (enabled by default for
MACH_SUN50I, MACH_SUN50I_H5 and ARCH_OMAP2PLUS) that does skips these
processing steps (bringing code size down to below the limit
again). The os-type is not evaluated, but assumed to be IH_OS_UBOOT
(i.e. taking the code-paths intended for backward-compatibility).Note that enabling this config option precludes any useful downstream
processing, such as utilising a special calling convention for ATF or
OPTEE, based on the os-type of the loadables.Signed-off-by: Philipp Tomsich
-
The SPL_ATF_TEXT_BASE configuration item has become obsolete.
Remove it from Kconfig.Signed-off-by: Philipp Tomsich
Reviewed-by: Simon Glass -
Having CONFIG_SPL_ATF seems more natural.
Rename it, while it it is easy and there's few boards that use it
(only RK3399 and RK3368 boards).Signed-off-by: Philipp Tomsich
Reviewed-by: Simon Glass -
This adds a new interface spl_invoke_atf() that takes a spl_image_info
argument and then derives the necessary parameters for the ATF entry.
Based on the additional information recorded (into /fit-images) from
the FIT loadables, we can now easily locate the next boot stage.We now pass a pointer to a FDT as the platform-specific parameter
pointer to ATF (so we don't run into the future headache of every
board/platform defining their own proprietary tag-structure), as
FDT access is already available in ATF.With the necessary infrastructure in place, we can now update the
support for the ARM Trusted Firmware to dispatch into the
spl_invoke_atf function only if a IH_OS_ARM_TRUSTED_FIRMWARE image is
loaded.Signed-off-by: Philipp Tomsich
Reviewed-by: Simon Glass -
If a FDT was loaded (e.g. to append it to U-Boot image), we store it's
address and record information for all loadables into this FDT. This
allows us to easily keep track of images for multiple privilege levels
(e.g. with ATF) or of firmware images preloaded into temporary
locations (e.g. PMU firmware that may overlap the SPL stage).Signed-off-by: Philipp Tomsich
Reviewed-by: Simon Glass -
To better support bootin through an ATF or OPTEE, we need to
streamline some of the logic for when the FDT is appended to an image:
depending on the image type, we'd like to append the FDT not at all
(the case for the OS boot), to the 'firmware' image (if it is a
U-Boot) or to one of the loadables (if the 'firmware' is an ATF, an
OPTEE, or some other image-type and U-Boot is listed in the
loadabled).To achieve this goal, we drop the os_boot flag and track the type of
image loaded. If it is of type IH_OS_U_BOOT, we append the FDT.Signed-off-by: Philipp Tomsich
Acked-by: York Sun
Reviewed-by: Simon Glass
21 Nov, 2017
1 commit
-
The dra7xx series of SOCs contain a temperature sensor and an
associated analog-to-digital converter (ADC) which produces
an output which is proportional to the SOC temperature.
Add support for this temperature sensor.Signed-off-by: Faiz Abbas
Reviewed-by: Simon Glass
17 Nov, 2017
1 commit
-
The maximum length of the name of the image is
obviously not sizeof(), which is just the
length of a pointer, but IH_NMLEN.fixes: 62cf11c0921a90c6bd62344f4bc069668e6c698c
("SPL: Limit image name print length")Signed-off-by: André Draszik
Acked-by: Simon Glass
07 Nov, 2017
1 commit
-
Rockchip use a 'loader2' partition for U-Boot, so u-boot.bin or
u-boot.itb load by SPL need to locate at0x4000. Detail here:
http://opensource.rock-chips.com/wiki_Boot_optionSigned-off-by: Kever Yang
Acked-by: Philipp Tomsich
Reviewed-by: Philipp Tomsich
06 Nov, 2017
1 commit
-
Uniformize STMicroelectronics copyrights headers for STM32
related code.Signed-off-by: Patrice Chotard
13 Oct, 2017
1 commit
09 Oct, 2017
1 commit
-
Commit 15eb1d43bf47 ("spl: reorder the assignment of board info to
global data") intended to move assignment of board info earlier,
into board_init_r(). However, function preload_console_init() is
called either from spl_board_init() or from board_init_f(). For the
latter case, the board info assignment is much earlier than proposed
board_init_r(). Create a new function to fill gd->bd and call this
function when needed.Signed-off-by: York Sun
CC: Lokesh Vutla
CC: Ravi Babu
CC: Lukasz Majewski
CC: Tom Rini
Reviewed-by: Simon Glass
04 Oct, 2017
1 commit
-
U-Boot widely uses error() as a bit noisier variant of printf().
This macro causes name conflict with the following line in
include/linux/compiler-gcc.h:# define __compiletime_error(message) __attribute__((error(message)))
This prevents us from using __compiletime_error(), and makes it
difficult to fully sync BUILD_BUG macros with Linux. (Notice
Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)Let's convert error() into now treewide-available pr_err().
Done with the help of Coccinelle, excluing tools/ directory.
The semantic patch I used is as follows:
//
@@@@
-error
+pr_err
(...)
//Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
[trini: Re-run Coccinelle]
Signed-off-by: Tom Rini
30 Sep, 2017
1 commit
-
On ARCH_OMAP2PLUS platforms we know what the DDR layout is going to be,
and that it is safe to use SPL_STACK_R and provide a default value for
it. select this and re-sync the defconfigs.Signed-off-by: Tom Rini
29 Sep, 2017
1 commit
-
If there are no CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION,
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR and CONFIG_SPL_OS_BOOT,
there is unused-function build warning. Add __maybe_unused macro
to remove the warning.Signed-off-by: Seung-Woo Kim
22 Sep, 2017
2 commits
-
common/spl/spl_fit.c:201:12: warning: passing argument 4 of ‘gunzip’
from incompatible pointer type [-Wincompatible-pointer-types]
src, &length))Signed-off-by: York Sun
Reported-by: Heinrich Schuchardt
CC: Jean-Jacques Hiblot -
Since we may jump to next stage like ATF/OP-TEE instead of U-Boot,
we need to stash the bootstage info before it.Signed-off-by: Kever Yang
Reviewed-by: Simon Glass
13 Sep, 2017
1 commit
-
With debug enabled, SPL output following these debug prints is on the
same line and it is hard to read. Fix it.Signed-off-by: Anatolij Gustschin
Reviewed-by: Bin Meng
11 Sep, 2017
3 commits
-
If CONFIG_SPL_OS_BOOT is enabled, boot OS if kernel image is found
in FIT structure.Signed-off-by: York Sun
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass -
SPL supports U-Boot image in FIT format which has data outside of
FIT structure. This adds support for embedded data for normal FIT
images.Signed-off-by: York Sun
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass -
Add Kconfig option SPL_GZIP and SPL_ZLIB to enable gunzip support for
SPL boot, eg. falcon boot compressed kernel image.Signed-off-by: York Sun
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass
07 Sep, 2017
1 commit
-
Delete one redundant 'which' for SPL_ATF_SUPPORT description.
Signed-off-by: Kever Yang
29 Aug, 2017
1 commit
-
The GPT timer was already initialised in board_init_f() as
it is needed in dram init. Do not repeat timer init in
board_init_r().Signed-off-by: Anatolij Gustschin
Acked-by: Stefano Babic