- 13 4月, 2011 1 次提交
-
-
由 Loïc Minier 提交于
Signed-off-by: NLoc Minier <loic.minier@linaro.org>
-
- 20 2月, 2011 1 次提交
-
-
由 Simon Glass 提交于
This adds support for using USB Ethernet dongles in host mode. This is just the framework - drivers will come later. A new config option called CONFIG_USB_HOST_ETHER can be defined in board config files to switch this on. The was originally written by NVIDIA and was cleaned up for release by the Chromium authors. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 12 1月, 2011 1 次提交
-
-
由 Wolfgang Denk 提交于
This reverts commit 5a442c0a. This commit changed the behaviour of getenv_yesno() (both the default behaviour and the documented behaviour for abbreviated arguments) which resulted in problems in several areas. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 29 11月, 2010 2 次提交
-
-
由 Mike Frysinger 提交于
Use the new helper func to clean up duplicate logic handling of the autostart env var. Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
由 Mike Frysinger 提交于
The duplication of the do_bootm prototype has gotten out of hand, and they're pretty much all outdated (wrt constness). Unify them all in command.h. Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
- 12 8月, 2010 1 次提交
-
-
由 Sergei Poselenov 提交于
The "usb help" doesn't format the output correctly: => help usb usb - USB sub-system Usage: usb reset - reset (rescan) USB controller usb stop [f] - stop USB [f]=force stop usb tree - show USB device tree usb info [dev] - show available USB devices usb storage - show details of USB storage devices usb dev [dev] - show or set current USB storage device usb part [dev] - print partition table of one or all USB storage devices usb read addr blk# cnt - read `cnt' blocks starting at block `blk#' to memory address `addr'usb write addr blk# cnt - write `cnt' blocks starting at block `blk#' from memory address `addr' => With fix below applied, the output is correct: => help usb usb - USB sub-system Usage: usb reset - reset (rescan) USB controller usb stop [f] - stop USB [f]=force stop usb tree - show USB device tree usb info [dev] - show available USB devices usb storage - show details of USB storage devices usb dev [dev] - show or set current USB storage device usb part [dev] - print partition table of one or all USB storage devices usb read addr blk# cnt - read `cnt' blocks starting at block `blk#' to memory address `addr' usb write addr blk# cnt - write `cnt' blocks starting at block `blk#' from memory address `addr' => Signed-off-by: NSergei Poselenov <sposelenov@emcraft.com>
-
- 25 7月, 2010 1 次提交
-
-
由 Wolfgang Denk 提交于
Lots of code use this construct: cmd_usage(cmdtp); return 1; Change cmd_usage() let it return 1 - then we can replace all these ocurrances by return cmd_usage(cmdtp); This fixes a few places with incorrect return code handling, too. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 05 7月, 2010 1 次提交
-
-
由 Wolfgang Denk 提交于
The hush shell dynamically allocates (and re-allocates) memory for the argument strings in the "char *argv[]" argument vector passed to commands. Any code that modifies these pointers will cause serious corruption of the malloc data structures and crash U-Boot, so make sure the compiler can check that no such modifications are being done by changing the code into "char * const argv[]". This modification is the result of debugging a strange crash caused after adding a new command, which used the following argument processing code which has been working perfectly fine in all Unix systems since version 6 - but not so in U-Boot: int main (int argc, char **argv) { while (--argc > 0 && **++argv == '-') { /* ====> */ while (*++*argv) { switch (**argv) { case 'd': debug++; break; ... default: usage (); } } } ... } The line marked "====>" will corrupt the malloc data structures and usually cause U-Boot to crash when the next command gets executed by the shell. With the modification, the compiler will prevent this with an error: increment of read-only location '*argv' N.B.: The code above can be trivially rewritten like this: while (--argc > 0 && **++argv == '-') { char *arg = *argv; while (*++arg) { switch (*arg) { ... Signed-off-by: NWolfgang Denk <wd@denx.de> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
- 07 5月, 2010 1 次提交
-
-
由 Serge Ziryukin 提交于
Signed-off-by: NSerge Ziryukin <ftrvxmtrx@gmail.com>
-
- 09 4月, 2010 1 次提交
-
-
由 Kim B. Heino 提交于
Here's another USB storage patch. Currently U-Boot handles storage devices #0 - #4 as valid devices, even if there is none connected. This patch fixes usb_stor_get_dev() to check detected device count instead of MAX-define. This is very important for ill behaving devices. usb_dev_desc[] can be partially initialized if device probe fails. After fixing get_dev() it was easy to fix "usb part" etc commands. Previously it outputed "Unknown partition table" five times, now it's "no USB devices available". Signed-off-by: NKim B. Heino <Kim.Heino@bluegiga.com>
-
- 28 3月, 2010 1 次提交
-
-
由 Wolfgang Denk 提交于
Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 20 12月, 2009 2 次提交
-
-
由 Mahavir Jain 提交于
This patch implements write support to usb device with raw partition. It will be useful for filesystem write support to usb device from u-boot in future. Tested with writing kernel image to raw usb disk & booting with usb read command into ram. [Note: run usb part to get info about start sector & number of sectors on a partition for usb write operation.] Signed-off-by: NMahavir Jain <mjain@marvell.com>
-
由 Tom Rix 提交于
The header files usb.h and usbdescriptors.h have the same nameed structure definitions for usb_config_descriptor usb_interface_descriptor usb_endpoint_descriptor usb_device_descriptor usb_string_descriptor These are out right duplicates in usb.h usb_device_descriptor usb_string_descriptor This one has extra unused elements usb_endpoint_descriptor unsigned char bRefresh unsigned char bSynchAddress; These in usb.h have extra elements at the end of the usb 2.0 specified descriptor and are used. usb_config_descriptor usb_interface_descriptor The change is to consolidate the definition of the descriptors to usbdescriptors.h. The dublicates in usb.h are removed. The extra element structure will have their name shorted by removing the '_descriptor' suffix. So usb_config_descriptor -> usb_config usb_interface_descriptor -> usb_interface For these, the common descriptor elements are accessed now by an element 'desc'. As an example - if (iface->bInterfaceClass != USB_CLASS_HUB) + if (iface->desc.bInterfaceClass != USB_CLASS_HUB) This has been compile tested on MAKEALL arm, ppc and mips. Signed-off-by: NTom Rix <Tom.Rix@windriver.com>
-
- 13 6月, 2009 1 次提交
-
-
由 Wolfgang Denk 提交于
Many of the help messages were not really helpful; for example, many commands that take no arguments would not print a correct synopsis line, but "No additional help available." which is not exactly wrong, but not helpful either. Commit ``Make "usage" messages more helpful.'' changed this partially. But it also became clear that lots of "Usage" and "Help" messages (fields "usage" and "help" in struct cmd_tbl_s respective) were actually redundant. This patch cleans this up - for example: Before: => help dtt dtt - Digital Thermometer and Thermostat Usage: dtt - Read temperature from digital thermometer and thermostat. After: => help dtt dtt - Read temperature from Digital Thermometer and Thermostat Usage: dtt Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 29 1月, 2009 2 次提交
-
-
由 Stefan Roese 提交于
With this patch the USB related connection speed output ("usb tree" command and debug output) is now high-speed enabled. This patch also fixes a compilation warning when debugging is enabled. Signed-off-by: NStefan Roese <sr@denx.de> Signed-off-by: NRemy Bohmer <linux@bohmer.net>
-
由 Michael Trimarchi 提交于
Prepare USB layer for ehci support Signed-off-by: NMichael Trimarchi <trimarchi@gandalf.sssup.it> Signed-off-by: NRemy Böhmer <linux@bohmer.net>
-
- 28 1月, 2009 2 次提交
-
-
由 Peter Tyser 提交于
Remove command name from all command "usage" fields and update common/command.c to display "name - usage" instead of just "usage". Also remove newlines from command usage fields. Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
-
由 Peter Tyser 提交于
Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
-
- 29 11月, 2008 2 次提交
-
-
由 Michael Trimarchi 提交于
Remove USB obsolete commmand Signed-off-by: NMichael Trimarchi <trimarchi@gandalf.sssup.it> Signed-off-by: NRemy Böhmer <linux@bohmer.net>
-
由 Michael Trimarchi 提交于
USB Code style patch Signed-off-by: NMichael Trimarchi <trimarchi@gandalf.sssup.it> Signed-off-by: NRemy Böhmer <linux@bohmer.net>
-
- 19 10月, 2008 1 次提交
-
-
Signed-off-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- 14 7月, 2008 1 次提交
-
-
由 Wolfgang Denk 提交于
Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 11 7月, 2008 1 次提交
-
-
由 Christian Eggers 提交于
Only print partition for selected device if user supplied the <dev> arg with the "usb part [dev]" command. Signed-off-by: NChristian Eggers <ceggers@gmx.de> Acked-by: NMarkus Klotzbuecher <mk@denx.de>
-
- 10 7月, 2008 1 次提交
-
-
由 Christian Eggers 提交于
Only print partition for selected device if user supplied the <dev> arg with the "usb part [dev]" command. Signed-off-by: NChristian Eggers <ceggers@gmx.de> Acked-by: NMarkus Klotzbuecher <mk@denx.de>
-
- 01 7月, 2008 1 次提交
-
-
由 Marian Balakowicz 提交于
Global FIT image operations like format check cannot be performed on a first sector data, defer them to the point when whole FIT image was uploaded to a system RAM. Signed-off-by: NMarian Balakowicz <m8@semihalf.com> Partial ('cmd_nand' case) Acked-by: Grant Erickson <gerickson@nuovations.com> NAND and DOC bits Acked-by: Scott Wood <scottwood@freescale.com>
-
- 21 5月, 2008 1 次提交
-
-
由 Wolfgang Denk 提交于
This commit gets rid of a huge amount of silly white-space issues. Especially, all sequences of SPACEs followed by TAB characters get removed (unless they appear in print statements). Also remove all embedded "vim:" and "vi:" statements which hide indentation problems. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 26 3月, 2008 1 次提交
-
-
由 Aras Vaichas 提交于
This patch changes the "usb storage" command to return success if it finds a USB storage device, otherwise it returns error. Signed-off-by: NMarkus Klotzbuecher <mk@denx.de>
-
- 12 3月, 2008 1 次提交
-
-
由 Marian Balakowicz 提交于
Updated commands: docboot - cmd_doc.c fdcboot - cmd_fdc.c diskboot - cmd_ide.c nboot - cmd_nand.c scsiboot - cmd_scsi.c usbboot - cmd_usb.c Signed-off-by: NMarian Balakowicz <m8@semihalf.com>
-
- 29 2月, 2008 1 次提交
-
-
由 Marian Balakowicz 提交于
This patch introduces the following prefix convention for the image format handling and bootm related code: genimg_ - dual format shared code image_ - legacy uImage format specific code fit_ - new uImage format specific code boot_ - booting process related code Related routines are renamed and a few pieces of code are moved around and re-grouped. Signed-off-by: NMarian Balakowicz <m8@semihalf.com>
-
- 25 2月, 2008 1 次提交
-
-
由 Marian Balakowicz 提交于
This patch adds framework for dual format images. Format detection is added and the bootm controll flow is updated to include cases for new FIT format uImages. When the legacy (image_header based) format is detected appropriate legacy specific handling is invoked. For the new (FIT based) format uImages dual boot framework has a minial support, that will only print out a corresponding debug messages. Implementation of the FIT specific handling will be added in following patches. Signed-off-by: NMarian Balakowicz <m8@semihalf.com>
-
- 22 2月, 2008 2 次提交
-
-
由 Marian Balakowicz 提交于
Signed-off-by: NMarian Balakowicz <m8@semihalf.com>
-
由 Marian Balakowicz 提交于
Signed-off-by: NMarian Balakowicz <m8@semihalf.com>
-
- 07 2月, 2008 1 次提交
-
-
由 Marian Balakowicz 提交于
- Add inline helper macros for basic header processing - Move common non inline code common/image.c - Replace direct header access with the API routines - Rename IH_CPU_* to IH_ARCH_* Signed-off-by: NMarian Balakowicz <m8@semihalf.com>
-
- 21 11月, 2007 1 次提交
-
-
由 Grant Likely 提交于
Modify common/Makefile to conditionally compile the cmd_*.c files based on the board config. Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
-
- 09 7月, 2007 1 次提交
-
-
由 Jon Loeliger 提交于
Signed-off-by: NJon Loeliger <jdl@freescale.com>
-
- 04 7月, 2007 1 次提交
-
-
由 Jon Loeliger 提交于
This is a compatibility step that allows both the older form and the new form to co-exist for a while until the older can be removed entirely. All transformations are of the form: Before: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) After: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT) Signed-off-by: NJon Loeliger <jdl@freescale.com>
-
- 20 2月, 2007 1 次提交
-
-
由 Grant Likely 提交于
Each of the filesystem drivers duplicate the get_dev routine. This change merges them into a single function in part.c Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
-
- 04 8月, 2006 1 次提交
-
-
由 Bartlomiej Sieka 提交于
-
- 02 8月, 2006 1 次提交
-
-
由 Bartlomiej Sieka 提交于
problems with some USB storage devices. Some code readability improvements.
-
- 13 10月, 2005 1 次提交
-
-
由 Wolfgang Denk 提交于
-