Skip to content
Snippets Groups Projects
  1. Jul 24, 2013
  2. Jun 25, 2013
  3. Jun 19, 2013
    • Jim Lin's avatar
      NET: Fix system hanging if NET device is not installed · 7315cfd9
      Jim Lin authored
      
      If we try to boot from NET device, NetInitLoop in net.c will be invoked.
      If NET device is not installed, eth_get_dev() function will return
      eth_current value, which is NULL.
      When NetInitLoop is called, "eth_get_dev->enetaddr" will access
      restricted memory area and therefore cause hanging.
      This issue is found on Tegra30 Cardhu platform after adding
      CONFIG_CMD_NET and CONFIG_CMD_DHCP in config header file.
      
      Signed-off-by: default avatarJim Lin <jilin@nvidia.com>
      Tested-by: default avatarStephen Warren <swarren@nvidia.com>
      7315cfd9
  4. Mar 01, 2013
  5. Dec 15, 2012
  6. Dec 13, 2012
  7. Nov 04, 2012
    • Kim Phillips's avatar
      net/: sparse fixes · 06370590
      Kim Phillips authored
      
      bootp.c:44:14: warning: symbol 'dhcp_state' was not declared. Should it be static?
      bootp.c:45:15: warning: symbol 'dhcp_leasetime' was not declared. Should it be static?
      bootp.c:46:10: warning: symbol 'NetDHCPServerIP' was not declared. Should it be static?
      arp.c:30:17: warning: symbol 'NetArpWaitReplyIP' was not declared. Should it be static?
      arp.c:37:16: warning: symbol 'NetArpTxPacket' was not declared. Should it be static?
      arp.c:38:17: warning: symbol 'NetArpPacketBuf' was not declared. Should it be static?
      atheros.c:33:19: warning: symbol 'AR8021_driver' was not declared. Should it be static?
      net.c:183:7: warning: symbol 'PktBuf' was not declared. Should it be static?
      net.c:159:21: warning: symbol 'net_state' was not declared. Should it be static?
      ping.c:73:6: warning: symbol 'ping_start' was not declared. Should it be static?
      ping.c:82:13: warning: symbol 'ping_receive' was not declared. Should it be static?
      tftp.c:53:7: warning: symbol 'TftpRRQTimeoutMSecs' was not declared. Should it be static?
      tftp.c:54:5: warning: symbol 'TftpRRQTimeoutCountMax' was not declared. Should it be static?
      eth.c:125:19: warning: symbol 'eth_current' was not declared. Should it be static?
      
      Note: in the ping.c fix, commit a36b12f9
      "net: Move PING out of net.c" mistakenly carried the ifdef CMD_PING
      clause from when it was necessary to avoid warnings when it was embedded
      in net.c.
      
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      06370590
  8. Oct 03, 2012
  9. Oct 01, 2012
  10. Sep 27, 2012
  11. Sep 24, 2012
    • Joe Hershberger's avatar
      net: Filter incoming netconsole packets by IP · 8a0eccb1
      Joe Hershberger authored
      
      Check the incoming packets' source IP address... if ncip isn't set to a
      broadcast address, only listen to the client at ncip.
      
      Signed-off-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      8a0eccb1
    • Joe Hershberger's avatar
      net: Improve the speed of netconsole · f8be7d65
      Joe Hershberger authored
      
      Previously u-boot would initialize the network interface for every
      network operation and then shut it down again.  This makes sense for
      most operations where the network in not known to be needed soon after
      the operation is complete.  In the case of netconsole, it will use the
      network for every interaction with the shell or every printf.  This
      means that the network is being reinitialized very often.  On many
      devices, this intialization is very slow.
      
      This patch checks for consecutive netconsole actions and leaves the
      ethernet hardware initialized between them.  It will still behave the
      same old way for all other network operations and any time another
      network operation happens between netconsole operations.
      
      Signed-off-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Acked-by: default avatarStefano Babic <sbabic@denx.de>
      f8be7d65
    • Tetsuyuki Kobayashi's avatar
      net: bugfix: NetSetTimeout assumes CONFIG_SYS_HZ=1000 · 1389f98f
      Tetsuyuki Kobayashi authored
      
      NetSetTimeout sets incorrect value to timeDelta when CONFIG_SYS_HZ != 1000.
      
      Signed-off-by: default avatarTetsuyuki Kobayashi <koba@kmckk.co.jp>
      1389f98f
    • Michael Walle's avatar
      api: net: fix length check in eth_receive() · 46c07bcf
      Michael Walle authored
      
      If the requested length is too small to hold the received packet,
      eth_receive() will return -1 and will leave the packet in the receive
      buffers. Instead of returning an error in this case, we return the first
      portion of the received packet and remove it from the receive buffers.
      
      This fixes FreeBSD's ubldr. Without this patch it will just stop receiving
      packets if the NIC receives more than PKTBUFSRX too large packets.
      
      Signed-off-by: default avatarMichael Walle <michael@walle.cc>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Rafal Jaworowski <raj@semihalf.com>
      Cc: Piotr Kruszynski <ppk@semihalf.com>
      46c07bcf
  12. Jul 24, 2012
  13. Jul 19, 2012
  14. Jul 12, 2012
  15. Jul 11, 2012
  16. Jul 10, 2012
  17. Jul 08, 2012
    • Kim Phillips's avatar
      net: make net_rand.h inclusion depend on BOOTP_RANDOM_DELAY · db7720ba
      Kim Phillips authored
      
      commit "net: use common rand()/srand() functions" introduced the following
      build warning on the current u-boot-arm tree:
      
      $ ./MAKEALL MPC8313ERDB_66
      Configuring for MPC8313ERDB_66 - Board: MPC8313ERDB, Options: SYS_66MHZ
         text	   data	    bss	    dec	    hex	filename
       271988	  13976	  41768	 327732	  50034	./u-boot
      In file included from bootp.c:15:0:
      net_rand.h: In function 'srand_mac':
      net_rand.h:40:2: warning: implicit declaration of function 'srand' [-Wimplicit-function-declaration]
      
      adding this dependency fixes it.
      
      Cc: Michael Walle <michael@walle.cc>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      Acked-by: default avatarMichael Walle <michael@walle.cc>
      db7720ba
  18. Jul 07, 2012
  19. May 23, 2012
Loading