Skip to content
Snippets Groups Projects
  1. May 12, 2011
    • Luca Ceresoli's avatar
      net/net.c: cosmetic: fix whitespace issues · 4f63acd0
      Luca Ceresoli authored
      
      This removes the following checkpatch issues:
       - ERROR: space prohibited after that open parenthesis '('
       - ERROR: space prohibited before that close parenthesis ')'
       - ERROR: space prohibited after that open square bracket '['
       - ERROR: space prohibited after that '&' (ctx:WxW)
       - ERROR: spaces required around that '=' (ctx:VxW)
       - ERROR: space required before the open parenthesis '('
       - ERROR: space required after that ',' (ctx:VxV)
       - ERROR: need consistent spacing around '+' (ctx:WxV)
       - WARNING: unnecessary whitespace before a quoted newline
       - WARNING: please, no spaces at the start of a line
       - WARNING: space prohibited between function name and open
         parenthesis '('
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Ben Warren <biggerbadderben@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      4f63acd0
    • Luca Ceresoli's avatar
      net/net.c: cosmetic: variable initializations · c586ce6e
      Luca Ceresoli authored
      
      This removes the following checkpatch errors:
       - ERROR: do not initialise globals to 0 or NULL
       - ERROR: spaces required around that '=' (ctx:VxV)
       - ERROR: that open brace { should be on the previous line
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Ben Warren <biggerbadderben@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      c586ce6e
    • Luca Ceresoli's avatar
      net/net.c: cosmetic: fix lines over 80 characters · 3e38e429
      Luca Ceresoli authored
      
      This removes the following checkpatch warning:
       - WARNING: line over 80 characters
      
      There are three such warnings left.
      
      The first is hard to fix with cosmetic-only changes without compromising code
      readability, so I'm leaving it as it is for now:
        WARNING: line over 80 characters
        #1537: FILE: net.c:1537:
        + [4 tabs] memcpy(((Ethernet_t *)NetArpWaitTxPacket)->et_dest, ...
      
      The other two cannot be fixed without splitting string literals, so it is
      preferred to keep them longer than 80 characters.
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Ben Warren <biggerbadderben@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      3e38e429
    • Luca Ceresoli's avatar
      NET: pass source IP address to packet handlers · 03eb129f
      Luca Ceresoli authored
      
      This is needed for the upcoming TFTP server implementation.
      
      This also simplifies PingHandler() and fixes rxhand_f documentation.
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      03eb129f
    • Simon Guinot's avatar
      netconsole: remove `serverip' check · 8b6bbe10
      Simon Guinot authored
      
      Netconsole use the environment variable `ncip' to configure the
      destination IP. `serverip' don't need to be defined.
      
      Signed-off-by: default avatarSimon Guinot <sguinot@lacie.com>
      8b6bbe10
  2. Apr 27, 2011
  3. Apr 20, 2011
    • Andy Fleming's avatar
      Create PHY Lib for U-Boot · 5f184715
      Andy Fleming authored
      Extends the mii_dev structure to participate in a full-blown MDIO and
      PHY driver scheme.  The mii_dev structure and miiphy calls are modified
      in such a way to allow the original mii command and miiphy
      infrastructure to work as before, but also to support a new set of APIs
      which allow (among other things) sharing of PHY driver code and 10G support
      
      The mii command will continue to support normal PHY management functions
      (Clause 22 of 802.3), but will not be changed to support 10G
      (Clause 45).
      
      The basic design is similar to PHY Lib from Linux, but simplified for
      U-Boot's network and driver infrastructure.
      
      We now have MDIO drivers and PHY drivers
      
      An MDIO driver provides:
      read
      write
      reset
      
      A PHY driver provides:
      (optionally): probe
      config - initial setup, starting of auto-negotiation
      startup - waiting for AN, and reading link state
      shutdown - any cleanup needed
      
      The ethernet drivers interact with the PHY Lib using these functions:
      phy_connect()
      phy_config()
      phy_startup()
      phy_shutdown()
      
      Each PHY driver can be configured separately, or all at once using
      config_phylib_all_drivers.h (added in the patch which adds the drivers)
      
      We also provide generic drivers for Clause 22 (10/100/1000), and
      Clause 45 (10G) PHYs.
      
      We also implement phy_reset(), and call it in phy_connect(). Because
      phy_reset() is essentially the same as miiphy_reset, but:
      a) must support 10G PHYs, and
      b) should use the phylib primitives,
      
      we implement miiphy_reset, using phy_reset(), but only when
      CONFIG_PHYLIB is set. Otherwise, we just use the old version. In this
      way, we save on compile size, even if we don't manage to save code size.
      
      Pulled ethtool.h and mdio.h from:
      git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
      
      
      782d640afd15af7a1faf01cfe566ca4ac511319d
      With many, many deletions so as to enable compilation under u-boot
      
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      5f184715
  4. Apr 13, 2011
  5. Feb 19, 2011
  6. Nov 28, 2010
  7. Nov 17, 2010
    • Sebastien Carlier's avatar
      Switch from archive libraries to partial linking · 6d8962e8
      Sebastien Carlier authored
      
      Before this commit, weak symbols were not overridden by non-weak symbols
      found in archive libraries when linking with recent versions of
      binutils.  As stated in the System V ABI, "the link editor does not
      extract archive members to resolve undefined weak symbols".
      
      This commit changes all Makefiles to use partial linking (ld -r) instead
      of creating library archives, which forces all symbols to participate in
      linking, allowing non-weak symbols to override weak symbols as intended.
      This approach is also used by Linux, from which the gmake function
      cmd_link_o_target (defined in config.mk and used in all Makefiles) is
      inspired.
      
      The name of each former library archive is preserved except for
      extensions which change from ".a" to ".o".  This commit updates
      references accordingly where needed, in particular in some linker
      scripts.
      
      This commit reveals board configurations that exclude some features but
      include source files that depend these disabled features in the build,
      resulting in undefined symbols.  Known such cases include:
      - disabling CMD_NET but not CMD_NFS;
      - enabling CONFIG_OF_LIBFDT but not CONFIG_QE.
      
      Signed-off-by: default avatarSebastien Carlier <sebastien.carlier@gmail.com>
      6d8962e8
  8. Nov 14, 2010
  9. Oct 12, 2010
  10. Aug 09, 2010
    • Ben Warren's avatar
      Fix compile warnings for const correctness · d7fb9bcf
      Ben Warren authored
      
      Commit 6e37b1a3a25004d3df5867de49fff6b3fc9c4f04 modifies several net calls
      to take a (const char *) parameter instead of (char *), but in some cases
      the modified functions call other functions taking (char *).  The end result
      is warnings about discarding the const qualifier.
      
      This patch fixes these other function signatures.
      
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      d7fb9bcf
  11. Jul 12, 2010
  12. Jun 21, 2010
  13. Jun 20, 2010
  14. May 03, 2010
  15. Mar 21, 2010
  16. Jan 17, 2010
    • Dirk Behme's avatar
      Make getenv_IPaddr() global · 6a45e384
      Dirk Behme authored
      
      There are boards out there that do not have network support in
      U-Boot (CONFIG_CMD_NET not set), but they do so in Linux. This
      makes it desirable to be able to port network configuration (like
      the IP address) to the Linux kernel.
      
      We should not make the passing of the IP configuration to Linux
      dependent on U-Boot features / settings.
      
      For this, make getenv_IPaddr() global. This fixes build error
      
      u-boot/lib_xxx/board.c:360: undefined reference to `getenv_IPaddr'
      
      on various architectures.
      
      Signed-off-by: default avatarDirk Behme <dirk.behme@googlemail.com>
      Acked-by: default avatarBen Warren <biggerbadderben@gmail.com>
      6a45e384
  17. Dec 14, 2009
  18. Dec 07, 2009
    • Evan Samanas's avatar
      nfs: NfsTimeout() updates · aabb8cb0
      Evan Samanas authored
      
      - NfsTimeout() does not correctly update the NFS timeout value which
        results in NfsTimeout() only being called once in certain situations.
        This can result in the 'nfs' command hanging indefinetly.  For
        example, the command:
      
          nfs 192.168.0.1:/home/user/file
      
        will not exit until ctrl-c is pressed if 192.168.0.1 does not have an
        NFS server running.
      
        This issue is resolved by reinitializting the NFS timeout value inside
        NfsTimeout() when a timeout occurs.
      
      - Make the 'nfs' command print the 'T' character when a timeout occurs.
        Previously there was no indication that timeouts were occuring.
      
      - Mimic the 'tftpboot' command and when a download fails print "Retry
        count exceeded; starting again", and restart the download taking the
        'netretry' environment variable into account.
      
      Signed-off-by: default avatarEvan Samanas <esamanas@xes-inc.com>
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
      
      Tested on TQM8xxL.
      
      Tested by: Wolfgang Denk <wd@denx.de>
      
      Tested on MPC8527DS.
      
      Tested by: Ed Swarthout <Ed.Swarthout@freescale.com>
      aabb8cb0
    • Ed Swarthout's avatar
      fix nfs symlink name corruption · f64ef9bb
      Ed Swarthout authored
      
      An off by one error may cause nfs readlink lookup fail if
      nfs_path_buff has non-zero data from a previous use.
      
      Loading: *** ERROR: File lookup fail
      
      Signed-off-by: default avatarEd Swarthout <Ed.Swarthout@freescale.com>
      f64ef9bb
  19. Nov 24, 2009
  20. Oct 03, 2009
  21. Sep 11, 2009
  22. Aug 25, 2009
  23. Aug 10, 2009
  24. Aug 08, 2009
Loading