- Jun 25, 2014
-
-
Albert ARIBAUD authored
-
- Jun 24, 2014
-
-
git://git.denx.de/u-boot-x86Tom Rini authored
-
git://git.denx.de/u-boot-dmTom Rini authored
-
Albert ARIBAUD authored
-
- Jun 23, 2014
-
-
Masahiro Yamada authored
local_irq_save() should be a macro, not a function because local_irq_save() saves flag to the given argument. GCC is silent about this issue, but Clang warns: In file included from lib/asm-offsets.c:15: In file included from include/common.h:20: In file included from include/linux/bitops.h:110: arch/sandbox/include/asm/bitops.h:59:17: warning: variable 'flags' is uninitialized when used here [-Wuninitialized] local_irq_save(flags); ^~~~~ That change causes another warning: In file included from include/linux/bitops.h:110:0, from include/common.h:20, from lib/asm-offsets.c:15: arch/sandbox/include/asm/bitops.h: In function ‘test_and_set_bit’: arch/sandbox/include/asm/bitops.h:56:16: warning: unused variable ‘flags’ [-Wunused-variable] So, flags should be set to __always_unused. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Simon Glass <sjg@chromium.org> Cc: Jeroen Hofstee <jeroen@myspectrum.nl> Acked-by:
Simon Glass <sjg@chromium.org> Acked-by:
Jeroen Hofstee <jeroen@myspectrum.nl>
-
Stephen Warren authored
Each node in the linked-list that os_dirent_ls() returns has its next pointer set only when the next node is created. For the last node in the list, there is no next node, so this never happens, and the next pointer is never initialized. Explicitly initialize the next pointer so that it isn't dangling. Without this, "sb ls" might crash. Signed-off-by:
Stephen Warren <swarren@nvidia.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Stephen Warren authored
Commit 95fac6ab "sandbox: Use os functions to read host device tree" removed the ability for get_device_and_partition() to handle the "host" device type, and redirect accesses to it to the host filesystem. This broke some unit tests that use this feature. So, revert that change. The code added back by this patch is slightly different to pacify checkpatch. However, we're then left with "host" being both: - A pseudo device that accesses the hosts real filesystem. - An emulated block device, which accesses "sectors" inside a file stored on the host. In order to resolve this discrepancy, rename the pseudo device from host to hostfs, and adjust the unit-tests for this change. The "help sb" output is modified to reflect this rename, and state where the host and hostfs devices should be used. Signed-off-by:
Stephen Warren <swarren@nvidia.com> Tested-by:
Josh Wu <josh.wu@atmel.com> Acked-by:
Simon Glass <sjg@chromium.org> Tested-by:
Simon Glass <sjg@chromium.org>
-
Vasili Galka authored
Until now building the x86 arch boards required 32-bit toolchain. As many x86_64 toolchains come with 32-bit support (multilib) that's a good idea to enable build with such toolchains. The change required was to specify the usage of 32-bit explicitly to the compiler and the linker (-m32 and -m elf_i386 flags) and locate the right libgcc path. Signed-off-by:
Vasili Galka <vvv444@gmail.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Heiko Schocher authored
- add CONFIG_SYS_GENERIC_BOARD - remove CONFIG_OF_CONTROL to boot again Signed-off-by:
Heiko Schocher <hs@denx.de> Acked-by:
Kim Phillips <kim.phillips@freescale.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Heiko Schocher authored
move fdtdec_get_int() out of lib/fdtdec.c into lib/fdtdec_common.c as this function is also used, if CONFIG_OF_CONTROL is not used. Poped up on the ids8313 board using signed FIT images, and activating CONFIG_SYS_GENERIC_BOARD. Without this patch it shows on boot: No valid FDT found - please append one to U-Boot binary, use u-boot-dtb.bin or define CONFIG_OF_EMBED. For sandbox, use -d <file.dtb> With this patch, it boots again with CONFIG_SYS_GENERIC_BOARD enabled. Signed-off-by:
Heiko Schocher <hs@denx.de> Acked-by:
Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@ti.com>
-
- Jun 21, 2014
-
-
Simon Glass authored
Make both dm enumeration commands support showing whether a driver is active or not, and use a consistent indicator (an asterisk). Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Marek Vasut <marex@denx.de>
-
Jeroen Hofstee authored
cc: Simon Glass <sjg@chromium.org> Signed-off-by:
Jeroen Hofstee <jeroen@myspectrum.nl> Acked-by:
Simon Glass <sjg@chromium.org>
-
git://git.denx.de/u-boot-dmTom Rini authored
-
- Jun 20, 2014
-
-
Simon Glass authored
The lifecycle of a device is an important part of driver model. Add to the existing documentation and clarify it. Reported-by:
Jon Loeliger <jdl@jdl.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
There is a spelling mistake and two functions are missing comments altogether. Also the flags declaration is correct, but doesn't follow style. Finally, the uclass_get_device() function has some errors in its documentation. Fix these problems. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Marek Vasut <marex@denx.de>
-
Simon Glass authored
Enable driver model for Tegra boards. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Stephen Warren <swarren@nvidia.com>
-
Simon Glass authored
These files are taken from Linux 3.14. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Stephen Warren <swarren@nvidia.com>
-
Simon Glass authored
The values here are int, but the map_to_sysmem() call can return a long. Add a cast to deal with this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The GPIO tests require the sandbox GPIO driver, so cannot be run on other platforms. Similarly for the 'dm test' command. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
In a very few cases we need to adjust the driver model root device, such as when setting it up at initialisation. Add a macro to make this easier. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These files don't compile in some architectures. Fix it by adding the missing headers. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
We want 'N0' and 'n0' to mean the same thing, so ensure that case is not considered when naming GPIO banks. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a note to encourage people to convert drivers to use driver model. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
It is best to avoid having any occurence of 'struct device' in driver model, so rename to achieve this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Linux supports this, and if we are to have compatible device tree files, U-Boot should also. Avoid giving the device tree files access to U-Boot's include/ directory. Only include/dt-bindings is accessible. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Stephen Warren <swarren@nvidia.com> Reviewed-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-
Simon Glass authored
Support the iotrace feature for sandbox, and enable it, using some dummy I/O access methods. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Support the iotrace feature for ARM, when enabled. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
When debugging drivers it is useful to see what I/O accesses were done and in what order. Even if the individual accesses are of little interest it can be useful to verify that the access pattern is consistent each time an operation is performed. In this case a checksum can be used to characterise the operation of a driver. The checksum can be compared across different runs of the operation to verify that the driver is working properly. In particular, when performing major refactoring of the driver, where the access pattern should not change, the checksum provides assurance that the refactoring work has not broken the driver. Add an I/O tracing feature and associated commands to provide this facility. It works by sneaking into the io.h heder for an architecture and redirecting I/O accesses through its tracing mechanism. For now no commands are provided to examine the trace buffer. The format is fairly simple, so 'md' is a reasonable substitute. Note: The checksum feature is only useful for I/O regions where the contents do not change outside of software control. Where this is not suitable you can fall back to manually comparing the addresses. It might be useful to enhance tracing to only checksum the accesses and not the data read/written. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Masahiro Yamada authored
Import the following trivial commits from Linux v3.16-rc1: bb66fc6 kbuild: trivial - use tabs for code indent where possible 7eb6e34 kbuild: trivial - remove trailing empty lines 3fbb43d kbuild: trivial - fix comment block indent 38385f8 kbuild: trivial - remove trailing spaces Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-
- Jun 19, 2014
-
-
Jeroen Hofstee authored
Signed-off-by:
Jeroen Hofstee <jeroen@myspectrum.nl>
-
Jeroen Hofstee authored
commit ecd72950 "Add parameter to md5sum to save the md5 sum" adds support to build a string to be saved in the env and tries to zero end it with str_ptr = '\0'; This does actually set the pointer to the end of the buffer itself to zero. Since the string was already zero terminated by the sprintf before it, just remove the line, preventing a clang warning. cc: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by:
Jeroen Hofstee <jeroen@myspectrum.nl>
-
Vasili Galka authored
nios-32 arch was removed back in 2010 (1117cbf2). Code depending on its headers (nios.h, nios-io.h) can't possibly compile since then. As it wasn't fixed till now it is safe to remove. Signed-off-by:
Vasili Galka <vvv444@gmail.com>
-
Vasili Galka authored
This flag does not compile on m68k since 2003 (8bde7f77) when a required "cmd_bedbug.h" header was removed. Eleven years passed, lets clean up a little... Signed-off-by:
Vasili Galka <vvv444@gmail.com>
-
Jeroen Hofstee authored
The function tps65090_init checks the i2c bus of p->bus. However the pointer p is not intialiased at this point. Check the local variable bus instead. cc: Tom Wai-Hong Tam <waihong@chromium.org> Signed-off-by:
Jeroen Hofstee <jeroen@myspectrum.nl> Acked-by:
Simon Glass <sjg@chromium.org>
-
Hannes Petermaier authored
SPL stage does not support various networking things, and therefore CONFIG_NETCONSOLE cannot be built within SPL. Signed-off-by:
Hannes Petermaier <oe5hpm@oevsv.at>
-
Jeroen Hofstee authored
commit 18b06652 "tools: include u-boot version of sha256.h" unconditionally forced the sha256.h from u-boot to be used for tools instead of the host version. This is fragile though as it will also include the host version. Therefore move it to include/u-boot to join u-boot/md5.h etc which were renamed for the same reason. cc: Simon Glass <sjg@chromium.org> Signed-off-by:
Jeroen Hofstee <jeroen@myspectrum.nl>
-
Stephen Warren authored
vboot_test.sh uses Bashisms. Explicitly use #!/bin/bash so the script doesn't fail if /bin/sh isn't Bash. Signed-off-by:
Stephen Warren <swarren@nvidia.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
As an example of an end-to-end process for using verified boot in U-Boot, add a detailed description of the steps to be used for a Beaglebone Black. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present this tool only checks the configuration signing. Have it also look at each of the images in the configuration and confirm that they verify. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de> (v1)
-
Simon Glass authored
This makes it possible to decompress an image without it being a kernel and without intending to boot it (as it needed for host tools, for example). Signed-off-by:
Simon Glass <sjg@chromium.org>
-