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. Nov 28, 2010
  6. Oct 12, 2010
  7. Jun 21, 2010
  8. May 03, 2010
  9. 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
  10. Dec 14, 2009
  11. Nov 24, 2009
  12. Aug 25, 2009
    • Alessandro Rubini's avatar
      net: defragment IP packets · 5cfaa4e5
      Alessandro Rubini authored
      
      The defragmenting code is enabled by CONFIG_IP_DEFRAG; the code is
      useful for TFTP and NFS transfers.  The user can specify the maximum
      defragmented payload as CONFIG_NET_MAXDEFRAG (default 16k).
      Since NFS has a bigger per-packet overhead than TFTP, the static
      reassembly buffer can hold CONFIG_NET_MAXDEFRAG + the NFS overhead.
      
      The packet buffer is used as an array of "hole" structures, acting as
      a double-linked list. Each new fragment can split a hole in two,
      reduce a hole or fill a hole. No support is there for a fragment
      overlapping two diffrent holes (i.e., thre new fragment is across an
      already-received fragment).
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      5cfaa4e5
  13. Aug 08, 2009
    • Robin Getz's avatar
      minor debug cleanups in ./net · 0ebf04c6
      Robin Getz authored
      
       Minor ./net cleanups - no functional changes
        - change #ifdef DEBUG printf(); #endif to just debug()
        - changed __FUNCTION__ to __func__
        - got rid of extra whitespace between function and opening brace
        - removed unnecessary braces on if statements
      
       gcc dead code elimination should make this functionally/size equivalent
       when DEBUG is not defined. (confirmed on Blackfin, with gcc 4.3.3).
      
      Signed-off-by: default avatarRobin Getz <rgetz@blackfin.uclinux.org>
      
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      0ebf04c6
  14. Jul 23, 2009
  15. May 15, 2009
  16. Apr 20, 2009
    • Michael Zaidman's avatar
      NetLoop initialization bug · 3c172c4f
      Michael Zaidman authored
      
      The patch fixes the bug of partial initialization of global network
      parameters.
      
      Upon u-boot's start up the first ping command causes a failure of the
      consequent TFTP command. It happens in the recently added mechanism of
      the NetLoop initialization where initialization of global network
      parameters is separated in the NetInitLoop routine which is called per
      env_id change. Thus, ping request will initialize the network parameters
      necessary for ping operation only, afterwards the env_changed_id will be
      set to the env_id that will prevent all following initialization requests
      from other protocols.
      The problem is that the initialized by ping subset of network parameters
      is not sufficient for other protocols and particularly for TFTP which
      requires the NetServerIp also.
      
      Signed-off-by: default avatarMichael Zaidman <michael.zaidman@gmail.com>
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      3c172c4f
  17. Mar 20, 2009
  18. Feb 23, 2009
  19. Jan 29, 2009
  20. Dec 06, 2008
  21. Dec 05, 2008
  22. Oct 18, 2008
  23. Jul 13, 2008
Loading