Skip to content
Snippets Groups Projects
  1. Jun 01, 2011
    • Enric Balletbo i Serra's avatar
      net/net.c: Update ipaddr if the environment has changed · 23a70bf9
      Enric Balletbo i Serra authored
      
      At least on ARM the ipaddr is only set in board_init_r function. The
      problem is if ipaddr is not defined in environment importing another
      environment defined don't update the ipaddr value.
      
      For example, suppose we've a default environment without net variables
      defined and we want to import an uEnv.txt environment from SD-card like
      this:
      
        ipaddr=192.168.2.240
        netmask=255.255.255.0
        gatewayip=192.168.2.1
        serverip=192.168.2.114
      
      Then if you try boot from NFS results in:
      
        Importing environment from mmc ...
        Running uenvcmd ...
        smc911x: detected LAN9221 controller
        smc911x: phy initialized
        smc911x: MAC ac:de:48:00:00:00
        *** ERROR: `ipaddr' not set
      
      The ipaddr at this point is NULL beacause is only set at board_init_r
      function. This patch updates the ipaddr value if the environment has
      changed.
      
      Signed-off-by: default avatarEnric Balletbo i Serra <eballetbo@iseebcn.com>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      23a70bf9
  2. May 19, 2011
  3. May 12, 2011
  4. Apr 27, 2011
  5. 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
  6. Apr 13, 2011
  7. Feb 19, 2011
  8. Nov 28, 2010
  9. 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
  10. Nov 14, 2010
  11. Oct 12, 2010
  12. 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
  13. Jul 12, 2010
  14. Jun 21, 2010
Loading