1. 18 Mar, 2012 1 commit
  2. 06 Mar, 2012 1 commit
  3. 16 Dec, 2011 1 commit
    • Tom Rini's avatar
      USB: Use (get|put)_unaligned for accessing wMaxPacketSize · b2fb47f1
      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: default avatarStefan Kristiansson <stefan.kristiansson@saunalahti.fi>
      
      Beagleboard xM, Pandaboard run-tested, s5p_goni build-tested.
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      b2fb47f1
  4. 11 Dec, 2011 2 commits
  5. 09 Oct, 2011 1 commit
  6. 25 Jul, 2011 1 commit
  7. 12 Apr, 2011 1 commit
  8. 19 Feb, 2011 1 commit
    • Simon Glass's avatar
      Add USB host ethernet adapter support · 89d48367
      Simon Glass authored
      
      
      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: default avatarSimon Glass <sjg@chromium.org>
      89d48367
  9. 11 Jan, 2011 1 commit
  10. 28 Nov, 2010 2 commits
  11. 12 Aug, 2010 1 commit
    • Sergei Poselenov's avatar
      Fixed clobbered output of the "help usb" command · 842404ea
      Sergei Poselenov authored
      
      
      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: default avatarSergei Poselenov <sposelenov@emcraft.com>
      842404ea
  12. 24 Jul, 2010 1 commit
  13. 04 Jul, 2010 1 commit
    • Wolfgang Denk's avatar
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk authored
      
      
      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: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      54841ab5
  14. 06 May, 2010 1 commit
  15. 08 Apr, 2010 1 commit
    • Kim B. Heino's avatar
      USB storage count · aaad108b
      Kim B. Heino authored
      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: default avatarKim B. Heino <Kim.Heino@bluegiga.com>
      aaad108b
  16. 27 Mar, 2010 1 commit
  17. 20 Dec, 2009 2 commits
    • Mahavir Jain's avatar
      usb: write command for RAW partition. · 127e1084
      Mahavir Jain authored
      
      
      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: default avatarMahavir Jain <mjain@marvell.com>
      127e1084
    • Tom Rix's avatar
      USB Consolidate descriptor definitions · 8f8bd565
      Tom Rix authored
      
      
      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: default avatarTom Rix <Tom.Rix@windriver.com>
      8f8bd565
  18. 12 Jun, 2009 1 commit
    • Wolfgang Denk's avatar
      General help message cleanup · a89c33db
      Wolfgang Denk authored
      
      
      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: default avatarWolfgang Denk <wd@denx.de>
      a89c33db
  19. 28 Jan, 2009 4 commits
  20. 28 Nov, 2008 2 commits
  21. 18 Oct, 2008 1 commit
  22. 14 Jul, 2008 1 commit
  23. 10 Jul, 2008 2 commits
  24. 30 Jun, 2008 1 commit
  25. 20 May, 2008 1 commit
    • Wolfgang Denk's avatar
      Big white-space cleanup. · 53677ef1
      Wolfgang Denk authored
      
      
      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: default avatarWolfgang Denk <wd@denx.de>
      53677ef1
  26. 26 Mar, 2008 1 commit
  27. 12 Mar, 2008 1 commit
  28. 29 Feb, 2008 1 commit
  29. 25 Feb, 2008 1 commit
    • Marian Balakowicz's avatar
      [new uImage] Add dual format uImage support framework · d5934ad7
      Marian Balakowicz authored
      
      
      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: default avatarMarian Balakowicz <m8@semihalf.com>
      d5934ad7
  30. 21 Feb, 2008 2 commits
  31. 07 Feb, 2008 1 commit