- Mar 06, 2012
-
-
Stephen Warren authored
boot_get_fdt() expects a uImage-wrapped FDT to be loaded to a staging location, and then memmove()s it to the load address specified in the header. This change enhances boot_get_fdt() to detect when the image has already been loaded to the correct address, and skip this memmove(). The detection algorithm was written to match the equivalent for the kernel; see bootm_load_os()'s IH_COMP_NONE case. v2: New patch Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
Stefan Kristiansson authored
flush_dcache()/flush_icache() aren't defined in common.h, flush_dcache_all()/invalidate_icache_all() however are. Let the icache and dcache commands use those instead. Signed-off-by:
Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Simon Glass authored
Change all files in common/ to use CMD_RET_USAGE instead of calling cmd_usage() directly. I'm not completely sure about this patch since the code since impact is small (100 byte or so on ARM) and it might need splitting into smaller patches. But for now here it is. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
We currently have the same code in hush.c and main.c. This brings the code into one place. As an added feature, if the command function returns CMD_RET_USAGE then cmd_process() will print a usage message for the command before returning the standard failure code of 1. ARM code size increases about 32 bytes with this clean-up. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
There is a nasty interleave of #ifdefs in hush.c where the two code paths have different indents. Remove this ickiness. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
We should aim for a single point of entry to the commands, whichever parser is used. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This saves about 1KB of code space on ARM with CONFIG_SYS_HUSH_PARSER defined. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Boards can select either the 'built-in' parser or the hush parser. We should not call builtin_run_command() if we are using the hush parser. We use run_command() instead, since it knows how to call the correct parser. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Simon Glass authored
This is a more sensible name, so rename it. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Simon Glass authored
The current run_command() is only one of the parsing options - the other is hush. We should not call run_command() when the hush parser is being used. So we rename this function to better explain its purpose. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Simon Glass authored
It really isn't clear why this is here and there is no comment, so drop it. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
- Mar 03, 2012
-
-
Wolfgang Grandegger authored
Following the corresponding Linux code, this patch relaxes reset timings waiting at least 100ms after power to the ports. There are some reports that it helps make enumeration work better on some high speed devices. Furthermore, the wait is only done once after power has been enabled on all ports. CC: Remy Bohmer <linux@bohmer.net> CC: Vincent Palatin <vpalatin@chromium.org> Signed-off-by:
Wolfgang Grandegger <wg@denx.de>
-
Allen Martin authored
This moves keyboard polling logic from USB HCD drivers into USB keyboard driver. Remove usb_event_poll() as keyboard polling was the only user of this API. With this patch USB keyboard works with EHCI controllers again. Tested on a tegra2 seaboard. Signed-off-by:
Allen Martin <amartin@nvidia.com>
-
Allen Martin authored
If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard device is detected. Signed-off-by:
Allen Martin <amartin@nvidia.com>
-
Vincent Palatin authored
When keys are pressed on the numeric keypad, emit key codes for the numbers, operators, dot and enter. Signed-off-by:
Vincent Palatin <vpalatin@chromium.org>
-
Vincent Palatin authored
When doing a "GET_REPORT" request on the keyboard control endpoint, the report ID should 0 (ie report ID not used) rather than 1 as reports are not used in boot mode. Signed-off-by:
Vincent Palatin <vpalatin@chromium.org>
-
Marek Vasut authored
Signed-off-by:
Marek Vasut <marek.vasut@gmail.com> Cc: Remy Bohmer <linux@bohmer.net> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Marek Vasut authored
Signed-off-by:
Marek Vasut <marek.vasut@gmail.com> Cc: Remy Bohmer <linux@bohmer.net> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Marek Vasut authored
Signed-off-by:
Marek Vasut <marek.vasut@gmail.com> Cc: Remy Bohmer <linux@bohmer.net> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
- Feb 28, 2012
-
-
Tom Rini authored
With 2a8e0fc8 nand_do_read_ops changed in behavior slightly (keeping in sync with the kernel which did this change in b64d39d8) such that the OOB data is always copied into oobbuf and never appended to datbuf. Within U-Boot only the nand_dump function (for the dump nand subcommand) was expecting the OOB data to only be appended to datbuf. So we now change nand_dump to not malloc extra space, correct the comment about datbuf and OOB data and switch the pointer to oobbuf before printing. Cc: Scott Wood <scottwood@freescale.com> Signed-off-by:
Tom Rini <trini@ti.com> Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- Feb 27, 2012
-
-
Shawn Guo authored
The commit message of a28afca5 (Add uboot "fdt_high" enviroment variable) states that fdt_high behaves similarly to the existing initrd_high. But fdt_high actually has an outstanding difference from initrd_high. The former specifies the start address, while the later specifies the end address. As fdt_high and initrd_high will likely be used together, it'd be nice to have them behave same. The patch changes the behavior of fdt_high to have it aligned with initrd_high. The document of fdt_high in README is updated with an example to demonstrate the usage of this environment variable. Signed-off-by:
Shawn Guo <shawn.guo@linaro.org> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Feb 14, 2012
-
-
Peter Meerwald authored
Signed-off-by:
Peter Meerwald <p.meerwald@bct-electronic.com> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
- Feb 12, 2012
-
-
Eric Nelson authored
This patch allows a board configuration file to provide default bus and chip-selects for SPI flash so that first argument to the 'sf' command is optional. On boards that use the mxc_spi driver and a GPIO for chip select, this allows a much simpler command line: U-Boot> sf probe instead of U-Boot> sf probe 0x5300 Tested-by:
Jason Liu <jason.hui@linaro.org> Signed-off-by:
Eric Nelson <eric.nelson@boundarydevices.com> Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Hadli, Manjunath authored
add support for printing various clock frequency info found in SOC such as ARM core frequency, DSP core frequency and DDR frequency as part of bdinfo command. Signed-off-by:
Manjunath Hadli <manjunath.hadli@ti.com> Cc: Tom Rini <trini@ti.com>
-
Heiko Schocher authored
Signed-off-by:
Heiko Schocher <hs@denx.de> Cc: Jason Hobbs <jason.hobbs@calxeda.com> Acked-by:
Jason Hobbs <jason.hobbs@calxeda.com>
-
Heiko Schocher authored
show a menu on startup instead running the shell. Signed-off-by:
Heiko Schocher <hs@denx.de> Cc: Jason Hobbs <jason.hobbs@calxeda.com> Cc: Mike Frysinger <vapier@gentoo.org> Acked-by:
Jason Hobbs <jason.hobbs@calxeda.com>
-
Heiko Schocher authored
add the possibility to show a statusline when printing a menu Signed-off-by:
Heiko Schocher <hs@denx.de> Cc: Jason Hobbs <jason.hobbs@calxeda.com> Cc: Mike Frysinger <vapier@gentoo.org> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Heiko Schocher authored
add possibility to add a timeout when reading a line into a buffer. Signed-off-by:
Heiko Schocher <hs@denx.de> Cc: Mike Frysinger <vapier@gentoo.org> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
- Jan 13, 2012
-
-
Stefan Kristiansson authored
Signed-off-by:
Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
-
Stefan Kristiansson authored
Signed-off-by:
Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
-
- Jan 05, 2012
-
-
Kyle Moffett authored
When performing large bulk reads from a CD or DVD using the U-Boot usb_storage driver, it generates requests of up to 20 blocks at a time. With a standard 512-byte block size, that is 10240 bytes and within the limit of U-Boot's EHCI driver (maximum 5 pages at 4k per page). Unfortunately CD-ROM media has a 2048-byte blocksize, resulting in a maximum transfer size of 40960 bytes, which does not fit. Since the EHCI specification is impossibly obtuse and far beyond my comprehension, I chose to dynamically compute the limit based on the blocksize. Signed-off-by:
Kyle Moffett <Kyle.D.Moffett@boeing.com>
-
Igor Grinberg authored
env_get_char_spec() function is duplicated across multiple environment files. Remove the duplication by providing a default implementation. Add "weak" declaration, so the default implementation can be overridden. Signed-off-by:
Igor Grinberg <grinberg@compulab.co.il>
-
Stefano Babic authored
Replace also __FUNCTION__ with standard __func__ Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- Dec 20, 2011
-
-
Simon Glass authored
The switch to strict_strtoul() was not done correctly - this fixes the compile error when CONFIG_CMD_TFTPPUT is active. There appears to very little use of strict_strtoul() in commands, so it might be easier to switch to simple_strtoul(). If not, we should decide the best way to use strict_strtoul(). For now I have added a friendly message which will of course increase code size. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Heiko Schocher authored
Fix: cmd_pxe.c: In function 'parse_pxefile_top': cmd_pxe.c:941:5: warning: 'err' may be used uninitialized in this function [-Wuninitialized] cmd_pxe.c:921:6: note: 'err' was declared here Signed-off-by:
Heiko Schocher <hs@denx.de> Cc: Jason Hobbs <jason.hobbs@calxeda.com> Acked-by:
Jason Hobbs <jason.hobbs@calxeda.com>
-
- Dec 19, 2011
-
-
Horst Kronstorfer authored
do_env_import() missed the final '\0' terminator when calculating the size of an environment data block. This led to an erroneous 'bad CRC, import failed' message for a checksum protected environment (-c.) Signed-off-by:
Horst Kronstorfer <hkronsto@frequentis.com>
-
- Dec 17, 2011
-
-
Andreas Bießmann authored
size_t is not always 'unsigned int', use corret length modifer. This patch fixes following warning: ---8<--- cmd_sf.c: In function 'spi_flash_update_block': cmd_sf.c:130: warning: format '%#x' expects type 'unsigend int', but argument 4 has type 'size_t' cmd_sf.c:135: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'size_t' --->8--- Signed-off-by:
Andreas Bießmann <biessmann@corscience.de> cc: Mike Frysinger <vapier@gentoo.org> cc: Thomas Chou <thomas@wytron.com.tw> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Sonny Rao authored
From: Sonny Rao <sonnyrao@chromium.org> utilize the added vscnprintf functions to avoid buffer overruns The implementation is fairly dumb in that it doesn't detect that the buffer is too small, but at least will not cause crashes. Signed-off-by:
Sonny Rao <sonnyrao@chromium.org>
-
- Dec 16, 2011
-
-
Tom Rini authored
In 97929877 Stefan describes a usecase where the previous behavior of leaving wMaxPacketSize be unaligned caused fatal problems. The initial fix for this problem was incomplete however as it showed another cases of non-aligned access that previously worked implicitly. This switches to making sure that all access of wMaxPacketSize are done via (get|put)_unaligned. In order to maintain a level of readability to the code in some cases we now use a variable for the value of wMaxPacketSize and in others, a macro. Cc: Minkyu Kang <mk7.kang@samsung.com> Cc: Remy Bohmer <linux@bohmer.net> OpenRISC: Tested-by:
Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> Beagleboard xM, Pandaboard run-tested, s5p_goni build-tested. Signed-off-by:
Tom Rini <trini@ti.com>
-
- Dec 12, 2011
-
-
Horst Kronstorfer authored
Signed-off-by:
Horst Kronstorfer <hkronsto@frequentis.com>
-