1. 06 Mar, 2012 1 commit
  2. 22 Nov, 2011 1 commit
  3. 14 Nov, 2010 1 commit
    • Peter Tyser's avatar
      pci: Clean up PCI info when CONFIG_PCI_SCAN_SHOW · 983eb9d1
      Peter Tyser authored
      This change does the following:
      - Removes the printing of the PCI interrupt line value.  This is
        normally set to 0 by U-Boot on bootup and is rarely used during
        everyday operation.
      
      - Prints out the PCI function number of a device.  Previously a device
        with multiple functions would be printed identically 2 times, which is
        generally confusing.  For example, on an Intel 2 port gigabit Ethernet
        card the following was displayed:
          ...
          04  01  8086  1010  0200  00
          04  01  8086  1010  0200  00
          ...
      
      - Prints a text description of each device's PCI class instead of the
        raw PCI class code.  The textual description makes it much easier to
        determine what devices are installed on a PCI bus.
      
      - Changes the general formatting of the PCI device output.
      
      Previous output:
        PCIE1: connected as Root Complex
                04  01  8086  1010  0200  00
                04  01  8086  1010  0200  00
                03  00  10b5  8112  0604  00
                02  01  10b5  8518  0604  00
                02  02  10b5  8518  0604  00
                08  00  1957  0040  0b20  00
                07  00  10b5  8518  0604  00
                09  00  10b5  8112  0604  00
                07  01  10b5  8518  0604  00
                07  02  10b5  8518  0604  00
                06  00  10b5  8518  0604  00
                02  03  10b5  8518  0604  00
                01  00  10b5  8518  0604  00
        PCIE1: Bus 00 - 0b
        PCIE2: connected as Root Complex
                0d  00  1957  0040  0b20  00
        PCIE2: Bus 0c - 0d
      
      Updated output:
        PCIE1: connected as Root Complex
                04:01.0 - 8086:1010 - Network controller
                04:01.1 - 8086:1010 - Network controller
                03:00.0 - 10b5:8112 - Bridge device
                02:01.0 - 10b5:8518 - Bridge device
                02:02.0 - 10b5:8518 - Bridge device
                08:00.0 - 1957:0040 - Processor
                07:00.0 - 10b5:8518 - Bridge device
                09:00.0 - 10b5:8112 - Bridge device
                07:01.0 - 10b5:8518 - Bridge device
                07:02.0 - 10b5:8518 - Bridge device
                06:00.0 - 10b5:8518 - Bridge device
                02:03.0 - 10b5:8518 - Bridge device
                01:00.0 - 10b5:8518 - Bridge device
        PCIE1: Bus 00 - 0b
        PCIE2: connected as Root Complex
                0d:00.0 - 1957:0040 - Processor
        PCIE2: Bus 0c - 0d
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
      983eb9d1
  4. 22 Oct, 2010 1 commit
  5. 24 Jul, 2010 1 commit
  6. 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
  7. 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
  8. 28 Jan, 2009 2 commits
  9. 18 Oct, 2008 1 commit
  10. 10 Sep, 2008 1 commit
  11. 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
  12. 21 Nov, 2007 1 commit
  13. 08 Jul, 2007 1 commit
  14. 03 Jul, 2007 1 commit
  15. 20 Mar, 2005 1 commit
  16. 01 Jul, 2003 1 commit
  17. 27 Jun, 2003 1 commit
    • wdenk's avatar
      * Code cleanup: · 8bde7f77
      wdenk authored
        - remove trailing white space, trailing empty lines, C++ comments, etc.
        - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)
      
      * Patches by Kenneth Johansson, 25 Jun 2003:
        - major rework of command structure
          (work done mostly by Michal Cendrowski and Joakim Kristiansen)
      8bde7f77
  18. 22 May, 2003 1 commit
    • wdenk's avatar
      * Patch by Dave Ellis, 22 May 2003: · 5d232d0e
      wdenk authored
        Fix problem with only partially cleared .bss segment
      
      * Patch by Rune Torgersen, 12 May 2003:
        get PCI to work on a MPC8266ADS board; incorporate change to
        cpu/mpc8260/pci.c to enable overrides of PCI memory parameters
      5d232d0e
  19. 14 Mar, 2003 1 commit
    • wdenk's avatar
      * Avoid flicker on the TRAB's VFD by synchronizing the enable with · 06d01dbe
      wdenk authored
        the HSYNC/VSYNC. Requires new CPLD code (Version 101 for Rev. 100
        boards, version 153 for Rev. 200 boards).
      
      * Patch by Vladimir Gurevich, 12 Mar 2003:
        Fix relocation problem of statically initialized string pointers
        in common/cmd_pci.c
      
      * Patch by Kai-Uwe Blöm, 12 Mar 2003:
        Cleanup & bug fixes for JFFS2 code:
        - the memory mangement was broken. It caused havoc on malloc by
          writing beyond the block boundaries.
        - the length calculation for files was wrong, sometimes resulting
          in short file reads.
        - data copying now optionally takes fragment version numbers into
          account, to avoid copying from older data.
        See doc/README.JFFS2 for details.
      06d01dbe
  20. 07 Dec, 2002 1 commit
    • wdenk's avatar
      * Patch by Hans-Joerg Frieden, 06 Dec 2002 · 7c7a23bd
      wdenk authored
        Fix misc problems with AmigaOne support
      
      * Patch by Chris Hallinan, 3 Dec 2002:
        minor cleanup to the MPC8245 EPIC driver
      
      * Patch by Pierre Aubert , 28 Nov 2002
        Add support for external (SIU) interrupts on MPC8xx
      
      * Patch by Pierre Aubert , 28 Nov 2002
        Fix nested syscalls bug in standalone applications
      
      * Patch by David Mller, 27 Nov 2002:
        fix output of "pciinfo" command for CardBus bridge devices.
      
      * Fix bug in TQM8260 board detection - boards got stuck when board ID
        was not readable
      7c7a23bd
  21. 19 Nov, 2002 1 commit
    • wdenk's avatar
      * Patch by Thomas Frieden, 13 Nov 2002: · c7de829c
      wdenk authored
        Add code for AmigaOne board
        (preliminary merge to U-Boot, still WIP)
      
      * Patch by Jon Diekema, 12 Nov 2002:
        - Adding URL for IEEE OUI lookup
        - Making the autoboot #defines dependent on CONFIG_AUTOBOOT_KEYED
          being defined.
        - In the CONFIG_EXTRA_ENV_SETTINGS #define, the root-on-initrd and
          root-on-nfs macros are designed to switch how the default boot
          method gets defined.
      c7de829c
  22. 03 Nov, 2002 1 commit