- Nov 21, 2014
-
-
Simon Glass authored
When enabled, set up driver model for SPL. This allows SPL to use the same drivers as the main U-Boot. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Tom Rini <trini@ti.com>
-
Simon Glass authored
Set up the simple malloc() implementation when requested, in preference to the full malloc(). Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The simple malloc() implementation is used when memory is tight. It provides a simple buffer with an incrementing pointer. At present the implementation is inside dlmalloc. Move it into its own file so that it is easier to find. Rather than using relocation as a signal that the full malloc() is available, add a special GD_FLG_FULL_MALLOC_INIT flag. This signals that the simple malloc() should no longer be used. In some cases, such as SPL, even the code space used by the full malloc() is wasteful. Add a CONFIG_SYS_MALLOC_SIMPLE option to provide only the simple malloc. In this case the full malloc is not available at all. It saves about 1KB of code space and about 0.5KB of data on Thumb 2. Acked-by:
Tom Rini <trini@ti.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Nov 19, 2014
-
-
Dirk Eibach authored
Addressing was completely broken for cmd_fpgad. Signed-off-by:
Dirk Eibach <dirk.eibach@gdsys.cc> Signed-off-by:
Stefan Roese <sr@denx.de>
-
- Nov 17, 2014
-
-
Heiko Schocher authored
enable to boot only a raw u-boot.bin image from nand with the CONFIG_SPL_NAND_RAW_ONLY define. This option saves space on boards where spl space is low. Signed-off-by:
Heiko Schocher <hs@denx.de> Reviewed-by:
Andreas Bießmann <andreas.devel@googlemail.com> Reviewed-by:
Bo Shen <voice.shen@atmel.com> Signed-off-by:
Andreas Bießmann <andreas.devel@googlemail.com>
-
- Nov 12, 2014
-
-
Nikita Kiryanov authored
mcc200 and prs200 are old and have no maintainer. Remove the boards. This also removes the mcc200 specific 1bpp BMP support from common/lcd.c Cc: Wolfgang Denk <wd@denx.de> Cc: Anatolij Gustschin <agust@denx.de> Cc: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: York Sun <yorksun@freescale.com> Signed-off-by:
Nikita Kiryanov <nikita@compulab.co.il>
-
Thierry Reding authored
When DEBUG is set, output memory region used for malloc(). Signed-off-by:
Thierry Reding <treding@nvidia.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Nov 08, 2014
-
-
Soeren Moch authored
Skip enclosure service devices when probing for usb storage devices. This avoids long timeouts when probing for external usb harddisks which provide "Enclosure Services". Signed-off-by:
Soeren Moch <smoch@web.de> -- This is a new version of the patch "usb_storage: skip all unknown devices when probing" http://http://lists.denx.de/pipermail/u-boot/2014-November/194622.html Cc: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@ti.com>
-
- Nov 07, 2014
-
-
Wolfgang Denk authored
This file got corrupted by the automatic editin of commit 1a459660 "Add GPL-2.0+ SPDX-License-Identifier to source files"; restore the opiginal content and manually insert the SPDX ID. The bug was detected by running cppcheck, which reported: [common/cmd_fitupd.c:8]: (error) Invalid number of character ({) when these macros are defined: 'CONFIG_UPDATE_TFTP'. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Rabin Vincent authored
run_command() returns success even if the command had a syntax error; correct this behaviour. Signed-off-by:
Rabin Vincent <rabin@rab.in> Acked-by:
Simon Glass <sjg@chromium.org)>
-
Rabin Vincent authored
Hush segfaults if it sees a syntax error while attempting to parse a command: $ ./u-boot -c "'" ... syntax error Segmentation fault (core dumped) This is due to a NULL pointer dereference of in_str->p in static_peek(). The problem is that the exit condition for the loop in parse_stream_outer() checks for rcode not being -1, but rcode is only ever 0 or 1. Signed-off-by:
Rabin Vincent <rabin@rab.in> Acked-by:
Simon Glass <sjg@chromium.org)> Tested-by:
Simon Glass <sjg@chromium.org)>
-
Rabin Vincent authored
Attempting to run: - an empty string - a string with just spaces returns different error codes, 1 for the empty string and 0 for the string with just spaces. Make both of them return 0 for consistency. Signed-off-by:
Rabin Vincent <rabin@rab.in> Acked-by:
Simon Glass <sjg@chromium.org)>
-
Rabin Vincent authored
Attempting to run the sandbox leads to a segfault, because some dynamic libraries (outside of u-boot) attempt to use malloc() to allocate memory before u-boot's gd variable is initialized. Check for gd not being NULL in the SYS_MALLOC_F_LEN handling, so that malloc() doesn't crash when called at this point. $ gdb -q --args ./u-boot (gdb) r Program received signal SIGSEGV, Segmentation fault. 0x0000000000412b9b in malloc (bytes=bytes@entry=37) at common/dlmalloc.c:2184 2184 if (!(gd->flags & GD_FLG_RELOC)) { (gdb) p gd $1 = (gd_t *) 0x0 (gdb) bt #0 0x0000000000412b9b in malloc (bytes=bytes@entry=37) at common/dlmalloc.c:2184 #1 0x00007ffff75bf8e1 in set_binding_values (domainname=0x7ffff11f4f12 "libgpg-error", dirnamep=0x7fffffffe168, codesetp=0x0) at bindtextdom.c:228 #2 0x00007ffff75bfb4c in set_binding_values (codesetp=0x0, dirnamep=0x7fffffffe168, domainname=<optimized out>) at bindtextdom.c:350 #3 __bindtextdomain (domainname=<optimized out>, dirname=0x7ffff11f4f00 "/usr/share/locale") at bindtextdom.c:348 #4 0x00007ffff11eca17 in ?? () from /lib/x86_64-linux-gnu/libgpg-error.so.0 #5 0x00007ffff7dea9fa in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffe208, env=env@entry=0x7fffffffe218) at dl-init.c:78 #6 0x00007ffff7deaae3 in call_init (env=0x7fffffffe218, argv=0x7fffffffe208, argc=1, l=<optimized out>) at dl-init.c:36 #7 _dl_init (main_map=0x7ffff7ffe1a8, argc=1, argv=0x7fffffffe208, env=0x7fffffffe218) at dl-init.c:126 #8 0x00007ffff7ddd1ca in _dl_start_user () from /lib64/ld-linux-x86-64.so.2 Signed-off-by:
Rabin Vincent <rabin@rab.in> Acked-by:
Simon Glass <sjg@chromium.org>
-
Noam Camus authored
I believe that when no DTB is around we should return 1. This why I fixed such scenarious to not return zero anymore. Else kernel might get NULL pointer to DTB which doesn't exists. Signed-off-by:
Noam Camus <noamc@ezchip.com>
-
- Nov 04, 2014
-
-
Hans de Goede authored
Waiting an interrupt packet to complete in usb_kbd_poll_for_event, causes a 40 ms latency for each call to usb_kbd_testc, which is undesirable. Using control messages leads to lower (but still not 0) latency, but some devices do not work well with control messages (e.g. my kvm behaves funny with them). This commit adds support for using the int_queue mechanism which at least the ehci-hcd driver supports. This allows polling with 0 latency, while using interrupt packets. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
Instead of looking them up every time we need them. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
stdio_register makes a malloc-ed copy of struct stdio_dev through stdio_clone, free the malloc-ed memory on stdio_deregister. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
Free the keyboard hid-report buffer and private data on deregister. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
This is not used anywhere, so lets remove it. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
Do as the Linux kernel does and power on any ports which are not yet one, this is enough. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
If the device has a parent, it is instantiated from usb_hub_port_connect_change and the portnr is right there in dev->portnr, so there is no need for this whole dance to look it up. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
- Oct 29, 2014
-
-
Georges Savoundararadj authored
This commit introduces a Kconfig symbol for each ARM CPU: CPU_ARM720T, CPU_ARM920T, CPU_ARM926EJS, CPU_ARM946ES, CPU_ARM1136, CPU_ARM1176, CPU_V7, CPU_PXA, CPU_SA1100. Also, it adds the CPU feature Kconfig symbol HAS_VBAR which is selected for CPU_ARM1176 and CPU_V7. For each target, the corresponding CPU is selected and the definition of SYS_CPU in the corresponding Kconfig file is removed. Also, it removes redundant "string" type in some Kconfig files. Signed-off-by:
Georges Savoundararadj <savoundg@gmail.com> Acked-by:
Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
-
Simon Glass authored
This is a bit odd in that we are permitted to boot images for either, even though they are separate architectures. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Oct 27, 2014
-
-
Andreas Bießmann authored
Commit ae83d882 moved the fixed size mentioned in the comment but missed the comment. Signed-off-by:
Andreas Bießmann <andreas.devel@googlemail.com>
-
Ahmad Draidi authored
This patch makes the following changes: - Set kernel entry point correctly - Append bootargs from image to global bootargs instead of replacing them - Return end address instead of size from android_image_get_end() - Give correct parameter to genimg_get_format() in boot_get_ramdisk() - Move ramdisk message printing from android_image_get_kernel() to android_image_get_ramdisk() Signed-off-by:
Ahmad Draidi <ar2000jp@gmail.com> Cc: Tom Rini <trini@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Masahiro Yamada authored
Actually, unmap_sysmem() does nothing. Just in case. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Simon Glass <sjg@chromium.org> Acked-by:
Simon Glass <sjg@chromium.org>
-
Masahiro Yamada authored
- Do not insert a whitespace between a function name and an open paranthesis - Fix comment style - Do not split an error message into multiple lines even if it exceeds 80 columns - Do not split "for" statement where it fits in 80 columns - Do not use assignment in if condition Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Bin Meng authored
Signed-off-by:
Bin Meng <bmeng.cn@gmail.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Rob Herring authored
CHUNK_TYPE_DONT_CARE should skip over the specified number of blocks, but currently fails to increment the device block address. This results in filesystem images getting written incorrectly. Add the missing block address incrementing. Cc: Steve Rae <srae@broadcom.com> Signed-off-by:
Rob Herring <robh@kernel.org> Reviewed-by:
Steve Rae <srae@broadcom.com>
-
Guillaume GARDET authored
spl: do not hang in spl_register_fat_device but return error value. It allows to use both CONFIG_SPL_FAT_SUPPORT and CONFIG_SPL_EXT_SUPPORT. Do not hang in spl_register_fat_device but return an error value. It allows to use both CONFIG_SPL_FAT_SUPPORT and CONFIG_SPL_EXT_SUPPORT. If FAT load fails, then EXT load is tried. Signed-off-by:
Guillaume GARDET <guillaume.gardet@free.fr> Cc: Tom Rini <trini@ti.com>
-
Guillaume GARDET authored
Add EXT filesystem support to SPL. Signed-off-by:
Guillaume GARDET <guillaume.gardet@free.fr> [trini: Fix a warning and checkpatch problems] Signed-off-by:
Tom Rini <trini@ti.com>
-
Guillaume GARDET authored
Rename some defines containing FAT in their name to be filesystem generic: MMCSD_MODE_FAT => MMCSD_MODE_FS CONFIG_SPL_FAT_LOAD_ARGS_NAME => CONFIG_SPL_FS_LOAD_ARGS_NAME CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME => CONFIG_SPL_FS_LOAD_PAYLOAD_NAME CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION => CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION Signed-off-by:
Guillaume GARDET <guillaume.gardet@free.fr> Cc: Tom Rini <trini@ti.com>
-
Simon Glass authored
Use the inttypes header file to provide this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Use the inttypes header file to provide this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Valentin Longchamp authored
Since i2c_init_all always sets the bus back to CONFIG_SYS_SPD_BUS_NUM for compatibility reasons, it means that any eeprom not located on this CONFIG_SYS_SPD_BUS_NUM is not accessible with the eeprom commands, even if you change the bus number with an i2c dev command before. Furthermore i2c_init_all should disappear and is currently only called from the early board initialisation sequences, it is not suited for other usage. This reverts commit 01a0c647. Signed-off-by:
Valentin Longchamp <valentin.longchamp@keymile.com> Acked-by:
Matthias Fuchs <matthias.fuchs@esd.eu>
-
Simon Glass authored
The run command treats each argument an an environment variable. It gets the value of each variable and executes it as a command. If an environment variable contains a newline and the hush cli is used, it is supposed to execute each line one after the other. Normally a newline signals to hush to exit - this is used in normal command line entry - after a command is entered we want to return to allow the user to enter the next one. But environment variables obviously need to execute to completion. Add a special case for the execution of environment variables which continues when a newline is seen, and add a few tests to check this behaviour. Note: it's not impossible that this may cause regressions in other areas. I can't think of a case but with any change of behaviour with limited test coverage there is always a risk. From what I can tell this behaviour has been around since at least U-Boot 2011.03, although this pre-dates sandbox and I have not tested it on real hardware. Reported-by:
Wolfgang Denk <wd@denx.de> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Oct 25, 2014
-
-
Jeroen Hofstee authored
Signed-off-by:
Jeroen Hofstee <jeroen@myspectrum.nl>
-
Jeroen Hofstee authored
Signed-off-by:
Jeroen Hofstee <jeroen@myspectrum.nl> [trini: bootm.h must come after common.h] Signed-off-by:
Tom Rini <trini@ti.com>
-
Jeroen Hofstee authored
search_device is declared in iomux, but console only had the definition. This prevents a warning. Signed-off-by:
Jeroen Hofstee <jeroen@myspectrum.nl>
-
Tom Rini authored
Signed-off-by:
Tom Rini <trini@ti.com>
-