25 Nov, 2014
6 commits
-
Signed-off-by: Tom Rini
-
128059b92 ("hush: fix segfault on syntax error") attempted to fix a
segfault on syntax errors, but it broke Ctrl-C handling, and the
assumption that it made, that rcode could not be -1, is incorrect.
Revert this change.Reported-by: Stephen Warren
Reported-by: Przemyslaw Marczak
Signed-off-by: Rabin Vincent -
Conflicts:
drivers/serial/serial-uclass.cSigned-off-by: Tom Rini
-
Conflicts:
arch/x86/cpu/MakefileSigned-off-by: Tom Rini
24 Nov, 2014
12 commits
-
When an invalid USDHC port is passed we should return -EINVAL instead of 0.
Also, return the error immediately on fsl_esdhc_initialize() failure.
Cc: Eric Benard
Signed-off-by: Fabio Estevam -
When an invalid USDHC port is passed we should return -EINVAL instead of 0.
Also, return the error immediately on fsl_esdhc_initialize() failure.
Cc: Eric Nelson
Signed-off-by: Fabio Estevam -
When an invalid USDHC port is passed we should return -EINVAL instead of 0.
Also, return the error immediately on fsl_esdhc_initialize() failure.
Cc: Christian Gmeiner
Signed-off-by: Fabio Estevam -
Ideally, the Linux kernel should get the hardware in its most
untouched state. For the most part, U-Boot does not reset the various
subsystems it touches before boot, and usually Linux deals with it, but
on some boards (cm_fx6) the Linux kernel fails to detect the ssd
correctly if sata is used by U-Boot.Power off sata on OS boot so that Linux will have a clean state to work
with.Signed-off-by: Nikita Kiryanov
Cc: Stefano Babic -
Provide board specific implementation for sata stop command for
cm_fx6.Signed-off-by: Nikita Kiryanov
Cc: Stefano Babic -
Implement sata stop command.
This introduces the __sata_stop() weak function, which mirrors
the weak __sata_initialize() function, giving users the option of
undoing the custom steps performed in overrides of sata_initialize().Signed-off-by: Nikita Kiryanov
Cc: Marek Vasut
Cc: Tom Rini -
Add reset_sata() to the sata driver interface and implement it
for dwc_ahsata. This function cleans up after sata_init(), and
therefore accepts a device number like sata_init() does.
A dummy implementation is provided for the rest of the drivers.Signed-off-by: Nikita Kiryanov
Cc: Simon Glass
Cc: Stefano Babic -
Implement disable_sata_clock for mx6 SoCs.
Signed-off-by: Nikita Kiryanov
Cc: Stefano Babic -
gw_ventana can boot from SPI or NAND and both of these interfaces boot from
the same 0x400 offset.This means that we could simplify the code and replace the custom gw_ventana.cfg
with the generic spl_sd.cfg, as it provides the same boot offset of 0x400.Cc: Tim Harvey
Signed-off-by: Fabio Estevam -
Older Linux kernels will not properly boot in hyp mode, add support for a
bootm_boot_mode environment variable, which can be set to "sec" or "nonsec"
to force booting in secure or non-secure mode when build with non-sec support.The default behavior can be selected through CONFIG_ARMV7_BOOT_SEC_DEFAULT,
when this is set booting in secure mode is the default. The default setting
for this Kconfig option is N, preserving the current behavior of booting in
non-secure mode by default when non-secure mode is supported.Signed-off-by: Hans de Goede
Acked-by: Marc Zyngier
Acked-by: Siarhei Siamashka -
Add arch/arm/cpu/armv7/Kconfig with non-secure and virt options, this is a
preparation patch for adding an env variable to choose between secure /
non-secure boot on non-secure boot capable systems, specifically this
prepares for adding CONFIG_ARMV7_BOOT_SEC_DEFAULT as a proper Kconfig option.Signed-off-by: Hans de Goede
-
For similar reasons to why the Linux Kernel has an EXPERT option, we too
want an option to allow for tweaking of some options that while normally
should remain hidden, may need to be changed in some cases.Signed-off-by: Tom Rini
Acked-by: Masahiro Yamada
Acked-by: Hans de Goede
Signed-off-by: Hans de Goede
23 Nov, 2014
22 commits
-
Test size/read/write commands in a sandbox environment.
Signed-off-by: Suriyan Ramasami
Acked-by: Simon Glass
-
The sandbox/ext4/fat/generic fs commands do not gracefully deal with files
greater than 2GB. Negative values are returned in such cases.To handle this, the fs functions have been modified to take an additional
parameter of type "* loff_t" which is then populated. The return value
of the fs functions are used only for error conditions.Signed-off-by: Suriyan Ramasami
Acked-by: Simon Glass
[trini: Update board/gdsys/p1022/controlcenterd-id.c,
drivers/fpga/zynqpl.c for changes]
Signed-off-by: Tom Rini -
Change the internal sandbox functions to use loff_t for file offsets.
Signed-off-by: Suriyan Ramasami
Acked-by: Simon Glass
-
Change the internal EXT4 functions to use loff_t for offsets.
Signed-off-by: Suriyan Ramasami
Acked-by: Simon Glass
[trini: Update common/spl/spl_ext.c]
Signed-off-by: Tom Rini -
Change the internal FAT functions to use loff_t for offsets.
Signed-off-by: Suriyan Ramasami
Acked-by: Simon Glass
[trini: Fix fs/fat/fat.c for min3 updates]
Signed-off-by: Tom Rini -
A number of prototypes here are now found in . use.
Signed-off-by: Tom Rini
-
Enable md5sum to obtain the MD5 of the read and written files to check
their contents for validity.
Use map_sysmem() to map buffer in a sandbox environment.Signed-off-by: Suriyan Ramasami
Acked-by: Simon Glass
-
This fixes following warning when compiled with MIPS64
common/board_f.c: In function 'display_text_info':
common/board_f.c:150:2: warning: format '%X' expects argument i
of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=]
debug("U-Boot code: %08X -> %08lX BSS: -> %08lX\n",Signed-off-by: Daniel Schwierzeck
Acked-by: Simon Glass -
The MIPS specific setup of the initial stack frame was not
ported to generic board_f.Signed-off-by: Daniel Schwierzeck
-
SPL should not reference CONFIG_CMD_NAND to decide whether or not
it should build drivers/mtd/nand. CONFIG_CMD_NAND should be only
used to select the NAND utility command on the command parser.Signed-off-by: Masahiro Yamada
-
This commit adds some of command entries (CONFIG_CMD_*) to
cover include/config_cmd_default.h and a little extra.Because U-Boot supports lots of commands, they should be categorized
according to their usage.Signed-off-by: Masahiro Yamada
-
The README file states that the macros beginning with "CONFIG_SYS_"
depend on the hardware etc. and should not be meddled with if you do
not what you're doing.
We have already screwed up with this policy; we have given the prefix
"CONFIG_SYS_" to many user-selectable configurations.
Here, "CONFIG_SYS_HUSH_PARSER" is one of them. Users can enable it
if they want to use a more powerful command line parser, or disable it
if they only need a simple one.This commit attempts to rename CONFIG_SYS_HUSH_PARSER to
CONFIG_HUSH_PARSER and move it to Kconfig.Every board maintainer is expected to enable CONFIG_HUSH_PARSER
(= add "CONFIG_HUSH_PARSER=y" to his defconfig file) and remove
"#define CONFIG_SYS_HUSH_PARSER" from his header file.Signed-off-by: Masahiro Yamada
-
Signed-off-by: Masahiro Yamada
-
Since commit 0defddc851ed (config: Add a default CONFIG_SYS_PROMPT),
each board header does not need to define CONFIG_SYS_PROMPT
as long as it uses the default prompt "=> ".Signed-off-by: Masahiro Yamada
-
Some tegra makefiles only contain a dummy line to generate
a built-in.o. Let's do not descend into such directories.Signed-off-by: Masahiro Yamada
Cc: Tom Warren
Cc: Stephen Warren
Acked-by: Simon Glass -
Use "obj-$(CONFIG_FOO) += foo/" where it is possible.
Signed-off-by: Masahiro Yamada
-
The references of CONFIG_SYS_COREBOOT in arch/x86/cpu/coreboot/Makefile
are redundant because the build system descends into the directory
only when CONFIG_SYS_COREBOOT is defined.Signed-off-by: Masahiro Yamada
Cc: Simon Glass
Acked-by: Simon Glass -
Some CPUs of some architectures have SOC directories.
At present, the build system directly descends into SOC directories
from the top Makefile, but it should generally descend into each
directory from its parent directory.Signed-off-by: Masahiro Yamada
-
This macro can be overridden in source files (before including common.h)
and can be used to specify a prefix for debug and error messages. An
example of how to use this is shown below:#define pr_fmt(fmt) "foo: " fmt
#include
...
debug("bar");The resulting message will read:
foo: bar
Acked-by: Simon Glass
Signed-off-by: Thierry Reding
Signed-off-by: Simon Glass -
When enumerating devices, honour the pci_skip_dev() function. This can
be used by PCI controller drivers to restrict which devices will be
probed.This is required by the NVIDIA Tegra PCIe controller driver, which will
fail with a data abort exception if an access is attempted to a device
number larger than 0 outside of bus 0. pci_skip_dev() is therefore
implemented to prevent any such accesses.Signed-off-by: Thierry Reding
Signed-off-by: Simon Glass -
When listing the devices on a PCI bus, the current code will blindly try
to access all devices. Internally this causes pci_bus_to_hose() to be
repeatedly called and output an error message every time. Prevent this
by calling pci_bus_to_hose() once and abort early if no bus was found.Signed-off-by: Thierry Reding
Signed-off-by: Simon Glass -
Provide a new modifier to vsprintf() to print phys_addr_t variables to
avoid having to cast or #ifdef when printing them out. The %pa modifier
is used for this purpose, so phys_addr_t variables need to be passed by
reference, like so:phys_addr_t start = 0;
printf("start: %pa\n", &start);
Depending on the size of phys_addr_t this will print out the address
with 8 or 16 hexadecimal digits following a 0x prefix.Signed-off-by: Thierry Reding
Tested-by: Stephen Warren
Signed-off-by: Simon Glass