Skip to content
Snippets Groups Projects
  1. Oct 05, 2011
  2. Oct 01, 2011
  3. Sep 21, 2011
  4. Sep 19, 2011
  5. Sep 09, 2011
  6. Sep 05, 2011
  7. Sep 04, 2011
    • Michal Simek's avatar
      net: Check network device driver name · 58c583b6
      Michal Simek authored
      
      If name is longer than allocated space NAMESIZE
      mac address is rewritten which show error
      message like:
      
      Error message:
      Warning: Xlltemac.87000000 MAC addresses don't match:
      Address in SROM is         30:00:00:00:00:00
      Address in environment is  00:0a:35:00:6a:04
      
      NAMESIZE contains Driver name + zero terminated character.
      
      Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
      58c583b6
  8. Aug 08, 2011
  9. Aug 03, 2011
  10. Jul 27, 2011
  11. 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
  12. May 19, 2011
  13. May 12, 2011
  14. Apr 27, 2011
  15. 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
  16. Apr 13, 2011
  17. Feb 19, 2011
Loading